/* ============================================================
   COPANIX — Landing Page
   Estilo: minimalista, centrado y profesional (ref. assethand.com)
   Marca: fondo blanco + verde corporativo
   ============================================================ */

/* ---------- Fuentes auto-hospedadas (woff2 variables, latin + latin-ext) ---------- */
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/spacegrotesk-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Space Grotesk';font-style:normal;font-weight:400 700;font-display:swap;src:url(/assets/fonts/spacegrotesk-latinext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/inter-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'Inter';font-style:normal;font-weight:400 600;font-display:swap;src:url(/assets/fonts/inter-latinext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/jetbrainsmono-latin.woff2) format('woff2');unicode-range:U+0000-00FF,U+0131,U+0152-0153,U+02BB-02BC,U+02C6,U+02DA,U+02DC,U+0304,U+0308,U+0329,U+2000-206F,U+20AC,U+2122,U+2191,U+2193,U+2212,U+2215,U+FEFF,U+FFFD;}
@font-face{font-family:'JetBrains Mono';font-style:normal;font-weight:500;font-display:swap;src:url(/assets/fonts/jetbrainsmono-latinext.woff2) format('woff2');unicode-range:U+0100-02BA,U+02BD-02C5,U+02C7-02CC,U+02CE-02D7,U+02DD-02FF,U+0304,U+0308,U+0329,U+1D00-1DBF,U+1E00-1E9F,U+1EF2-1EFF,U+2020,U+20A0-20AB,U+20AD-20C0,U+2113,U+2C60-2C7F,U+A720-A7FF;}

/* ---------- Rendimiento: saltar render/layout de secciones fuera de pantalla ---------- */
/* El navegador no calcula estilo/layout de estas secciones hasta que se acercan al
   viewport. contain-intrinsic-size: auto recuerda el tamaño real → sin saltos (CLS). */
.services, .why, .stats, .process, .plans, .faq, .agency, .contact, .footer {
  content-visibility: auto;
  contain-intrinsic-size: auto 700px;
}
/* Animaciones continuas above-the-fold en capa GPU: su blur/transform se rasteriza
   una vez y se compone fuera del hilo principal (baja el coste de render en móvil). */
.hero-aurora::before, .hero-aurora::after, .mockup, .strip-track { will-change: transform; }

/* Las animaciones continuas del hero se pausan hasta que la página termina de cargar
   (JS añade html.ready en 'load'). Así no consumen hilo principal durante la ventana
   de medición (FCP→TTI) y el TBT móvil se mantiene bajo. Su fotograma de reposo es
   visible, no se oculta nada. Si el JS fallara, arrancan igual (fallback). */
html:not(.ready) .hero-aurora::before,
html:not(.ready) .hero-aurora::after,
html:not(.ready) .mockup,
html:not(.ready) .hero-title em,
html:not(.ready) .strip-track,
html:not(.ready) .hero-net *,
html:not(.ready) .wa-pulse {
  animation-play-state: paused !important;
}

/* ---------- Transiciones de página (cross-document, Chrome/Edge) ---------- */
@view-transition { navigation: auto; }
::view-transition-old(root),
::view-transition-new(root) { animation-duration: 0.28s; }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) { animation: none !important; }
}

/* ---------- Tokens ---------- */
:root {
  --bg:            #FFFFFF;
  --bg-soft:       #F6F8F7;
  --surface:       #FFFFFF;
  --surface-2:     #F1F4F2;
  --fill:          #E7ECEA;
  --border:        rgba(12, 18, 16, 0.10);
  --border-strong: rgba(12, 18, 16, 0.18);
  --green:         #00B86B;
  --green-bright:  #00CE78;
  --green-ink:     #00824B;
  --green-soft:    rgba(0, 184, 107, 0.10);
  --green-line:    rgba(0, 184, 107, 0.28);
  --text:          #0E1413;
  --muted:         #586068;
  --dim:           #6B7280;
  --shadow-sm:     0 1px 3px rgba(12,18,16,0.06), 0 1px 2px rgba(12,18,16,0.04);
  --shadow-md:     0 10px 30px rgba(12,18,16,0.08);
  --shadow-lg:     0 30px 80px rgba(12,18,16,0.12);

  --font-display: 'Space Grotesk', system-ui, sans-serif;
  --font-body:    'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:    'JetBrains Mono', monospace;

  --r-sm: 10px;
  --r-md: 14px;
  --r-lg: 22px;
  --r-pill: 100px;

  --maxw: 1120px;
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }
::selection { background: var(--green); color: #ffffff; }

/* ---------- Accesibilidad: foco visible por teclado ---------- */
:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
  border-radius: 4px;
}
/* El ratón no dispara :focus-visible, así que no molesta a quien usa puntero. */
a:focus-visible, button:focus-visible, .btn:focus-visible,
[role="button"]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--green-ink);
  outline-offset: 3px;
}

/* Enlace para saltar al contenido (solo visible al enfocar con teclado) */
.skip-link {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 1000;
  padding: 10px 18px;
  background: var(--green-ink);
  color: #fff;
  font-weight: 600;
  border-radius: 8px;
  transition: top 0.2s var(--ease);
}
.skip-link:focus { top: 12px; }

/* ---------- Layout ---------- */
.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

section { position: relative; }

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-mono);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--green-ink);
  margin-bottom: 18px;
}
.eyebrow::before {
  content: '';
  width: 18px; height: 1px;
  background: var(--green-line);
}

.h-section {
  font-family: var(--font-display);
  font-size: clamp(1.9rem, 3.8vw, 2.9rem);
  font-weight: 600;
  line-height: 1.12;
  letter-spacing: -0.02em;
}
.sub-section {
  font-size: 1.05rem;
  color: var(--muted);
  line-height: 1.7;
  max-width: 540px;
}

.center { text-align: center; }
.center .eyebrow::before { display: none; }
.center .eyebrow { justify-content: center; }
.center .sub-section { margin-left: auto; margin-right: auto; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: var(--r-sm);
  font-size: 0.94rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
}
.btn-primary {
  background: var(--green);
  color: #ffffff;
}
.btn-primary:hover {
  background: var(--green-bright);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px rgba(0, 184, 107, 0.30);
}
.btn-secondary {
  background: transparent;
  color: var(--text);
  border-color: var(--border-strong);
}
.btn-secondary:hover {
  border-color: var(--green-line);
  background: var(--green-soft);
}
.btn-block { width: 100%; }
.btn-lg { padding: 15px 30px; font-size: 1rem; }

/* ============================================================
   NAV
   ============================================================ */
.nav {
  position: fixed; inset: 0 0 auto 0; z-index: 100;
  height: 70px;
  display: flex; align-items: center;
  transition: all 0.3s var(--ease);
}
.nav.scrolled {
  background: rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
}
.nav .container { display: flex; align-items: center; justify-content: space-between; }
.nav-logo img { height: 30px; width: auto; }

.nav-links { display: flex; align-items: center; gap: 4px; }
.nav-links a {
  padding: 8px 14px;
  font-size: 0.9rem;
  color: var(--muted);
  border-radius: 8px;
  transition: color 0.2s var(--ease);
}
.nav-links a:hover { color: var(--text); }

.nav-actions { display: flex; align-items: center; gap: 14px; }

.nav-portal-link {
  display: inline-flex; align-items: center; justify-content: center;
  width: 36px; height: 36px; font-size: 1.05rem; line-height: 1;
  color: var(--muted); border: 1px solid var(--border); border-radius: 8px;
  transition: color 0.2s var(--ease), border-color 0.2s var(--ease);
}
.nav-portal-link:hover { color: var(--text); border-color: var(--border-strong); }

