/* =========================================================
   SJQA GROUP — Estilos
   Colores, medidas y curvas de animación principales en :root
   ========================================================= */

/* Archivo: tipografía de lectura, menús y botones (variable: un archivo cubre los pesos 400 a 700) */
@font-face {
  font-family: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/archivo-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: "Archivo";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/archivo-latin-ext.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;
}

/* Fraunces: tipografía de titulares (variable: un archivo cubre los pesos 400 a 700) */
@font-face {
  font-family: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-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: "Fraunces";
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url("../assets/fonts/fraunces-latin-ext.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;
}

:root {
  --navy: #0b1f3a;
  --navy-deep: #081629;
  /* Barra superior y encabezado, casi negros */
  --bar: #090d14;
  --bar-top: #05070c;
  --blue: #1560bd;
  --blue-dark: #0f4c97;
  --blue-light: #4d9bff;
  --blue-soft: #e8f1fc;
  --gold: #f2b01e;
  --gold-soft: #fff4d6;
  --teal: #0e9f94;
  --teal-soft: #dff5f2;
  --coral: #e8573f;
  --coral-soft: #fdebe7;

  --ink: #14181f;
  --text: #3d4550;
  --muted: #6b7480;
  --line: #e6ddce;
  --cream: #fbf6ec;
  --gray: #f4ebdc;
  --white: #ffffff;
  --wa: #25d366;

  --rainbow: linear-gradient(90deg, var(--blue), var(--teal) 40%, var(--gold) 72%, var(--coral));
  --fade: var(--cream); /* color con el que se difumina una lista recortada */

  --font: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --font-display: "Fraunces", "Iowan Old Style", Georgia, "Times New Roman", serif;
  --container: 1240px;
  --gutter: 48px;
  --header-h: 76px;
  --rotate-ms: 4800ms;

  --ease-out: cubic-bezier(.16, 1, .3, 1);
  --ease-in-out: cubic-bezier(.65, 0, .35, 1);
}

/* Un solo color de acento por sección (se elige con las clases accent-… en el HTML),
   en lugar de mezclar cuatro colores dentro de una misma fila */
:root, .accent-blue { --c: var(--blue); --c-soft: var(--blue-soft); --c-ink: var(--blue-dark); --c-on: #fff; }
.accent-gold { --c: var(--gold); --c-soft: var(--gold-soft); --c-ink: #8a6209; --c-on: var(--navy); }
.accent-teal { --c: var(--teal); --c-soft: var(--teal-soft); --c-ink: #0b7f76; --c-on: #fff; }
.accent-coral { --c: var(--coral); --c-soft: var(--coral-soft); --c-ink: #c2412b; --c-on: #fff; }

/* Colores de los tres servicios */
.pillar:nth-child(1), .collage-item.c1, .rotator > span:nth-child(1) { --pc: var(--blue); --pc-ink: var(--blue); }
.pillar:nth-child(2), .collage-item.c2, .rotator > span:nth-child(2) { --pc: var(--teal); --pc-ink: #0b7f76; }
.pillar:nth-child(3), .collage-item.c3, .rotator > span:nth-child(3) { --pc: var(--coral); --pc-ink: #c2412b; }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 8px); -webkit-text-size-adjust: 100%; background: var(--cream); }
/* Con el scroll suave por JavaScript, el navegador no debe animar también */
html.smooth-js { scroll-behavior: auto; }
body {
  margin: 0;
  font-family: var(--font);
  font-size: 17px;
  line-height: 1.68;
  color: var(--text);
  background: var(--cream);
  -webkit-font-smoothing: antialiased;
  overflow-x: clip;
}
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; color: var(--ink); font-weight: 600; line-height: 1.15; letter-spacing: -.015em; text-wrap: balance; }
/* Los titulares grandes van en la serif; los títulos pequeños siguen en la fuente de lectura */
h1, .section h2, .about h2, .cta-band h2, .legal-hero h1, .legal-body h2, .stat-num, .notfound-code {
  font-family: var(--font-display); font-optical-sizing: auto; font-weight: 600; letter-spacing: -.012em;
}
p, figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }

.container { width: min(100% - var(--gutter), var(--container)); margin-inline: auto; }

.skip-link { position: absolute; left: -9999px; top: 8px; z-index: 100; padding: 10px 16px; background: #fff; color: var(--ink); font-weight: 600; }
.skip-link:focus { left: 8px; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; }

/* Antetítulo con una rayita delante, en versalitas muy espaciadas */
.label { display: flex; align-items: center; gap: 12px; margin-bottom: 22px; font-size: 12.5px; font-weight: 600; letter-spacing: .18em; text-transform: uppercase; color: var(--blue); }
.label::before { content: ""; flex: none; width: 28px; height: 1px; background: currentColor; opacity: .55; }
.label-light { color: #9cc3f5; }
.lead { margin-top: 22px; font-size: 19px; line-height: 1.62; color: var(--text); }

/* Barra de color bajo los títulos de sección (se dibuja al aparecer) */
.section h2::after, .about h2::after {
  content: ""; display: block; width: 64px; height: 4px; margin-top: 20px; border-radius: 4px;
  background: var(--rainbow); transform-origin: left; transition: transform 1.1s var(--ease-out) .25s;
}
.js [data-reveal]:not(.in) h2::after, .js h2[data-reveal]:not(.in)::after { transform: scaleX(0); }

/* Subrayado que se dibuja al pasar el mouse */
.topbar a, .contact-list a, .footer a, .link-arrow {
  background: linear-gradient(currentColor, currentColor) no-repeat 0 100% / 0 1px;
  transition: background-size .45s var(--ease-out), color .2s;
}
.topbar a:hover, .contact-list a:hover, .footer a:hover, a.link-arrow:hover, .pillar:hover .link-arrow { background-size: 100% 1px; }

/* ---------- Botones y enlaces ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  padding: 16px 30px; border: 1px solid transparent; border-radius: 3px;
  font-size: 14.5px; font-weight: 600; letter-spacing: .01em; line-height: 1.2; white-space: nowrap; cursor: pointer;
  /* --tx y --ty los mueve el mouse (js/main.js); el hover agrega el pequeño salto */
  transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0);
  transition: background-color .25s, color .25s, border-color .25s, box-shadow .4s, transform .4s var(--ease-out);
}
/* Destello al pasar el mouse */
.btn::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .38) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .9s var(--ease-out);
}
.btn:hover::after { transform: translateX(120%); }
.btn:hover { transform: translate3d(var(--tx, 0px), calc(var(--ty, 0px) - 2px), 0); }
.btn:active { transform: translate3d(var(--tx, 0px), var(--ty, 0px), 0); }
.btn-primary { background: linear-gradient(135deg, var(--blue) 0%, #2a84e6 100%); color: #fff; }
.btn-primary:hover { box-shadow: 0 22px 44px -20px rgba(21, 96, 189, .75); }
.btn-light { background: #fff; color: var(--navy); }
.btn-light:hover { box-shadow: 0 14px 28px -14px rgba(0, 0, 0, .55); }
.btn-outline { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline:hover { background: var(--navy); color: #fff; }
.btn-outline::after, .btn-soft::after { background: linear-gradient(115deg, transparent 30%, rgba(37, 211, 102, .14) 50%, transparent 70%); }
.btn-soft { background: #fff; color: var(--ink); border-color: var(--line); }
.btn-soft svg { color: #1faa55; }
.btn-soft:hover { border-color: #1faa55; box-shadow: 0 14px 28px -16px rgba(31, 170, 85, .55); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; padding-bottom: 2px; font-weight: 600; color: var(--blue); }
.link-arrow svg { transition: transform .35s var(--ease-out); }
a.link-arrow:hover svg, .pillar:hover .link-arrow svg { transform: translateX(5px); }

/* ---------- Encabezado ---------- */
.topbar { background: var(--bar-top); color: rgba(255, 255, 255, .72); font-size: 13.5px; }
.topbar-inner { height: 38px; display: flex; align-items: center; justify-content: space-between; }
.topbar-links { display: flex; gap: 28px; }
.topbar a:hover { color: #fff; }

.header { position: sticky; top: 0; z-index: 50; background: var(--bar); border-bottom: 1px solid rgba(255, 255, 255, .08); transition: box-shadow .35s; }
.header.scrolled { box-shadow: 0 10px 30px -14px rgba(0, 0, 0, .55); }
.header-inner { height: var(--header-h); display: flex; align-items: center; gap: 40px; }
.brand img { width: auto; height: 50px; transition: transform .4s var(--ease-out); }
.brand:hover img { transform: scale(1.04); }
/* Qué hace la empresa, junto al logo */
.brand-block { display: flex; align-items: center; gap: 16px; }
.brand-tag {
  padding-left: 16px; border-left: 1px solid rgba(255, 255, 255, .18);
  font-size: 11px; font-weight: 600; line-height: 1.45; letter-spacing: .13em; text-transform: uppercase;
  color: rgba(255, 255, 255, .62);
}

.menu { position: relative; display: flex; align-items: stretch; gap: 30px; height: 100%; margin-left: auto; }
.menu a { display: flex; align-items: center; padding-top: 2px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .8); transition: color .25s; }
.menu a:hover, .menu a[aria-current] { color: #fff; }
.menu-indicator {
  position: absolute; left: 0; bottom: 0; width: 0; height: 3px; border-radius: 3px 3px 0 0; background: var(--gold); opacity: 0; pointer-events: none;
  transition: transform .55s var(--ease-out), width .55s var(--ease-out), opacity .3s;
}
.header-cta { padding: 11px 20px; font-size: 14px; }

/* Barra de progreso de lectura */
.progress { position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--rainbow); transform: scaleX(0); transform-origin: left; pointer-events: none; }

.menu-toggle { display: none; position: relative; margin-left: auto; width: 44px; height: 44px; place-items: center; padding: 0; border: 0; background: transparent; color: #fff; cursor: pointer; }
.menu-toggle svg { grid-area: 1 / 1; transition: opacity .25s, transform .45s var(--ease-out); }
.menu-toggle .icon-close { opacity: 0; transform: rotate(-90deg); }
.menu-toggle[aria-expanded="true"] .icon-open { opacity: 0; transform: rotate(90deg); }
.menu-toggle[aria-expanded="true"] .icon-close { opacity: 1; transform: none; }

.mobile-menu { display: none; }
.mobile-menu > .container { min-height: 0; overflow: hidden; }
.mobile-menu a:not(.btn) { display: block; padding: 15px 0; border-bottom: 1px solid rgba(255, 255, 255, .1); font-size: 17px; color: #fff; }
.mobile-menu a:first-child { margin-top: 8px; }
.mobile-menu .btn { width: 100%; margin: 20px 0 24px; }

/* ---------- Portada ---------- */
.hero {
  position: relative; overflow: clip; padding: 76px 0 84px;
  background:
    radial-gradient(900px 520px at 88% 0%, #dcecff 0%, rgba(220, 236, 255, 0) 62%),
    radial-gradient(760px 460px at 0% 100%, #fff0cc 0%, rgba(255, 240, 204, 0) 58%),
    radial-gradient(600px 400px at 60% 110%, #dff5f2 0%, rgba(223, 245, 242, 0) 60%),
    var(--cream);
}
.hero-grid { display: grid; grid-template-columns: 1.02fr .98fr; gap: 56px; align-items: center; }

.hero h1 { font-size: clamp(40px, 5.2vw, 72px); line-height: 1.04; letter-spacing: -.018em; }
.h1-static { display: block; }
/* Frase que va cambiando */
/* Las tres frases se apilan en la misma celda: el alto se adapta a la más larga en cualquier pantalla */
.rotator { display: grid; overflow: hidden; padding-bottom: .08em; }
.rotator > span {
  grid-area: 1 / 1; color: var(--pc-ink);
  transform: translateY(105%); opacity: 0;
  transition: transform .9s var(--ease-out), opacity .6s var(--ease-out);
}
.rotator > span.is-active { transform: translateY(0); opacity: 1; }
.rotator > span.is-leaving { transform: translateY(-105%); opacity: 0; }

.hero-lead { max-width: 540px; margin-top: 18px; font-size: 19px; }
.hero-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-top: 36px; }

/* Collage de fotos en movimiento */
.hero-collage { position: relative; height: 540px; }
.hero-collage::before {
  content: ""; position: absolute; right: 6%; top: -2%; width: 110px; height: 110px; border-radius: 22px;
  background: linear-gradient(135deg, var(--gold), #ffcf5a); opacity: .9; transform: rotate(12deg);
}
.hero-collage::after {
  content: ""; position: absolute; left: -2%; bottom: 8%; width: 130px; height: 130px; border-radius: 50%;
  border: 14px solid var(--teal); opacity: .22;
}
.collage-item {
  position: absolute; z-index: 1; overflow: hidden; border-radius: 18px; background: var(--line);
  box-shadow: 0 30px 60px -32px rgba(11, 31, 58, .5);
  transition: scale .9s var(--ease-out), box-shadow .6s, filter .6s;
  filter: saturate(.9);
}
.collage-item img { width: 100%; height: 100%; object-fit: cover; }
.collage-item::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 5px; background: var(--pc); }
.collage-item.is-active { z-index: 3; scale: 1.05; filter: none; box-shadow: 0 40px 70px -30px rgba(11, 31, 58, .6); }
.c1 { left: 0; top: 2%; width: 60%; height: 56%; }
.c3 { right: 0; top: 22%; width: 48%; height: 58%; }
.c2 { left: 12%; bottom: 0; width: 46%; height: 38%; }
.collage-tag {
  position: absolute; left: 14px; bottom: 18px; display: inline-flex; align-items: center; gap: 8px;
  padding: 7px 12px; border-radius: 999px; background: rgba(255, 255, 255, .95);
  font-size: 13.5px; font-weight: 600; color: var(--ink); box-shadow: 0 8px 20px -10px rgba(0, 0, 0, .35);
}
.collage-tag::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--pc); }

/* Tres tarjetas de servicios (sincronizadas con la frase) */
.pillars { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 64px; }
.pillar {
  position: relative; overflow: hidden; display: flex; flex-direction: column; align-items: flex-start;
  padding: 30px 28px 26px; border: 1px solid var(--line); border-radius: 16px; background: #fff;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.pillar::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: color-mix(in srgb, var(--pc) 16%, #eef1f5); }
.pillar-progress { position: absolute; top: 0; left: 0; width: 100%; height: 4px; background: var(--pc); transform: scaleX(0); transform-origin: left; }
.pillar.is-active .pillar-progress { animation: progress var(--rotate-ms) linear forwards; }
.pillars:hover .pillar-progress { animation-play-state: paused; }
.pillar:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 24px 44px -24px rgba(11, 31, 58, .4); }
.pillar.is-active { border-color: color-mix(in srgb, var(--pc) 40%, var(--line)); }
.pillar-num { font-size: 14px; font-weight: 700; color: var(--pc-ink); }
.pillar-title { margin: 8px 0 8px; font-size: 23px; }
.pillar p { font-size: 15.5px; color: var(--muted); }
.pillar .link-arrow { margin-top: 18px; color: var(--pc-ink); }

/* Entrada de la portada al cargar */
.js .hero .label { animation: fade-up .8s var(--ease-out) .1s backwards; }
.js .hero h1 { animation: mask-up 1.1s var(--ease-out) .18s backwards; }
.js .hero-lead { animation: fade-up .9s var(--ease-out) .4s backwards; }
.js .hero-actions { animation: fade-up .9s var(--ease-out) .52s backwards; }
.js .collage-item { animation: collage-in 1.1s var(--ease-out) backwards, bob 9s ease-in-out infinite; }
.js .c1 { animation-delay: .2s, 1.3s; }
.js .c3 { animation-delay: .38s, 2.2s; }
.js .c2 { animation-delay: .56s, 3.1s; }
.js .hero-collage::before { animation: spin-in 1.2s var(--ease-out) .6s backwards; }
.js .pillar { animation: fade-up .9s var(--ease-out) backwards; }
.js .pillar:nth-child(1) { animation-delay: .7s; }
.js .pillar:nth-child(2) { animation-delay: .82s; }
.js .pillar:nth-child(3) { animation-delay: .94s; }

/* Franja de compromisos */
.facts { position: relative; background: var(--navy); color: #fff; }
.facts::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rainbow); }
.facts-list { display: grid; grid-template-columns: repeat(3, 1fr); }
.facts-list li { padding: 34px 40px; border-left: 1px solid rgba(255, 255, 255, .16); }
.facts-list li:first-child { padding-left: 0; border-left: 0; }
.facts-list li:nth-child(1) { --c: var(--gold); }
.facts-list li:nth-child(2) { --c: #36c9bd; }
.facts-list li:nth-child(3) { --c: #ff8a73; }
.facts-list strong { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 600; }
.facts-list strong::before { content: ""; flex: none; width: 9px; height: 9px; border-radius: 50%; background: var(--c); box-shadow: 0 0 0 4px color-mix(in srgb, var(--c) 22%, transparent); }
.facts-list span { display: block; margin-top: 4px; padding-left: 19px; font-size: 15px; color: rgba(255, 255, 255, .72); }

/* ---------- Secciones ---------- */
.section { padding: 150px 0; }
.section-gray { background: var(--gray); --fade: var(--gray); }
.section h2 { font-size: clamp(33px, 3.9vw, 54px); line-height: 1.1; letter-spacing: -.014em; }
.section-intro { display: grid; grid-template-columns: 6fr 6fr; gap: 72px; align-items: end; margin-bottom: 88px; }
.section-intro p { max-width: 620px; font-size: 19px; line-height: 1.62; }

/* Clientes */
.clients { padding: 110px 0; background: var(--gray); --fade: var(--gray); }
.clients .section-intro { margin-bottom: 56px; }
.clients-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.client {
  position: relative; overflow: hidden; display: grid; place-items: center;
  aspect-ratio: 3 / 2; padding: 6px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.client::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 4px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .5s var(--ease-out); }
.client:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 22px 40px -22px rgba(11, 31, 58, .45); }
.client:hover::after { transform: scaleX(1); }
/* Cada logo viene centrado en un lienzo 540x360 con fondo blanco y tamaño visual parejo */
.client img { width: 100%; height: auto; transition: transform .5s var(--ease-out); }
.client:hover img { transform: scale(1.07); }

/* Nuestro equipo: cifras y áreas */
.team { position: relative; overflow: hidden; background: linear-gradient(160deg, #0b1f3a 0%, #0f2d57 55%, #0b3b5c 100%); color: rgba(255, 255, 255, .8); }
.team::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rainbow); }
.team::after { content: ""; position: absolute; right: -120px; top: -120px; width: 380px; height: 380px; border-radius: 50%; border: 40px solid var(--teal); opacity: .08; pointer-events: none; }
.team h2 { color: #fff; }
.team .section-intro p { color: rgba(255, 255, 255, .75); }

.stats { display: grid; grid-template-columns: repeat(4, 1fr); margin-bottom: 64px; border-top: 1px solid rgba(255, 255, 255, .14); border-bottom: 1px solid rgba(255, 255, 255, .14); }
.stat { padding: 38px 28px; border-left: 1px solid rgba(255, 255, 255, .14); }
.stat:first-child { padding-left: 0; border-left: 0; }
.stat:nth-child(1) { --sc: var(--gold); }
.stat:nth-child(2) { --sc: #36c9bd; }
.stat:nth-child(3) { --sc: #7cb8ff; }
.stat:nth-child(4) { --sc: #ff8a73; }
.stat-num { display: block; font-size: clamp(46px, 5vw, 70px); font-weight: 700; line-height: 1; letter-spacing: -.01em; color: var(--sc); font-variant-numeric: tabular-nums; white-space: nowrap; }
.stat-label { display: block; margin-top: 12px; font-size: 16px; color: rgba(255, 255, 255, .8); }

.areas { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; }
.area:nth-child(1) { --ac: var(--gold); }
.area:nth-child(2) { --ac: #7cb8ff; }
.area:nth-child(3) { --ac: #36c9bd; }
.area:nth-child(4) { --ac: #ff8a73; }
.area {
  position: relative; overflow: hidden; padding: 30px 24px 28px;
  border: 1px solid rgba(255, 255, 255, .12); border-radius: 16px; background: rgba(255, 255, 255, .04);
  transition: transform .45s var(--ease-out), background-color .35s, border-color .35s;
}
.area::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--ac); transform: scaleX(.22); transform-origin: left; transition: transform .6s var(--ease-out); }
.area:hover { transform: translateY(-6px); background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .24); }
.area:hover::before { transform: scaleX(1); }
.area-tag { display: inline-block; margin-bottom: 16px; padding: 4px 11px; border-radius: 999px; background: color-mix(in srgb, var(--ac) 20%, transparent); font-size: 13px; font-weight: 700; color: var(--ac); }
.area h3 { margin-bottom: 8px; font-size: 20px; color: #fff; }
.area p { font-size: 15.5px; color: rgba(255, 255, 255, .72); }

/* Trabaje con nosotros */
.careers-card {
  position: relative; overflow: hidden; display: grid; grid-template-columns: 7fr 5fr; gap: 56px; align-items: center;
  padding: 60px 56px; border: 1px solid var(--line); border-radius: 24px;
  background: linear-gradient(135deg, #fff8e8 0%, #eaf3ff 55%, #e3f6f4 100%);
}
.careers-card::after { content: ""; position: absolute; right: -70px; top: -70px; width: 240px; height: 240px; border-radius: 50%; border: 26px solid var(--coral); opacity: .12; pointer-events: none; }
.careers-roles { margin-top: 26px; }
.careers-actions { position: relative; z-index: 1; display: flex; flex-direction: column; gap: 12px; }
.careers-note { margin-top: 4px; font-size: 14px; text-align: center; color: var(--muted); }

/* Gestión de cobro: qué incluye */
.includes { display: grid; grid-template-columns: repeat(3, 1fr); gap: 52px 44px; }
.includes li { position: relative; padding-top: 28px; }
.includes li::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 1px; background: var(--line); transform-origin: left;
  transition: transform 1.1s var(--ease-out) var(--d, 0ms);
}
.includes li::after {
  content: ""; position: absolute; top: -1px; left: 0; width: 56px; height: 3px; border-radius: 3px; background: var(--c); transform-origin: left;
  transition: width .6s var(--ease-out), transform 1.1s var(--ease-out) var(--d, 0ms);
}
.includes li:hover::after { width: 100%; }
.includes h3 { margin-bottom: 10px; font-size: 21px; transition: color .3s; }
.includes li:hover h3 { color: var(--c-ink); }
.includes p { font-size: 16.5px; }

/* Proceso de cobro */
.feature { display: grid; grid-template-columns: 1fr 1fr; gap: 88px; }
.feature-media { position: relative; overflow: hidden; min-height: 560px; border-radius: 16px; background: var(--line); }
.feature-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.feature-text { align-self: center; }
.steps { counter-reset: step; margin: 44px 0; border-top: 1px solid var(--line); }
.steps li { position: relative; display: grid; grid-template-columns: 52px 1fr; padding: 22px 0; border-bottom: 1px solid var(--line); }
.steps li::before { counter-increment: step; content: counter(step, decimal-leading-zero); padding-top: 1px; font-size: 15px; font-weight: 700; color: var(--c-ink); }
.steps li::after { content: ""; position: absolute; left: 0; right: 0; bottom: -1px; height: 3px; background: var(--c); transform: scaleX(0); transform-origin: left; transition: transform .8s var(--ease-out); }
.steps li.is-active::after { transform: scaleX(1); }
.steps h3 { font-size: 18px; transition: color .35s; }
.steps li.is-active h3 { color: var(--c-ink); }
.steps p { margin-top: 4px; font-size: 16px; color: var(--muted); }
.steps-note { margin: -16px 0 36px; padding: 16px 18px; border-left: 3px solid var(--teal); border-radius: 0 8px 8px 0; background: #fff; font-size: 16px; font-weight: 500; color: var(--ink); }

/* Franja para cotizar (degradado en movimiento) */
.cta-band {
  padding: 84px 0; color: rgba(255, 255, 255, .85);
  background: linear-gradient(120deg, #0b1f3a 0%, #133d78 30%, #1560bd 55%, #0e8f86 80%, #0b1f3a 100%);
  background-size: 260% 260%; animation: gradient-pan 18s ease-in-out infinite alternate;
}
.cta-inner { display: flex; align-items: center; justify-content: space-between; gap: 48px; }
.cta-band h2 { font-size: clamp(28px, 2.8vw, 38px); color: #fff; }
.cta-band p { max-width: 620px; margin-top: 12px; font-size: 18px; }

/* Para quién */
.audience { display: grid; grid-template-columns: repeat(3, 1fr); column-gap: 44px; border-top: 1px solid var(--ink); }
.audience li { position: relative; padding: 28px 16px 28px 0; transition: padding .45s var(--ease-out), background-color .35s; }
.audience li::after {
  content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 1px; background: var(--line); transform-origin: left;
  transition: transform 1.1s var(--ease-out) var(--d, 0ms), background-color .35s, height .3s;
}
.audience li:hover { padding-left: 16px; background: var(--c-soft); }
.audience li:hover::after { height: 2px; background: var(--c); }
.audience h3 { display: flex; align-items: center; gap: 10px; font-size: 19px; transition: color .3s; }
.audience h3::before { content: ""; flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--c); }
.audience li:hover h3 { color: var(--c-ink); }
.audience p { margin-top: 6px; padding-left: 20px; font-size: 16px; color: var(--muted); }

/* Contabilidad */
.svc-list { border-top: 1px solid var(--ink); }
.svc-row {
  position: relative; isolation: isolate;
  display: grid; grid-template-columns: 5fr 7fr 44px; grid-template-areas: "name desc arrow";
  gap: 48px; align-items: center; padding: 26px 12px; border-bottom: 1px solid var(--line);
}
.svc-row::before { content: ""; position: absolute; inset: 0; z-index: -1; background: #fff; transform: scaleX(0); transform-origin: left; transition: transform .55s var(--ease-out); }
.svc-row:hover::before { transform: scaleX(1); }
.svc-row h3 { grid-area: name; font-size: 22px; transition: transform .45s var(--ease-out), color .3s; }
.svc-row:hover h3 { transform: translateX(8px); color: var(--blue-dark); }
.svc-row p { grid-area: desc; font-size: 16.5px; }
.row-arrow {
  grid-area: arrow; justify-self: end; box-sizing: content-box; padding: 10px; border-radius: 50%;
  background: var(--blue-soft); color: var(--blue);
  transition: transform .45s var(--ease-out), background-color .3s, color .3s;
}
.svc-row:hover .row-arrow { transform: translateX(4px) rotate(-45deg); background: var(--blue); color: #fff; }

/* Procesos en 4 pasos */
.process { display: grid; grid-template-columns: repeat(4, 1fr); gap: 40px; }
.process li { position: relative; padding-top: 30px; }
.process li::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 3px; border-radius: 3px; background: var(--c); transform-origin: left; transition: transform 1.2s var(--ease-out) var(--d, 0ms); }
.num {
  display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 18px; border-radius: 50%;
  background: var(--c-soft); color: var(--c-ink); font-size: 15px; font-weight: 700;
  transition: background-color .35s, color .35s, transform .5s var(--ease-out);
}
.process li:hover .num { background: var(--c); color: var(--c-on); transform: rotate(-10deg) scale(1.08); }
.process h3 { margin-bottom: 10px; font-size: 21px; }
.process p { font-size: 16.5px; }

/* Software y páginas web */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 72px; align-items: center; }
.split-media { position: relative; overflow: hidden; aspect-ratio: 4 / 3.4; border-radius: 16px; background: var(--line); }
.split-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.price-list { border-top: 1px solid var(--line); }
.price-list li { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--line); }
.price-list h3 { font-size: 19px; }
.price-list p { margin-top: 4px; font-size: 15.5px; color: var(--muted); }
.price { flex: none; padding: 7px 14px; border-radius: 999px; background: var(--gold-soft); font-size: 16px; font-weight: 700; color: #7a5600; }
.price.muted { padding: 0; background: none; font-weight: 500; color: var(--muted); }
.note { margin-top: 16px; font-size: 14px; color: var(--muted); }
.soft-process { margin-top: 88px; }

.tech-stack { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 72px; padding-top: 32px; border-top: 1px solid var(--line); }
.tech-stack h3 { font-size: 14px; font-weight: 600; letter-spacing: .04em; text-transform: uppercase; color: var(--muted); }
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border: 1px solid var(--line); border-radius: 999px;
  background: #fff; font-size: 14.5px; font-weight: 600; color: var(--ink);
  transition: transform .35s var(--ease-out), border-color .3s, background-color .3s;
}
.chip::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--c); }
.chip:hover { transform: translateY(-2px); border-color: var(--c); background: var(--c-soft); }
.soft-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 16px 28px; margin-top: 48px; }

/* Nosotros */
.about { position: relative; isolation: isolate; overflow: hidden; padding: 150px 0; background: var(--navy); color: rgba(255, 255, 255, .88); }
.about-bg { position: absolute; inset: 0; z-index: -2; width: 100%; height: 100%; object-fit: cover; }
.about::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(8, 22, 41, .95) 0%, rgba(11, 42, 88, .82) 48%, rgba(21, 96, 189, .3) 100%); }
.about-inner > * { max-width: 620px; }
.about h2 { font-size: clamp(32px, 3.3vw, 46px); color: #fff; }
.about p:not(.label) { margin-top: 20px; font-size: 18px; }

/* Movimiento de profundidad en fotos (lo controla main.js) */
[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.14); will-change: transform; }
.about-bg[data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.22); }

/* Preguntas */
.faq-grid { display: grid; grid-template-columns: 4fr 8fr; gap: 72px; align-items: start; }
.faq { border-top: 1px solid var(--ink); }
.faq details { position: relative; border-bottom: 1px solid var(--line); transition: background-color .4s; }
.faq details::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--rainbow); transform: scaleY(0); transform-origin: top; transition: transform .45s var(--ease-out); }
.faq details[open]:not(.closing) { background: linear-gradient(90deg, var(--blue-soft), rgba(232, 241, 252, 0) 80%); }
.faq details[open]:not(.closing)::before { transform: scaleY(1); }
.faq summary { position: relative; padding: 24px 52px 24px 18px; list-style: none; cursor: pointer; font-size: 18px; font-weight: 600; color: var(--ink); transition: color .25s; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::before, .faq summary::after { content: ""; position: absolute; top: 50%; background: var(--blue); transition: transform .45s var(--ease-out); }
.faq summary::after { right: 8px; width: 16px; height: 2px; margin-top: -1px; }
.faq summary::before { right: 15px; width: 2px; height: 16px; margin-top: -8px; }
.faq details[open]:not(.closing) summary::before { transform: scaleY(0); }
.faq summary:hover { color: var(--blue); }
.faq-body { overflow: hidden; }
.faq-body p { padding: 0 52px 24px 18px; font-size: 16.5px; }

/* Contacto */
.contact-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 88px; align-items: start; }
.contact-list { margin: 44px 0 0; border-top: 1px solid var(--line); }
.contact-list div { padding: 20px 0; border-bottom: 1px solid var(--line); }
.contact-list dt { font-size: 14px; color: var(--muted); }
.contact-list dd { margin: 4px 0 0; font-size: 19px; font-weight: 600; color: var(--ink); }
.contact-list a:hover { color: var(--blue); }

.form { position: relative; overflow: hidden; padding: 52px 48px 48px; background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 30px 60px -40px rgba(11, 31, 58, .35); }
.form::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px; background: var(--rainbow); }
.form h3 { font-size: 24px; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 22px 20px; margin-top: 30px; }
.field { display: grid; gap: 8px; min-width: 0; margin: 0; padding: 0; border: 0; }
.field.full { grid-column: 1 / -1; }
/* Los campos opcionales participan de la misma cuadrícula; en celular se pueden esconder */
.form-extra { display: contents; }
.field label, .field legend { padding: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.field input, .field textarea, .field select {
  width: 100%; padding: 13px 15px; border: 1px solid #d9d0c0; border-radius: 6px; background: #fffdf9; font-size: 16px;
  transition: border-color .25s, box-shadow .25s, background-color .25s;
}
.field input, .field select { height: 52px; }
.field select {
  padding: 0 42px 0 14px; cursor: pointer; -webkit-appearance: none; appearance: none;
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%233d4550' stroke-width='1.6'/%3E%3C/svg%3E") no-repeat right 16px center;
}
.field textarea { min-height: 120px; resize: vertical; }
.field input:hover, .field textarea:hover, .field select:hover { border-color: #b9ad98; background: #fff; }
.field input:focus, .field textarea:focus, .field select:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px rgba(21, 96, 189, .14); }
.field input.invalid { border-color: #b42318; animation: shake .4s var(--ease-out); }
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 12px 24px; margin-top: 6px; }
.checks label { display: flex; align-items: center; gap: 10px; font-size: 15.5px; font-weight: 400; color: var(--text); cursor: pointer; transition: color .2s; }
.checks label:hover { color: var(--blue); }
.checks input { width: 18px; height: 18px; margin: 0; accent-color: var(--blue); }
.form-msg { margin-top: 18px; font-size: 15px; font-weight: 600; color: #b42318; }
.form-msg:not([hidden]) { animation: fade-up .4s var(--ease-out); }
.form-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.form-note { margin-top: 14px; font-size: 14px; color: var(--muted); }

/* ---------- Pie ---------- */
.footer { position: relative; padding: 76px 0 32px; background: var(--navy); font-size: 15.5px; color: rgba(255, 255, 255, .7); }
.footer::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rainbow); }
.footer-grid { display: grid; grid-template-columns: 4fr 2fr 2fr 2fr 3fr; gap: 40px; }
.footer-brand img { width: auto; height: 60px; margin-bottom: 18px; }
.footer-brand p { max-width: 320px; }
.footer h4 { margin-bottom: 18px; font-size: 15px; color: #fff; }
.footer ul { display: grid; gap: 10px; justify-items: start; }
.footer a:hover { color: #fff; }
.footer-bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px 24px; margin-top: 56px; padding-top: 24px; border-top: 1px solid rgba(255, 255, 255, .12); font-size: 14px; }
.footer-legal { display: flex; flex-wrap: wrap; gap: 8px 22px; }

/* ---------- Consentimiento del formulario ---------- */
.consent { display: flex; align-items: flex-start; gap: 10px; margin-top: 22px; font-size: 14.5px; line-height: 1.5; color: var(--text); cursor: pointer; }
.consent input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--blue); }
.consent a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.consent.invalid span { color: #b42318; }
.consent.invalid input { animation: shake .4s var(--ease-out); }
.careers-note a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Aviso de cookies ---------- */
.cookie-banner {
  position: fixed; left: 24px; bottom: 24px; z-index: 60; max-width: 440px; overflow: hidden;
  padding: 22px 22px 18px; border: 1px solid var(--line); border-radius: 14px; background: #fff;
  box-shadow: 0 24px 50px -20px rgba(11, 31, 58, .45);
  opacity: 0; transform: translateY(24px); transition: opacity .5s var(--ease-out), transform .6s var(--ease-out);
}
.cookie-banner[hidden] { display: none; }
.cookie-banner::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px; background: var(--rainbow); }
.cookie-banner.is-visible { opacity: 1; transform: none; }
.cookie-banner p { font-size: 14.5px; line-height: 1.55; color: var(--text); }
.cookie-banner strong { color: var(--ink); }
.cookie-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 14px; }
.btn-sm { padding: 10px 20px; font-size: 14px; }

/* ---------- Página legal ---------- */
.legal-hero {
  padding: 72px 0 52px; border-bottom: 1px solid var(--line);
  background: radial-gradient(760px 420px at 90% 0%, #dcecff 0%, rgba(220, 236, 255, 0) 62%), radial-gradient(600px 360px at 0% 100%, #fff0cc 0%, rgba(255, 240, 204, 0) 58%), var(--cream);
}
.legal-hero h1 { max-width: 820px; font-size: clamp(34px, 4vw, 52px); line-height: 1.1; letter-spacing: -.014em; }
.legal-hero h1::after { content: ""; display: block; width: 64px; height: 4px; margin-top: 22px; border-radius: 4px; background: var(--rainbow); }
.legal-hero p:not(.label) { margin-top: 18px; color: var(--muted); }
.legal { padding: 64px 0 110px; }
.legal-grid { display: grid; grid-template-columns: 270px 1fr; gap: 64px; align-items: start; }
.legal-toc { position: sticky; top: calc(var(--header-h) + 24px); padding: 24px; border: 1px solid var(--line); border-radius: 14px; background: var(--gray); }
.legal-toc h2 { margin-bottom: 14px; font-size: 13px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); }
.legal-toc ol { display: grid; gap: 9px; counter-reset: toc; }
.legal-toc li { counter-increment: toc; display: flex; gap: 8px; font-size: 15px; }
.legal-toc li::before { content: counter(toc) "."; min-width: 20px; font-weight: 600; color: var(--blue); }
.legal-toc a { color: var(--text); transition: color .2s; }
.legal-toc a:hover { color: var(--blue); }
.legal-body { max-width: 780px; }
.legal-intro { margin-bottom: 44px; font-size: 19px; color: var(--ink); }
.legal-body section { margin-bottom: 44px; }
.legal-body h2 { margin-bottom: 14px; font-size: 26px; }
.legal-body p, .legal-body li { font-size: 17px; }
.legal-body p + p { margin-top: 12px; }
.legal-body ul { display: grid; gap: 9px; margin: 14px 0; padding-left: 22px; list-style: disc; }
.legal-body li::marker { color: var(--blue); }
.legal-body a:not(.link-arrow) { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }
.legal-note { padding: 16px 20px; border-left: 3px solid var(--teal); border-radius: 0 10px 10px 0; background: var(--teal-soft); color: var(--ink); }

/* ---------- Decoración: mapa de Centroamérica a los lados de las secciones ---------- */
/* El mapa ocupa el margen vacío de cada lado y solo asoma --map-peek hacia el contenido */
.deco-map { --map-w: 560px; --map-peek: 90px; position: relative; isolation: isolate; overflow: hidden; }
.deco-map::before {
  content: ""; position: absolute; z-index: -1; top: 50%; width: var(--map-w); aspect-ratio: 636 / 480; pointer-events: none;
  background: url("../assets/img/mapa-centroamerica.svg") no-repeat center / contain;
  animation: map-drift 18s ease-in-out infinite alternate;
}
.deco-left::before { left: calc(max(0px, (100vw - var(--container)) / 2) - var(--map-w) + var(--map-peek)); }
.deco-right::before { right: calc(max(0px, (100vw - var(--container)) / 2) - var(--map-w) + var(--map-peek)); }
@keyframes map-drift { from { transform: translateY(-54%) rotate(-4deg); } to { transform: translateY(-46%) rotate(3deg); } }

/* ---------- Decoración: figuras de colores en los márgenes ---------- */
/* Cada sección elige una figura por lado (l-… / r-…). Las figuras quedan siempre en el
   margen, a --orn-gap del contenido; si el margen es angosto asoman desde el borde. */
.orn {
  --orn-edge: max(0px, (100vw - var(--container)) / 2);
  --orn-gap: 16px;
  --orn-w: clamp(120px, var(--orn-edge) - var(--orn-gap), 300px);
  --orn-x: calc(var(--orn-edge) - var(--orn-w) - var(--orn-gap));
  background-image: var(--orn-l, none), var(--orn-r, none), var(--orn-base, none);
  background-repeat: no-repeat;
  background-size: var(--orn-w) auto, var(--orn-w) auto, 100% 100%;
  background-position: left var(--orn-x) top 35%, right var(--orn-x) top 65%, 0 0;
}
.l-arcos { --orn-l: url("../assets/img/deco/arcos.svg"); }
.l-ruta { --orn-l: url("../assets/img/deco/ruta.svg"); }
.l-formas { --orn-l: url("../assets/img/deco/formas.svg"); }
.r-arcos { --orn-r: url("../assets/img/deco/arcos.svg"); }
.r-ruta { --orn-r: url("../assets/img/deco/ruta.svg"); }
.r-formas { --orn-r: url("../assets/img/deco/formas.svg"); }
.team.orn { --orn-base: linear-gradient(160deg, #0b1f3a 0%, #0f2d57 55%, #0b3b5c 100%); }

/* ---------- Portada: banderas de Centroamérica ---------- */
.hero-region { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; margin-top: 28px; font-size: 14.5px; font-weight: 500; color: var(--muted); }
.hero-flags { display: flex; padding-left: 6px; }
.hero-flags img {
  width: 28px; height: 21px; margin-left: -3px; border-radius: 4px; object-fit: cover;
  box-shadow: 0 0 0 2px var(--cream), 0 3px 8px -2px rgba(11, 31, 58, .35);
  transition: margin .45s var(--ease-out), transform .45s var(--ease-out);
}
.hero-region:hover .hero-flags img { margin-left: 3px; }
.hero-flags img:hover { transform: translateY(-3px) scale(1.12); }
.js .hero-region { animation: fade-up .9s var(--ease-out) .68s backwards; }

/* ---------- Centroamérica ---------- */
.region-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: 64px; align-items: center; }
.flags { display: flex; flex-wrap: wrap; gap: 12px; margin: 36px 0; }
.flag {
  position: relative; flex: 0 0 calc(25% - 9px); display: flex; flex-direction: column; align-items: center; gap: 9px;
  padding: 18px 8px 14px; border: 1px solid var(--line); border-radius: 14px; background: #fff; text-align: center;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .3s;
}
.flag img { width: 58px; height: 43px; border-radius: 6px; object-fit: cover; box-shadow: 0 0 0 1px rgba(11, 31, 58, .1), 0 8px 16px -10px rgba(11, 31, 58, .5); transition: transform .5s var(--ease-out); }
.flag span { font-size: 14px; font-weight: 600; line-height: 1.25; color: var(--ink); }
.flag em { position: absolute; top: -10px; right: -6px; padding: 2px 9px; border-radius: 999px; background: var(--gold); font-size: 11px; font-style: normal; font-weight: 700; color: var(--navy); }
.flag.is-home { border-color: color-mix(in srgb, var(--gold) 60%, var(--line)); box-shadow: 0 14px 28px -20px rgba(242, 176, 30, .9); }
.flag:hover { transform: translateY(-5px); border-color: transparent; box-shadow: 0 20px 34px -20px rgba(11, 31, 58, .45); }
.flag:hover img { transform: scale(1.08) rotate(-3deg); }
.region-map { position: relative; }
.region-map::before { content: ""; position: absolute; inset: 8% 6%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, rgba(242, 176, 30, .16), rgba(242, 176, 30, 0)); }
.region-map img { width: 100%; height: auto; }

/* ---------- Página 404 ---------- */
.notfound {
  padding: 110px 0 130px; text-align: center;
  background: radial-gradient(900px 520px at 88% 0%, #dcecff 0%, rgba(220, 236, 255, 0) 62%), radial-gradient(760px 460px at 0% 100%, #fff0cc 0%, rgba(255, 240, 204, 0) 58%), var(--cream);
}
.notfound-code {
  display: inline-block; padding: 0 .04em; /* el degradado ocupa solo el ancho del número */
  font-size: clamp(110px, 18vw, 210px); font-weight: 700; line-height: 1; letter-spacing: -.05em;
  background: var(--rainbow); -webkit-background-clip: text; background-clip: text; color: transparent;
}
.notfound h1 { margin-top: 12px; font-size: clamp(30px, 3.6vw, 46px); }
.notfound-text { max-width: 560px; margin: 18px auto 0; font-size: 18px; color: var(--text); }
.notfound-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 14px; margin-top: 34px; }
.notfound-links { justify-content: center; margin-top: 40px; }
.notfound-links .chip { padding: 0; }
.notfound-links .chip a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; }
.notfound-links .chip::before { margin-left: 14px; margin-right: -8px; }
.footer-compact { padding-top: 8px; }
.footer-compact .footer-bottom { margin-top: 0; border-top: 0; }

/* Contenedor oculto de los íconos SVG */
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }

/* ---------- WhatsApp ---------- */
.wa-float { position: fixed; right: 24px; bottom: 24px; z-index: 40; width: 56px; height: 56px; display: grid; place-items: center; border-radius: 50%; background: var(--wa); color: #fff; box-shadow: 0 6px 18px rgba(0, 0, 0, .2); transition: transform .35s var(--ease-out), box-shadow .35s, bottom .45s var(--ease-out); }
.wa-float:hover { transform: translateY(-3px) scale(1.06); box-shadow: 0 12px 26px rgba(0, 0, 0, .25); }
.js .wa-float { animation: pop-in .7s var(--ease-out) 1.3s backwards; }

/* ---------- Aparición al hacer scroll (lo controla main.js) ---------- */
[data-reveal] { transition: opacity .9s var(--ease-out) var(--d, 0ms), transform 1s var(--ease-out) var(--d, 0ms); }
.js [data-reveal]:not(.in) { opacity: 0; transform: translate3d(0, 28px, 0); }
.js .client[data-reveal]:not(.in) { transform: translate3d(0, 24px, 0) scale(.94); }

/* Fotos: una cortina del color de la sección se retira hacia arriba
   (no se usa clip-path porque el navegador tomaría la foto como "no visible") */
[data-reveal="mask"] { transition: none; }
.js [data-reveal="mask"]:not(.in) { opacity: 1; transform: none; }
[data-reveal="mask"]::after {
  content: ""; position: absolute; inset: 0; z-index: 1; background: var(--cream); pointer-events: none;
  transform-origin: top; transition: transform 1.3s var(--ease-in-out) var(--d, 0ms);
}
.section-gray [data-reveal="mask"]::after { background: var(--gray); }
.js [data-reveal="mask"]:not(.in)::after { transform: scaleY(1); }
[data-reveal="mask"].in::after { transform: scaleY(0); }

.js .includes li:not(.in)::before,
.js .includes li:not(.in)::after,
.js .audience li:not(.in)::after,
.js .process li:not(.in)::before { transform: scaleX(0); }

/* ---------- Animaciones ---------- */
@keyframes fade-up { from { opacity: 0; transform: translate3d(0, 24px, 0); } }
@keyframes mask-up { from { opacity: 0; transform: translate3d(0, 40px, 0); clip-path: inset(0 0 100% 0); } to { clip-path: inset(0 0 0 0); } }
@keyframes collage-in { from { opacity: 0; scale: .88; } }
@keyframes bob { 50% { translate: 0 -12px; } }
@keyframes spin-in { from { opacity: 0; transform: rotate(-40deg) scale(.5); } }
@keyframes progress { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes gradient-pan { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes pop-in { from { opacity: 0; transform: translateY(16px) scale(.7); } }
@keyframes shake { 20%, 60% { transform: translateX(-4px); } 40%, 80% { transform: translateX(4px); } }
@keyframes menu-link { from { opacity: 0; transform: translate3d(0, -8px, 0); } }

/* =========================================================
   Acabado fino: textura, profundidad, titulares por línea,
   fotos tratadas y cortina de entrada
   ========================================================= */

/* Grano muy tenue sobre toda la página: quita el aspecto plano de plantilla */
html::after {
  content: ""; position: fixed; inset: 0; z-index: 400; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='160' height='160' filter='url(%23n)'/%3E%3C/svg%3E") repeat;
}

/* Más aire en la portada y en los titulares grandes */
.hero { padding: 96px 0 104px; }
.hero-lead { max-width: 520px; font-size: 19px; }
.about h2 { font-size: clamp(33px, 3.9vw, 54px); line-height: 1.1; letter-spacing: -.014em; }
.cta-band h2 { font-size: clamp(30px, 3.1vw, 44px); letter-spacing: -.012em; }

/* Sombras más grandes y suaves en las tarjetas */
.pillar:hover { box-shadow: 0 40px 70px -42px rgba(11, 31, 58, .55); }
.client:hover { box-shadow: 0 34px 60px -38px rgba(11, 31, 58, .5); }
.flag:hover { box-shadow: 0 34px 60px -38px rgba(11, 31, 58, .5); }
.form { box-shadow: 0 60px 100px -70px rgba(11, 31, 58, .6); }
.careers-card { box-shadow: 0 60px 110px -80px rgba(11, 31, 58, .55); }

/* Brillo suave que sigue al mouse dentro de la tarjeta (--mx y --my los pone js/main.js) */
.pillar, .client, .area, .flag { isolation: isolate; }
.pillar::after, .client::before, .area::after, .flag::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none;
  opacity: 0; transition: opacity .5s var(--ease-out);
  background: radial-gradient(260px circle at var(--mx, 50%) var(--my, 0%), var(--glow, rgba(21, 96, 189, .14)), transparent 68%);
}
.pillar:hover::after, .client:hover::before, .area:hover::after, .flag:hover::after { opacity: 1; }
.pillar { --glow: color-mix(in srgb, var(--pc) 16%, transparent); }
.client { --glow: color-mix(in srgb, var(--c) 14%, transparent); }
.area { --glow: rgba(255, 255, 255, .12); }
.flag { --glow: rgba(242, 176, 30, .2); }

/* Titulares que aparecen línea por línea detrás de una máscara (las líneas las arma js/main.js) */
.js .split-lines .line { display: block; overflow: hidden; }
.js .split-lines .line > span { display: block; will-change: transform; }
.js .split-lines:not(.shown) .line > span,
.js [data-reveal]:not(.in) .split-lines .line > span { transform: translate3d(0, 108%, 0); }
.js .split-lines .line > span { transition: transform 1.05s var(--ease-out) var(--ld, 0ms); }
/* El bloque con titular por líneas no se mueve entero: solo se mueven las líneas */
.js .has-lines:not(.in) { opacity: 1; transform: none; }
.js .has-lines .label { opacity: 0; transform: translate3d(0, 14px, 0); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.js .has-lines.in .label { opacity: 1; transform: none; }

/* Fotos: velo con el color de la marca y un acercamiento lento al aparecer */
.feature-media::before, .split-media::before, .collage-item::before, .region-map::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(205deg, rgba(21, 96, 189, .14) 0%, rgba(11, 31, 58, 0) 42%, rgba(11, 31, 58, .3) 100%);
}
.region-map::after { display: none; }
.feature-media img:not([data-parallax]), .split-media img:not([data-parallax]) {
  transform: scale(1.07); transition: transform 1.8s var(--ease-out);
}
[data-reveal="mask"].in img:not([data-parallax]) { transform: none; }

/* Cortina de entrada: solo la primera visita de la sesión (js/early.js decide) */
.intro {
  position: fixed; inset: 0; z-index: 500; display: none; place-items: center;
  background: var(--navy); transition: transform .9s var(--ease-in-out), opacity .6s ease .3s;
}
.intro-on .intro, .intro.is-done { display: grid; }
.intro-on body { overflow: hidden; }
.intro-inner { display: grid; justify-items: center; gap: 22px; }
.intro-inner img { width: auto; height: 78px; animation: fade-up .8s var(--ease-out) backwards; }
.intro-bar { display: block; width: 180px; height: 3px; border-radius: 3px; background: rgba(255, 255, 255, .14); overflow: hidden; }
.intro-bar::after { content: ""; display: block; height: 100%; background: var(--rainbow); transform: scaleX(0); transform-origin: left; animation: progress 1s var(--ease-in-out) .15s forwards; }
.intro.is-done { transform: translate3d(0, -100%, 0); opacity: 0; }
/* Mientras la cortina está puesta, la portada espera para animarse */
.intro-on .hero *, .intro-on .header * { animation-play-state: paused; }

/* =========================================================
   Menos plantilla: fuera los circulitos de colores, las pastillas
   y el arcoíris repetido. Estructura con líneas finas, números
   grandes en la serif y un solo acento por sección.
   ========================================================= */

/* Antetítulo con el color de su sección */
.label { color: var(--c-ink); }
.label-light { color: #9cc3f5; }

/* Rayita bajo el titular: del color de la sección, no arcoíris */
.section h2::after, .about h2::after { width: 54px; height: 3px; background: var(--c); }
.about h2::after { background: var(--gold); }

/* Titulares grandes un punto más ligeros: la serif se ve más fina así */
h1, .section h2, .about h2, .cta-band h2, .legal-hero h1 { font-weight: 560; }
.stat-num, .num, .price { font-variant-numeric: lining-nums tabular-nums; }

/* Pasos: números grandes en la serif, separados por líneas finas */
.process { grid-template-columns: repeat(4, 1fr); gap: 0; border-top: 1px solid var(--line); }
.process li { padding: 34px 34px 0 0; }
.process li + li { padding-left: 34px; border-left: 1px solid var(--line); }
.process li::before { height: 2px; background: var(--c); border-radius: 0; }
.num {
  display: block; width: auto; height: auto; margin-bottom: 16px; border-radius: 0; background: none;
  font-family: var(--font-display); font-size: 42px; font-weight: 500; line-height: 1;
  color: color-mix(in srgb, var(--ink) 24%, transparent); transition: color .45s var(--ease-out);
}
.process li:hover .num { background: none; color: var(--c-ink); transform: none; }
.process h3 { margin-bottom: 8px; font-size: 20px; }

/* Pasos del cobro: el número también en la serif */
.steps li::before { font-family: var(--font-display); font-size: 17px; font-weight: 500; color: color-mix(in srgb, var(--ink) 30%, transparent); transition: color .35s; }
.steps li.is-active::before { color: var(--c-ink); }

/* Tecnologías: lista de texto separada por líneas, sin pastillas ni puntos */
.tech-stack { align-items: baseline; gap: 10px 26px; }
.chips { gap: 8px 0; }
.chip { padding: 2px 16px; border: 0; border-left: 1px solid var(--line); border-radius: 0; background: none; font-size: 15px; font-weight: 500; color: var(--ink); }
.chip::before { display: none; }
.chip:first-child { padding-left: 0; border-left: 0; }
.chip:hover { transform: none; background: none; border-color: var(--line); color: var(--c-ink); }

/* Para quién: una rayita en lugar del punto de color */
.audience h3::before { width: 18px; height: 1px; border-radius: 0; background: color-mix(in srgb, var(--ink) 35%, transparent); transition: background-color .3s, width .35s var(--ease-out); }
.audience li:hover h3::before { width: 26px; background: var(--c); }
.audience p { padding-left: 28px; }

/* Cifras del equipo: todas del mismo color, con el peso en la tipografía */
.stat-num { color: #fff; }
.stat-label { margin-top: 14px; font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: rgba(255, 255, 255, .55); }

/* Áreas del equipo: la etiqueta deja de ser pastilla de color */
.area-tag {
  display: block; margin-bottom: 14px; padding: 0; border-radius: 0; background: none;
  font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: rgba(255, 255, 255, .5);
}
.area::before { background: rgba(255, 255, 255, .22); }
.area:hover::before { background: var(--gold); }

/* Franja de compromisos: sin puntos de colores */
.facts-list li { padding: 40px 44px; }
.facts-list li:first-child { padding-left: 0; }
.facts-list strong { display: block; font-family: var(--font-display); font-size: 20px; font-weight: 560; color: #fff; }
.facts-list strong::before { display: none; }
.facts-list span { margin-top: 8px; padding-left: 0; color: rgba(255, 255, 255, .65); }

/* El arcoíris queda solo en la barra de lectura y en la cortina de entrada */
.facts::before, .team::before, .footer::before {
  height: 2px; background: linear-gradient(90deg, var(--gold), rgba(242, 176, 30, 0) 55%);
}
.form::before { height: 3px; background: var(--c); }
.cookie-banner::before { height: 3px; background: var(--gold); }
.faq details::before { background: var(--c); }
.legal-hero h1::after { width: 54px; height: 3px; background: var(--gold); }

/* Barra de lectura en un solo color */
.progress { height: 2px; background: var(--gold); }

/* Precio sin pastilla: peso tipográfico en lugar de fondo de color */
.price { padding: 0; border-radius: 0; background: none; font-size: 17px; font-weight: 700; color: var(--ink); }
.price.muted { font-size: 16px; font-weight: 500; color: var(--muted); }

/* Fotos: mismo tratamiento en todas para que se vean de la misma familia */
.feature-media img, .split-media img, .collage-item img, .about-bg { filter: saturate(.82) contrast(1.06); }

/* Trabaje con nosotros: tarjeta sobria en lugar del degradado de tres colores */
.careers-card { background: #fff; border-color: var(--line); }
.careers-card::after { border-color: var(--gold); opacity: .1; }

/* =========================================================
   Portada: foto grande con tarjetas, fila de cifras,
   tarjetas de servicio con ícono y tira de logos
   ========================================================= */

/* Cifras bajo el texto de portada */
.hero-stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 18px; margin-top: 34px; }
.hero-stats li {
  display: grid; grid-template-columns: auto 1fr; grid-template-rows: auto auto;
  column-gap: 10px; align-items: center;
}
.hero-stats svg { grid-row: 1 / 3; width: 20px; height: 20px; color: var(--blue); }
.hero-stats strong { font-family: var(--font-display); font-size: 22px; font-weight: 600; line-height: 1.1; color: var(--ink); font-variant-numeric: lining-nums tabular-nums; }
.hero-stats span { font-size: 11.5px; line-height: 1.35; color: var(--muted); }
.js .hero-stats { animation: fade-up .9s var(--ease-out) .58s backwards; }

/* Foto grande que cambia con la frase */
.hero-media { position: relative; }
.hero-photo {
  position: relative; aspect-ratio: 4 / 3.15; overflow: hidden; border-radius: 20px; background: var(--line);
  box-shadow: 0 50px 90px -52px rgba(11, 31, 58, .7);
}
.hero-photo .collage-item {
  position: absolute; inset: 0; width: auto; height: auto; border-radius: 0; box-shadow: none; opacity: 0;
  scale: 1.06; transition: opacity 1.1s var(--ease-out), scale 7s linear;
}
.hero-photo .collage-item.is-active { z-index: 1; opacity: 1; scale: 1; }
.hero-photo .collage-item img { width: 100%; height: 100%; object-fit: cover; }
.hero-photo .collage-tag { z-index: 2; left: 18px; bottom: 18px; }
.js .hero-photo .collage-item { animation: none; }
.js .hero-photo { animation: collage-in 1.1s var(--ease-out) .2s backwards; }

/* Tarjetas sobre la foto (solo datos ciertos) */
.hero-card {
  position: absolute; z-index: 3; display: flex; align-items: flex-start; gap: 12px; width: 246px;
  padding: 14px 16px; border-radius: 14px; background: #fff; box-shadow: 0 26px 52px -26px rgba(11, 31, 58, .55);
}
.hero-card strong { display: block; font-size: 14.5px; font-weight: 600; color: var(--ink); }
.hero-card span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: var(--muted); }
.hero-card-icon { flex: none; display: grid; place-items: center; width: 38px; height: 38px; border-radius: 11px; background: var(--blue-soft); color: var(--blue); }
.hero-card-icon.is-check { background: var(--teal-soft); color: var(--teal); }
.hero-card-a { top: 36px; left: -38px; }
.hero-card-b { right: -30px; bottom: 46px; }
.js .hero-card { animation: pop-in .8s var(--ease-out) .95s backwards; }
.js .hero-card-b { animation-delay: 1.1s; }

/* Tarjetas de servicio con ícono en recuadro */
.pillar-icon {
  display: grid; place-items: center; width: 54px; height: 54px; margin-bottom: 20px; border-radius: 15px;
  background: var(--pc); color: #fff; transition: transform .5s var(--ease-out), box-shadow .5s;
}
.pillar:hover .pillar-icon { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 14px 26px -14px color-mix(in srgb, var(--pc) 80%, transparent); }
.pillar-num { position: absolute; top: 26px; right: 26px; font-size: 13px; color: color-mix(in srgb, var(--ink) 26%, transparent); }

/* Tira de logos en carrusel: avanza sola y se detiene al pasar el mouse */
/* Banda en blanco: es el mismo fondo que traen los logos, así no se ven recuadros */
.logo-strip { padding: 18px 0 16px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; }
.strip-label { margin-bottom: 10px; text-align: center; font-size: 10px; font-weight: 600; letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.strip-label a { transition: color .3s; }
.strip-label a:hover { color: var(--blue); }
/* Los bordes se desvanecen para que los logos entren y salgan sin corte seco */
.strip-viewport {
  overflow: hidden; background: #fff;
  -webkit-mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
  mask-image: linear-gradient(90deg, transparent, #000 7%, #000 93%, transparent);
}
.strip-rail { display: flex; width: max-content; animation: strip-scroll 46s linear infinite; }
.strip-viewport:hover .strip-rail { animation-play-state: paused; }
.strip-track { display: flex; align-items: center; gap: 40px; padding-right: 40px; }
.strip-track img {
  width: 86px; height: auto; filter: grayscale(1) contrast(1.06); opacity: .62;
  transition: filter .45s, opacity .45s, transform .45s var(--ease-out);
}
.strip-track li:hover img { filter: none; opacity: 1; transform: translateY(-2px); }
@keyframes strip-scroll { to { transform: translate3d(-50%, 0, 0); } }

/* Página de "solicitud enviada" */
.thanks-check {
  display: grid; place-items: center; width: 84px; height: 84px; margin: 0 auto 26px; border-radius: 50%;
  background: var(--teal-soft); color: var(--teal); animation: pop-in .8s var(--ease-out) backwards;
}

/* Campo trampa para robots de spam: invisible para las personas */
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }

/* ---------- Recursos: tarjetas de guías ---------- */
.guides { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.guide { display: flex; }
.guide > a {
  display: flex; flex-direction: column; gap: 12px; width: 100%; padding: 32px 30px 28px;
  border: 1px solid var(--line); border-radius: 18px; background: #fff;
  transition: transform .45s var(--ease-out), box-shadow .45s var(--ease-out), border-color .35s;
}
.guide > a:hover { transform: translateY(-6px); border-color: transparent; box-shadow: 0 34px 60px -38px rgba(11, 31, 58, .5); }
.guide-tag { font-size: 11.5px; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--c-ink); }
.guide h3 { font-size: 21px; line-height: 1.25; }
.guide p { font-size: 16px; color: var(--muted); }
.guide .link-arrow { margin-top: auto; padding-top: 6px; }
.guide > a:hover .link-arrow svg { transform: translateX(5px); }

/* ---------- Menú desplegable de servicios y redes ---------- */
.menu-item { position: relative; display: flex; align-items: center; }
.menu-item > a { display: flex; align-items: center; gap: 7px; padding-top: 2px; font-size: 15px; font-weight: 500; color: rgba(255, 255, 255, .8); transition: color .25s; }
.menu-item > a:hover, .menu-item:hover > a, .menu-item:focus-within > a { color: #fff; }
.caret { transition: transform .35s var(--ease-out); }
.menu-item:hover .caret, .menu-item:focus-within .caret { transform: rotate(180deg); }
.submenu {
  position: absolute; top: calc(100% - 10px); left: -16px; z-index: 5; width: 340px; display: grid; gap: 2px;
  padding: 10px; border: 1px solid rgba(255, 255, 255, .1); border-radius: 16px; background: var(--bar-top);
  box-shadow: 0 34px 60px -30px rgba(0, 0, 0, .75);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity .3s var(--ease-out), transform .35s var(--ease-out), visibility 0s linear .35s;
}
.menu-item:hover .submenu, .menu-item:focus-within .submenu { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.submenu a { display: block; padding: 12px 14px; border-radius: 11px; transition: background-color .25s; }
.submenu a:hover { background: rgba(255, 255, 255, .07); }
.submenu strong { display: block; font-size: 14.5px; font-weight: 600; color: #fff; }
.submenu span { display: block; margin-top: 3px; font-size: 12.5px; line-height: 1.4; color: rgba(255, 255, 255, .6); }

.topbar-links { align-items: center; }
.topbar-social { display: inline-flex; align-items: center; background-image: none; color: rgba(255, 255, 255, .72); transition: color .25s, transform .3s var(--ease-out); }
.topbar-social:hover { color: #fff; transform: translateY(-1px); }
.footer-social { display: inline-flex; align-items: center; gap: 9px; margin-top: 18px; font-size: 14.5px; font-weight: 500; }

/* ---------- Responsive ---------- */
@media (max-width: 1200px) {
  .header-inner { gap: 28px; }
  .menu { gap: 22px; }
}

@media (max-width: 1080px) {
  .menu { gap: 20px; }
  .menu a { font-size: 14px; }
  .header-cta { display: none; }
  .feature, .split, .contact-grid { gap: 56px; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .hero-collage { height: 480px; }
}

@media (max-width: 980px) {
  .menu, .header-cta { display: none; }
  .menu-toggle { display: grid; }
  .brand-tag { padding-left: 12px; font-size: 9.5px; letter-spacing: .1em; }
  .mobile-menu {
    display: grid; grid-template-rows: 0fr; visibility: hidden; border-top: 1px solid transparent;
    transition: grid-template-rows .45s var(--ease-out), visibility 0s linear .45s, border-color .3s;
  }
  .header.menu-open .mobile-menu { grid-template-rows: 1fr; visibility: visible; border-top-color: rgba(255, 255, 255, .1); transition: grid-template-rows .45s var(--ease-out), border-color .3s; }
  .header.menu-open .mobile-menu a { animation: menu-link .5s var(--ease-out) backwards; }
  .header.menu-open .mobile-menu a:nth-child(2) { animation-delay: .04s; }
  .header.menu-open .mobile-menu a:nth-child(3) { animation-delay: .08s; }
  .header.menu-open .mobile-menu a:nth-child(4) { animation-delay: .12s; }
  .header.menu-open .mobile-menu a:nth-child(5) { animation-delay: .16s; }
  .header.menu-open .mobile-menu a:nth-child(6) { animation-delay: .2s; }
  .header.menu-open .mobile-menu a:nth-child(7) { animation-delay: .24s; }

  .hero { padding: 56px 0 64px; }
  .hero-grid { grid-template-columns: 1fr; gap: 44px; }
  .hero-collage { height: 440px; max-width: 620px; width: 100%; margin-inline: auto; }
  .hero-media { max-width: 620px; margin-inline: auto; }
  .hero-card-a { left: 0; }
  .hero-card-b { right: 0; }
  .pillars { grid-template-columns: 1fr; gap: 14px; margin-top: 48px; }
  .pillar { padding: 24px 22px 22px; }

  .facts-list { grid-template-columns: 1fr; }
  .facts-list li, .facts-list li:first-child { padding: 22px 0; border-left: 0; border-top: 1px solid rgba(255, 255, 255, .16); }
  .facts-list li:first-child { border-top: 0; }

  .section { padding: 88px 0; }
  .clients { padding: 88px 0; }
  .section-intro { grid-template-columns: 1fr; gap: 16px; margin-bottom: 44px; }

  .svc-row { grid-template-columns: 1fr 42px; grid-template-areas: "name arrow" "desc desc"; gap: 8px 16px; padding: 22px 4px; }

  .feature, .split, .faq-grid, .contact-grid { grid-template-columns: 1fr; gap: 48px; }
  .feature-media { min-height: 0; aspect-ratio: 4 / 3; }

  .process { grid-template-columns: 1fr 1fr; gap: 0; }
  .process li:nth-child(odd) { padding-left: 0; border-left: 0; }
  .process li:nth-child(n+3) { margin-top: 34px; padding-top: 34px; border-top: 1px solid var(--line); }
  .soft-process { margin-top: 64px; }
  .includes { grid-template-columns: 1fr 1fr; gap: 40px 32px; }
  .audience { grid-template-columns: 1fr 1fr; column-gap: 32px; }
  .cta-band { padding: 64px 0; }
  .cta-inner { flex-direction: column; align-items: flex-start; gap: 28px; }
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 48px; }
  .stat:nth-child(odd) { padding-left: 0; border-left: 0; }
  .stat:nth-child(even) { border-left: 1px solid rgba(255, 255, 255, .14); }
  .stat:nth-child(n+3) { border-top: 1px solid rgba(255, 255, 255, .14); }
  .areas { grid-template-columns: 1fr 1fr; }
  .careers-card { grid-template-columns: 1fr; gap: 32px; padding: 44px 32px; }
  .legal-grid { grid-template-columns: 1fr; gap: 36px; }
  .legal-toc { position: static; }
  .guides { grid-template-columns: 1fr 1fr; }
  /* En celular la tira de clientes se ve apenas abre la página, encima de la portada */
  main { display: flex; flex-direction: column; }
  .logo-strip { order: -1; }
  .region-grid { grid-template-columns: 1fr; gap: 40px; }
  .region-map { max-width: 620px; margin-inline: auto; }
  .deco-map { --map-w: 420px; --map-peek: 110px; }
  .deco-map::before { opacity: .7; }
  .about { padding: 110px 0; }
  .about::before { background: rgba(8, 22, 41, .84); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 760px) {
  .topbar { display: none; }
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 12px; }
  .client { padding: 4px; border-radius: 12px; }
}

@media (max-width: 600px) {
  :root { --header-h: 72px; --gutter: 40px; }
  /* En celular la línea va debajo del logo */
  .brand img { height: 38px; }
  .brand-block { flex-direction: column; align-items: flex-start; gap: 3px; }
  .brand-tag { padding-left: 2px; border-left: 0; font-size: 8.5px; letter-spacing: .1em; }
  .hero { padding: 44px 0 56px; }
  .hero h1 { font-size: 34px; }
  .hero-lead { font-size: 17.5px; }
  .hero-actions .btn { width: 100%; }
  .hero-collage { height: 330px; }
  .hero-stats { grid-template-columns: 1fr 1fr; gap: 18px 16px; }
  .stat-num { font-size: clamp(28px, 9vw, 38px); }
  .logo-strip { padding: 14px 0 12px; }
  .strip-label { margin-bottom: 8px; font-size: 9.5px; }
  .strip-track { gap: 28px; padding-right: 28px; }
  .strip-track img { width: 72px; }
  .guides { grid-template-columns: 1fr; }
  .guide > a { padding: 26px 24px 24px; }
  .hero-photo { aspect-ratio: 4 / 3.4; border-radius: 16px; }
  /* Las tarjetas bajan debajo de la foto: sobre ella taparían demasiado */
  .hero-card { position: static; width: auto; margin-top: 12px; }
  .js .hero-card { animation-delay: .2s; }
  .hero-collage::before { width: 70px; height: 70px; border-radius: 16px; }
  .hero-collage::after { width: 90px; height: 90px; border-width: 10px; }
  .collage-item { border-radius: 14px; }
  .collage-tag { left: 10px; bottom: 12px; padding: 5px 10px; font-size: 12px; }
  .section { padding: 72px 0; }
  .clients { padding: 72px 0; }
  .clients-grid { grid-template-columns: repeat(2, 1fr); }
  .stat { padding: 26px 14px; }
  .stat-num { font-size: 42px; }
  .stat-label { font-size: 14.5px; }
  .areas { grid-template-columns: 1fr; }
  .careers-card { padding: 34px 22px; border-radius: 18px; }
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; max-width: none; padding: 20px 18px 16px; }
  .legal-hero { padding: 52px 0 40px; }
  .legal { padding: 44px 0 80px; }
  .legal-body h2 { font-size: 22px; }
  .legal-intro { font-size: 17.5px; }
  .flag { flex-basis: calc(33.333% - 8px); padding: 16px 6px 12px; }
  .flag span { font-size: 13px; }
  .deco-map { --map-w: 320px; --map-peek: 100px; }
  .deco-map::before { opacity: .5; }
  .orn { --orn-l: none; --orn-r: none; }
  .hero-region { font-size: 13.5px; }
  /* ---- Versión compacta para teléfono ----
     La página completa medía casi 29 pantallas: aquí se acorta con
     tarjetas que se deslizan de lado, menos aire y sin fotos decorativas. */

  /* Menos aire entre bloques */
  .section { padding: 56px 0; }
  .clients { padding: 56px 0; }
  .section-intro { margin-bottom: 30px; }
  .about { padding: 84px 0; }
  .cta-band { padding: 52px 0; }
  .footer { padding: 48px 0 28px; }
  .footer-bottom { margin-top: 32px; }
  .soft-process, .tech-stack { margin-top: 44px; }
  .includes { gap: 30px 24px; }
  .steps { margin: 30px 0; }

  /* Tarjetas que se deslizan con el dedo, en vez de apilarse */
  .pillars, .areas, .guides, .process {
    display: grid; grid-auto-flow: column; grid-auto-columns: 82%; gap: 14px;
    overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory;
    margin-inline: calc(var(--gutter) / -2); padding-inline: calc(var(--gutter) / 2);
    scrollbar-width: none;
  }
  .pillars::-webkit-scrollbar, .areas::-webkit-scrollbar,
  .guides::-webkit-scrollbar, .process::-webkit-scrollbar { display: none; }
  .pillars > *, .areas > *, .guides > *, .process > * { scroll-snap-align: start; }
  .pillars { margin-top: 34px; }
  .process { border-top: 0; }
  .process li, .process li + li {
    margin: 0; padding: 26px 20px 22px; border: 1px solid var(--line); border-top: 1px solid var(--line);
    border-radius: 16px; background: #fff;
  }
  .process li::before { display: none; }
  .guide > a { padding: 24px 22px 22px; }
  .guide h3 { font-size: 19px; }

  /* Listas en dos columnas */
  .clients-grid { grid-template-columns: repeat(3, 1fr); gap: 10px; }
  .audience { grid-template-columns: 1fr 1fr; column-gap: 22px; }
  .audience p { font-size: 15px; }
  .checks { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 28px; }
  .footer-brand { grid-column: 1 / -1; }

  /* Fuera lo decorativo: alarga mucho y no aporta en pantalla pequeña */
  .hero-card, .split-media, .region-map { display: none; }
  .hero-photo { aspect-ratio: 16 / 11; }
  .feature-media { aspect-ratio: 4 / 3; }
  .split { gap: 0; }
  .region-grid { gap: 26px; }

  /* Listas largas: se muestran recortadas con un botón para verlas completas */
  .collapsible { position: relative; overflow: hidden; }
  .collapsible.is-clamped { max-height: 330px; }
  .collapsible.is-clamped::after {
    content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 120px; pointer-events: none;
    background: linear-gradient(rgba(255, 255, 255, 0), var(--fade));
  }
  .collapse-btn { margin-top: 16px; }
  .form-extra.is-hidden { display: none; }
  .optional-btn { grid-column: 1 / -1; justify-self: start; }
  .section { padding: 48px 0; }
  .clients { padding: 48px 0; }
  .soft-process, .tech-stack { margin-top: 34px; }
  .guide p { display: none; }

  /* Filas y campos más apretados */
  .svc-row { padding: 16px 2px; gap: 4px 14px; }
  .svc-row h3 { font-size: 19px; }
  .svc-row p { font-size: 15px; }
  .steps li { padding: 16px 0; }
  .steps p { font-size: 15px; }
  .price-list li { padding: 16px 0; }
  .form { padding: 28px 18px 24px; }
  .form-grid { gap: 16px 14px; margin-top: 22px; }
  .field input, .field select { height: 48px; }
  .field textarea { min-height: 96px; }
  .contact-list { margin-top: 30px; }
  .contact-list div { padding: 14px 0; }
  .footer { font-size: 14.5px; }
  .footer ul { gap: 8px; }
  .footer h4 { margin-bottom: 12px; }

  .includes { grid-template-columns: 1fr; }
  .process li, .process li + li { padding: 28px 0 0; border-left: 0; }
  .process li + li { margin-top: 0; padding-top: 28px; border-top: 1px solid var(--line); }
  .num { font-size: 34px; }
  .tech-stack { grid-template-columns: 1fr; }
  .cta-band .btn { width: 100%; }
  .price-list li { gap: 14px; }
  .price { font-size: 15.5px; }
  /* Titulares e introducciones un punto más chicos: se repiten en cada sección */
  .section h2 { font-size: clamp(27px, 7.6vw, 54px); }
  .section-intro p, .lead { font-size: 16.5px; }
  .area p { font-size: 15px; }
  .tech-stack { margin-top: 56px; }
  .soft-cta .btn { width: 100%; }
  .form { padding: 34px 20px 28px; }
  .form-grid, .checks { grid-template-columns: 1fr; }
  .form-actions .btn { width: 100%; }
  .footer-grid { grid-template-columns: 1fr; }
  .wa-float { right: 16px; bottom: 16px; width: 52px; height: 52px; }
  /* Con el aviso de cookies abierto, el botón de WhatsApp sube para no taparlo */
  .has-cookie-banner .wa-float { bottom: calc(var(--banner-h, 0px) + 24px); }
  [data-parallax] { transform: translate3d(0, var(--py, 0px), 0) scale(1.08); }
}

/* Personas que prefieren menos movimiento: todo visible y quieto */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; transition-delay: 0s !important; }
  /* Sin movimiento automático, los logos se recorren con el dedo */
  .strip-viewport { overflow-x: auto; }
  .js [data-reveal]:not(.in) { opacity: 1; transform: none; }
  .js [data-reveal="mask"]:not(.in)::after { transform: scaleY(0); }
  .js [data-reveal]:not(.in) h2::after, .js h2[data-reveal]:not(.in)::after { transform: none; }
  .js .includes li:not(.in)::before, .js .includes li:not(.in)::after, .js .audience li:not(.in)::after, .js .process li:not(.in)::before { transform: none; }
  [data-parallax], .about-bg[data-parallax] { transform: none; }
}
