/* G&V Soluciones y Servicios Integrales: sitio público.
   Radios: controles 12px, paneles 22px, chips redondos. Un acento violeta (compartido con el Laboratorio IA). */

@font-face { font-family: "Geist"; src: url("/fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

:root {
  --bg: #f5f4f8;
  --surface: #ffffff;
  --surface-2: #edebf3;
  --line: #dfdce8;
  --line-strong: #c9c5d7;
  --text: #16141c;
  --text-2: #4c485e;
  --text-3: #6a667e;
  --accent: #5b3fd3;
  --accent-hover: #4c32bf;
  --accent-ink: #ffffff;
  --accent-soft: #ebe6ff;
  --accent-text: #4a2fbf;
  --ink: #1b1828;
  --ink-text: #efedf6;
  --ink-text-2: #b8b2cc;
  --glass: rgb(255 255 255 / .72);
  --glass-line: rgb(255 255 255 / .9);
  --wa: #1d8a4b;
  --wa-hover: #17773f;
  --danger: #b4233c;
  --danger-soft: #fbe9ec;
  --ok: #1f7a46;
  --ok-soft: #e4f4ea;
  --shadow: 0 2px 6px rgb(35 25 80 / .06), 0 18px 40px rgb(35 25 80 / .10);
  --shadow-lg: 0 6px 16px rgb(35 25 80 / .10), 0 30px 70px rgb(35 25 80 / .16);
  --r-ctl: 12px;
  --r-panel: 22px;
  --ease-out: cubic-bezier(0.23, 1, 0.32, 1);
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #110f17;
    --surface: #1a1822;
    --surface-2: #221f2c;
    --line: #2d2a38;
    --line-strong: #3c3849;
    --text: #efedf5;
    --text-2: #bbb6cb;
    --text-3: #948fa8;
    --accent: #9079f2;
    --accent-hover: #a18df4;
    --accent-ink: #110e19;
    --accent-soft: #2a2344;
    --accent-text: #bcaefa;
    --ink: #221e33;
    --ink-text: #efedf6;
    --ink-text-2: #bdb7d2;
    --glass: rgb(30 27 42 / .72);
    --glass-line: rgb(255 255 255 / .12);
    --wa: #2aa463;
    --wa-hover: #35b670;
    --danger: #f08097;
    --danger-soft: #3a1d25;
    --ok: #6fd39b;
    --ok-soft: #173325;
    --shadow: 0 2px 6px rgb(0 0 0 / .3), 0 18px 40px rgb(0 0 0 / .35);
    --shadow-lg: 0 6px 16px rgb(0 0 0 / .35), 0 30px 70px rgb(0 0 0 / .45);
    color-scheme: dark;
  }
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body { margin: 0; background: var(--bg); color: var(--text); font: 16px/1.6 var(--font); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.i { width: 20px; height: 20px; flex: none; }
.i.sm { width: 16px; height: 16px; }
.wrap { width: 100%; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.skip { position: absolute; left: 16px; top: -48px; padding: 8px 14px; border-radius: 8px; background: var(--accent); color: var(--accent-ink); z-index: 100; }
.skip:focus { top: 12px; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 42px; padding: 0 18px; border-radius: var(--r-ctl); border: 1px solid transparent;
  font-weight: 560; font-size: 15px; text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 140ms var(--ease-out);
}
.btn:active { transform: scale(0.97); }
.btn.lg { height: 52px; padding: 0 22px; font-size: 16px; }
.btn.block { width: 100%; }
.btn.primary { background: var(--accent); color: var(--accent-ink); }
.btn.primary:hover { background: var(--accent-hover); }
.btn.outline { border-color: var(--line-strong); background: var(--surface); }
.btn.outline:hover { border-color: var(--text-3); }
.btn.whatsapp { background: var(--wa); color: #fff; }
.btn.whatsapp:hover { background: var(--wa-hover); }
.btn .i { transition: transform 200ms var(--ease-out); }
.btn:hover .i.sm:last-child { transform: translateX(2px); }
.btn:disabled { opacity: .6; cursor: default; }

/* ---------- Navegación ---------- */
.nav {
  position: sticky; top: 0; z-index: 40;
  background: color-mix(in oklab, var(--bg) 80%, transparent);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom: 1px solid transparent; transition: border-color 200ms var(--ease-out);
}
.nav.scrolled { border-bottom-color: var(--line); }
#top-sentinel { position: absolute; top: 0; height: 8px; width: 1px; }
.nav-inner { display: flex; align-items: center; gap: 24px; height: 68px; max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.logo { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; }
.logo-mark { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 11px; background: var(--accent); color: var(--accent-ink); font-weight: 700; font-size: 13.5px; letter-spacing: -0.02em; }
.logo-text { display: grid; line-height: 1.1; font-weight: 640; font-size: 16px; letter-spacing: -0.02em; }
.logo-text small { font-weight: 450; font-size: 12px; color: var(--text-3); letter-spacing: 0; }
.nav-links { display: flex; align-items: center; gap: 4px; margin-left: 16px; }
.nav-links a { padding: 8px 12px; border-radius: 10px; color: var(--text-2); text-decoration: none; font-size: 15px; transition: color 160ms var(--ease-out), background-color 160ms var(--ease-out); }
.nav-links a:hover { color: var(--text); background: var(--surface-2); }
.nav-links .nav-cta-mobile { display: none; }
.nav-end { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.link-quiet { color: var(--text-2); text-decoration: none; font-size: 15px; padding: 8px 10px; }
.link-quiet:hover { color: var(--text); }
.menu-btn { display: none; width: 42px; height: 42px; place-items: center; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); cursor: pointer; }

/* ---------- Portada 3D ---------- */
.hero { position: relative; padding: 40px 0 40px; overflow: hidden;
  background: radial-gradient(45% 60% at 75% 45%, color-mix(in oklab, var(--accent) 20%, transparent), transparent 70%); }
.hero-glow { display: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 32px; align-items: center; min-height: min(760px, calc(100dvh - 68px)); }
.hero-welcome { margin: 0 0 10px; font-size: 20px; font-weight: 520; color: var(--accent-text); }
.hero h1 { margin: 0 0 22px; font-size: clamp(2.5rem, 4.3vw, 3.8rem); line-height: 1.03; letter-spacing: -0.04em; font-weight: 680; text-wrap: balance; }
.hero-sub { margin: 0 0 32px; max-width: 40ch; font-size: 19px; line-height: 1.5; color: var(--text-2); }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 12px; }

.stage { position: relative; height: min(700px, calc(100dvh - 120px)); min-height: 520px; perspective: 1200px; transform-style: preserve-3d; }
.layer { position: absolute; will-change: transform; transition: transform 600ms var(--ease-out); }
.layer-ring { left: 8%; right: 4%; top: 6%; aspect-ratio: 1; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, color-mix(in oklab, var(--accent) 55%, white 10%), var(--accent) 55%, color-mix(in oklab, var(--accent) 70%, black 30%));
  box-shadow: inset 0 -30px 60px rgb(0 0 0 / .25), 0 40px 90px color-mix(in oklab, var(--accent) 35%, transparent); }
.layer-mono { left: 0; right: 0; top: 2%; text-align: center; font-weight: 800; font-size: clamp(7rem, 15vw, 13rem); letter-spacing: -0.06em; line-height: 1;
  color: transparent; -webkit-text-stroke: 1.5px color-mix(in oklab, var(--accent) 45%, transparent); user-select: none; }
.layer-photo { left: 0; right: 0; bottom: 0; top: 4%; display: flex; justify-content: center; align-items: flex-end; }
.layer-photo img { height: 100%; width: auto; max-width: none; object-fit: contain; filter: drop-shadow(0 30px 40px rgb(20 10 50 / .28)); }
.chip { display: inline-flex; align-items: center; gap: 8px; padding: 10px 14px; border-radius: 999px; font-size: 14px; font-weight: 560;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow);
  backdrop-filter: blur(12px) saturate(160%); -webkit-backdrop-filter: blur(12px) saturate(160%); }
.chip .i { color: var(--accent-text); }
.chip-a { top: 22%; left: -4%; }
.chip-b { top: 48%; right: -2%; }
.chip-c { bottom: 24%; left: 2%; }
.ceo-card { right: 4%; bottom: 8%; display: grid; padding: 14px 18px; border-radius: 16px; line-height: 1.25;
  background: var(--glass); border: 1px solid var(--glass-line); box-shadow: var(--shadow-lg);
  backdrop-filter: blur(14px) saturate(160%); -webkit-backdrop-filter: blur(14px) saturate(160%); }
.ceo-card strong { font-size: 18px; letter-spacing: -0.01em; }
.ceo-card span { font-size: 13.5px; color: var(--text-2); }
@media (prefers-reduced-transparency: reduce) { .chip, .ceo-card { background: var(--surface); backdrop-filter: none; } }

/* ---------- Datos ---------- */
.facts { border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--surface); }
.facts-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.fact { display: grid; gap: 2px; padding: 26px 24px; border-left: 1px solid var(--line); }
.fact:first-child { border-left: 0; padding-left: 0; }
.fact strong { font-size: 21px; letter-spacing: -0.02em; font-weight: 650; }
.fact span { color: var(--text-2); font-size: 15px; }

/* ---------- Secciones ---------- */
.section { padding: 104px 0; }
.section-title { margin: 0 0 40px; max-width: 22ch; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 640; }
.lead { font-size: 18px; color: var(--text-2); max-width: 52ch; }
.fine { font-size: 13px; color: var(--text-3); margin: 12px 0 0; }

/* Servicios */
.services-head { display: grid; gap: 4px; margin-bottom: 8px; }
.services-head .section-title { margin-bottom: 24px; }
.filter { display: inline-flex; flex-wrap: wrap; gap: 6px; margin-bottom: 32px; }
.filter button { height: 40px; padding: 0 16px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--text-2); font-weight: 540; cursor: pointer;
  transition: background-color 180ms var(--ease-out), color 180ms var(--ease-out), border-color 180ms var(--ease-out), transform 140ms var(--ease-out); }
.filter button:hover { border-color: var(--line-strong); color: var(--text); }
.filter button:active { transform: scale(0.97); }
.filter button[aria-selected="true"] { background: var(--text); color: var(--bg); border-color: var(--text); }
.services { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.svc {
  position: relative; display: flex; flex-direction: column; gap: 10px; padding: 28px; min-height: 250px;
  border-radius: var(--r-panel); background: var(--surface); border: 1px solid var(--line); overflow: hidden;
  transition: transform 260ms var(--ease-out), box-shadow 260ms var(--ease-out), opacity 260ms var(--ease-out), border-color 260ms var(--ease-out);
}
@media (hover: hover) { .svc:hover { transform: translateY(-4px); box-shadow: var(--shadow); border-color: var(--line-strong); } }
.svc.dim { opacity: .28; transform: scale(0.98); }
.svc-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.svc-icon { width: 32px; height: 32px; color: var(--accent); }
.tag { padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 600; background: var(--accent-soft); color: var(--accent-text); white-space: nowrap; }
.svc h3 { margin: 0; font-size: 21px; letter-spacing: -0.02em; font-weight: 640; line-height: 1.2; }
.svc p { margin: 0; color: var(--text-2); }
.svc ul { margin: auto 0 0; padding: 14px 0 0; list-style: none; display: flex; flex-wrap: wrap; gap: 6px; }
.svc li { padding: 5px 11px; border-radius: 999px; font-size: 13px; color: var(--text-2); background: var(--surface-2); }
.svc-feature { grid-column: span 2; background: radial-gradient(90% 130% at 100% 0%, color-mix(in oklab, var(--accent) 16%, transparent), transparent 60%), var(--surface); }
.svc-feature h3 { font-size: 27px; }
.svc-dark { background: var(--ink); color: var(--ink-text); border-color: var(--ink); }
.svc-dark p { color: var(--ink-text-2); }
.svc-dark .svc-icon { color: #bcaefa; }
.svc-build { background-color: #163049; color: #eaf1f7; border-color: #163049;
  background-image: linear-gradient(rgb(255 255 255 / .07) 1px, transparent 1px), linear-gradient(90deg, rgb(255 255 255 / .07) 1px, transparent 1px); background-size: 22px 22px; }
.svc-build p { color: #c4d4e2; }
.svc-build .svc-icon { color: #f2b544; }
.svc-build .tag { background: rgb(242 181 68 / .18); color: #f6c86a; }
.svc-digital { grid-column: span 3; min-height: 0; background: linear-gradient(110deg, var(--accent-soft), var(--surface) 70%); }
.svc-digital .tag { background: var(--surface); }
.filter-empty { color: var(--text-2); }

/* Cotizador */
.quote-section { background: linear-gradient(180deg, transparent, var(--surface-2) 15%, var(--surface-2) 85%, transparent); }
.quote-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.quote-copy h2 { margin: 0 0 32px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 640; max-width: 16ch; }
.pricing { margin: 0; padding: 0; list-style: none; display: grid; gap: 22px; }
.pricing li { display: grid; grid-template-columns: 44px 1fr; gap: 16px; align-items: start; }
.pricing .i { width: 44px; height: 44px; padding: 11px; border-radius: 12px; background: var(--surface); color: var(--accent-text); border: 1px solid var(--line); }
.pricing strong { font-size: 18px; font-weight: 620; }
.pricing p { margin: 2px 0 0; color: var(--text-2); max-width: 44ch; }
.quote-card { padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.quote-card h3 { margin: 0 0 6px; font-size: 24px; letter-spacing: -0.02em; }
.quote-hint { margin: 0 0 20px; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 20px; padding: 0; border: 0; }
.chips label { cursor: pointer; }
.chips input { position: absolute; opacity: 0; pointer-events: none; }
.chips span { display: inline-flex; align-items: center; height: 38px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--line-strong); font-size: 14.5px; font-weight: 520; color: var(--text-2);
  transition: background-color 160ms var(--ease-out), color 160ms var(--ease-out), border-color 160ms var(--ease-out), transform 140ms var(--ease-out); }
.chips label:active span { transform: scale(0.96); }
.chips input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }
.chips input:focus-visible + span { outline: 2px solid var(--accent); outline-offset: 2px; }

/* Formularios */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.field { display: grid; gap: 7px; margin-bottom: 16px; }
.field label { font-size: 14px; font-weight: 560; color: var(--text-2); }
.field input, .field select, .field textarea { width: 100%; padding: 12px 14px; border-radius: var(--r-ctl); border: 1px solid var(--line-strong); background: var(--surface);
  transition: border-color 160ms var(--ease-out), box-shadow 160ms var(--ease-out); }
.field input, .field select { height: 48px; padding-top: 0; padding-bottom: 0; }
.field textarea { resize: vertical; min-height: 104px; line-height: 1.5; }
.field textarea::placeholder { color: var(--text-3); }
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in oklab, var(--accent) 22%, transparent); }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.form-error { margin: 0 0 16px; padding: 12px 14px; border-radius: var(--r-ctl); background: var(--danger-soft); color: var(--danger); font-size: 14.5px; }
.form-ok { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 14px; background: var(--ok-soft); color: var(--ok); }
.form-ok .i { width: 24px; height: 24px; }
.form-ok p { margin: 2px 0 0; color: var(--text-2); }

/* Laboratorio */
.lab-grid { display: grid; grid-template-columns: 7fr 5fr; gap: 64px; align-items: center; }
.lab-shot { margin: 0; border-radius: var(--r-panel); overflow: hidden; border: 1px solid var(--line); box-shadow: var(--shadow-lg); }
.lab-copy h2 { margin: 0 0 16px; font-size: clamp(2rem, 3.2vw, 2.7rem); line-height: 1.08; letter-spacing: -0.035em; font-weight: 640; }
.agents { margin: 24px 0 28px; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.agents li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--surface); border: 1px solid var(--line); }
.agents .i { color: var(--accent); }
.agents span { display: grid; line-height: 1.3; color: var(--text-2); font-size: 13.5px; }
.agents strong { color: var(--text); font-weight: 600; font-size: 15px; }

/* Nosotros */
.about { background: var(--ink); color: var(--ink-text); }
.about-grid { display: grid; grid-template-columns: 5fr 7fr; gap: 72px; align-items: center; }
.about-photo { position: relative; margin: 0; border-radius: 28px; overflow: hidden; box-shadow: 0 30px 80px rgb(0 0 0 / .35); }
.about-photo img { width: 100%; aspect-ratio: 1; object-fit: cover; }
.about-photo figcaption { position: absolute; left: 16px; right: 16px; bottom: 16px; display: grid; padding: 14px 16px; border-radius: 16px; line-height: 1.3;
  background: rgb(20 16 32 / .62); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); color: #fff; }
.about-photo figcaption span { font-size: 14px; color: #d6d1e6; }
.about-copy h2 { margin: 0 0 20px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 640; max-width: 18ch; }
.about-copy .lead { color: var(--ink-text); }
.about-copy p { color: var(--ink-text-2); max-width: 58ch; }
.values { margin: 28px 0 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.values li { display: flex; align-items: center; gap: 12px; font-weight: 540; }
.values .i { color: #bcaefa; }

/* Certificaciones */
.certs { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; }
.cert { display: grid; gap: 6px; padding: 22px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none;
  transition: transform 220ms var(--ease-out), border-color 220ms var(--ease-out), box-shadow 220ms var(--ease-out); }
a.cert:hover { transform: translateY(-3px); border-color: var(--accent); box-shadow: var(--shadow); }
.cert-issuer { font-size: 13px; font-weight: 600; color: var(--accent-text); }
.cert strong { font-size: 17px; line-height: 1.3; font-weight: 600; }
.cert-meta { display: flex; justify-content: space-between; gap: 8px; margin-top: 6px; font-size: 13px; color: var(--text-3); }

/* Preguntas */
.faq { display: grid; gap: 10px; max-width: 880px; }
.faq details { border-radius: 16px; background: var(--surface); border: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 18px 22px; font-weight: 560; font-size: 17px; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary .i { color: var(--text-3); transition: transform 240ms var(--ease-out); }
.faq details[open] summary .i { transform: rotate(45deg); }
.faq details p { margin: 0; padding: 0 22px 20px; color: var(--text-2); max-width: 66ch; }

/* Contacto */
.contact-section { padding-bottom: 112px; }
.contact { display: grid; grid-template-columns: 5fr 6fr; gap: 64px; align-items: start; }
.contact-info h2 { margin: 0 0 12px; font-size: clamp(2rem, 3.4vw, 2.9rem); line-height: 1.07; letter-spacing: -0.035em; font-weight: 640; }
.contact-info .lead { margin: 0 0 28px; }
.contact-list { margin: 36px 0 0; display: grid; gap: 20px; }
.contact-list div { display: grid; gap: 4px; }
.contact-list dt { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.contact-list dt .i { width: 17px; height: 17px; }
.contact-list dd { margin: 0 0 0 25px; font-size: 16px; }
.contact-list a { color: var(--accent-text); text-underline-offset: 3px; }
.contact-form { padding: 32px; border-radius: 26px; background: var(--surface); border: 1px solid var(--line); box-shadow: var(--shadow); }
.contact-form h3 { margin: 0 0 20px; font-size: 22px; letter-spacing: -0.02em; }

/* Pie */
.footer { border-top: 1px solid var(--line); padding: 64px 0 32px; background: var(--surface); }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1.2fr; gap: 40px; }
.footer-brand p { margin: 16px 0 20px; color: var(--text-2); max-width: 34ch; font-size: 15px; }
.socials { display: flex; gap: 8px; }
.socials a { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 12px; border: 1px solid var(--line); color: var(--text-2); transition: color 160ms var(--ease-out), border-color 160ms var(--ease-out); }
.socials a:hover { color: var(--accent-text); border-color: var(--accent); }
.footer-col { display: grid; align-content: start; gap: 10px; font-size: 15px; }
.footer-col h3 { margin: 0 0 4px; font-size: 13px; font-weight: 600; color: var(--text-3); }
.footer-col a, .footer-col span { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.footer-col a:hover { color: var(--text); }
.footer-bottom { display: flex; justify-content: space-between; gap: 16px; margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); font-size: 13.5px; color: var(--text-3); }

.wa-float { position: fixed; right: 22px; bottom: 22px; z-index: 50; display: grid; place-items: center; width: 58px; height: 58px; border-radius: 50%;
  background: var(--wa); color: #fff; box-shadow: 0 8px 24px rgb(20 90 50 / .35); transition: transform 200ms var(--ease-out), background-color 200ms var(--ease-out); }
.wa-float .i { width: 29px; height: 29px; }
.wa-float:hover { background: var(--wa-hover); transform: scale(1.05); }
.wa-float:active { transform: scale(0.96); }

/* ---------- Movimiento ---------- */
@keyframes rise { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }
@keyframes float-in { from { opacity: 0; transform: translateY(24px) scale(0.97); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: no-preference) {
  .rise { animation: rise 760ms var(--ease-out) both; }
  .hero-copy .rise:nth-child(2) { animation-delay: 70ms; }
  .hero-copy .rise:nth-child(3) { animation-delay: 140ms; }
  .hero-copy .rise:nth-child(4) { animation-delay: 210ms; }
  .stage.rise { animation: float-in 1000ms var(--ease-out) 120ms both; }
  .js .reveal { opacity: 0; transform: translateY(18px); transition: opacity 700ms var(--ease-out), transform 700ms var(--ease-out); transition-delay: var(--d, 0ms); }
  .js .reveal.in { opacity: 1; transform: none; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition-duration: 1ms !important; animation-duration: 1ms !important; }
}

/* ---------- Tableta y móvil ---------- */
@media (max-width: 1080px) {
  .nav-links { display: none; }
  .menu-btn { display: inline-grid; }
  .nav-links.open { display: grid; position: absolute; top: 68px; left: 0; right: 0; margin: 0; padding: 12px 20px 20px; gap: 2px;
    background: var(--bg); border-bottom: 1px solid var(--line); box-shadow: var(--shadow); animation: rise 220ms var(--ease-out); }
  .nav-links.open a { padding: 12px; font-size: 17px; }
  .nav-links.open .nav-cta-mobile { display: inline-flex; margin-top: 8px; color: var(--accent-ink); }
  .hero-grid { grid-template-columns: 1fr; min-height: 0; gap: 8px; }
  .hero-copy { padding-top: 24px; }
  .stage { height: 600px; max-width: 560px; width: 100%; margin: 0 auto; }
  .facts-grid { grid-template-columns: repeat(2, 1fr); }
  .fact:nth-child(3) { border-left: 0; padding-left: 0; }
  .fact:nth-child(n+3) { border-top: 1px solid var(--line); }
  .services { grid-template-columns: repeat(2, 1fr); }
  .svc-digital { grid-column: span 2; }
  .quote-grid, .lab-grid, .about-grid, .contact { grid-template-columns: 1fr; gap: 40px; }
  .about-photo { max-width: 520px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 767px) {
  .wrap, .nav-inner { padding: 0 18px; }
  .nav-end .link-quiet, .nav-end .btn { display: none; }
  .logo-text small { display: none; }
  .hero-welcome { font-size: 17px; }
  .hero h1 { font-size: 2.45rem; }
  .hero-sub { font-size: 17px; }
  .hero-ctas .btn { width: 100%; }
  .stage { height: 480px; min-height: 0; }
  .chip { font-size: 12.5px; padding: 8px 11px; }
  .chip-a { left: 0; } .chip-b { right: 0; } .chip-c { left: 0; }
  .ceo-card { right: 0; padding: 10px 14px; } .ceo-card strong { font-size: 16px; }
  .layer-mono { font-size: 7.5rem; }
  .facts-grid { grid-template-columns: 1fr 1fr; }
  .fact { padding: 18px 14px; } .fact strong { font-size: 18px; } .fact span { font-size: 14px; }
  .section { padding: 72px 0; }
  .services, .form-row, .footer-grid, .agents { grid-template-columns: 1fr; }
  .svc-feature, .svc-digital { grid-column: span 1; }
  .svc { min-height: 0; padding: 24px; }
  .quote-card, .contact-form { padding: 22px; }
  .footer-bottom { flex-direction: column; }
  .wa-float { right: 16px; bottom: 16px; }
}
