/* ============================================================================
   AGC Ingeniería Biomédica · sistema de diseño v7 «Película»
   ----------------------------------------------------------------------------
   Blanco luminoso y preciso. El inicio abre con «la película» (js/pelicula.js):
   una ventana de cine con fotos reales de AGC que se expande y avanza con el
   scroll. Scroll suave con Lenis (agc.js). Una sola familia: Montserrat, en
   pesos medios y titulares de un solo color, sin cursivas.
   ========================================================================== */

:root {
  /* Marca · el azul del isotipo es el acento de la interfaz. El naranja vive
     solo en el logo (decisión 07-jul), no se usa en la UI. */
  --blue: #0E6CB8;
  --blue-deep: #0A4F8C;
  --blue-soft: #DCEAF7;
  --navy: #0A2236;
  --navy-2: #102F4A;
  --orange: #E8551F; /* solo isotipo */

  /* Blanco luminoso + grises fríos apenas azulados */
  --paper: #FFFFFF;
  --paper-2: #F3F6F9;
  --white: #FFFFFF;
  --ink: #0A1826;
  --ink-2: #3D4A57;
  --ink-3: #6F7B87;
  --ink-4: #C2CAD2;
  --line: #E4E9EE;
  --line-2: #CFD7DF;
  --cloud: #F3F6F9;      /* alias para Vera */
  --cloud-2: #E8EDF2;

  --f-display: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;
  --f-body: 'Montserrat', 'Helvetica Neue', Arial, sans-serif;

  --wrap: 1320px;
  --gut: clamp(20px, 4vw, 48px);
  --sec: clamp(84px, 11vw, 160px);
  --hh: 76px;
  --r: 10px;
  --r-btn: 8px;
  --ease: cubic-bezier(0.22, 0.61, 0.36, 1);
  --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
  --shadow-1: 0 1px 2px rgba(11, 27, 42, 0.05), 0 10px 30px rgba(11, 27, 42, 0.07);
  --shadow-2: 0 2px 6px rgba(11, 27, 42, 0.08), 0 24px 60px rgba(11, 27, 42, 0.14);
}