.lang-toggle {
  display: inline-flex;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 3px;
}
.lang-btn {
  border: none; background: transparent;
  color: var(--dim);
  font-family: var(--font-mono);
  font-size: 0.72rem; font-weight: 600;
  padding: 5px 9px; border-radius: 6px;
  transition: all 0.2s var(--ease);
}
.lang-btn.active { background: var(--green); color: var(--text); }

.hamburger {
  display: none; flex-direction: column; gap: 5px;
  background: none; border: none; padding: 6px;
}
.hamburger span { width: 22px; height: 2px; background: var(--text); border-radius: 2px; transition: all 0.25s var(--ease); }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none;
  position: fixed; top: 70px; inset-inline: 0; z-index: 99;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: var(--shadow-md);
  padding: 16px 24px 24px;
  flex-direction: column; gap: 4px;
}
.mobile-menu.open { display: flex; }
.mobile-menu a { padding: 14px 8px; color: var(--muted); border-bottom: 1px solid var(--border); }
.mobile-menu a:last-of-type { border: none; }
.mobile-menu .btn { margin-top: 12px; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: 150px 0 90px;
  text-align: center;
  overflow: hidden;
}
.hero-glow {
  position: absolute; top: -140px; left: 50%;
  transform: translateX(-50%);
  width: 820px; height: 560px;
  background: radial-gradient(ellipse at center, rgba(0,184,107,0.10), transparent 68%);
  pointer-events: none; z-index: 0;
}
.hero .container { position: relative; z-index: 1; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 6px 14px 6px 12px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-pill);
  font-size: 0.8rem; color: var(--muted);
  margin-bottom: 30px;
}
.badge .dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 0 0 rgba(0,184,107,0.5);
  animation: pulse 2.4s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(0,184,107,0.45); }
  70% { box-shadow: 0 0 0 8px rgba(0,184,107,0); }
  100% { box-shadow: 0 0 0 0 rgba(0,184,107,0); }
}

.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.6rem, 6.5vw, 4.6rem);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.035em;
  max-width: 920px;
  margin: 0 auto 26px;
}
.hero-title em { font-style: italic; color: var(--green-ink); font-weight: 600; }

.hero-sub {
  font-size: clamp(1.05rem, 1.8vw, 1.25rem);
  color: var(--muted);
  max-width: 600px;
  margin: 0 auto 38px;
  line-height: 1.65;
}
.hero-cta {
  display: flex; gap: 14px; justify-content: center; flex-wrap: wrap;
  margin-bottom: 22px;
}
.hero-trust {
  font-size: 0.85rem; color: var(--dim);
  display: inline-flex; gap: 10px; align-items: center; flex-wrap: wrap; justify-content: center;
}
.hero-trust .sep { width: 3px; height: 3px; border-radius: 50%; background: var(--dim); }

/* ---------- Browser mockup ---------- */
.mockup-wrap {
  margin-top: 70px;
  perspective: 1600px;
}
.mockup {
  max-width: 940px; margin: 0 auto;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  text-align: left;
}
.mockup-bar {
  display: flex; align-items: center; gap: 14px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-soft);
}
.mockup-dots { display: flex; gap: 7px; }
.mockup-dots span { width: 11px; height: 11px; border-radius: 50%; background: var(--fill); }
.mockup-url {
  flex: 1;
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: 7px;
  padding: 6px 14px;
  font-family: var(--font-mono);
  font-size: 0.78rem; color: var(--muted);
  display: flex; align-items: center; gap: 8px;
}
.mockup-url svg { color: var(--green); flex-shrink: 0; }
.mockup-body { display: grid; grid-template-columns: 200px 1fr; min-height: 360px; }
.mock-side { border-right: 1px solid var(--border); padding: 22px 18px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-soft); }
.mock-side .m-logo { height: 10px; width: 90px; border-radius: 4px; background: var(--green); opacity: 0.85; margin-bottom: 14px; }
.mock-nav-item { height: 9px; border-radius: 4px; background: var(--fill); }
.mock-nav-item.active { background: var(--green-soft); border: 1px solid var(--green-line); }
.mock-nav-item.w1 { width: 80%; } .mock-nav-item.w2 { width: 65%; } .mock-nav-item.w3 { width: 72%; } .mock-nav-item.w4 { width: 55%; }
.mock-main { padding: 24px; display: flex; flex-direction: column; gap: 18px; }
.mock-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.mock-stat { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 16px; }
.mock-stat .s-label { height: 7px; width: 50%; background: var(--fill); border-radius: 4px; margin-bottom: 12px; }
.mock-stat .s-num { height: 16px; width: 70%; background: var(--green); opacity: 0.85; border-radius: 4px; }
.mock-stat:nth-child(2) .s-num { opacity: 0.5; }
.mock-stat:nth-child(3) .s-num { opacity: 0.65; width: 55%; }
.mock-chart { background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); padding: 20px; flex: 1; display: flex; align-items: flex-end; gap: 10px; min-height: 150px; }
.mock-bar { flex: 1; background: var(--fill); border-radius: 5px 5px 0 0; }
.mock-bar.g { background: linear-gradient(180deg, var(--green), var(--green-soft)); }

/* ============================================================
   TRUST STRIP
   ============================================================ */
.strip { padding: 50px 0; border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.strip-label { text-align: center; font-size: 0.78rem; color: var(--dim); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: 26px; }

/* ============================================================
   SERVICES
   ============================================================ */
.services { padding: 110px 0; }
.section-head { margin-bottom: 56px; }

.services-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}
.svc-card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--r-lg);
  padding: 30px;
  display: flex; flex-direction: column; gap: 16px;
  transition: all 0.3s var(--ease);
  position: relative;
  box-shadow: var(--shadow-sm);
}
.svc-card:hover {
  border-color: var(--green-line);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}
.svc-num {
  position: absolute; top: 24px; right: 26px;
  font-family: var(--font-mono); font-size: 0.75rem; color: var(--dim);
}
.svc-icon {
  width: 48px; height: 48px; border-radius: var(--r-sm);
  background: var(--green-soft); border: 1px solid var(--green-line);
  display: flex; align-items: center; justify-content: center;
  color: var(--green); flex-shrink: 0;
}
.svc-icon svg { width: 22px; height: 22px; }
.svc-title { font-family: var(--font-display); font-size: 1.18rem; font-weight: 600; letter-spacing: -0.01em; }
.svc-desc { font-size: 0.92rem; color: var(--muted); line-height: 1.65; flex: 1; }
.svc-link { display: inline-flex; align-items: center; gap: 6px; font-size: 0.85rem; font-weight: 600; color: var(--green-ink); transition: gap 0.25s var(--ease); }
.svc-card:hover .svc-link { gap: 11px; }

/* span the wide grid cleanly for 5 items (3 + 2) */
.services-grid.row2 { grid-template-columns: repeat(2, 1fr); max-width: calc((1120px - 36px) / 3 * 2 + 18px); margin: 18px auto 0; }

/* ============================================================
   WHY (alternating feature rows)
   ============================================================ */
