/* ============================================================
   modoavion — Estudio de producto digital
   Diseño nuevo, editorial, oscuro + naranja
   ============================================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg: #0b0c0e;
  --bg-2: #0e1013;
  --surface: #131519;
  --surface-2: #181b21;
  --line: rgba(255, 255, 255, 0.08);
  --line-soft: rgba(255, 255, 255, 0.05);
  --ink: #f4f2ed;
  --muted: rgba(244, 242, 237, 0.56);
  --faint: rgba(244, 242, 237, 0.36);
  --orange: #ff7a1a;
  --orange-soft: #ffa24d;
  --sans: 'Sora', Inter, system-ui, sans-serif;
  --body: 'Inter', system-ui, -apple-system, sans-serif;
  --serif: 'Instrument Serif', Georgia, serif;
  --r: 18px;
  --r-lg: 26px;
}

html { scroll-behavior: smooth; overflow-x: hidden; }

body {
  background: var(--bg);
  color: var(--ink);
  font-family: var(--body);
  font-size: 16px;
  line-height: 1.55;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

a { color: inherit; text-decoration: none; }
img { display: block; max-width: 100%; }
ul { list-style: none; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 28px; }

/* ---------- NAV ---------- */
.site-nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 60;
  background: rgba(11, 12, 14, 0.72);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-in {
  max-width: 1240px;
  margin: 0 auto;
  padding: 16px 28px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand { flex: none; }
.brand img { height: 32px; width: auto; max-width: none; }
.nav-mobile { display: none; }
.nav-links {
  display: flex;
  align-items: center;
  gap: 30px;
  margin-left: auto;
}
.nav-links a {
  font-size: 14.5px;
  font-weight: 500;
  color: var(--muted);
  transition: color 0.2s ease;
}
.nav-links a:hover { color: var(--ink); }
.nav-cta {
  font-size: 14.5px;
  font-weight: 600;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid rgba(255, 122, 26, 0.5);
  color: var(--orange-soft);
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.nav-cta:hover { background: var(--orange); color: #0b0c0e; border-color: var(--orange); }
.nav-toggle { display: none; }

/* ---------- EYEBROW ---------- */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--orange-soft);
  margin-bottom: 22px;
}
.eyebrow::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--orange);
  box-shadow: 0 0 12px rgba(255, 122, 26, 0.7);
}

/* ---------- HERO ---------- */
.hero {
  position: relative;
  padding: 150px 0 60px;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute;
  top: -180px;
  right: -120px;
  width: 640px;
  height: 640px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.16), transparent 62%);
  pointer-events: none;
}
.hero-grid {
  position: relative;
  display: grid;
  grid-template-columns: 1.25fr 0.75fr;
  gap: 48px;
  align-items: center;
  z-index: 2;
}
.bin-rain {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background-image: url('../public/binary.svg');
  background-repeat: repeat;
  background-size: 120px 240px;
  opacity: 0.2;
  animation: binFall 34s linear infinite;
  -webkit-mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
  mask-image: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, rgba(0, 0, 0, 0.35) 55%, transparent 100%);
}
@keyframes binFall {
  from { background-position: 0 0; }
  to { background-position: 0 240px; }
}
.hero h1 {
  font-family: var(--sans);
  font-size: clamp(2.7rem, 5.6vw, 4.6rem);
  line-height: 1.02;
  letter-spacing: -0.035em;
  font-weight: 700;
  margin-bottom: 24px;
}
.hero h1 em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--orange);
  letter-spacing: 0;
  white-space: nowrap;
}
.hero h1 .nowrap { white-space: nowrap; }
.hero .lede {
  color: var(--muted);
  font-size: 1.12rem;
  line-height: 1.6;
  max-width: 34ch;
  margin-bottom: 34px;
}
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 44px; }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-size: 15px;
  font-weight: 600;
  padding: 15px 26px;
  border-radius: 999px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}
.btn-solid { background: var(--orange); color: #0b0c0e; }
.btn-solid:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(255, 122, 26, 0.35); }
.btn-line { border: 1px solid var(--line); color: var(--ink); }
.btn-line:hover { border-color: var(--orange); color: var(--orange-soft); }