/* ---------- base ---------- */
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-smooth [data-lenis-prevent] { overscroll-behavior: contain; }
.lenis.lenis-stopped { overflow: hidden; }
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--hh) + 12px); }
body {
  margin: 0; background: var(--paper); color: var(--ink);
  font-family: var(--f-body); font-size: 1.0625rem; line-height: 1.6; 
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg, canvas { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; }
p { margin: 0 0 1em; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { font-family: var(--f-display); margin: 0; font-weight: 600; line-height: 1.08; letter-spacing: -0.02em; text-wrap: balance; }
::selection { background: var(--blue); color: #fff; }
:focus-visible { outline: 2px solid var(--blue); outline-offset: 3px; border-radius: 4px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: -9999px; top: 12px; z-index: 300; background: var(--white); padding: 10px 16px; border-radius: 8px; }
.skip:focus { left: 12px; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--gut); }
.sec { padding: var(--sec) 0; position: relative; }
.acc { color: inherit; } /* v7: titulares de un solo color */
.blue { color: var(--blue); }

/* tipografía de títulos */
.t-xl { font-size: clamp(2.5rem, 5.4vw, 5.6rem); font-weight: 500; letter-spacing: -0.035em; line-height: 1.02; }
.t-l { font-size: clamp(2rem, 3.9vw, 3.7rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.06; }
.t-m { font-size: clamp(1.45rem, 2.2vw, 1.95rem); font-weight: 500; letter-spacing: -0.02em; line-height: 1.15; }
.lede { font-size: clamp(1.08rem, 1.35vw, 1.28rem); line-height: 1.55; color: var(--ink-2); max-width: 34em; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; gap: 10px;
  padding: 15px 22px; border-radius: var(--r-btn); border: 1px solid var(--blue);
  background: var(--blue); color: #fff; font-weight: 600; font-size: 0.98rem; line-height: 1;
  transition: background 0.25s var(--ease), border-color 0.25s, color 0.25s, transform 0.25s var(--ease);
}
.btn:hover { background: var(--blue-deep); border-color: var(--blue-deep); }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn .arr { transition: transform 0.3s var(--ease); }
.btn:hover .arr { transform: translateX(4px); }
.btn--line { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn--line:hover { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn--light { background: #fff; color: var(--navy); border-color: #fff; }
.btn--light:hover { background: var(--blue-soft); border-color: var(--blue-soft); color: var(--navy); }
.btn--ghost-l { background: transparent; color: #fff; border-color: rgba(255, 255, 255, 0.35); }
.btn--ghost-l:hover { background: #fff; color: var(--navy); border-color: #fff; }
.link {
  display: inline-flex; align-items: center; gap: 8px; font-weight: 600; color: var(--blue);
  background: linear-gradient(currentColor, currentColor) 0 100% / 0 1px no-repeat;
  padding-bottom: 3px; transition: background-size 0.4s var(--ease);
}
.link:hover { background-size: 100% 1px; }
.link svg { width: 16px; height: 16px; transition: transform 0.3s var(--ease); }
.link:hover svg { transform: translateX(4px); }

/* ============================================================================
   Header
   ========================================================================== */
.header {
  /* vidrio claro: fondo apenas transparente con desenfoque (24-oct, pedido de Adrián); el
     logo, los links y «Consultar» van opacos encima. Siempre claro: el texto queda oscuro
     y legible aunque pase por encima de una foto oscura. */
  position: sticky; top: 0; z-index: 80; height: var(--hh);
  background: rgba(255, 255, 255, 0.72);
  -webkit-backdrop-filter: blur(14px) saturate(140%); backdrop-filter: blur(14px) saturate(140%);
  border-bottom: 1px solid rgba(10, 34, 54, 0.07);
  transition: border-color 0.3s var(--ease), background-color 0.35s var(--ease);
  view-transition-name: header;
}
.header.scrolled { background: rgba(255, 255, 255, 0.76); border-bottom-color: rgba(10, 34, 54, 0.1); }
.header .wrap { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 12px; view-transition-name: brand; }
.brand img { width: 38px; height: 38px; }
.brand b { display: block; font-weight: 800; font-size: 1.24rem; letter-spacing: -0.02em; line-height: 1; }
.brand small { display: block; font-size: 0.6rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); margin-top: 4px; }
.nav { display: flex; align-items: center; gap: 6px; }
.nav a:not(.btn) {
  position: relative; padding: 10px 14px; font-weight: 600; font-size: 0.95rem; color: var(--ink-2);
  transition: color 0.2s;
}
.nav a:not(.btn)::after {
  content: ''; position: absolute; left: 14px; right: 14px; bottom: 5px; height: 1.5px; background: var(--ink);
  transform: scaleX(0); transform-origin: right; transition: transform 0.35s var(--ease);
}
.nav a:not(.btn):hover { color: var(--ink); }
.nav a:not(.btn):hover::after { transform: scaleX(1); transform-origin: left; }
.nav a[aria-current="page"] { color: var(--ink); }
.nav a[aria-current="page"]::after { transform: scaleX(1); background: var(--blue); }
.nav .btn { margin-left: 12px; padding: 12px 18px; }
.nav-toggle { display: none; width: 44px; height: 44px; border: 1px solid var(--line-2); border-radius: var(--r-btn); background: transparent; position: relative; }
.nav-toggle span { position: absolute; left: 12px; right: 12px; height: 1.5px; background: var(--ink); transition: transform 0.3s var(--ease), opacity 0.2s; }
.nav-toggle span:nth-child(1) { top: 16px; } .nav-toggle span:nth-child(2) { top: 21px; } .nav-toggle span:nth-child(3) { top: 26px; }
.nav-open .nav-toggle span:nth-child(1) { transform: translateY(5px) rotate(45deg); }
.nav-open .nav-toggle span:nth-child(2) { opacity: 0; }
.nav-open .nav-toggle span:nth-child(3) { transform: translateY(-5px) rotate(-45deg); }

@media (max-width: 860px) {
  /* sin blur en mobile: el backdrop-filter vuelve al header el contenedor del menú fijo (trampa conocida) */
  .header, .header.scrolled { background: rgba(255, 255, 255, 0.95); -webkit-backdrop-filter: none; backdrop-filter: none; }
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--hh) 0 0 0; z-index: 79; background: var(--paper);
    flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 0;
    padding: 18px var(--gut) 40px; border-top: 1px solid var(--line);
    opacity: 0; visibility: hidden; transform: translateY(-8px);
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease), visibility 0.3s;
  }
  .nav-open .nav { opacity: 1; visibility: visible; transform: none; }
  .nav a:not(.btn) { padding: 18px 0; font-size: 1.9rem; font-weight: 700; letter-spacing: -0.03em; color: var(--ink); border-bottom: 1px solid var(--line); }
  .nav a:not(.btn)::after { display: none; }
  .nav a[aria-current="page"] { color: var(--blue); }
  .nav .btn { margin: 28px 0 0; justify-content: center; padding: 18px; }
  .nav-open { overflow: hidden; }
}

/* ---------- Selector de idioma (ES · EN · 中文) · lo genera scripts/sitio-i18n/build.py ---------- */
.lang-switch { display: inline-flex; align-items: center; gap: 2px; margin-left: 6px; padding: 2px; border: 1px solid var(--line-2); border-radius: 999px; }
.nav .lang-switch a:not(.btn) {
  display: inline-flex; align-items: center; justify-content: center; min-width: 40px; min-height: 40px; padding: 0 10px;
  border-radius: 999px; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.04em; color: var(--ink-3);
  transition: background-color 0.2s, color 0.2s;
}
.nav .lang-switch a:not(.btn)::after { display: none; }
.nav .lang-switch a:not(.btn):hover { color: var(--ink); background: var(--paper-2); }
.nav .lang-switch a[aria-current="true"], .nav .lang-switch a[aria-current="true"]:hover { background: transparent; }
/* Banderas: círculo de 24 px dentro de un área táctil de 40 px; la activa con anillo azul. */
.nav .lang-switch a:not(.btn) { padding: 0; }
.lang-switch .flag { width: 24px; height: 24px; border-radius: 50%; box-shadow: 0 0 0 1px rgba(10,24,38,.14); opacity: .72; transition: opacity .2s, transform .2s, box-shadow .2s; }
.nav .lang-switch a:hover .flag { opacity: 1; transform: scale(1.08); }
.nav .lang-switch a[aria-current="true"] .flag { opacity: 1; box-shadow: 0 0 0 2px #fff, 0 0 0 4px var(--blue); }
@media (max-width: 860px) {
  .lang-switch { align-self: flex-start; margin: 26px 0 0; padding: 3px; }
  .nav .lang-switch a:not(.btn) { min-width: 52px; min-height: 46px; padding: 0; border-bottom: 0; }
  .lang-switch .flag { width: 28px; height: 28px; }
}

/* ---------- Chino (/zh/): Montserrat no tiene caracteres CJK, la fuente del sistema los toma.
   Sin tracking en CJK, sin cursiva sintética y un poco más de interlineado. ---------- */
html:lang(zh) {
  --f-display: 'Montserrat', 'PingFang SC', 'Hiragino Sans GB', 'Microsoft YaHei', 'Noto Sans SC', 'Source Han Sans SC', sans-serif;
  --f-body: var(--f-display);
}
html:lang(zh) body { line-height: 1.75; line-break: strict; }
html:lang(zh) :is(h1, h2, h3, h4, .t-xl, .t-l, .t-m, .film-title, .cap h2, .statement-text, .lede, p, li, blockquote, summary, .btn, .link, .area-name) { letter-spacing: 0 !important; }
html:lang(zh) :is(h1, h2, h3, .t-xl, .t-l, .t-m) { line-height: 1.22; }
html:lang(zh) :is(em, .it, .statement-text .hl) { font-style: normal; }
html:lang(zh) .it { font-weight: 300; }

/* nota de que la versión en español prevalece (páginas legales en /en/ y /zh/) */
.legal-note { margin: -0.4em 0 2em; padding: 12px 16px; border-left: 3px solid var(--blue); background: var(--paper-2); border-radius: 0 8px 8px 0; font-size: 0.92rem; color: var(--ink-2); }

/* ============================================================================
   Lente de diagnóstico (la foto se ve por dentro · js/lente.js)
   ========================================================================== */
.lens {
  position: relative; overflow: hidden; border-radius: var(--r); background: var(--navy);
  isolation: isolate; cursor: crosshair;
}
.lens-img { width: 100%; height: 100%; object-fit: cover; }
.lens-gl { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; transition: opacity 0.5s var(--ease); }
.lens.is-live .lens-gl { opacity: 1; }
/* esquinas de encuadre, como el visor de un equipo · firma del isotipo */
.lens-hud { position: absolute; inset: 14px; pointer-events: none; z-index: 2; }
.lens-hud i { position: absolute; width: 22px; height: 22px; border: 0 solid rgba(255, 255, 255, 0.9); }
.lens-hud i:nth-child(1) { top: 0; left: 0; border-top-width: 2px; border-left-width: 2px; }
.lens-hud i:nth-child(2) { top: 0; right: 0; border-top-width: 2px; border-right-width: 2px; }
.lens-hud i:nth-child(3) { bottom: 0; left: 0; border-bottom-width: 2px; border-left-width: 2px; }
.lens-hud i:nth-child(4) { bottom: 0; right: 0; border-bottom-width: 2px; border-right-width: 2px; }
.lens-cap {
  position: absolute; z-index: 3; left: 18px; bottom: 18px; display: inline-flex; align-items: center; gap: 9px;
  padding: 8px 13px; border-radius: 6px; background: rgba(11, 27, 42, 0.62); color: #fff;
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em;
}
.lens-cap::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #5FB4FF; box-shadow: 0 0 0 3px rgba(95, 180, 255, 0.25); }
.lens-hint {
  position: absolute; z-index: 3; right: 18px; bottom: 18px; color: rgba(255, 255, 255, 0.86);
  font-size: 0.74rem; font-weight: 600; opacity: 0; transition: opacity 0.4s;
}
.lens.is-live .lens-hint { opacity: 1; }
.lens.is-probing .lens-hint { opacity: 0; }
.lens-tag {
  position: absolute; z-index: 3; left: 0; top: 0; opacity: 0; pointer-events: none; white-space: nowrap;
  padding: 5px 9px; border-radius: 4px; background: #fff; color: var(--navy);
  font-size: 0.68rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase;
  will-change: transform, opacity;
}
@media (pointer: coarse) { .lens-hint { display: none; } }

/* ============================================================================
   Hero del home
   ========================================================================== */
/* ============================================================================
   La película del inicio (js/pelicula.js)
   ========================================================================== */
.film { position: relative; }
.film-stage { position: relative; height: calc(100vh - var(--hh)); height: calc(100svh - var(--hh)); min-height: 560px; overflow: hidden; background: #fff; }
.film-stage::before { /* blanco con una luz azul casi imperceptible · elegante */
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(70% 60% at 82% 0%, rgba(14, 108, 184, 0.06), transparent 70%), linear-gradient(180deg, #fff 0%, #F6F8FB 100%);
}
.film-head { position: relative; z-index: 7; padding-top: clamp(28px, 5vh, 60px); text-align: center; }
.film-title { view-transition-name: page-title; margin: 0 auto clamp(16px, 2.2vh, 26px); font-size: clamp(2.3rem, 4.6vw, 4.9rem); text-wrap: balance; }
.film-title .ln { display: block; }
.film-title .ln { white-space: nowrap; }
.film-sub { display: flex; flex-direction: column; align-items: center; gap: clamp(20px, 2.8vh, 30px); }
.film-sub .lede { max-width: 40em; margin-inline: auto; text-wrap: pretty; }
.hero-ctas { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }
.film-sub .lede { margin: 0; font-size: clamp(1rem, 1.15vw, 1.13rem); }
.film-sub .hero-ctas { flex: none; }
/* sobre la foto, el botón secundario necesita fondo propio para leerse */
.film .hero-ctas .btn--line { background: rgba(255, 255, 255, 0.86); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); }
.film .hero-ctas .btn--line:hover { background: var(--ink); color: #fff; }
.film .hero-ctas .btn { justify-content: center; min-width: 13.5rem; }
.film-frame {
  position: absolute; inset: 0; z-index: 3; overflow: hidden; background: transparent;
  /* la primera foto ocupa todo el hero y se desvanece hacia arriba (detrás del
     titular); al scrollear --k va de 0 a 1 y la foto queda entera */
  --k: 1;
  -webkit-mask-image: linear-gradient(180deg, rgba(0,0,0,calc(var(--k))) 0%, rgba(0,0,0,calc(0.1 + 0.9 * var(--k))) 30%, rgba(0,0,0,calc(0.55 + 0.45 * var(--k))) 56%, #000 82%);
          mask-image: linear-gradient(180deg, rgba(0,0,0,calc(var(--k))) 0%, rgba(0,0,0,calc(0.1 + 0.9 * var(--k))) 30%, rgba(0,0,0,calc(0.55 + 0.45 * var(--k))) 56%, #000 82%);
  clip-path: inset(0 0 0 0 round 0px); will-change: clip-path;
  view-transition-name: page-media;
}
.film-par { position: absolute; inset: -18px; }
.scene { position: absolute; inset: 0; }
.scene-clip, .wipe { position: absolute; inset: 0; }
.wipe-o { background: #E8551F; }
.wipe-b { background: var(--blue); }
.scene + .scene .scene-clip, .scene + .scene .wipe { clip-path: polygon(0 0, 0 0, 0 50%, 0 100%, 0 100%); }
.scene-media { position: absolute; inset: 0; transform-origin: 50% 50%; will-change: transform; }
.scene-media img { width: 100%; height: 100%; object-fit: cover; filter: saturate(0.92) contrast(1.04); }
.scene:first-child .scene-media img { animation: breathe 16s ease-in-out infinite alternate; } /* ya se mueve antes de scrollear */
@keyframes breathe { from { transform: scale(1); } to { transform: scale(1.03) translateX(-0.6%); } }
.film-shade { position: absolute; inset: 0; z-index: 4; pointer-events: none;
  background: linear-gradient(180deg, rgba(10, 34, 54, 0.28) 0%, transparent 26%, transparent 46%, rgba(10, 34, 54, 0.72) 100%),
              radial-gradient(120% 90% at 50% 50%, transparent 55%, rgba(10, 34, 54, 0.35) 100%); }
.film-grain { position: absolute; inset: -50%; z-index: 5; pointer-events: none; opacity: 0.07; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  animation: grain 0.9s steps(6) infinite; }
@keyframes grain { 0% { transform: translate(0, 0); } 20% { transform: translate(-3%, 2%); } 40% { transform: translate(2%, -3%); } 60% { transform: translate(-2%, -1%); } 80% { transform: translate(3%, 3%); } 100% { transform: translate(0, 0); } }
.film-caps { position: absolute; z-index: 6; left: 0; right: 0; bottom: clamp(70px, 11vh, 120px); }
.cap { position: absolute; left: var(--gut); right: var(--gut); bottom: 0; max-width: 40rem; color: #fff; opacity: 0; }
.cap-n { display: block; font-size: 0.8rem; font-weight: 600; letter-spacing: 0.02em; color: rgba(255, 255, 255, 0.75); margin-bottom: 16px; font-variant-numeric: tabular-nums; }
.cap h2 { color: #fff; font-size: clamp(2rem, 4.4vw, 4.2rem); font-weight: 500; letter-spacing: -0.03em; line-height: 1.04; margin-bottom: 16px; }
.cap p { color: rgba(255, 255, 255, 0.82); font-size: clamp(1rem, 1.25vw, 1.15rem); max-width: 34em; margin: 0; }
.cap .btn { margin-top: 22px; }
.film-progress { position: absolute; z-index: 6; left: 0; right: 0; bottom: clamp(28px, 4.5vh, 48px); display: flex; gap: 8px; }
.film-progress i { flex: 1; height: 2px; background: rgba(255, 255, 255, 0.25); position: relative; overflow: hidden; }
.film-progress i::after { content: ''; position: absolute; inset: 0; background: #fff; transform-origin: 0 50%; transform: scaleX(var(--f, 0)); }
.film-cue { position: absolute; z-index: 6; right: var(--gut); bottom: clamp(48px, 7vh, 72px); display: flex; align-items: center; gap: 10px; color: #fff; font-size: 0.8rem; font-weight: 600; }
.film-cue::after { content: ''; width: 1px; height: 26px; background: linear-gradient(#fff, transparent); animation: cue 1.8s var(--ease) infinite; transform-origin: top; }
.film-shade { opacity: var(--k); }
@keyframes cue { 0% { transform: scaleY(0); } 60% { transform: scaleY(1); } 100% { transform: scaleY(1); opacity: 0; } }
/* estática (sin GSAP o con reduced-motion): el titular arriba y las escenas como lista */
.film:not(.is-on) .film-stage { height: auto; min-height: 0; }
.film:not(.is-on) .film-head { padding-bottom: 28px; }
.film:not(.is-on) .film-frame { position: relative; clip-path: none; overflow: visible; background: none; -webkit-mask-image: none; mask-image: none; }
.film:not(.is-on) .film-par { position: relative; inset: auto; margin: 0 var(--gut); aspect-ratio: 16 / 9; border-radius: 18px; overflow: hidden; }
.film:not(.is-on) .film-shade { display: none; }
.film:not(.is-on) .scene + .scene, .film:not(.is-on) .film-progress, .film:not(.is-on) .film-cue, .film:not(.is-on) .film-grain { display: none; }
.film:not(.is-on) .film-caps { position: static; padding: 32px var(--gut) 8px; display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 26px; }
.film:not(.is-on) .cap { position: static; opacity: 1; color: var(--ink); max-width: none; left: auto; right: auto; }
.film:not(.is-on) .cap .btn { background: var(--blue); color: #fff; border-color: var(--blue); }
.film:not(.is-on) .cap h2 { color: var(--ink); font-size: clamp(1.4rem, 2.4vw, 2rem); }
.film:not(.is-on) .cap p, .film:not(.is-on) .cap-n { color: var(--ink-2); }
@media (max-width: 860px) {
  .film-head { padding-top: 22px; }
  .film-title .ln { white-space: normal; }
  .film-sub { gap: 18px; }
  .film-sub .hero-ctas .btn { padding: 13px 16px; }
  .film .hero-ctas { flex-direction: column; align-items: stretch; width: min(100%, 17rem); }
  .film-caps { bottom: 76px; }
  .cap h2 { font-size: clamp(1.8rem, 8.4vw, 2.6rem); }
  .film-cue { display: none; }
}

/* ---------- Preloader · cuenta mientras cargan las escenas (1 vez por sesión) ---------- */
.pre { position: fixed; inset: 0; z-index: 400; background: #fff; display: grid; place-items: center; transition: clip-path 1s cubic-bezier(0.76, 0, 0.24, 1); clip-path: inset(0 0 0 0); }
.pre.is-out { clip-path: inset(0 0 100% 0); }
.pre-in { display: flex; flex-direction: column; align-items: center; gap: 22px; }
.pre svg { width: 64px; height: 64px; animation: preSpin 2.4s cubic-bezier(0.65, 0, 0.35, 1) infinite; }
@keyframes preSpin { 0% { transform: rotate(0); } 60%, 100% { transform: rotate(360deg); } }
.pre-n { font-size: 0.9rem; font-weight: 600; color: var(--ink-3); font-variant-numeric: tabular-nums; letter-spacing: 0.04em; }
.pre-skip .pre, .no-js .pre { display: none; }
.preloading .ln > span, .preloading .fade-up { animation-play-state: paused; }
@media (prefers-reduced-motion: reduce) { .pre { display: none; } }

/* líneas del titular que suben al cargar */
.ln { display: block; overflow: hidden; padding-bottom: 0.06em; margin-bottom: -0.06em; }
.ln > span { display: inline-block; transform: translateY(105%); animation: lnUp 1.1s var(--ease-out) forwards; animation-delay: calc(var(--i, 0) * 110ms + 120ms); }
@keyframes lnUp { to { transform: none; } }
.fade-up { opacity: 0; transform: translateY(18px); animation: fadeUp 0.9s var(--ease-out) forwards; animation-delay: var(--d, 0.5s); }
@keyframes fadeUp { to { opacity: 1; transform: none; } }

/* ---------- Marcas ---------- */
.brands { padding: clamp(36px, 5vw, 64px) 0 0; }
.brands-row { display: grid; grid-template-columns: 220px 1fr; align-items: center; gap: 32px; border-top: 1px solid var(--line); padding-top: 26px; }
.brands-row p { margin: 0; font-size: 0.86rem; font-weight: 600; color: var(--ink-3); line-height: 1.4; }
.marquee { overflow: hidden; position: relative; -webkit-mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); mask-image: linear-gradient(90deg, transparent, #000 8%, #000 92%, transparent); }
.marquee-track { display: flex; width: max-content; animation: marquee 60s linear infinite; }
.marquee-track img { height: 34px; width: auto; margin-right: clamp(56px, 6vw, 96px); filter: grayscale(1) contrast(1.1); opacity: 0.6; mix-blend-mode: multiply; transition: opacity 0.3s, filter 0.3s; }
.marquee-track img:hover { opacity: 1; filter: none; }
.marquee:hover .marquee-track { animation-play-state: paused; }
@keyframes marquee { to { transform: translateX(-50%); } }
@media (max-width: 760px) { .brands-row { grid-template-columns: 1fr; gap: 18px; } .marquee-track img { height: 28px; } }

/* ============================================================================
   Declaración · el párrafo se «escribe» al scrollear (palabra por palabra)
   ========================================================================== */
.statement { padding: var(--sec) 0 calc(var(--sec) * 0.8); }
.statement-grid { display: grid; grid-template-columns: 220px 1fr; gap: 32px; }
.statement-mark { padding-top: 14px; }
.statement-mark img { width: 46px; height: 46px; }
.statement-text {
  font-size: clamp(1.55rem, 3vw, 2.8rem); font-weight: 500; letter-spacing: -0.025em; line-height: 1.22;
  margin: 0 0 clamp(36px, 5vw, 64px); color: var(--ink);
}
.js .statement-text .wd { color: var(--ink-4); transition: color 0.25s linear; }
.js .statement-text .wd.on { color: var(--ink); }
.js .statement-text .wd.on.hl { color: var(--blue); }
.points { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); margin-bottom: 36px; }
.points li { padding: 20px 22px 0 0; font-size: 0.95rem; font-weight: 600; line-height: 1.4; color: var(--ink-2); }
.points li + li { border-left: 1px solid var(--line); padding-left: 22px; }
.points b { display: block; font-family: var(--f-body); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 0.9rem; color: var(--blue); margin-bottom: 10px; }
@media (max-width: 960px) {
  .statement-grid { grid-template-columns: 1fr; gap: 18px; }
  .points { grid-template-columns: 1fr 1fr; }
  .points li:nth-child(3) { border-left: 0; padding-left: 0; }
  .points li { padding-bottom: 20px; }
}
@media (max-width: 520px) { .points { grid-template-columns: 1fr; } .points li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* ============================================================================
   Servicios · tarjetas que se apilan con el scroll (sticky, scroll nativo)
   ========================================================================== */
.sec-top { display: flex; align-items: end; justify-content: space-between; gap: 32px; margin-bottom: clamp(36px, 5vw, 68px); }
.sec-top h2 { max-width: 13em; }
@media (max-width: 760px) { .sec-top { flex-direction: column; align-items: flex-start; gap: 18px; } }
.stack { display: grid; gap: 22px; }
.sc {
  position: sticky; top: calc(var(--hh) + 20px + var(--i) * 16px);
  display: grid; grid-template-columns: 1fr 1.1fr; min-height: min(68vh, 600px);
  background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden;
  transform-origin: 50% 0; will-change: transform;
  box-shadow: 0 -10px 40px rgba(11, 27, 42, 0.05);
}
.sc-body { padding: clamp(28px, 4vw, 56px); display: flex; flex-direction: column; }
.sc-n { font-family: var(--f-body); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 0.95rem; color: var(--blue); line-height: 1; margin-bottom: auto; padding-bottom: 32px; }
.sc h3 { font-size: clamp(1.6rem, 2.7vw, 2.4rem); font-weight: 500; letter-spacing: -0.025em; margin-bottom: 16px; }
.sc p { color: var(--ink-2); max-width: 30em; }
.sc ul { margin: 6px 0 26px; }
.sc li { position: relative; padding: 9px 0 9px 26px; border-top: 1px solid var(--line); font-size: 0.95rem; font-weight: 500; }
.sc li::before { content: ''; position: absolute; left: 2px; top: 17px; width: 11px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.sc-media { position: relative; overflow: hidden; }
.sc-media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transform: scale(var(--zoom, 1.08)); transition: transform 1.4s var(--ease-out); }
.sc-media .badge {
  position: absolute; left: 18px; bottom: 18px; display: flex; align-items: center; gap: 12px;
  padding: 10px 16px 10px 10px; border-radius: 10px; background: #fff; box-shadow: var(--shadow-1); font-size: 0.82rem; font-weight: 700; line-height: 1.25;
}
.sc-media .badge img { position: static; width: 46px; height: 46px; transform: none; }
@media (max-width: 860px) {
  .sc { grid-template-columns: 1fr; min-height: 0; top: calc(var(--hh) + 10px + var(--i) * 10px); }
  .sc-media { height: 230px; order: -1; }
  .sc-n { margin-bottom: 14px; padding-bottom: 0; }
}

/* ============================================================================
   Especialidades · índice tipográfico (cada fila consulta por WhatsApp)
   ========================================================================== */
.areas { display: grid; grid-template-columns: 1fr 1fr; column-gap: clamp(28px, 4vw, 64px); border-top: 1px solid var(--line); }
.area {
  display: grid; grid-template-columns: 44px 40px 1fr auto; align-items: center; gap: 14px;
  width: 100%; padding: 20px 16px 20px 6px; text-align: left; background: none; border: 0; border-bottom: 1px solid var(--line);
  position: relative; isolation: isolate; transition: color 0.3s var(--ease), padding 0.4s var(--ease);
}
.area::before { content: ''; position: absolute; inset: 0; z-index: -1; background: var(--blue); border-radius: 6px; transform: scaleY(0); transform-origin: 50% 100%; transition: transform 0.45s var(--ease-out); }
.area-n { font-family: var(--f-body); font-style: normal; font-weight: 500; font-variant-numeric: tabular-nums; letter-spacing: 0; font-size: 0.86rem; color: var(--ink-3); }
.area-ic { width: 30px; height: 30px; object-fit: contain; opacity: 0.75; filter: grayscale(1) brightness(0.3); transition: filter 0.3s; }
.area-name { font-size: clamp(1.1rem, 1.6vw, 1.4rem); font-weight: 500; letter-spacing: -0.015em; }
.area-go { display: inline-flex; align-items: center; gap: 8px; font-size: 0.86rem; font-weight: 600; color: var(--blue); opacity: 0; transform: translateX(-8px); transition: opacity 0.3s, transform 0.4s var(--ease); }
.area-go svg { width: 16px; height: 16px; }
.area:hover, .area:focus-visible { color: #fff; padding-left: 16px; }
.area:hover::before, .area:focus-visible::before { transform: scaleY(1); }
.area:hover .area-n, .area:focus-visible .area-n { color: rgba(255, 255, 255, 0.7); }
.area:hover .area-ic, .area:focus-visible .area-ic { filter: brightness(0) invert(1); opacity: 1; }
.area:hover .area-go, .area:focus-visible .area-go { opacity: 1; transform: none; color: #fff; }
.area--other .area-name { color: var(--blue); }
.area--other:hover .area-name { color: #fff; }
@media (pointer: coarse) { .area-go { opacity: 1; transform: none; } .area-go span { display: none; } }
@media (max-width: 860px) { .areas { grid-template-columns: 1fr; } .area { grid-template-columns: 34px 34px 1fr auto; padding: 16px 6px; } }

/* ============================================================================
   Banda oscura · servicio técnico, cobertura y certificación (la prueba)
   ========================================================================== */
.proof { background: var(--navy); color: #fff; overflow: hidden; }
.proof h2, .proof h3 { color: #fff; }
.proof .lede { color: rgba(255, 255, 255, 0.7); }
.proof-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(36px, 6vw, 96px); align-items: start; }
.proof .lens { aspect-ratio: 4 / 4.6; }
/* .js para ganarle a «.js .scanin { position: relative }» de las entradas al scroll */
.proof-grid > .scanin, .story > .scanin, .js .proof-grid > .scanin, .js .story > .scanin { position: sticky; top: calc(var(--hh) + 32px); }
.proof-list { margin: clamp(32px, 4vw, 52px) 0; border-top: 1px solid rgba(255, 255, 255, 0.16); }
.proof-list li { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: clamp(1.05rem, 1.5vw, 1.3rem); font-weight: 600; letter-spacing: -0.015em; }
.pill { flex: none; padding: 6px 12px; border-radius: 999px; border: 1px solid rgba(255, 255, 255, 0.28); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.01em; color: rgba(255, 255, 255, 0.85); }
.pill--on { background: #fff; color: var(--navy); border-color: #fff; }
.iso { display: flex; align-items: center; gap: 18px; padding: 22px; border-radius: var(--r); background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.12); margin-bottom: 26px; }
.iso img { width: 64px; height: 64px; border-radius: 50%; background: #fff; padding: 4px; flex: none; }
.iso b { display: block; font-size: 1.05rem; margin-bottom: 4px; }
.iso span { font-size: 0.92rem; color: rgba(255, 255, 255, 0.7); line-height: 1.5; }
.region { margin: 0 0 32px; }
.region h3 { font-size: 0.86rem; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, 0.6); margin-bottom: 14px; }
.region ul { display: flex; flex-wrap: wrap; gap: 10px; }
.region li { padding: 10px 16px; border-radius: 8px; border: 1px solid rgba(255, 255, 255, 0.2); font-weight: 600; font-size: 0.98rem; }
.region li.base { background: var(--blue); border-color: var(--blue); }
.region li.base small { font-weight: 500; opacity: 0.8; margin-left: 6px; }
.proof .link { color: #9BCBFF; }
@media (max-width: 960px) { .proof-grid { grid-template-columns: 1fr; } .proof-grid > .scanin, .js .proof-grid > .scanin { position: relative; top: 0; } .proof .lens { aspect-ratio: 4 / 3.6; } }

/* ============================================================================
   Testimonios · una voz por vez, grande
   ========================================================================== */
.voices { display: grid; grid-template-columns: 340px 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.rating { display: flex; align-items: baseline; gap: 14px; margin: 26px 0 30px; }
.rating b { font-size: 3.6rem; font-weight: 700; letter-spacing: -0.05em; line-height: 1; }
.rating span { font-size: 0.9rem; color: var(--ink-2); line-height: 1.35; }
.rating .stars { display: block; color: var(--blue); letter-spacing: 3px; font-size: 1rem; }
.who { border-top: 1px solid var(--line); }
.who button {
  display: flex; align-items: center; gap: 14px; width: 100%; padding: 16px 0; border: 0; border-bottom: 1px solid var(--line);
  background: none; text-align: left; font-weight: 600; color: var(--ink-3); transition: color 0.25s;
}
.who button .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); color: var(--ink-2); font-size: 0.78rem; font-weight: 700; transition: background 0.3s, color 0.3s; }
.who button[aria-selected="true"] { color: var(--ink); }
.who button[aria-selected="true"] .av { background: var(--blue); color: #fff; }
.who button:hover { color: var(--ink); }
.quote-stage { display: grid; }
.quote { grid-area: 1 / 1; margin: 0; opacity: 0; visibility: hidden; transform: translateY(14px); transition: opacity 0.5s var(--ease), transform 0.6s var(--ease-out), visibility 0.5s; }
.quote.is-on { opacity: 1; visibility: visible; transform: none; }
.quote blockquote { margin: 0 0 26px; font-weight: 400; font-size: clamp(1.35rem, 2.3vw, 2.1rem); line-height: 1.32; letter-spacing: -0.02em; color: var(--ink); text-wrap: pretty; }
.quote figcaption { font-weight: 600; color: var(--ink-2); font-size: 0.95rem; }
.quote figcaption span { color: var(--ink-3); font-weight: 500; }
@media (max-width: 960px) { .voices { grid-template-columns: 1fr; } .quote blockquote { font-size: clamp(1.4rem, 6vw, 2rem); } }

/* ============================================================================
   Equipo · foto a todo ancho que se abre al entrar
   ========================================================================== */
.team { padding: 0; }
.team-frame { position: relative; height: min(92vh, 880px); overflow: hidden; clip-path: inset(var(--ci, 6%) var(--ci, 6%) round 14px); }
.team-frame img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 32%; transform: scale(var(--ts, 1.12)); }
.team-frame::after { content: ''; position: absolute; inset: 0; background: linear-gradient(180deg, transparent 40%, rgba(10, 34, 54, 0.78)); }
.team-copy { position: absolute; z-index: 2; left: 0; right: 0; bottom: clamp(36px, 7vw, 96px); color: #fff; }
.team-copy h2 { color: #fff; max-width: 11em; margin-bottom: 22px; }
.team-copy .acc { color: #9FCBFF; }
.team-copy .link { color: #fff; }
@media (max-width: 760px) { .team-frame { height: 78svh; clip-path: inset(var(--ci, 4%) var(--ci, 4%) round 12px); } .team-frame img { object-position: 46% 40%; } }

/* ============================================================================
   Sostenibilidad
   ========================================================================== */
.sust-grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.sust-grid p { color: var(--ink-2); max-width: 32em; margin: 22px 0 30px; }
.pillars { border-top: 1px solid var(--line); }
.pillars li { display: grid; grid-template-columns: 54px 1fr; gap: 18px; align-items: center; padding: 22px 0; border-bottom: 1px solid var(--line); }
.pillars .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; background: #E5EFE6; color: #2E7D4F; }
.pillars .ic svg { width: 24px; height: 24px; }
.pillars b { display: block; font-size: 1.2rem; letter-spacing: -0.02em; }
.pillars span { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 860px) { .sust-grid { grid-template-columns: 1fr; } }

/* ============================================================================
   Cierre + footer
   ========================================================================== */
/* 24-oct: campo navy con luz de marca fija (azul arriba, un toque naranja abajo) y el pie
   como un panel de vidrio. En el inicio, js/motion.js suma la luz en canvas y el isotipo. */
.end { background: var(--navy); color: #fff; padding: var(--sec) 0 0; position: relative; overflow: hidden; isolation: isolate; }
.end::before {
  content: ''; position: absolute; inset: 0; z-index: -2; pointer-events: none;
  background: radial-gradient(60% 70% at 8% 0%, rgba(27, 127, 211, 0.38), rgba(27, 127, 211, 0) 70%),
              radial-gradient(45% 55% at 96% 100%, rgba(232, 85, 31, 0.14), rgba(232, 85, 31, 0) 70%);
}
.end h2 { color: #fff; max-width: 12em; }
.end h2 .acc { color: #9FCBFF; }
.end-top { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; padding-bottom: clamp(48px, 7vw, 96px); }
.end-top p { color: rgba(255, 255, 255, 0.76); margin-bottom: 26px; }
.end-ctas { display: flex; flex-wrap: wrap; gap: 12px; }
.end .btn { min-height: 50px; }
.end .btn--light { box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7), 0 18px 44px -16px rgba(95, 180, 255, 0.75); }
.end .btn--light:hover { transform: translateY(-2px); }
.end .btn--ghost-l { background: rgba(255, 255, 255, 0.06); border-color: rgba(255, 255, 255, 0.3); }
.foot {
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 36px; padding: clamp(28px, 4vw, 52px);
  border-radius: 26px; border: 1px solid rgba(255, 255, 255, 0.1);
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.075), rgba(255, 255, 255, 0.02));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08), 0 40px 80px -50px rgba(0, 0, 0, 0.6);
}
.foot h4 { font-size: 0.8rem; font-weight: 600; letter-spacing: 0; color: rgba(255, 255, 255, 0.5); margin-bottom: 16px; }
.foot li { margin-bottom: 10px; }
.foot a { color: rgba(255, 255, 255, 0.86); transition: color 0.2s; }
.foot a:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.foot-brand img { width: 150px; height: auto; margin-bottom: 18px; }
.foot-brand p { color: rgba(255, 255, 255, 0.6); font-size: 0.92rem; max-width: 26em; }
.social { display: flex; gap: 10px; margin-top: 18px; }
.social a { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 12px; border: 1px solid rgba(255, 255, 255, 0.18); background: rgba(255, 255, 255, 0.05); }
.social a:hover { background: #fff; color: var(--navy); text-decoration: none; }
.social svg { width: 18px; height: 18px; }
.foot-contact li { display: flex; gap: 10px; color: rgba(255, 255, 255, 0.86); font-size: 0.95rem; }
.foot-contact svg { width: 18px; height: 18px; flex: none; margin-top: 3px; opacity: 0.6; }
.foot-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 4px 14px; padding: 12px 4px 20px; font-size: 0.85rem; color: rgba(255, 255, 255, 0.6); }
.foot-bottom nav { display: flex; flex-wrap: wrap; gap: 0 20px; }
.foot-bottom nav a { display: inline-flex; align-items: center; min-height: 44px; }
.foot-bottom a:hover { color: #fff; }
@media (max-width: 960px) { .end-top { grid-template-columns: 1fr; } .foot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .foot { grid-template-columns: 1fr; } }

/* ============================================================================
   Subpáginas · hero con lente + bloques de contenido
   ========================================================================== */
.phero { padding: clamp(28px, 4vw, 56px) 0 clamp(56px, 7vw, 96px); }
.crumb { display: flex; gap: 8px; font-size: 0.84rem; font-weight: 600; color: var(--ink-3); margin-bottom: clamp(28px, 4vw, 48px); }
.crumb a:hover { color: var(--ink); }
.phero-grid { display: grid; grid-template-columns: 1.15fr 1fr; gap: clamp(28px, 4vw, 64px); align-items: end; }
.phero h1 { view-transition-name: page-title; }

.phero .lede { margin: 0; }
.phero .lens { aspect-ratio: 16 / 7.4; margin-top: clamp(36px, 5vw, 64px); view-transition-name: page-media; }
@media (max-width: 860px) { .phero-grid { grid-template-columns: 1fr; gap: 20px; } .phero .lens { aspect-ratio: 4 / 3.4; } }

/* servicios en detalle */
.svc { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: clamp(32px, 6vw, 96px); padding: clamp(56px, 7vw, 100px) 0; border-top: 1px solid var(--line); align-items: start; scroll-margin-top: var(--hh); }
.svc-head { position: sticky; top: calc(var(--hh) + 32px); }
.svc-head .sc-n { margin: 0 0 18px; padding: 0; }
.svc-head h2 { font-size: clamp(1.9rem, 3.6vw, 3.2rem); margin-bottom: 20px; }
.svc-head p { color: var(--ink-2); }
.svc-head .btn { margin-top: 10px; }
.svc-panel { background: var(--white); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.svc-panel > img { width: 100%; aspect-ratio: 16 / 9; object-fit: cover; }
.svc-panel-in { padding: clamp(22px, 3vw, 36px); }
.svc-panel h3 { font-size: 0.86rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-bottom: 14px; }
.ticks li { position: relative; padding: 12px 0 12px 28px; border-top: 1px solid var(--line); font-weight: 500; }
.ticks li::before { content: ''; position: absolute; left: 2px; top: 20px; width: 11px; height: 7px; border-left: 2px solid var(--blue); border-bottom: 2px solid var(--blue); transform: rotate(-45deg); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 22px; }
.chips span { padding: 8px 13px; border-radius: 6px; background: var(--paper); border: 1px solid var(--line); font-size: 0.86rem; font-weight: 600; }
.mini-steps { counter-reset: s; margin-top: 22px; }
.mini-steps li { display: grid; grid-template-columns: 36px 1fr; gap: 14px; padding: 14px 0; border-top: 1px solid var(--line); }
.mini-steps li::before { counter-increment: s; content: counter(s); width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 700; font-size: 0.86rem; }
.mini-steps b { display: block; }
.mini-steps span { color: var(--ink-2); font-size: 0.93rem; }
.status li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px 0; border-top: 1px solid var(--line); font-weight: 600; }
.status em { font-style: normal; font-size: 0.8rem; padding: 5px 11px; border-radius: 999px; background: var(--blue-soft); color: var(--blue-deep); }
.cred { display: flex; gap: 16px; align-items: center; margin-top: 22px; padding: 16px; border-radius: 10px; background: var(--paper); }
.cred img { width: 58px; height: 58px; flex: none; }
.cred b { display: block; }
.cred span { font-size: 0.92rem; color: var(--ink-2); }
@media (max-width: 860px) { .svc { grid-template-columns: 1fr; } .svc-head { position: static; } }

/* proceso en 4 pasos */
.steps { display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); }
.steps li { padding: 28px 26px 0 0; }
.steps li + li { border-left: 1px solid var(--line); padding-left: 26px; }
.steps .sc-n { margin: 0 0 40px; padding: 0; }
.steps h3 { font-size: 1.3rem; letter-spacing: -0.02em; margin-bottom: 12px; }
.steps p { color: var(--ink-2); font-size: 0.95rem; }
@media (max-width: 960px) { .steps { grid-template-columns: 1fr 1fr; } .steps li:nth-child(3) { border-left: 0; padding-left: 0; } .steps li { padding-bottom: 26px; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } .steps li + li { border-left: 0; padding-left: 0; border-top: 1px solid var(--line); } }

/* empresa */
.story { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: start; }
.story p { color: var(--ink-2); }
.story .lens { aspect-ratio: 4 / 4.4; }
.story .ticks { margin-top: 26px; }
.mision { text-align: center; }
.mision blockquote { margin: 26px auto 0; max-width: 22em; font-weight: 400; font-size: clamp(1.6rem, 3.2vw, 2.9rem); line-height: 1.2; letter-spacing: -0.025em; }
.mision h2 { font-size: 0.9rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); }
.valores { display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.valores li { display: flex; gap: 16px; align-items: baseline; padding: 26px 20px 26px 0; border-bottom: 1px solid var(--line); font-size: clamp(1.1rem, 1.7vw, 1.45rem); font-weight: 600; letter-spacing: -0.02em; }
.valores li:not(:nth-child(3n + 1)) { border-left: 1px solid var(--line); padding-left: 22px; }
.valores .area-n { flex: none; }
@media (max-width: 860px) { .valores { grid-template-columns: 1fr; } .valores li:not(:nth-child(3n + 1)) { border-left: 0; padding-left: 0; } }
.cert { display: grid; grid-template-columns: auto 1fr; gap: clamp(28px, 5vw, 72px); align-items: center; padding: clamp(32px, 5vw, 64px); background: var(--white); border: 1px solid var(--line); border-radius: 14px; }
.cert img { width: clamp(110px, 14vw, 170px); height: auto; }
.cert h2 { margin: 10px 0 16px; }
.cert p { color: var(--ink-2); max-width: 36em; margin: 0; }
.cert small { font-weight: 700; color: var(--blue); font-size: 0.86rem; }
@media (max-width: 700px) { .cert { grid-template-columns: 1fr; } }
.ig { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(32px, 6vw, 96px); align-items: center; }
.ig p { color: var(--ink-2); margin: 20px 0 28px; }
.ig-embed { border-radius: 14px; overflow: hidden; background: var(--white); border: 1px solid var(--line); }
.ig-embed iframe { width: 100%; min-height: 560px; border: 0; display: block; }
@media (max-width: 860px) { .ig { grid-template-columns: 1fr; } }

@media (max-width: 860px) { .story { grid-template-columns: 1fr; } .story > .scanin, .js .story > .scanin { position: relative; top: 0; } .story .lens { aspect-ratio: 4 / 3.4; } }

/* contacto */
.contact-grid { display: grid; grid-template-columns: 1fr 1.05fr; gap: clamp(28px, 5vw, 72px); align-items: start; }
.cards { border-top: 1px solid var(--line); }
.cards li { display: grid; grid-template-columns: 46px 1fr; gap: 16px; padding: 22px 0; border-bottom: 1px solid var(--line); }
.cards .ic { width: 46px; height: 46px; border-radius: 10px; display: grid; place-items: center; background: var(--white); border: 1px solid var(--line); color: var(--blue); }
.cards .ic svg { width: 20px; height: 20px; }
.cards h3 { font-size: 0.84rem; font-weight: 600; letter-spacing: 0; color: var(--ink-3); margin-bottom: 4px; }
.cards a, .cards address { font-style: normal; font-size: 1.12rem; font-weight: 600; letter-spacing: -0.01em; }
.cards a:hover { color: var(--blue); }
.cards small { display: block; color: var(--ink-3); font-size: 0.86rem; margin-top: 2px; }
.map { margin-top: 28px; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); aspect-ratio: 16 / 10; background: var(--paper-2); }
.map iframe { width: 100%; height: 100%; border: 0; filter: grayscale(0.35) contrast(1.05); }
.form-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: clamp(24px, 3.4vw, 44px); position: sticky; top: calc(var(--hh) + 24px); }
.form-card h2 { font-size: clamp(1.6rem, 2.6vw, 2.2rem); margin-bottom: 10px; }
.form-card > p { color: var(--ink-2); margin-bottom: 26px; }
.f-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.f-field { margin-bottom: 16px; }
.f-field label { display: block; font-size: 0.85rem; font-weight: 600; margin-bottom: 7px; }
.f-field input, .f-field select, .f-field textarea {
  width: 100%; font: inherit; font-size: 1rem; color: var(--ink); padding: 13px 14px; border-radius: 8px;
  border: 1px solid var(--line-2); background: var(--paper); transition: border-color 0.2s, background 0.2s, box-shadow 0.2s;
}
.f-field textarea { min-height: 130px; resize: vertical; }
.f-field input:focus, .f-field select:focus, .f-field textarea:focus { outline: none; border-color: var(--blue); background: #fff; box-shadow: 0 0 0 3px rgba(14, 108, 184, 0.14); }
.form-card .btn { width: 100%; justify-content: center; padding: 17px; }
.f-hint { display: flex; gap: 8px; align-items: flex-start; font-size: 0.84rem; color: var(--ink-3); margin: 14px 0 0; }
.f-hint svg { width: 16px; height: 16px; flex: none; margin-top: 2px; }
.f-msg { display: none; margin: 12px 0 0; padding: 12px 14px; border-radius: 8px; background: #E5EFE6; color: #1F5C3A; font-weight: 600; font-size: 0.92rem; }
.f-msg.ok { display: block; }
@media (max-width: 960px) { .contact-grid { grid-template-columns: 1fr; } .form-card { position: static; } }
@media (max-width: 520px) { .f-row { grid-template-columns: 1fr; gap: 0; } }

/* legales */
.legal { max-width: 760px; }
.legal h2 { font-size: 1.4rem; letter-spacing: -0.02em; margin: 44px 0 12px; }
.legal p, .legal li { color: var(--ink-2); }
.legal ul { list-style: disc; padding-left: 22px; margin-bottom: 1em; }
.legal li { margin-bottom: 6px; }
.legal a { color: var(--blue); text-decoration: underline; text-underline-offset: 3px; }

/* ============================================================================
   Movimiento al scroll · entradas y fotos que se «escanean»
   ========================================================================== */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 0.9s var(--ease-out), transform 1s var(--ease-out); transition-delay: calc(var(--d, 0) * 90ms); }
.js .rv.in { opacity: 1; transform: none; }
/* titulares de sección: suben por líneas de palabras */
.js .wsplit .w { display: inline-block; overflow: hidden; vertical-align: top; padding: 0.04em 0 0.1em; margin: -0.04em 0 -0.1em; }
.js .wsplit .w > span { display: inline-block; transform: translateY(110%); transition: transform 1s var(--ease-out); transition-delay: calc(var(--i, 0) * 45ms); }
.js .wsplit.in .w > span { transform: none; }
/* foto que entra como una placa: una línea de barrido la revela de arriba abajo */
.js .scanin { position: relative; }
.js .scanin > img, .js .scanin > .lens { clip-path: inset(0 0 100% 0); transition: clip-path 1.4s var(--ease-out); }
.js .scanin::after {
  content: ''; position: absolute; left: 0; right: 0; top: 0; height: 2px; z-index: 4; pointer-events: none;
  background: #6CC0FF; box-shadow: 0 0 18px 4px rgba(108, 192, 255, 0.55); opacity: 0;
}
.js .scanin.in > img, .js .scanin.in > .lens { clip-path: inset(0 0 0 0); }
.js .scanin.in::after { animation: scanLine 1.4s var(--ease-out) forwards; }
@keyframes scanLine { 0% { top: 0; opacity: 1; } 85% { opacity: 1; } 100% { top: 100%; opacity: 0; } }

/* ============================================================================
   Transiciones entre páginas (Chrome y Safari · en el resto, navegación normal)
   ========================================================================== */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vtOut 0.35s var(--ease) both; }
::view-transition-new(root) { animation: vtIn 0.55s var(--ease-out) both; }
::view-transition-group(page-media), ::view-transition-group(page-title) { animation-duration: 0.7s; animation-timing-function: var(--ease-out); }
@keyframes vtOut { to { opacity: 0; transform: translateY(-12px); } }
@keyframes vtIn { from { opacity: 0; transform: translateY(16px); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: 0.01ms !important; animation-iteration-count: 1 !important; transition-duration: 0.01ms !important; }
  .ln > span, .fade-up { transform: none; opacity: 1; }
  .js .rv, .js .wsplit .w > span { opacity: 1; transform: none; }
  .js .scanin > img, .js .scanin > .lens { clip-path: none; }
  .js .scanin::after { display: none; }
  .marquee-track { animation: none; }
  .js .statement-text .wd { color: var(--ink); }
  @view-transition { navigation: none; }
}

/* ============================================================================
   Vera · asistente de preguntas del sitio (js/vera.js · v8.1, 24-oct-2026)
   Respuestas preparadas por AGC, sin IA y sin campo de texto: se navega
   tocando (temas → preguntas → respuesta). Cada pantalla entra entera en el
   panel, sin scroll, también en un iPhone SE. Todo lo que se anima es
   transform u opacity; cerrado, cada capa queda visibility:hidden.
   En el teléfono (≤560px) el panel es una hoja de alto completo con zonas seguras.
   ========================================================================== */
:root {
  --va-spring: cubic-bezier(0.34, 1.3, 0.64, 1);   /* leve rebote, como un resorte */
  --va-glide: cubic-bezier(0.22, 1, 0.36, 1);      /* frena suave, sin pasarse */
  --va-wa: #0F7A40;                                /* verde WhatsApp legible con texto blanco (5,4:1) */
  --va-wa-deep: #0B6534;
}

/* ---- Botón flotante con la cara de Vera ---- */
.va-launcher {
  position: fixed; right: 24px; bottom: 24px; z-index: 60;
  width: 62px; height: 62px; padding: 0; border: 0; border-radius: 50%;
  background: #fff;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4px rgba(10, 34, 54, 0.08),
    0 16px 34px -10px rgba(10, 34, 54, 0.45), 0 4px 12px rgba(10, 34, 54, 0.12);
  transition: transform 0.5s var(--va-spring), opacity 0.25s var(--ease), visibility 0s;
}
.va-launcher img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; }
.va-launcher:hover { transform: translateY(-3px); }
.va-launcher:active { transform: scale(0.94); }
.va-launcher:focus-visible { outline: 2px solid var(--blue); outline-offset: 5px; border-radius: 50%; }
.va-badge {
  position: absolute; top: -2px; right: -2px; width: 22px; height: 22px; border-radius: 50%;
  display: grid; place-items: center; background: var(--blue); color: #fff;
  box-shadow: 0 0 0 2.5px #fff, 0 3px 8px rgba(14, 108, 184, 0.45);
}
.va-badge svg { width: 12px; height: 12px; stroke-width: 2.4; }
.va-launcher.is-hidden {
  opacity: 0; transform: scale(0.6); visibility: hidden; pointer-events: none;
  transition: transform 0.3s var(--ease), opacity 0.2s var(--ease), visibility 0s linear 0.3s;
}

/* ---- Saludo, una vez por sesión ---- */
.va-greet {
  position: fixed; right: 98px; bottom: 32px; z-index: 60;
  display: flex; align-items: flex-start; max-width: 270px;
  background: #fff; border-radius: 18px 18px 6px 18px;
  box-shadow: 0 0 0 1px rgba(10, 24, 38, 0.06), 0 18px 40px -14px rgba(10, 34, 54, 0.35);
  opacity: 0; transform: translateY(10px) scale(0.92); transform-origin: 100% 100%;
  visibility: hidden; pointer-events: none;
  transition: opacity 0.22s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.va-greet.show {
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity 0.3s var(--ease), transform 0.6s var(--va-spring), visibility 0s;
}
.va-greet-open {
  flex: 1; min-height: 44px; padding: 13px 2px 13px 16px; border: 0; background: none;
  text-align: left; font-size: 0.88rem; line-height: 1.42; color: var(--ink-2); border-radius: 18px 0 0 6px;
}
.va-greet-open b { display: block; margin-bottom: 1px; font-weight: 700; color: var(--ink); }
.va-greet-x {
  width: 40px; height: 40px; margin: 4px 4px 0 0; flex: none; border: 0; border-radius: 12px;
  display: grid; place-items: center; background: none; color: var(--ink-3);
  transition: background 0.2s var(--ease), color 0.2s;
}
.va-greet-x:hover { background: var(--paper-2); color: var(--ink); }
.va-greet-x svg { width: 15px; height: 15px; }

/* ---- Fondo detrás de la hoja (solo teléfono) ---- */
.va-scrim {
  display: none; position: fixed; inset: 0; z-index: 89; background: rgba(10, 24, 38, 0.42);
  opacity: 0; visibility: hidden; pointer-events: none;
  transition: opacity 0.3s var(--ease), visibility 0s linear 0.3s;
}
.va-scrim.show { opacity: 1; visibility: visible; pointer-events: auto; transition: opacity 0.35s var(--ease), visibility 0s; }

/* ---- Panel ---- */
.va-panel {
  position: fixed; right: 24px; bottom: 24px; z-index: 90; /* sobre el header (80) */
  width: min(400px, calc(100vw - 32px));
  height: calc(100vh - 48px); height: min(620px, calc(100dvh - 48px));
  max-height: 620px;
  display: flex; flex-direction: column; overflow: hidden;
  background: #fff; border-radius: 24px;
  box-shadow: 0 0 0 1px rgba(10, 24, 38, 0.07), 0 2px 6px rgba(10, 24, 38, 0.05),
    0 24px 48px -16px rgba(10, 34, 54, 0.3), 0 60px 120px -40px rgba(10, 34, 54, 0.38);
  transform-origin: 100% 100%;
  opacity: 0; transform: translateY(18px) scale(0.94); visibility: hidden; pointer-events: none;
  transition: opacity 0.2s var(--ease), transform 0.3s var(--ease), visibility 0s linear 0.3s;
}
.va-panel.open {
  opacity: 1; transform: none; visibility: visible; pointer-events: auto;
  transition: opacity 0.25s var(--ease), transform 0.55s var(--va-spring), visibility 0s;
}
.va-panel:focus, .va-panel [tabindex="-1"]:focus { outline: none; }
.va-panel h2, .va-panel h3 { text-wrap: wrap; }

.va-grab { display: none; justify-content: center; padding: 9px 0 3px; flex: none; touch-action: none; }
.va-grab span { width: 40px; height: 5px; border-radius: 3px; background: var(--line-2); }

/* Encabezado: foto con anillo, nombre y estado */
.va-head {
  display: flex; align-items: center; gap: 12px; flex: none;
  padding: 12px 10px 12px 16px; background: #fff; border-bottom: 1px solid var(--line);
}
.va-ava {
  width: 44px; height: 44px; flex: none; border-radius: 50%; padding: 2px;
  background: linear-gradient(140deg, #9CCBF0, var(--blue) 62%, var(--blue-deep));
}
.va-ava img { display: block; width: 100%; height: 100%; border-radius: 50%; object-fit: cover; object-position: 50% 30%; border: 2px solid #fff; }
.va-id { flex: 1; min-width: 0; }
.va-title { font-size: 1rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.25; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.va-sep { margin: 0 6px; font-weight: 400; color: var(--ink-4); }
.va-role { font-weight: 500; color: var(--ink-2); }
.va-status { display: flex; align-items: center; gap: 7px; margin: 3px 0 0; font-size: 0.78rem; font-weight: 500; line-height: 1.2; color: var(--ink-3); }
.va-dot { position: relative; width: 8px; height: 8px; flex: none; border-radius: 50%; background: #22B35E; }
.va-dot::after { content: ''; position: absolute; inset: -4px; border-radius: 50%; background: #22B35E; opacity: 0; animation: vaPing 2.6s var(--ease) infinite; }
@keyframes vaPing { 0% { transform: scale(0.4); opacity: 0.35; } 70%, 100% { transform: scale(1.4); opacity: 0; } }
.va-ib {
  width: 40px; height: 40px; flex: none; border: 0; border-radius: 12px;
  display: grid; place-items: center; background: transparent; color: var(--ink-2);
  transition: background 0.2s var(--ease), color 0.2s;
}
.va-ib:hover { background: var(--paper-2); color: var(--ink); }
.va-ib svg { width: 20px; height: 20px; }

/* Cuerpo: cada pantalla entra entera (el overflow queda solo como red con texto agrandado) */
.va-scroll {
  flex: 1 1 auto; min-height: 0; overflow-y: auto; overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch; background: #FAFBFD;
}
.va-view { padding: 16px; }
.va-view.va-in { animation: vaFwd 0.42s var(--va-glide) both; }
.va-view.va-in--back { animation: vaBack 0.42s var(--va-glide) both; }
@keyframes vaFwd { from { opacity: 0; transform: translateX(14px); } to { opacity: 1; transform: none; } }
@keyframes vaBack { from { opacity: 0; transform: translateX(-14px); } to { opacity: 1; transform: none; } }
.va-ic { width: 36px; height: 36px; flex: none; border-radius: 11px; display: grid; place-items: center; background: var(--blue-soft); color: var(--blue); }
.va-ic svg { width: 19px; height: 19px; }

/* Inicio: saludo de una línea + 6 temas */
.va-hello { margin: 2px 2px 14px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 0.92rem; font-weight: 500; line-height: 1.45; letter-spacing: 0; color: var(--ink-2); }
.va-hello b { font-weight: 700; color: var(--ink); }
.va-tiles { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.va-tile {
  display: flex; flex-direction: column; align-items: flex-start; gap: 4px;
  min-height: 96px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px;
  background: #fff; text-align: left; color: var(--ink);
  box-shadow: 0 1px 2px rgba(10, 24, 38, 0.04);
  transition: transform 0.45s var(--va-spring), border-color 0.2s var(--ease), box-shadow 0.3s var(--ease);
}
.va-tile .va-ic { width: 32px; height: 32px; border-radius: 10px; margin-bottom: auto; }
.va-tile .va-ic svg { width: 17px; height: 17px; }
.va-tile-l { margin-top: 8px; font-size: 0.9rem; font-weight: 700; line-height: 1.25; letter-spacing: -0.005em; }
.va-tile-n { font-size: 0.74rem; font-weight: 500; color: var(--ink-3); }
.va-tile:hover { transform: translateY(-2px); border-color: #BCD5EE; box-shadow: 0 14px 26px -16px rgba(10, 34, 54, 0.4); }
.va-tile:active { transform: scale(0.97); }

/* Navegación de vuelta */
.va-nav { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: -6px -8px 6px; }
.va-back {
  display: inline-flex; align-items: center; gap: 4px; min-height: 40px; padding: 0 12px 0 6px;
  border: 0; border-radius: 10px; background: none; font-size: 0.86rem; font-weight: 600; color: var(--blue);
  transition: background 0.2s var(--ease);
}
.va-back:hover { background: var(--blue-soft); }
.va-back svg { width: 18px; height: 18px; flex: none; }
.va-back--home { padding: 0 10px; color: var(--ink-2); gap: 6px; }
.va-back--home svg { width: 17px; height: 17px; }

/* Tema: sus preguntas */
.va-cat-title { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; font-size: 1.08rem; font-weight: 700; letter-spacing: -0.015em; line-height: 1.25; color: var(--ink); }
.va-qlist { display: grid; gap: 8px; }
.va-q {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 52px; padding: 10px 14px 10px 16px;
  border: 1px solid var(--line); border-radius: 14px; background: #fff;
  text-align: left; font-size: 0.9rem; font-weight: 600; line-height: 1.35; color: var(--ink);
  transition: border-color 0.2s var(--ease), background 0.2s var(--ease), transform 0.4s var(--va-spring);
}
.va-q svg { width: 16px; height: 16px; flex: none; color: var(--ink-3); transition: transform 0.4s var(--va-spring), color 0.2s; }
.va-q:hover { border-color: #BCD5EE; background: #F8FBFE; }
.va-q:hover svg { transform: translateX(3px); color: var(--blue); }
.va-q:active { transform: scale(0.98); }

/* Respuesta */
.va-ans {
  padding: 14px 16px 16px; border: 1px solid var(--line); border-radius: 18px; background: #fff;
  box-shadow: 0 1px 2px rgba(10, 24, 38, 0.04), 0 10px 26px -16px rgba(10, 34, 54, 0.2);
}
.va-ans-cat { display: flex; align-items: center; gap: 6px; margin: 0 0 6px; font-size: 0.68rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: var(--blue); }
.va-ans-cat svg { width: 14px; height: 14px; }
.va-ans-q { margin: 0 0 8px; font-size: 1.02rem; font-weight: 700; letter-spacing: -0.01em; line-height: 1.3; color: var(--ink); }
.va-ans-lead { margin: 0; font-size: 0.9rem; line-height: 1.5; color: var(--ink-2); }
.va-ans-lead b { font-weight: 600; color: var(--ink); }
.va-ans-list { display: grid; gap: 6px; margin: 10px 0 0; }
.va-ans-list li { position: relative; padding-left: 20px; font-size: 0.86rem; line-height: 1.45; color: var(--ink-2); }
.va-ans-list li::before {
  content: ''; position: absolute; left: 2px; top: 0.4em; width: 11px; height: 11px; border-radius: 50%;
  background: var(--blue-soft) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 12 12'%3E%3Cpath d='m3.4 6.2 1.7 1.6 3.5-3.6' fill='none' stroke='%230E6CB8' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") center / 11px no-repeat;
}
.va-acts { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 14px; }
.va-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 42px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px;
  font-size: 0.85rem; font-weight: 600; line-height: 1.2; text-align: center;
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), color 0.2s, transform 0.4s var(--va-spring);
}
.va-btn:active { transform: scale(0.97); }
.va-btn svg { width: 17px; height: 17px; flex: none; }
.va-btn--wa { flex: 1 1 100%; background: var(--va-wa); color: #fff; }
.va-btn--wa:hover { background: var(--va-wa-deep); }
.va-btn--line { flex: 1 1 auto; background: #fff; color: var(--ink); border-color: var(--line-2); }
.va-btn--line:hover { border-color: var(--blue); color: var(--blue); }
.va-btn--line svg { color: var(--ink-3); }
.va-btn--line:hover svg { color: var(--blue); }

/* Pie: derivación a una persona (reemplaza escribir) */
.va-foot { flex: none; padding: 10px 12px; padding-bottom: calc(10px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #fff; }
.va-human {
  display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 6px 12px 6px 8px;
  border: 1px solid #CDE8D8; border-radius: 14px; background: #F2FAF5; color: var(--va-wa);
  transition: background 0.2s var(--ease), border-color 0.2s var(--ease), transform 0.4s var(--va-spring);
}
.va-human:hover { background: #E6F5EC; border-color: #A9DABD; }
.va-human:active { transform: scale(0.98); }
.va-human-ic { width: 36px; height: 36px; flex: none; border-radius: 50%; display: grid; place-items: center; background: var(--va-wa); color: #fff; }
.va-human-ic svg { width: 19px; height: 19px; }
.va-human-t { flex: 1; min-width: 0; display: flex; flex-direction: column; font-size: 0.9rem; font-weight: 700; line-height: 1.25; }
.va-human-t small { font-size: 0.74rem; font-weight: 500; color: var(--ink-3); }
.va-human > svg { width: 16px; height: 16px; flex: none; }

/* La página de atrás no scrollea con la hoja abierta (teléfono) */
html.va-lock, html.va-lock body { overflow: hidden; }

/* Ventanas bajas (teléfono acostado, laptop chica): el panel usa todo el alto */
@media (min-width: 561px) and (max-height: 640px) {
  .va-panel { bottom: 12px; height: calc(100vh - 24px); height: calc(100dvh - 24px); max-height: none; }
  .va-tile { min-height: 84px; }
}

/* Teléfono: hoja de alto completo, con agarre y zonas seguras */
@media (max-width: 560px) {
  .va-launcher { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom)); width: 58px; height: 58px; }
  .va-greet { right: 86px; bottom: calc(20px + env(safe-area-inset-bottom)); max-width: min(250px, calc(100vw - 106px)); }
  .va-scrim { display: block; }
  .va-panel {
    left: 0; right: 0; width: auto; height: auto; max-height: none;
    top: calc(var(--va-vvtop, 0px) + max(14px, env(safe-area-inset-top)));
    bottom: var(--va-kb, 0px);
    border-radius: 22px 22px 0 0;
    opacity: 1; transform: translateY(100%); transform-origin: 50% 100%;
    transition: transform 0.32s var(--ease), visibility 0s linear 0.32s;
  }
  .va-panel.open { transform: none; transition: transform 0.5s var(--va-glide), visibility 0s; }
  .va-panel.is-drag { transition: none; }
  .va-grab { display: flex; }
  .va-head { padding-top: 6px; touch-action: none; }
  .va-view { padding: 14px; }
  .va-tile { min-height: 104px; padding: 13px; }
}
/* Teléfonos bajos (iPhone SE): todo un poco más compacto */
@media (max-width: 560px) and (max-height: 700px) {
  .va-head { padding-bottom: 10px; }
  .va-tile { min-height: 92px; }
  .va-tile-l { margin-top: 6px; }
  .va-q { min-height: 48px; }
}

@media (prefers-reduced-motion: reduce) {
  .va-launcher, .va-launcher.is-hidden, .va-greet, .va-greet.show, .va-panel, .va-panel.open, .va-scrim, .va-scrim.show { transition-delay: 0s !important; }
  .va-panel, .va-panel.open, .va-greet, .va-launcher.is-hidden { transform: none !important; }
  .va-dot::after, .va-view.va-in, .va-view.va-in--back { animation: none !important; }
}