.why { padding: 110px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.feature-row {
  display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center;
  padding: 50px 0;
}
.feature-row + .feature-row { border-top: 1px solid var(--border); }
.feature-row.reverse .f-text { order: 2; }

.f-text h3 { font-family: var(--font-display); font-size: clamp(1.5rem, 2.6vw, 2rem); font-weight: 600; letter-spacing: -0.02em; margin-bottom: 16px; line-height: 1.2; }
.f-text p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; }
.f-list { display: flex; flex-direction: column; gap: 12px; }
.f-list li { display: flex; align-items: flex-start; gap: 12px; font-size: 0.95rem; color: var(--text); }
.f-list svg { color: var(--green); flex-shrink: 0; margin-top: 3px; }

.f-visual {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px; min-height: 280px;
  display: flex; flex-direction: column; justify-content: center; gap: 16px;
  box-shadow: var(--shadow-md);
}
.fv-line { display: flex; align-items: center; gap: 14px; padding: 16px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--r-md); }
.fv-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--green-soft); border: 1px solid var(--green-line); display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }
.fv-bars { flex: 1; display: flex; flex-direction: column; gap: 7px; }
.fv-bars b { height: 7px; border-radius: 4px; background: var(--fill); display: block; }
.fv-bars b.short { width: 55%; }
.fv-metric { margin-left: auto; font-family: var(--font-display); font-weight: 700; color: var(--green-ink); font-size: 1.1rem; }

/* ============================================================
   PROCESS
   ============================================================ */
.process { padding: 110px 0; }
.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; margin-top: 56px; }
.step { padding: 28px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); transition: all 0.3s var(--ease); box-shadow: var(--shadow-sm); }
.step:hover { border-color: var(--green-line); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-family: var(--font-mono); font-size: 0.8rem; color: var(--green-ink); margin-bottom: 18px; }
.step p { font-size: 0.88rem; color: var(--muted); line-height: 1.6; }

/* ============================================================
   PLANES
   ============================================================ */
.plans { padding: 110px 0; background: var(--bg-soft); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.plans-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 56px; align-items: stretch; }
.plan {
  background: var(--surface); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 34px 30px;
  display: flex; flex-direction: column;
  transition: all 0.3s var(--ease);
}
.plan { box-shadow: var(--shadow-sm); }
.plan:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.plan.featured { border-color: var(--green-line); box-shadow: var(--shadow-lg); }
.plan.featured:hover { box-shadow: var(--shadow-lg); }
.plan-tag { align-self: flex-start; font-family: var(--font-mono); font-size: 0.68rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--green-ink); background: var(--green-soft); border: 1px solid var(--green-line); padding: 4px 10px; border-radius: var(--r-pill); margin-bottom: 18px; }
.plan h3 { font-family: var(--font-display); font-size: 1.4rem; font-weight: 600; margin-bottom: 8px; }
.plan .plan-desc { font-size: 0.88rem; color: var(--muted); margin-bottom: 22px; min-height: 40px; }
.plan-price { font-family: var(--font-display); font-size: 1.6rem; font-weight: 700; margin-bottom: 4px; }
.plan-price small { font-size: 0.85rem; font-weight: 400; color: var(--dim); }
.plan-note { font-size: 0.8rem; color: var(--dim); margin-bottom: 26px; }
.plan-features { display: flex; flex-direction: column; gap: 13px; margin-bottom: 30px; flex: 1; }
.plan-features li { display: flex; gap: 11px; align-items: flex-start; font-size: 0.9rem; color: var(--muted); }
.plan-features svg { color: var(--green); flex-shrink: 0; margin-top: 2px; }

/* ============================================================
   FAQ
   ============================================================ */
.faq { padding: 110px 0; }
.faq-list { max-width: 760px; margin: 56px auto 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-q {
  width: 100%; background: none; border: none; color: var(--text);
  display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 24px 4px; text-align: left;
  font-family: var(--font-display); font-size: 1.08rem; font-weight: 500;
}
.faq-q .icon { flex-shrink: 0; color: var(--green); transition: transform 0.3s var(--ease); }
.faq-item.open .faq-q .icon { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s var(--ease); }
.faq-a p { padding: 0 4px 24px; color: var(--muted); line-height: 1.7; font-size: 0.95rem; }

/* ============================================================
   CTA / CONTACT
   ============================================================ */
.contact { padding: 110px 0; background: var(--bg-soft); border-top: 1px solid var(--border); overflow: hidden; }
.contact-glow { position: absolute; bottom: -150px; left: 50%; transform: translateX(-50%); width: 700px; height: 360px; background: radial-gradient(ellipse, rgba(0,184,107,0.10), transparent 65%); pointer-events: none; }
.contact .container { position: relative; z-index: 1; }
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 60px; align-items: start; }
.contact-info h2 { margin-bottom: 18px; }
.contact-info > p { color: var(--muted); line-height: 1.7; margin-bottom: 34px; }
.c-detail { display: flex; align-items: center; gap: 14px; padding: 16px 0; border-top: 1px solid var(--border); font-size: 0.92rem; }
.c-detail:last-child { border-bottom: 1px solid var(--border); }
.c-detail .c-ic { width: 38px; height: 38px; border-radius: 9px; background: var(--green-soft); border: 1px solid var(--green-line); display: flex; align-items: center; justify-content: center; color: var(--green); flex-shrink: 0; }
.c-detail a:hover { color: var(--green-ink); }

.form { background: var(--surface); border: 1px solid var(--border); border-radius: var(--r-lg); padding: 34px; box-shadow: var(--shadow-md); }
.fg { margin-bottom: 18px; }
.fg label { display: block; font-size: 0.78rem; font-weight: 600; color: var(--muted); margin-bottom: 8px; letter-spacing: 0.03em; }
.fg input, .fg textarea, .fg select {
  width: 100%; padding: 13px 16px;
  background: var(--bg); border: 1px solid var(--border);
  border-radius: var(--r-sm); color: var(--text);
  font-family: var(--font-body); font-size: 0.94rem;
  transition: all 0.2s var(--ease); outline: none;
}
.fg input:focus, .fg textarea:focus, .fg select:focus { border-color: var(--green-line); box-shadow: 0 0 0 3px var(--green-soft); }
.fg input::placeholder, .fg textarea::placeholder { color: var(--dim); }
.fg textarea { resize: vertical; min-height: 120px; }
.fg select { -webkit-appearance: none; appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' fill='none' stroke='%239AA2AB' stroke-width='2'%3E%3Cpath d='M3 5l4 4 4-4'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 16px center; }
.fg-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.fg-consent label { display: flex; align-items: flex-start; gap: 10px; font-size: 0.84rem; font-weight: 500; letter-spacing: 0; text-transform: none; color: var(--muted); cursor: pointer; }
.fg-consent input[type="checkbox"] { width: 16px; height: 16px; margin-top: 2px; flex-shrink: 0; accent-color: var(--green); cursor: pointer; }
.fg-consent a { color: var(--green-ink); font-weight: 600; text-decoration: underline; }
.fg-consent .consent-info { margin: 8px 0 0 26px; font-size: 0.74rem; color: var(--dim); line-height: 1.5; }
.form-success { display: none; text-align: center; padding: 30px 10px; }
.form-success svg { margin: 0 auto 14px; color: var(--green); }
.form-success p { color: var(--text); font-weight: 500; }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { padding: 70px 0 34px; background: var(--bg); }
.footer-top { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 48px; margin-bottom: 50px; }
.footer-brand img { height: 28px; margin-bottom: 18px; }
.footer-brand p { font-size: 0.88rem; color: var(--muted); line-height: 1.7; max-width: 280px; margin-bottom: 20px; }
.footer-brand a { color: var(--green-ink); font-size: 0.9rem; font-weight: 500; }
.footer-col h3 { font-size: 0.78rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.1em; color: var(--dim); margin-bottom: 18px; }
.footer-col li { margin-bottom: 11px; }
.footer-col a { font-size: 0.9rem; color: var(--muted); transition: color 0.2s var(--ease); }
.footer-col a:hover { color: var(--green-ink); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 26px; display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 10px; }
.footer-bottom p { font-size: 0.82rem; color: var(--dim); }
.footer-bottom .green { color: var(--green-ink); }
.footer-legal { display: flex; gap: 10px; flex-wrap: wrap; }
.footer-bottom a { color: var(--muted); transition: color 0.2s var(--ease); }
.footer-bottom a:hover { color: var(--green-ink); }

/* ============================================================
   REVEAL
   ============================================================ */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s var(--ease), transform 0.6s var(--ease); }