.hero-meta {
  display: flex;
  gap: 40px;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
}
.hero-meta div { display: flex; flex-direction: column; gap: 3px; }
.hero-meta strong { font-family: var(--sans); font-size: 1.7rem; font-weight: 700; letter-spacing: -0.02em; }
.hero-meta span { font-size: 12.5px; color: var(--faint); }

/* hero art: flight path + producto */
.hero-art {
  position: relative;
  min-height: 580px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.hero-trail {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  z-index: 0;
}
.hero-plane {
  position: absolute;
  left: calc(73.67% - 15px);
  top: calc(2% - 106px);
  width: 131px;
  height: auto;
  z-index: 1;
  filter: drop-shadow(0 26px 50px rgba(0, 0, 0, 0.55)) drop-shadow(0 0 46px rgba(255, 122, 26, 0.16));
}
.hero-phone {
  position: relative;
  z-index: 2;
  width: 703px;
  max-width: none;
  height: auto;
  flex-shrink: 0;
  left: 37px;
  top: -34px;
  filter: drop-shadow(0 30px 60px rgba(0, 0, 0, 0.6));
}
.flight {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
}
.flight-plane {
  position: absolute;
  top: 4%;
  right: 2%;
  width: 74px;
  transform: rotate(12deg);
  filter: drop-shadow(0 12px 22px rgba(255, 122, 26, 0.35));
  z-index: 3;
}

.app-card {
  position: relative;
  width: 100%;
  max-width: 430px;
  background: linear-gradient(180deg, rgba(30, 34, 41, 0.96), rgba(16, 18, 22, 0.98));
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 18px;
  box-shadow: 0 40px 90px rgba(0, 0, 0, 0.55), inset 0 1px 0 rgba(255, 255, 255, 0.05);
  z-index: 2;
}
.app-head { display: flex; align-items: center; gap: 7px; margin-bottom: 18px; }
.app-head .dot { width: 9px; height: 9px; border-radius: 50%; background: rgba(255, 255, 255, 0.16); }
.app-name { margin-left: 6px; font-size: 12px; color: var(--faint); letter-spacing: 0.04em; }
.app-live { margin-left: auto; font-size: 11px; color: #7ee0a3; }
.app-kpis { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 18px; }
.app-kpis div { background: rgba(255, 255, 255, 0.03); border: 1px solid var(--line-soft); border-radius: 12px; padding: 12px; }
.app-kpis small { display: block; font-size: 11px; color: var(--faint); margin-bottom: 4px; }
.app-kpis b { font-family: var(--sans); font-size: 1.35rem; font-weight: 700; }
.app-kpis em { font-style: normal; font-size: 11px; color: #7ee0a3; margin-left: 6px; }
.app-chart { width: 100%; height: 96px; display: block; }
.app-foot { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; font-size: 11px; color: var(--faint); }
.app-chip { border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; color: var(--muted); }

/* ---------- TICKER ---------- */
.ticker {
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  background: var(--bg-2);
  overflow: hidden;
  padding: 16px 0;
}
.ticker-track {
  display: inline-flex;
  gap: 34px;
  white-space: nowrap;
  font-size: 13px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--faint);
  animation: tick 26s linear infinite;
}
.ticker-track .dot-sep { color: var(--orange); }
@keyframes tick { from { transform: translateX(0); } to { transform: translateX(-50%); } }

/* ---------- SECTION ---------- */
section { position: relative; }
.section { padding: 96px 0; }
.section-alt { background: var(--bg-2); border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); }

.sec-head { max-width: 640px; margin-bottom: 52px; }
.sec-head h2 {
  font-family: var(--sans);
  font-size: clamp(1.9rem, 3.6vw, 2.9rem);
  line-height: 1.08;
  letter-spacing: -0.025em;
  font-weight: 700;
}
.sec-head h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); }
.sec-head p { color: var(--muted); margin-top: 16px; font-size: 1.02rem; max-width: 52ch; }