.reveal.in { opacity: 1; transform: none; }
.d1 { transition-delay: 0.08s; } .d2 { transition-delay: 0.16s; } .d3 { transition-delay: 0.24s; } .d4 { transition-delay: 0.32s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 980px) {
  .services-grid, .services-grid.row2 { grid-template-columns: repeat(2, 1fr); max-width: 100%; margin-top: 18px; }
  .steps { grid-template-columns: repeat(2, 1fr); }
  .plans-grid { grid-template-columns: 1fr; max-width: 460px; margin-inline: auto; }
  .feature-row { grid-template-columns: 1fr; gap: 32px; }
  .feature-row.reverse .f-text { order: 0; }
  .contact-grid { grid-template-columns: 1fr; gap: 40px; }
  .footer-top { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
  .mockup-body { grid-template-columns: 1fr; }
  .mock-side { display: none; }
}
/* Nav: en tablet y menos, menú hamburguesa (evita que los enlaces se aprieten). */
@media (max-width: 860px) {
  .nav-links, .nav-actions .btn, .nav-portal-link { display: none; }
  .hamburger { display: flex; }
}
@media (max-width: 640px) {
  .services-grid, .services-grid.row2 { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr; }
  .footer-top { grid-template-columns: 1fr; gap: 32px; }
  .fg-row { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .hero { padding-top: 120px; }
}

/* ============================================================
   WHATSAPP FLOAT
   ============================================================ */
.wa-float {
  position: fixed; right: 22px; bottom: 22px; z-index: 200;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.40);
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 12px 32px rgba(37, 211, 102, 0.55); }
.wa-float svg { width: 32px; height: 32px; color: #fff; position: relative; z-index: 2; }
.wa-pulse { position: absolute; inset: 0; border-radius: 50%; background: #25D366; z-index: 1; animation: wa-pulse 2.2s ease-out infinite; }
@keyframes wa-pulse { 0% { transform: scale(1); opacity: 0.55; } 70% { transform: scale(1.8); opacity: 0; } 100% { opacity: 0; } }
.wa-tip {
  position: absolute; right: 70px; white-space: nowrap;
  background: var(--text); color: #fff; font-size: 0.82rem; font-weight: 600;
  padding: 8px 12px; border-radius: 8px; box-shadow: var(--shadow-md);
  opacity: 0; transform: translateX(8px); pointer-events: none;
  transition: all 0.25s var(--ease);
}
.wa-tip::after { content: ''; position: absolute; right: -5px; top: 50%; transform: translateY(-50%); border-left: 6px solid var(--text); border-top: 5px solid transparent; border-bottom: 5px solid transparent; }
.wa-float:hover .wa-tip { opacity: 1; transform: translateX(0); }
@media (max-width: 640px) { .wa-float { width: 52px; height: 52px; right: 16px; bottom: 16px; } .wa-tip { display: none; } }

/* ============================================================
   FORM SECURITY (honeypot + captcha)
   ============================================================ */
.fg-hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { display: none; color: #E5484D; font-size: 0.85rem; font-weight: 500; margin: -4px 0 14px; }
.form-error.show { display: block; }

/* ============================================================
   ANIMACIONES EXTRA
   ============================================================ */
/* Aurora sutil en el hero */
.hero-aurora { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hero-aurora::before, .hero-aurora::after { content: ''; position: absolute; border-radius: 50%; filter: blur(70px); }
.hero-aurora::before { width: 380px; height: 380px; background: radial-gradient(circle, rgba(0,184,107,0.14), transparent 70%); top: -60px; left: 6%; animation: floaty 15s ease-in-out infinite; }
.hero-aurora::after { width: 320px; height: 320px; background: radial-gradient(circle, rgba(0,184,107,0.09), transparent 70%); top: 30px; right: 8%; animation: floaty 20s ease-in-out infinite reverse; }
@keyframes floaty { 0%,100% { transform: translate(0,0); } 50% { transform: translate(22px, 32px); } }

/* Mockup flotando */
.mockup { animation: mock-float 6.5s ease-in-out infinite; }
@keyframes mock-float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* Barras del gráfico creciendo al cargar */
.mock-bar { transform-origin: bottom; animation: bar-grow 0.9s var(--ease) backwards; }
.mock-chart .mock-bar:nth-child(1) { animation-delay: 0.15s; }
.mock-chart .mock-bar:nth-child(2) { animation-delay: 0.25s; }
.mock-chart .mock-bar:nth-child(3) { animation-delay: 0.35s; }
.mock-chart .mock-bar:nth-child(4) { animation-delay: 0.45s; }
.mock-chart .mock-bar:nth-child(5) { animation-delay: 0.55s; }
.mock-chart .mock-bar:nth-child(6) { animation-delay: 0.65s; }
.mock-chart .mock-bar:nth-child(7) { animation-delay: 0.75s; }
@keyframes bar-grow { from { transform: scaleY(0); } to { transform: scaleY(1); } }

/* Icono de servicio al hover */
.svc-icon { transition: transform 0.3s var(--ease); }
.svc-card:hover .svc-icon { transform: scale(1.1) rotate(-4deg); }

/* Subrayado animado en nav */
.nav-links a { position: relative; }
.nav-links a::after { content: ''; position: absolute; left: 14px; right: 14px; bottom: 3px; height: 2px; background: var(--green); border-radius: 2px; transform: scaleX(0); transform-origin: left; transition: transform 0.25s var(--ease); }
.nav-links a:hover::after { transform: scaleX(1); }

/* Métricas con conteo: evitar salto de layout */
.fv-metric { font-variant-numeric: tabular-nums; }

/* Respeto a "reducir movimiento" */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: 0.01ms !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .mockup { transform: none !important; }
  .strip-track { animation: none !important; }
}

/* ============================================================
   ANIMACIONES "CON TOQUE" (v2)
   ============================================================ */

/* Barra de progreso de scroll */
.scroll-progress {
  position: fixed; top: 0; left: 0; height: 3px; width: 0%;
  background: linear-gradient(90deg, var(--green), var(--green-bright));
  z-index: 300; transition: width 0.1s linear;
  box-shadow: 0 0 10px rgba(0, 184, 107, 0.5);
}

/* Palabra acento del hero con brillo animado */
.hero-title em {
  font-style: italic;
  display: inline-block;
  padding: 0 0.1em;            /* evita que el glifo en cursiva se recorte */
  background: linear-gradient(100deg, var(--green) 20%, var(--green-bright) 42%, var(--green-ink) 58%, var(--green) 80%);
  background-size: 200% auto;
  -webkit-background-clip: text; background-clip: text;
  -webkit-text-fill-color: transparent; color: transparent;
  -webkit-box-decoration-break: clone; box-decoration-break: clone;
  animation: shimmer 5s linear infinite;
}
@keyframes shimmer { to { background-position: 200% center; } }

/* Brillo que recorre el botón primario al hover */
.btn-primary { position: relative; overflow: hidden; }
.btn-primary::after {
  content: ''; position: absolute; top: 0; left: -130%;
  width: 55%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-20deg); pointer-events: none;
  transition: left 0.6s var(--ease);
}
.btn-primary:hover::after { left: 150%; }

/* Foco/spotlight que sigue al cursor en las tarjetas de servicio */
.svc-card::after {
  content: ''; position: absolute; inset: 0; border-radius: var(--r-lg);
  background: radial-gradient(200px circle at var(--mx, 50%) var(--my, 50%), var(--green-soft), transparent 60%);
  opacity: 0; transition: opacity 0.35s var(--ease); pointer-events: none;
}
.svc-card:hover::after { opacity: 1; }

/* Marquee de tecnologías */
.strip-marquee {
  overflow: hidden;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 12%, #000 88%, transparent);
}
.strip-track {
  display: flex; align-items: center; gap: 56px; width: max-content;
  animation: marquee 30s linear infinite;
}
.strip-marquee:hover .strip-track { animation-play-state: paused; }
.strip-track span {
  font-family: var(--font-display); font-size: 1.15rem; font-weight: 600;
  color: var(--dim); white-space: nowrap; transition: color 0.25s var(--ease);
}
.strip-track span:hover { color: var(--green-ink); }
@keyframes marquee { to { transform: translateX(-50%); } }

/* Entrada del badge del hero */
.badge { animation: badge-in 0.7s var(--ease) both; }
@keyframes badge-in { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: none; } }

/* Ilustración de la sección "Por qué Copanix" */
.f-visual-img {
  background: none; border: none; box-shadow: none; padding: 0;
  display: flex; align-items: center; justify-content: center;
}
.f-illustration { width: 100%; max-width: 500px; height: auto; display: block; }

/* reCAPTCHA v3: ocultar badge flotante (chocaría con WhatsApp) y mostrar aviso legal */
.grecaptcha-badge { visibility: hidden !important; }
.recaptcha-note { font-size: 0.74rem; color: var(--dim); text-align: center; margin: -2px 0 16px; line-height: 1.5; }
.recaptcha-note a { color: var(--green-ink); text-decoration: underline; }

/* Botones magnéticos: easing del desplazamiento (efecto técnico) */
.btn-primary { transition: background .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .3s cubic-bezier(.2,.8,.2,1); }

/* ============================================================
   PÁGINAS DE SERVICIO (/servicios/*)
   ============================================================ */
.subhero { padding: 124px 0 64px; position: relative; overflow: hidden; }
.subhero::before {
  content: ''; position: absolute; top: -160px; right: -120px; width: 560px; height: 560px;
  background: radial-gradient(circle, var(--green-soft), transparent 62%); pointer-events: none;
}
.subhero::after {
  content: ''; position: absolute; left: -160px; bottom: -200px; width: 440px; height: 440px;
  background: radial-gradient(circle, rgba(0,184,107,.06), transparent 65%); pointer-events: none;
}
.subhero .container { position: relative; z-index: 1; display: grid; grid-template-columns: 1.05fr .95fr; gap: 40px; align-items: center; }
.subhero-copy { min-width: 0; }
.breadcrumb { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 0.82rem; color: var(--dim); margin-bottom: 22px; }
.breadcrumb a { color: var(--muted); transition: color 0.2s var(--ease); }
.breadcrumb a:hover { color: var(--green-ink); }
.breadcrumb .sep { color: var(--dim); }
.subhero h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -0.02em;
  font-size: clamp(2rem, 4.6vw, 3rem); line-height: 1.1; max-width: 16ch; margin-bottom: 18px;
}
.subhero h1 em { font-style: normal; color: var(--green-ink); }
.subhero .lead { font-size: 1.1rem; color: var(--muted); max-width: 54ch; line-height: 1.65; margin-bottom: 28px; }
.subhero .hero-cta { display: flex; gap: 14px; flex-wrap: wrap; }

/* Visual del subhero: orbe con el icono del servicio */
.subhero-visual { display: flex; align-items: center; justify-content: center; }
.svc-orb {
  position: relative; width: 300px; height: 300px; max-width: 100%;
  display: flex; align-items: center; justify-content: center;
  animation: orb-float 6s ease-in-out infinite;
}
.svc-orb .orb-glow {
  position: absolute; inset: 9%; border-radius: 50%;
  background: radial-gradient(circle at 34% 28%, var(--green-bright), var(--green) 46%, var(--green-ink) 100%);
  box-shadow: 0 30px 80px rgba(0,184,107,.34);
}
.svc-orb .orb-ring {
  position: absolute; inset: -5%; border-radius: 50%;
  border: 1.5px dashed var(--green-line); animation: orb-spin 26s linear infinite;
}
.svc-orb .orb-ico { position: relative; width: 108px; height: 108px; color: #fff; z-index: 1; }
.svc-orb .orb-dot { position: absolute; border-radius: 50%; background: var(--green-bright); box-shadow: 0 0 0 6px var(--green-soft); }
.svc-orb .d-a { width: 16px; height: 16px; top: 4%; right: 14%; animation: orb-float 4.5s ease-in-out infinite; }
.svc-orb .d-b { width: 11px; height: 11px; bottom: 10%; left: 6%; background: var(--green-ink); animation: orb-float 5.5s ease-in-out infinite reverse; }
.svc-orb .d-c { width: 8px; height: 8px; top: 28%; left: -3%; animation: orb-float 7s ease-in-out infinite; }
@keyframes orb-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-14px); } }
@keyframes orb-spin { to { transform: rotate(360deg); } }