/* ---------- SERVICIOS ---------- */
.services { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; }
.service {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 30px 28px;
  transition: border-color 0.25s ease, transform 0.25s ease, background 0.25s ease;
  overflow: hidden;
}
.service::after {
  content: '';
  position: absolute;
  inset: auto -20% -60% auto;
  width: 200px;
  height: 200px;
  background: radial-gradient(circle, rgba(255, 122, 26, 0.14), transparent 70%);
  opacity: 0;
  transition: opacity 0.3s ease;
  pointer-events: none;
}
.service:hover { border-color: rgba(255, 122, 26, 0.35); transform: translateY(-4px); }
.service:hover::after { opacity: 1; }
.service .num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 1.1rem;
  color: var(--orange);
  margin-bottom: 18px;
  display: block;
}
.service h3 { font-family: var(--sans); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 10px; }
.service p { color: var(--muted); font-size: 0.94rem; line-height: 1.6; }
.service .tags { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 18px; }
.service .tags span { font-size: 11px; color: var(--faint); border: 1px solid var(--line); border-radius: 999px; padding: 4px 10px; }

/* ---------- TRABAJO ---------- */
.work { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; }
.case {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  overflow: hidden;
  transition: border-color 0.25s ease, transform 0.25s ease;
}
.case:hover { border-color: rgba(255, 122, 26, 0.3); transform: translateY(-4px); }
.case-thumb {
  position: relative;
  display: block;
  height: 210px;
  overflow: hidden;
  background: #171a1f;
}
.case-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: top center;
  transition: transform 0.5s ease;
}
.case:hover .case-thumb img { transform: scale(1.05); }
.case-thumb::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0) 45%, rgba(0, 0, 0, 0.55) 100%);
  pointer-events: none;
}
.case-ph {
  display: flex;
  align-items: center;
  justify-content: center;
  height: 100%;
  background: radial-gradient(circle at 30% 30%, #3a4a63, #10151f 72%);
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--muted);
}
.case-tag {
  position: absolute;
  left: 14px;
  bottom: 14px;
  z-index: 2;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  padding: 5px 11px;
}
.case-arrow {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  border: 1px solid rgba(255, 255, 255, 0.22);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 14px;
  transition: background 0.2s ease, color 0.2s ease;
}
.case:hover .case-arrow { background: var(--orange); color: #0b0c0e; }
.case-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 8px;
}
.case-meta span { color: var(--faint); font-size: 0.82rem; }
.case-meta a { color: var(--orange-soft); font-size: 0.85rem; font-weight: 600; }
.case-meta a:hover { color: var(--orange); }
.case-body { padding: 22px 24px 26px; }
.case-body h3 { font-family: var(--sans); font-size: 1.22rem; font-weight: 600; letter-spacing: -0.01em; margin-bottom: 8px; }
.case-body p { color: var(--muted); font-size: 0.93rem; line-height: 1.55; margin-bottom: 18px; }
.case-metric { font-family: var(--sans); font-size: 1.6rem; font-weight: 700; color: var(--orange); letter-spacing: -0.02em; }
.case-metric span { font-family: var(--body); font-size: 0.82rem; font-weight: 500; color: var(--faint); letter-spacing: 0; margin-left: 6px; }

/* ---------- PROCESO ---------- */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.step {
  position: relative;
  padding: 28px 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
}
.step .step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid rgba(255, 122, 26, 0.4);
  color: var(--orange);
  font-family: var(--sans);
  font-size: 0.82rem;
  font-weight: 700;
  margin-bottom: 18px;
}
.step h3 { font-family: var(--sans); font-size: 1.08rem; font-weight: 600; margin-bottom: 8px; }
.step p { color: var(--muted); font-size: 0.9rem; line-height: 1.55; }
.step::after {
  content: '→';
  position: absolute;
  top: 46px;
  right: -13px;
  color: var(--faint);
  font-size: 16px;
}
.step:last-child::after { display: none; }

/* ---------- TESTIMONIO ---------- */
.quote-wrap {
  display: grid;
  grid-template-columns: 0.4fr 1fr;
  gap: 40px;
  align-items: center;
}
.quote-wrap blockquote {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(1.5rem, 2.6vw, 2.15rem);
  line-height: 1.32;
  color: var(--ink);
}
.quote-mark { font-family: var(--serif); font-size: 6rem; line-height: 0.6; color: var(--orange); opacity: 0.5; }
.quote-author { margin-top: 26px; display: flex; align-items: center; gap: 14px; }
.quote-avatar {
  width: 46px; height: 46px; border-radius: 50%;
  background: linear-gradient(135deg, var(--orange-soft), var(--orange));
  color: #0b0c0e; font-weight: 700; display: flex; align-items: center; justify-content: center; font-size: 0.85rem;
}
.quote-author strong { display: block; font-size: 0.95rem; font-weight: 600; }
.quote-author span { font-size: 0.85rem; color: var(--faint); }