.svc-block { padding: 70px 0; }
.svc-block.alt { background: #F6F9F8; }
.svc-block h2 { font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.5rem, 3vw, 2rem); margin-bottom: 14px; }
.svc-block .blk-lead { color: var(--muted); max-width: 65ch; line-height: 1.7; margin-bottom: 30px; font-size: 1.02rem; }

.feature-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.feature-item {
  display: flex; gap: 15px; padding: 20px 22px; border: 1px solid var(--border); border-radius: 16px;
  background: #fff; transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.feature-item:hover { transform: translateY(-4px); box-shadow: 0 16px 40px rgba(12,18,16,.08); border-color: var(--green-line); }
.feature-item .feat-ico {
  flex-shrink: 0; width: 42px; height: 42px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
}
.feature-item .feat-ico svg { width: 22px; height: 22px; }
.feature-item h3 { font-size: 1rem; font-weight: 600; margin-bottom: 4px; }
.feature-item p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.feature-grid .feature-item:nth-child(2) { transition-delay: .07s; }
.feature-grid .feature-item:nth-child(3) { transition-delay: .14s; }
.feature-grid .feature-item:nth-child(4) { transition-delay: .07s; }
.feature-grid .feature-item:nth-child(5) { transition-delay: .14s; }
.feature-grid .feature-item:nth-child(6) { transition-delay: .21s; }

.steps { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }
.step .step-n {
  display: inline-flex; align-items: center; justify-content: center;
  width: 42px; height: 42px; border-radius: 13px; margin-bottom: 14px;
  font-family: var(--font-display); font-size: 0.98rem; font-weight: 700; color: #fff;
  background: linear-gradient(135deg, var(--green-bright), var(--green-ink));
  box-shadow: 0 8px 20px rgba(0,184,107,.30);
}
.step h3 { font-size: 1rem; font-weight: 600; margin-bottom: 6px; }
.step p { font-size: 0.9rem; color: var(--muted); line-height: 1.55; }
.steps .step:nth-child(2) { transition-delay: .08s; }
.steps .step:nth-child(3) { transition-delay: .16s; }
.steps .step:nth-child(4) { transition-delay: .24s; }

.cross-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin-top: 8px; }
.cross-grid .svc-card:nth-child(2) { transition-delay: .08s; }
.cross-grid .svc-card:nth-child(3) { transition-delay: .16s; }