/* ---------- CTA ---------- */
.cta {
  position: relative;
  max-width: 1240px;
  margin: 0 auto;
  padding: 56px 28px 96px;
}
.cta-card {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, #171a20 0%, #101215 100%);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  padding: 64px 48px;
  text-align: center;
}
.cta-card::before {
  content: '';
  position: absolute;
  top: -60%;
  left: 50%;
  width: 620px;
  height: 620px;
  transform: translateX(-50%);
  background: radial-gradient(circle, rgba(255, 122, 26, 0.18), transparent 60%);
  pointer-events: none;
}
.cta-card h2 {
  position: relative;
  font-family: var(--sans);
  font-size: clamp(1.9rem, 4vw, 3rem);
  line-height: 1.06;
  letter-spacing: -0.03em;
  font-weight: 700;
  margin-bottom: 16px;
}
.cta-card h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--orange); }
.cta-card p { position: relative; color: var(--muted); max-width: 46ch; margin: 0 auto 30px; }
.cta-actions { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---------- FOOTER ---------- */
.site-foot { border-top: 1px solid var(--line-soft); padding: 56px 0 34px; }
.foot-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 32px; margin-bottom: 44px; }
.foot-brand img { height: 30px; width: auto; margin-bottom: 14px; }
.foot-brand p { color: var(--faint); font-size: 0.85rem; max-width: 26ch; line-height: 1.6; }
.foot-col h5 { font-size: 11px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--faint); margin-bottom: 14px; }
.foot-col a { display: block; color: var(--muted); font-size: 0.88rem; padding: 4px 0; transition: color 0.2s ease; }
.foot-col a:hover { color: var(--orange-soft); }
.foot-bottom {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  padding-top: 26px;
  border-top: 1px solid var(--line-soft);
  color: var(--faint);
  font-size: 0.78rem;
}

/* ---------- RESPONSIVE ---------- */
@media (max-width: 980px) {
  .hero-grid { grid-template-columns: 1fr; gap: 40px; }
  .hero-art { min-height: 380px; }
  .services { grid-template-columns: 1fr; }
  .work { grid-template-columns: 1fr; }
  .process { grid-template-columns: repeat(2, 1fr); }
  .step:nth-child(2)::after { display: none; }
  .quote-wrap { grid-template-columns: 1fr; gap: 18px; }
  .foot-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 720px) {
  .nav-links { display: none; }
  .nav-mobile { display: block; }
  .nav-in > .nav-cta,
  .nav-in > .theme-toggle { display: none; }
  .nav-open .nav-links .nav-cta-mobile {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    margin-top: 10px;
    padding: 12px 20px;
    border-radius: 999px;
    background: var(--orange);
    color: #0b0c0e;
    font-weight: 600;
  }
  .nav-open .nav-links .theme-toggle { margin-top: 12px; }
  .nav-toggle { display: flex; flex-direction: column; gap: 5px; background: none; border: 0; padding: 8px; cursor: pointer; }
  .nav-toggle span { width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }
  .nav-open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    flex-direction: column;
    gap: 4px;
    background: var(--bg);
    border-bottom: 1px solid var(--line);
    padding: 14px 28px 22px;
  }
  .nav-open .nav-links a { padding: 10px 0; font-size: 16px; }
  .hero { padding-top: 120px; }
  .hero-meta { gap: 22px; flex-wrap: wrap; }
  .hero h1 { font-size: clamp(2rem, 8.5vw, 2.7rem); }
  .hero h1 em,
  .hero h1 .nowrap { white-space: normal; }
  .hero-phone { width: 100%; max-width: 100%; flex-shrink: 1; left: 0; top: 0; }
  .hero-art { min-height: 0; }
  .process { grid-template-columns: 1fr; }
  .step::after { display: none; }
  .cta-card { padding: 44px 22px; }
  .foot-grid { grid-template-columns: 1fr; }
}