.cta-band { padding: 84px 0; }
.cta-band .container {
  position: relative; overflow: hidden; text-align: center;
  background: linear-gradient(135deg, #0e1413, #103a2a);
  border-radius: 26px; padding: 60px 32px;
}
.cta-band .container::before {
  content: ''; position: absolute; top: -120px; right: -80px; width: 380px; height: 380px;
  background: radial-gradient(circle, rgba(0,206,120,.28), transparent 65%); pointer-events: none;
}
.cta-band h2 { position: relative; font-family: var(--font-display); font-weight: 700; letter-spacing: -0.01em; font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 14px; color: #fff; }
.cta-band p { position: relative; color: rgba(255,255,255,.74); max-width: 52ch; margin: 0 auto 26px; font-size: 1.05rem; }
.cta-band .hero-cta { position: relative; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.cta-band .btn-secondary { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.22); color: #fff; }
.cta-band .btn-secondary:hover { background: rgba(255,255,255,.16); border-color: rgba(255,255,255,.4); color: #fff; }

@media (max-width: 900px) {
  /* minmax(0,1fr) evita que la escena (ancho fijo 385px) fuerce la columna
     a su min-content y desborde el texto del subhero por la derecha. */
  .subhero .container { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .subhero-copy, .subhero-visual { min-width: 0; width: 100%; }
  .subhero-visual { overflow: hidden; }
  .svc-orb { width: 210px; height: 210px; }
  .svc-orb .orb-ico { width: 80px; height: 80px; }
}
@media (max-width: 780px) {
  .feature-grid { grid-template-columns: 1fr; }
  .steps { grid-template-columns: 1fr 1fr; }
  .cross-grid { grid-template-columns: 1fr; }
}
@media (max-width: 460px) {
  .steps { grid-template-columns: 1fr; }
  .subhero { padding-top: 112px; }
  .cta-band .container { padding: 44px 22px; }
  .svc-orb { width: 170px; height: 170px; }
  .svc-orb .orb-ico { width: 66px; height: 66px; }
}

/* ============================================================
   ANIMACIONES CINEMÁTICAS (v3)
   ============================================================ */

/* Red de servicios digitales en el hero */
.hero-net { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero-net .net-links path {
  fill: none; stroke: var(--green); stroke-width: 1.3; stroke-opacity: 0.26;
  stroke-dasharray: 5 9; animation: net-dash 26s linear infinite;
}
@keyframes net-dash { to { stroke-dashoffset: -280; } }
.hero-net .net-nodes circle { fill: var(--green); animation: net-node 4.5s ease-in-out infinite; }
.hero-net .net-nodes circle:nth-child(2n) { animation-delay: 1.4s; }
.hero-net .net-nodes circle:nth-child(3n) { animation-delay: 2.6s; }
@keyframes net-node { 0%, 100% { opacity: 0.5; } 50% { opacity: 1; } }
.hero-net .net-rings circle {
  fill: none; stroke: var(--green); stroke-width: 1; stroke-opacity: 0.3;
  animation: net-ring 4.5s ease-in-out infinite;
  transform-box: fill-box; transform-origin: center;
}
.hero-net .net-rings circle:nth-child(2) { animation-delay: 1.5s; }
.hero-net .net-rings circle:nth-child(3) { animation-delay: 3s; }
@keyframes net-ring {
  0%, 100% { transform: scale(0.85); stroke-opacity: 0.05; }
  50% { transform: scale(1.15); stroke-opacity: 0.35; }
}
.hero-net .net-pulses circle {
  fill: var(--green-bright);
  filter: drop-shadow(0 0 5px rgba(0, 206, 120, 0.9));
}

/* Tilt 3D del mockup siguiendo al cursor */
.mockup { transform-style: preserve-3d; transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s var(--ease); }
.mockup-wrap.tilting .mockup { animation: none; box-shadow: var(--shadow-lg), 0 30px 70px rgba(0,184,107,0.10); }

/* Tarjetas con profundidad al hover (el tilt lo aplica JS inline) */
.plan { transition: transform .3s cubic-bezier(.2,.8,.2,1), box-shadow .3s var(--ease), border-color .3s var(--ease); }
.svc-card, .plan { transform-style: preserve-3d; }
.svc-card .svc-icon { transform: translateZ(24px); }
.plan .plan-tag { transform: translateZ(20px); display: inline-block; }

/* ── Escena de flujo (página Automatizaciones) ── */
.flow-scene {
  position: relative; width: 385px; height: 350px; max-width: 100%;
  animation: orb-float 7s ease-in-out infinite;
}
.flow-links { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.flow-links path {
  fill: none; stroke: var(--green); stroke-width: 1.6; stroke-opacity: 0.35;
  stroke-dasharray: 4 7; animation: net-dash 18s linear infinite;
}
.flow-links .flow-pulse { fill: var(--green-bright); filter: drop-shadow(0 0 6px rgba(0, 206, 120, 0.9)); }
.flow-node {
  position: absolute; display: flex; align-items: center; gap: 8px;
  background: var(--surface); border: 1px solid var(--border); border-radius: 12px;
  padding: 9px 12px; box-shadow: var(--shadow-md);
  font-size: 0.78rem; font-weight: 600; white-space: nowrap;
  animation: flow-in 0.7s var(--ease) backwards;
}
.flow-node .fn-ico {
  width: 26px; height: 26px; border-radius: 8px; flex-shrink: 0;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
}
.flow-node .fn-ico svg { width: 14px; height: 14px; }
.flow-node.fn-hub {
  background: linear-gradient(135deg, var(--green-bright), var(--green-ink));
  border: none; color: #fff;
  box-shadow: 0 16px 44px rgba(0, 184, 107, 0.38);
}
.flow-node.fn-hub .fn-ico { background: rgba(255,255,255,0.16); color: #fff; }
.flow-node.fn-hub .fn-ico svg { animation: hub-spin 9s linear infinite; }
@keyframes hub-spin { to { transform: rotate(360deg); } }
.flow-node.fn-trigger { top: 0; left: 50%; transform: translateX(-50%); animation-delay: .1s; }
.flow-node.fn-hub     { top: 138px; left: 50%; transform: translateX(-50%); animation-delay: .35s; }
.flow-node.fn-out-a   { top: 288px; left: 0; animation-delay: .6s; }
.flow-node.fn-out-b   { top: 288px; right: 0; animation-delay: .75s; }
@keyframes flow-in { from { opacity: 0; margin-top: 14px; } to { opacity: 1; margin-top: 0; } }
.flow-node .fn-ok {
  width: 15px; height: 15px; border-radius: 50%; flex-shrink: 0;
  background: var(--green); color: #fff;
  display: flex; align-items: center; justify-content: center;
  animation: ok-pop 2.4s ease-in-out infinite;
}
.flow-node .fn-ok svg { width: 10px; height: 10px; }
@keyframes ok-pop { 0%, 70%, 100% { transform: scale(1); } 80% { transform: scale(1.35); } }

/* ── Escena navegador (página Páginas web) ── */
.mini-browser {
  position: absolute; top: 40px; left: 50%; transform: translateX(-50%) rotate(-1.5deg);
  width: 290px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 14px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.mb-bar {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 12px; background: var(--bg-soft); border-bottom: 1px solid var(--border);
}
.mb-dots { display: flex; gap: 5px; }
.mb-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--fill); }
.mb-url {
  flex: 1; display: flex; align-items: center; gap: 6px;
  background: var(--bg); border: 1px solid var(--border); border-radius: 6px;
  padding: 4px 10px; font-family: var(--font-mono); font-size: 0.66rem; color: var(--muted);
}
.mb-url svg { color: var(--green); flex-shrink: 0; }
.mb-body { padding: 18px 16px 20px; display: flex; flex-direction: column; gap: 10px; }
.mb-line {
  height: 11px; border-radius: 5px;
  background: linear-gradient(90deg, var(--fill) 25%, var(--green-soft) 50%, var(--fill) 75%);
  background-size: 200% 100%; animation: mb-shimmer 2.6s linear infinite;
}
.mb-line.w65 { width: 65%; } .mb-line.w45 { width: 45%; animation-delay: .3s; }
.mb-img {
  height: 88px; border-radius: 9px;
  background: linear-gradient(90deg, var(--fill) 25%, var(--green-soft) 50%, var(--fill) 75%);
  background-size: 200% 100%; animation: mb-shimmer 2.6s linear infinite .6s;
}
.mb-cta {
  width: 96px; height: 26px; border-radius: 8px; margin-top: 2px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-ink));
  animation: mb-glow 2.6s ease-in-out infinite;
}
@keyframes mb-shimmer { to { background-position: -200% 0; } }
@keyframes mb-glow {
  0%, 100% { box-shadow: 0 4px 14px rgba(0, 184, 107, 0.25); }
  50% { box-shadow: 0 6px 22px rgba(0, 184, 107, 0.5); }
}
.web-scene .web-chip-a { top: 16px; left: 4px; animation-delay: .4s; }
.web-scene .web-chip-b { bottom: 22px; right: 2px; animation-delay: .65s; }

/* ── Escena SERP (página SEO) ── */
.serp-card {
  position: absolute; top: 34px; left: 50%; transform: translateX(-50%);
  width: 300px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 15px;
  box-shadow: var(--shadow-lg); padding: 16px;
  display: flex; flex-direction: column; gap: 11px;
}
.serp-search {
  display: flex; align-items: center; gap: 9px;
  border: 1.5px solid var(--green-line); border-radius: 999px;
  padding: 8px 14px; font-size: 0.78rem; color: var(--text);
  box-shadow: 0 2px 10px rgba(0, 184, 107, 0.08);
}
.serp-search svg { color: var(--green-ink); flex-shrink: 0; }
.serp-q::after { content: '|'; color: var(--green); margin-left: 2px; animation: caret 1.1s steps(1) infinite; }
@keyframes caret { 50% { opacity: 0; } }
.serp-row {
  display: flex; align-items: center; gap: 11px;
  border: 1px solid var(--border); border-radius: 11px; padding: 10px 12px;
}
.serp-row.top {
  border-color: var(--green-line); background: var(--green-soft);
  animation: serp-glow 3s ease-in-out infinite;
}
@keyframes serp-glow {
  0%, 100% { box-shadow: 0 0 0 rgba(0, 184, 107, 0); }
  50% { box-shadow: 0 6px 20px rgba(0, 184, 107, 0.22); }
}
.serp-pos {
  width: 22px; height: 22px; border-radius: 7px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-display); font-size: 0.72rem; font-weight: 700;
  background: linear-gradient(135deg, var(--green-bright), var(--green-ink)); color: #fff;
}
.serp-pos.g { background: var(--fill); color: var(--muted); }
.serp-lines { flex: 1; display: flex; flex-direction: column; gap: 5px; }
.serp-lines b { height: 7px; border-radius: 4px; background: var(--fill); }
.serp-row.top .serp-lines b { background: rgba(0, 132, 80, 0.25); }
.serp-lines .w50 { width: 50%; } .serp-lines .w55 { width: 55%; } .serp-lines .w60 { width: 60%; }
.serp-lines .w65 { width: 65%; } .serp-lines .w70 { width: 70%; } .serp-lines .w80 { width: 80%; }
.serp-up { color: var(--green-ink); animation: serp-up 1.8s ease-in-out infinite; }
@keyframes serp-up { 0%, 100% { transform: translate(0, 0); } 50% { transform: translate(2px, -3px); } }
.serp-scene .serp-chip { bottom: 26px; right: 6px; animation-delay: .5s; }

/* ── Escena chat (página Chatbots) ── */
.chat-card {
  position: absolute; top: 30px; left: 50%; transform: translateX(-50%);
  width: 295px; background: var(--surface);
  border: 1px solid var(--border); border-radius: 16px;
  box-shadow: var(--shadow-lg); overflow: hidden;
}
.chat-head {
  display: flex; align-items: center; gap: 9px;
  padding: 12px 14px; border-bottom: 1px solid var(--border); background: var(--bg-soft);
  font-size: 0.8rem; font-weight: 600;
}
.chat-av {
  width: 30px; height: 30px; border-radius: 50%; flex-shrink: 0;
  background: linear-gradient(135deg, var(--green-bright), var(--green-ink)); color: #fff;
  display: flex; align-items: center; justify-content: center;
}
.chat-status { margin-left: auto; display: flex; align-items: center; gap: 5px; font-size: 0.68rem; font-weight: 500; color: var(--muted); }
.chat-status i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); animation: net-node 2s ease-in-out infinite; }
.chat-body { padding: 16px 14px 18px; display: flex; flex-direction: column; gap: 10px; min-height: 150px; }
.chat-b {
  max-width: 82%; padding: 9px 13px; border-radius: 14px;
  font-size: 0.78rem; line-height: 1.45;
}
.cb-user {
  align-self: flex-end; background: var(--fill); color: var(--text);
  border-bottom-right-radius: 4px;
  animation: chat-user 9s ease infinite;
}
.cb-typing {
  align-self: flex-start; background: var(--green-soft); border-bottom-left-radius: 4px;
  display: flex; gap: 4px; align-items: center; padding: 12px 14px;
  animation: chat-typing 9s ease infinite;
}
.cb-typing i {
  width: 6px; height: 6px; border-radius: 50%; background: var(--green-ink);
  animation: typing-dot 1.1s ease-in-out infinite;
}
.cb-typing i:nth-child(2) { animation-delay: .18s; }
.cb-typing i:nth-child(3) { animation-delay: .36s; }
@keyframes typing-dot { 0%, 100% { transform: translateY(0); opacity: .5; } 50% { transform: translateY(-3px); opacity: 1; } }
.cb-bot {
  align-self: flex-start; margin-top: -44px;
  background: linear-gradient(135deg, var(--green-bright), var(--green-ink)); color: #fff;
  border-bottom-left-radius: 4px;
  animation: chat-bot 9s ease infinite;
}
@keyframes chat-user {
  0%, 3% { opacity: 0; transform: translateY(8px); }
  8%, 93% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes chat-typing {
  0%, 14% { opacity: 0; transform: translateY(8px); }
  19%, 42% { opacity: 1; transform: translateY(0); }
  47%, 100% { opacity: 0; transform: translateY(8px); }
}
@keyframes chat-bot {
  0%, 47% { opacity: 0; transform: translateY(8px); }
  53%, 93% { opacity: 1; transform: translateY(0); }
  97%, 100% { opacity: 0; transform: translateY(8px); }
}
.chat-scene .chat-chip { bottom: 20px; left: 2px; animation-delay: .5s; }

@media (max-width: 780px) {
  .hero-net { display: none; }
  /* En móvil/tablet el visual pasa debajo del texto: le damos altura propia
     y lo centramos para que las escenas (385px) no se corten por los lados. */
  .subhero-visual { min-height: 340px; margin-top: 8px; }
}
/* Las escenas usan un lienzo fijo de 385px; en pantallas estrechas lo
   escalamos para que quepan los nodos de los extremos sin recortarse. */
@media (max-width: 430px) {
  /* .reveal.in fija transform:none (2 clases); igualamos especificidad + orden. */
  .subhero-visual.reveal { transform: scale(0.82); transform-origin: top center; min-height: 300px; }
}
@media (max-width: 360px) {
  .subhero-visual.reveal { transform: scale(0.72); }
}
@media (prefers-reduced-motion: reduce) {
  .hero-net .net-pulses, .flow-links .flow-pulse { display: none; }
  .cb-user, .cb-typing, .cb-bot { opacity: 1 !important; }
  .cb-typing { display: none; }
  .cb-bot { margin-top: 0; }
}

/* ============================================================
   PASADA VISUAL v4 — métricas, terminal, agencia, para-quién
   ============================================================ */

/* ── Banda de métricas (home) ── */
.stats {
  padding: 76px 0;
  background: linear-gradient(135deg, #0e1413, #103a2a);
  overflow: hidden;
}
.stats::before {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: radial-gradient(rgba(0, 206, 120, 0.16) 1px, transparent 1.4px);
  background-size: 26px 26px;
  -webkit-mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
  mask-image: radial-gradient(ellipse at center, #000 25%, transparent 78%);
}
.stats-glow {
  position: absolute; top: -140px; right: -100px; width: 420px; height: 420px;
  background: radial-gradient(circle, rgba(0, 206, 120, 0.22), transparent 65%);
  pointer-events: none;
}
.stats .container { position: relative; z-index: 1; }
.stats-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 26px; }
.stat { text-align: center; padding: 8px 10px; }
.stat + .stat { border-left: 1px solid rgba(255, 255, 255, 0.09); }
.stat-num {
  display: block;
  font-family: var(--font-display); font-weight: 700;
  font-size: clamp(2rem, 4.4vw, 2.9rem); letter-spacing: -0.02em;
  color: var(--green-bright);
  font-variant-numeric: tabular-nums;
  text-shadow: 0 0 26px rgba(0, 206, 120, 0.35);
}
.stat-label { display: block; margin-top: 6px; font-size: 0.87rem; color: rgba(255, 255, 255, 0.62); line-height: 1.45; }

/* ── Terminal cinemática (home, "Por qué Copanix") ── */
.f-visual-term { background: none; border: none; box-shadow: none; padding: 0; min-height: 0; }
.term {
  width: 100%; max-width: 520px; margin: 0 auto;
  background: #0e1413;
  border: 1px solid rgba(255, 255, 255, 0.07);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-lg), 0 26px 60px rgba(0, 184, 107, 0.10);
  overflow: hidden;
}
.term-bar {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 16px;
  background: rgba(255, 255, 255, 0.04);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
}
.term-dots { display: flex; gap: 6px; }
.term-dots i { width: 10px; height: 10px; border-radius: 50%; background: rgba(255, 255, 255, 0.14); }
.term-title { font-family: var(--font-mono); font-size: 0.72rem; color: rgba(255, 255, 255, 0.45); }
.term-body {
  padding: 22px 22px 26px;
  font-family: var(--font-mono); font-size: 0.8rem; line-height: 2.1;
  color: rgba(255, 255, 255, 0.85);
}
.t-prompt, .t-ok, .t-green { color: var(--green-bright); }
.t-prompt, .t-ok { margin-right: 8px; }
.t-arrow { color: #fff; margin-right: 8px; }
.t-dim { color: rgba(255, 255, 255, 0.38); }
.t-line { opacity: 0; }
.f-visual-term.in .t-line { animation: term-line 0.45s var(--ease) forwards; }
.f-visual-term.in .t1 { animation-delay: 0.2s; }
.f-visual-term.in .t2 { animation-delay: 1.7s; }
.f-visual-term.in .t3 { animation-delay: 2.3s; }
.f-visual-term.in .t4 { animation-delay: 2.9s; }
.f-visual-term.in .t5 { animation-delay: 3.7s; }
.f-visual-term.in .t6 { animation-delay: 4.5s; }
@keyframes term-line { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.t-cmd { display: inline-block; max-width: 0; overflow: hidden; white-space: nowrap; vertical-align: bottom; }
.f-visual-term.in .t-cmd { animation: t-type 1.2s steps(28, end) 0.35s forwards; }
@keyframes t-type { to { max-width: 100%; } }
.t-caret {
  display: inline-block; width: 8px; height: 15px; vertical-align: middle;
  background: var(--green-bright);
  animation: caret 1.1s steps(1) infinite;
}

/* ── Banda de agencia (home): escena de conversación real ── */
.agency { padding: 110px 0; overflow: hidden; }
.agency-grid { display: grid; grid-template-columns: 0.98fr 1.02fr; gap: 64px; align-items: center; }
.agency-visual { display: flex; align-items: center; justify-content: center; min-width: 0; }
.agency-copy .h-section { margin-bottom: 16px; }
.agency-copy > p { color: var(--muted); line-height: 1.7; margin-bottom: 22px; max-width: 50ch; }

/* ── "Para quién" con tarjetas (páginas de servicio) ── */
.who-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
.who-card {
  display: flex; gap: 15px; align-items: flex-start;
  background: #fff; border: 1px solid var(--border); border-radius: 16px;
  padding: 19px 21px;
  transition: transform 0.2s var(--ease), box-shadow 0.2s var(--ease), border-color 0.2s var(--ease);
}
.who-card:hover { transform: translateY(-3px); box-shadow: 0 14px 36px rgba(12, 18, 16, 0.08); border-color: var(--green-line); }
.who-grid .who-card:nth-child(2) { transition-delay: 0.07s; }
.who-grid .who-card:nth-child(3) { transition-delay: 0.14s; }
.who-ico {
  flex-shrink: 0; width: 40px; height: 40px; border-radius: 12px;
  background: var(--green-soft); color: var(--green-ink);
  display: flex; align-items: center; justify-content: center;
}
.who-ico svg { width: 20px; height: 20px; }
.who-card h3 { font-size: 0.98rem; font-weight: 600; margin-bottom: 3px; }
.who-card p { font-size: 0.88rem; color: var(--muted); line-height: 1.55; }

@media (max-width: 980px) {
  .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 30px 20px; }
  .stat + .stat { border-left: none; }
  .agency-grid { grid-template-columns: 1fr; gap: 30px; }
  .agency-visual { order: 2; min-height: 340px; }
}
@media (max-width: 780px) {
  .who-grid { grid-template-columns: 1fr; }
}
@media (max-width: 640px) {
  .stats { padding: 60px 0; }
  .stats-grid { grid-template-columns: 1fr 1fr; }
  .term-body { font-size: 0.72rem; padding: 18px 16px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .t-line { opacity: 1 !important; }
  .t-cmd { max-width: 100% !important; }
  .t-caret { animation: none; }
}

