/* ==========================================================================
   Pugar Lab · estilo de la web nueva (fase 3, 18/11/2026)
   Paleta cálida (cambio pedido por Pol el 18/11/2026): crema, casi negro y terracota;
   Chivo + Chivo Mono; tarjetas grandes con imagen de cabecera; botones en píldora.
   ========================================================================== */

:root {
  /* Colores: crema cálido, casi negro y terracota (contrastes medidos, todos ≥ 4,5:1) */
  --bg: #F6F0E7;          /* fondo general, crema cálido */
  --surface: #ECE3D6;     /* superficies y huecos de foto */
  --white: #FCF9F4;       /* «blanco» roto: tarjetas, secciones claras y texto sobre terracota (5,2:1) */
  --ink: #0B0C0E;         /* texto, casi negro */
  --muted: #5A5148;       /* texto secundario cálido (6,9:1 sobre --bg) */
  --line: #E2D7C7;
  --accent: #B4471F;      /* terracota */
  --accent-hover: #963A18;
  --accent-soft: #F6DED1;
  --accent-ink: #8C3615;  /* texto terracota sobre fondos claros (7:1) */
  --accent-on-dark: #F0A07A; /* terracota claro sobre la banda oscura (9,3:1) */
  --urgent: #A8261B;      /* «Urgencia alta» */
  --urgent-soft: #FBE9E7;
  --ok: #17703D;          /* «Respuesta preparada» */
  --ok-soft: #E3F3E9;
  --dark: #0B0C0E;        /* banda de la demo */
  --dark-2: #1A1816;
  --dark-3: #22201D;
  --on-dark: #F6F1EA;
  --on-dark-muted: #BDB4A8;

  /* Letras */
  --f-sans: 'Chivo', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --f-mono: 'Chivo Mono', ui-monospace, 'SFMono-Regular', Menlo, Consolas, monospace;

  /* Medidas */
  --wrap: 1240px;
  --gutter: 20px;
  --r-sm: 10px;
  --r-md: 16px;
  --r-lg: 24px;
  --r-xl: 32px;
  --r-pill: 999px;
  --header-h: 76px;
  --sec-pad: clamp(72px, 9vw, 128px);
  --ease-out: cubic-bezier(.23, 1, .32, 1);
  --ease-in-out: cubic-bezier(.77, 0, .175, 1);
  --shadow-card: 0 1px 2px rgba(11, 12, 14, .05), 0 12px 32px -16px rgba(11, 12, 14, .18);
}
@media (min-width: 768px) { :root { --gutter: 32px; } }

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0;
  font: 400 1.0625rem/1.6 var(--f-sans);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  -webkit-tap-highlight-color: transparent;
  overflow-x: clip;
}
img, video, svg { display: block; max-width: 100%; }
h1, h2, h3, h4 { margin: 0; font-weight: 500; text-wrap: balance; }
p, ul, ol, dl, dd, figure { margin: 0; }
ul[role="list"], ol[role="list"] { list-style: none; padding: 0; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px; border-radius: 6px; }
.on-dark :focus-visible, .section--dark :focus-visible { outline-color: var(--accent-on-dark); }

.wrap { width: 100%; max-width: calc(var(--wrap) + var(--gutter) * 2); margin: 0 auto; padding: 0 max(var(--gutter), env(safe-area-inset-left)) 0 max(var(--gutter), env(safe-area-inset-right)); }
.sr-only { position: absolute !important; width: 1px; height: 1px; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip-link { position: absolute; left: 16px; top: -100px; z-index: 100; padding: 12px 18px; border-radius: var(--r-pill); background: var(--ink); color: var(--white); text-decoration: none; font-weight: 500; }
.skip-link:focus { top: 16px; }

/* ---------- Tipografía ---------- */
.h1 { font-size: clamp(2.25rem, 4.4vw, 3.65rem); line-height: 1.05; letter-spacing: -.04em; }
.h2 { font-size: clamp(2rem, 4.4vw, 3.4rem); line-height: 1.06; letter-spacing: -.035em; }
.h3 { font-size: clamp(1.3rem, 2vw, 1.6rem); line-height: 1.2; letter-spacing: -.02em; }
.h4 { font-size: 1.15rem; line-height: 1.3; letter-spacing: -.01em; }
.lead { font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.5; color: var(--muted); }
.muted { color: var(--muted); }
.small { font-size: .9375rem; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font: 500 .78rem/1 var(--f-mono); letter-spacing: .04em; text-transform: uppercase; color: var(--muted);
}
.eyebrow::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); flex: none; }
.eyebrow--pill { padding: 9px 14px; border-radius: var(--r-pill); background: rgba(11, 12, 14, .06); }
.text-link { text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; text-decoration-color: currentColor; }
@media (hover: hover) and (pointer: fine) { .text-link:hover { color: var(--accent-ink); } }

/* ---------- Botones (píldora, «tonal») ---------- */
.btn {
  --btn-bg: var(--accent); --btn-fg: var(--white); --btn-bg-hover: var(--accent-hover);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 24px; border: 0; border-radius: var(--r-pill);
  background: var(--btn-bg); color: var(--btn-fg);
  font: 500 1rem/1 var(--f-sans); text-decoration: none; white-space: nowrap; cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease-out), box-shadow .2s ease;
}
.btn svg { width: 18px; height: 18px; flex: none; transition: transform .2s var(--ease-out); }
.btn:active { transform: scale(.97); }
.btn--tonal { --btn-bg: rgba(11, 12, 14, .07); --btn-fg: var(--ink); --btn-bg-hover: rgba(11, 12, 14, .12); }
.btn--white { --btn-bg: var(--white); --btn-fg: var(--ink); --btn-bg-hover: #F1E7DA; }
.btn--on-dark { --btn-bg: rgba(255, 255, 255, .1); --btn-fg: var(--on-dark); --btn-bg-hover: rgba(255, 255, 255, .18); }
.btn--sm { min-height: 44px; padding: 0 18px; font-size: .9375rem; }
@media (hover: hover) and (pointer: fine) {
  .btn:hover { background: var(--btn-bg-hover); }
  .btn:hover svg.arrow { transform: translateX(3px); }
}
.icon-btn {
  display: inline-grid; place-items: center; width: 48px; height: 48px; padding: 0; border: 0; border-radius: 50%;
  background: rgba(255, 255, 255, .1); color: var(--on-dark); cursor: pointer;
  transition: background-color .2s ease, transform .16s var(--ease-out), opacity .2s ease;
}
.icon-btn svg { width: 20px; height: 20px; }
.icon-btn:active { transform: scale(.94); }
.icon-btn:disabled { opacity: .35; cursor: default; }
@media (hover: hover) and (pointer: fine) { .icon-btn:not(:disabled):hover { background: rgba(255, 255, 255, .2); } }

/* ---------- Cabecera ---------- */
.site-header { position: sticky; top: 0; z-index: 50; padding-top: 12px; }
.site-header__bar {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  height: 64px; padding: 0 10px 0 20px; border-radius: var(--r-pill);
  background: rgba(252, 249, 244, .94); box-shadow: 0 1px 0 rgba(11, 12, 14, .04), 0 8px 24px -14px rgba(11, 12, 14, .25);
}
.logo { display: inline-flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; letter-spacing: -.02em; text-decoration: none; min-height: 44px; }
.logo svg { width: 28px; height: 28px; }
.nav { display: none; }
.nav ul { display: flex; gap: 4px; list-style: none; margin: 0; padding: 0; }
.nav a { display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px; border-radius: var(--r-pill); text-decoration: none; color: var(--muted); font-weight: 500; transition: color .2s ease, background-color .2s ease; }
@media (hover: hover) and (pointer: fine) { .nav a:hover { color: var(--ink); background: rgba(11, 12, 14, .05); } }
.site-header__cta { display: none; }
.menu-toggle { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 18px; border: 0; border-radius: var(--r-pill); background: rgba(11, 12, 14, .07); font-weight: 500; cursor: pointer; }
.menu-toggle { transition: transform .16s var(--ease-out), background-color .2s ease; }
.menu-toggle:active { transform: scale(.97); }
.mobile-menu { position: fixed; inset: 0; z-index: -1; display: none; padding: calc(var(--header-h) + 32px) var(--gutter) 32px; background: var(--white); overflow-y: auto; }
.mobile-menu ul { list-style: none; margin: 0 0 32px; padding: 0; }
.mobile-menu li + li { border-top: 1px solid var(--line); }
.mobile-menu a:not(.btn) { display: flex; align-items: center; min-height: 64px; font-size: 1.6rem; letter-spacing: -.02em; text-decoration: none; }
.mobile-menu .btn { width: 100%; }
.menu-open .mobile-menu { display: block; animation: fade .18s ease-out; }
.menu-open .mobile-menu li, .menu-open .mobile-menu nav > .btn { animation: entra .32s var(--ease-out) backwards; }
.menu-open .mobile-menu li:nth-child(2) { animation-delay: 35ms; }
.menu-open .mobile-menu li:nth-child(3) { animation-delay: 65ms; }
.menu-open .mobile-menu li:nth-child(4) { animation-delay: 90ms; }
.menu-open .mobile-menu li:nth-child(5) { animation-delay: 110ms; }
.menu-open .mobile-menu nav > .btn { animation-delay: 130ms; }
.menu-open body { overflow: hidden; }
@media (min-width: 960px) {
  .nav { display: block; }
  .site-header__cta { display: inline-flex; }
  .menu-toggle, .mobile-menu { display: none !important; }
}
@keyframes fade { from { opacity: 0; } }
@keyframes entra { from { opacity: 0; transform: translateY(12px); } }

/* ---------- Secciones ---------- */
.section { position: relative; padding: var(--sec-pad) 0; }
.section--white { background: var(--white); }
.section--dark { background: var(--dark); color: var(--on-dark); }
.section--dark .muted, .section--dark .lead { color: var(--on-dark-muted); }
.section--dark .eyebrow { color: var(--on-dark-muted); }
.section--dark .eyebrow::before { background: var(--accent-on-dark); }
.section__head { display: grid; gap: 18px; max-width: 760px; margin-bottom: clamp(36px, 5vw, 56px); }
.section__head--split { max-width: none; }
@media (min-width: 960px) {
  .section__head--split { grid-template-columns: 1.15fr 1fr; align-items: end; gap: 18px 48px; }
  .section__head--split .eyebrow { grid-column: 1 / -1; }
}

/* ---------- Fondos animados (muy lentos) ----------
   Una capa de degradados suaves que se desplaza despacio. Solo se anima «transform» (lo más barato para el móvil).
   En pantallas pequeñas va aún más lento; se para fuera de pantalla (JS) y con «reducir movimiento». */
.ground-live { position: relative; isolation: isolate; overflow: hidden; }
.ground-live::before {
  content: ""; position: absolute; inset: -35%; z-index: -1; pointer-events: none;
  background:
    radial-gradient(38% 42% at 28% 32%, rgba(180, 71, 31, .14), transparent 70%),
    radial-gradient(34% 40% at 74% 28%, rgba(232, 170, 120, .30), transparent 70%),
    radial-gradient(40% 46% at 62% 76%, rgba(255, 250, 242, .95), transparent 70%),
    radial-gradient(36% 40% at 22% 78%, rgba(238, 214, 190, .55), transparent 70%);
  animation: drift 48s ease-in-out infinite alternate;
  will-change: transform;
}
.ground-live--dark::before {
  background:
    radial-gradient(34% 40% at 24% 30%, rgba(180, 71, 31, .30), transparent 70%),
    radial-gradient(30% 36% at 78% 70%, rgba(240, 140, 90, .14), transparent 70%),
    radial-gradient(40% 44% at 60% 20%, rgba(255, 255, 255, .05), transparent 70%);
}
.ground-live.is-paused::before { animation-play-state: paused; }
@keyframes drift {
  0%   { transform: translate3d(-4%, -2%, 0) rotate(0deg) scale(1); }
  50%  { transform: translate3d(3%, 3%, 0) rotate(6deg) scale(1.06); }
  100% { transform: translate3d(5%, -3%, 0) rotate(-4deg) scale(1.02); }
}
@media (max-width: 767px) { .ground-live::before { animation-duration: 90s; } }

/* ---------- Huecos de foto y captura (marcadores hasta que Pol pase las imágenes) ---------- */
.media { position: relative; overflow: hidden; background: var(--surface); }
.media > img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s var(--ease-out); }
.media > img.foco-arriba { object-position: 50% 18%; }
.slot {
  position: absolute; inset: 0; display: grid; place-items: center; padding: 20px; text-align: center;
  background:
    repeating-linear-gradient(135deg, rgba(180, 71, 31, .06) 0 12px, transparent 12px 24px),
    var(--surface);
  color: var(--accent-ink); font: 500 .8125rem/1.4 var(--f-mono); letter-spacing: .02em;
}
.slot span { max-width: 28ch; padding: 8px 12px; border: 1.5px dashed rgba(180, 71, 31, .45); border-radius: var(--r-sm); background: rgba(255, 255, 255, .7); }
.section--dark .slot { background: repeating-linear-gradient(135deg, rgba(240, 160, 122, .08) 0 12px, transparent 12px 24px), var(--dark-3); color: #F3C2A8; }
.section--dark .slot span { border-color: rgba(240, 160, 122, .5); background: rgba(11, 12, 14, .55); }

/* ---------- Tarjetas ---------- */
.card { background: var(--white); border-radius: var(--r-lg); box-shadow: var(--shadow-card); }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: var(--r-pill); font: 500 .75rem/1 var(--f-mono); letter-spacing: .03em; text-transform: uppercase; }
.pill--accent { background: var(--accent-soft); color: var(--accent-ink); }
.pill--urgent { background: var(--urgent-soft); color: var(--urgent); }
.pill--ok { background: var(--ok-soft); color: var(--ok); }
.pill--grey { background: rgba(11, 12, 14, .06); color: var(--muted); }
.icon-chip { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 14px; background: var(--accent-soft); color: var(--accent); flex: none; }
.icon-chip svg { width: 24px; height: 24px; }

/* ==========================================================================
   1 · PORTADA
   ========================================================================== */
.hero { padding: clamp(28px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); text-align: center; }
.hero__text { display: grid; justify-items: center; gap: 18px; max-width: 920px; margin: 0 auto; }
.hero__text .h1 { max-width: 26ch; text-wrap: balance; }
.hero__text .lead { max-width: 54ch; }
.hero__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 6px; }
.hero__note { display: inline-flex; align-items: center; gap: 8px; font-size: .9375rem; color: var(--muted); }
.hero__note svg { width: 18px; height: 18px; color: var(--ok); flex: none; }
.hero__frame {
  margin-top: clamp(28px, 4vw, 48px); padding: clamp(20px, 4vw, 48px) clamp(16px, 4vw, 48px) 0;
  border-radius: var(--r-xl); background: linear-gradient(180deg, #EBDDCB, #F3EADF);
}
.hero__frame-inner { display: grid; justify-items: center; }

/* Aviso de Telegram de ejemplo (portada) */
.alert {
  width: 100%; max-width: 560px; text-align: left;
  border-radius: var(--r-lg) var(--r-lg) 0 0; background: var(--white);
  box-shadow: 0 30px 60px -30px rgba(11, 12, 14, .35), 0 1px 2px rgba(11, 12, 14, .06);
}
.alert__bar { display: flex; align-items: center; gap: 12px; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.alert__bar img { width: 36px; height: 36px; }
.alert__bar strong { display: block; font-weight: 500; line-height: 1.2; }
.alert__bar small { color: var(--muted); font: 400 .8125rem/1.3 var(--f-mono); }
.alert__bar .pill { margin-left: auto; }
.alert__body { display: grid; gap: 14px; padding: 20px 20px 24px; }
.alert__from strong { display: block; font-size: 1.15rem; font-weight: 500; letter-spacing: -.01em; }
.alert__from span { color: var(--muted); font-size: .9375rem; }
.alert__facts { display: grid; grid-template-columns: auto 1fr; gap: 10px 16px; align-items: center; }
.alert__facts dt { font: 500 .75rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.alert__facts dd { font-size: 1rem; }
.alert__reply { padding: 16px; border-radius: var(--r-md); background: var(--bg); }
.alert__reply .pill { margin-bottom: 10px; }
.alert__reply p { font-size: 1rem; line-height: 1.5; }
.alert__actions { display: flex; gap: 10px; }
.alert__actions span { flex: 1; display: grid; place-items: center; height: 44px; border-radius: var(--r-pill); font-weight: 500; font-size: .9375rem; }
.alert__actions span:first-child { background: rgba(11, 12, 14, .06); }
.alert__actions span:last-child { background: var(--accent); color: var(--white); }

/* ==========================================================================
   2 · EL PROBLEMA · las tres láminas 3D que se ordenan al bajar
   ========================================================================== */
#problema { overflow-x: clip; } /* las láminas sueltas no deben crear desplazamiento lateral */
.problem { display: grid; gap: clamp(40px, 6vw, 72px); align-items: center; }
.problem__text { display: grid; gap: 20px; align-content: start; }
.problem__text .h2 { max-width: 18ch; }
.problem__text p:not(.eyebrow) { max-width: 52ch; color: var(--muted); font-size: 1.125rem; }
@media (min-width: 960px) { .problem { grid-template-columns: 1fr 1fr; } }

/* --p va de 0 (láminas sueltas) a 1 (pila ordenada). Sin JS o con «reducir movimiento», se queda en 1. */
.slabs { --p: 1; --q: calc(1 - var(--p)); position: relative; height: 420px; perspective: 1400px; perspective-origin: 50% 30%; list-style: none; margin: 0; padding: 0; }
.slab {
  position: absolute; left: 50%; top: 0; width: min(100%, 380px); height: 120px; padding: 20px 22px; overflow: hidden;
  border-radius: 20px; background: var(--white);
  box-shadow:
    0 1px 0 #EAE2D6, 0 2px 0 #E3D9CB, 0 3px 0 #DBD0C0, 0 4px 0 #D4C8B7, 0 5px 0 #CDC0AE,
    0 24px 40px -18px rgba(11, 12, 14, calc(.12 + var(--q) * .14));
  transform-style: preserve-3d;
  transform:
    translate3d(calc(-50% + var(--x) * var(--q)), calc(var(--y-end) + var(--y) * var(--q)), calc(var(--z) * var(--q)))
    rotateX(calc(var(--rx) * var(--q))) rotateY(calc(var(--ry) * var(--q))) rotateZ(calc(var(--rz) * var(--q)));
  will-change: transform;
}
.slab:nth-child(1) { --x: -110px; --y: 30px;  --z: 60px;  --rx: 38deg; --ry: -18deg; --rz: -14deg; --y-end: 0px;   background: var(--white); z-index: 3; }
.slab:nth-child(2) { --x: 120px;  --y: -10px; --z: -40px; --rx: 30deg; --ry: 22deg;  --rz: 11deg;  --y-end: 140px; background: var(--accent-soft); z-index: 2; }
.slab:nth-child(3) { --x: -40px;  --y: -70px; --z: 20px;  --rx: 42deg; --ry: 10deg;  --rz: 19deg;  --y-end: 280px; background: #F8F2E9; z-index: 1; }
.slab__head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.slab__head strong { font-weight: 500; font-size: 1.05rem; letter-spacing: -.01em; }
.slab__head time { flex: none; font: 400 .78rem/1 var(--f-mono); color: var(--muted); }
.slab p { color: var(--muted); font-size: .9375rem; line-height: 1.45; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
@media (max-width: 479px) {
  .slabs { height: 400px; }
  .slab { height: 116px; padding: 16px 18px; }
  .slab:nth-child(1) { --x: -40px; } .slab:nth-child(2) { --x: 46px; --y-end: 132px; } .slab:nth-child(3) { --x: -20px; --y-end: 264px; }
}

/* ==========================================================================
   3 · CÓMO FUNCIONA · pasos con imagen fija a la derecha (ordenador)
   ========================================================================== */
.steps { display: grid; gap: 20px; list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.step { display: grid; gap: 18px; padding: 16px 16px 28px; }
.step__media { aspect-ratio: 4 / 3; border-radius: var(--r-md); }
.step__num { justify-self: start; display: inline-grid; place-items: center; min-width: 40px; height: 40px; padding: 0 10px; border-radius: var(--r-pill); background: var(--accent-soft); font: 500 .875rem/1 var(--f-mono); color: var(--accent-ink); letter-spacing: .04em; transition: background-color .25s ease, color .25s ease; }
.step__body { display: grid; gap: 10px; padding: 0 8px; }
.step__body p { color: var(--muted); }
.chapters__frame { display: none; }
@media (min-width: 960px) {
  .chapters { display: grid; grid-template-columns: 1fr 1.1fr; gap: 64px; align-items: start; }
  .steps { gap: 0; }
  .step { min-height: 62vh; align-content: center; padding: 0; background: none; box-shadow: none; border-radius: 0; }
  .step__media { display: none; }
  .step__body { padding: 0; max-width: 440px; }
  .step__body h3 { transition: color .25s ease; }
  .js .step:not(.is-active) .step__num { background: rgba(11, 12, 14, .06); color: var(--muted); }
  .js .step:not(.is-active) .step__body h3 { color: var(--muted); }
  .js .step.is-active .step__num { background: var(--accent); color: var(--white); }
  .chapters__frame { display: block; overflow: hidden; position: sticky; top: calc(var(--header-h) + 40px); height: min(68vh, 560px); border-radius: var(--r-xl); }
  .chapters__frame .media { position: absolute; inset: 0; opacity: 0; transform: scale(1.04); transition: opacity .45s ease, transform .8s var(--ease-out); }
  .chapters__frame .media.is-active { opacity: 1; transform: none; }
  .no-js .chapters__frame .media:first-child { opacity: 1; }
}

/* ==========================================================================
   4 · LA DEMO · banda oscura con vídeo, aviso de cerca y carrusel
   ========================================================================== */
.demo-top { display: grid; gap: clamp(32px, 5vw, 64px); align-items: center; }
.demo-top__text { display: grid; gap: 20px; }
.checks { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.checks li { display: flex; gap: 12px; align-items: flex-start; }
.checks svg { width: 22px; height: 22px; flex: none; margin-top: 2px; color: var(--accent-on-dark); }
.example-tag { display: inline-flex; align-items: center; gap: 8px; justify-self: start; padding: 8px 14px; border-radius: var(--r-pill); background: rgba(255, 255, 255, .08); color: var(--on-dark-muted); font: 500 .78rem/1.3 var(--f-mono); }
.player { position: relative; border-radius: var(--r-lg); overflow: hidden; background: #000; aspect-ratio: 1920 / 1020; box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .8); }
.player video { width: 100%; height: 100%; object-fit: cover; }
.player__btn { position: absolute; left: 16px; bottom: 16px; background: rgba(11, 12, 14, .72); color: var(--white); }
@media (hover: hover) and (pointer: fine) { .player__btn:hover { background: rgba(11, 12, 14, .9); } }
.player__btn svg { grid-area: 1 / 1; transition: opacity .2s ease, transform .2s var(--ease-out), filter .2s ease; }
.player__btn .i-pause, .player__btn[aria-pressed="true"] .i-play { opacity: 0; transform: scale(.6); filter: blur(3px); }
.player__btn[aria-pressed="true"] .i-pause { opacity: 1; transform: none; filter: none; }
@media (min-width: 960px) { .demo-top { grid-template-columns: .85fr 1.15fr; } }

.parts { margin-top: clamp(40px, 5vw, 64px); padding-top: clamp(28px, 3vw, 36px); border-top: 1px solid rgba(255, 255, 255, .12); }
.parts .h3 { margin-bottom: 20px; font-size: clamp(1.15rem, 1.6vw, 1.35rem); }
.parts__grid { display: grid; gap: 18px 24px; grid-template-columns: 1fr 1fr; margin: 0; }
.part { display: grid; gap: 6px; align-content: start; }
.part dt { font-weight: 500; font-size: 1rem; }
.part dd { margin: 0; color: var(--on-dark-muted); font-size: .9375rem; line-height: 1.5; }
@media (min-width: 1100px) { .parts__grid { grid-template-columns: repeat(4, 1fr); gap: 32px; } }

/* Carrusel */
.carousel { margin-top: clamp(56px, 6vw, 80px); }
.carousel__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 20px 32px; margin-bottom: 28px; }
.carousel__head > div:first-child { display: grid; gap: 10px; max-width: 60ch; }
.carousel__controls { display: flex; align-items: center; gap: 10px; }
.carousel__count { min-width: 3.5em; text-align: center; font: 500 .875rem/1 var(--f-mono); color: var(--on-dark-muted); }
.carousel__track {
  display: grid; grid-auto-flow: column; grid-auto-columns: 88%; gap: 16px;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scrollbar-width: none;
  list-style: none; margin: 0; padding: 0;
}
.carousel__track::-webkit-scrollbar { display: none; }
.carousel__track:focus-visible { outline-offset: 6px; }
.slide { scroll-snap-align: start; display: grid; gap: 14px; }
.slide .media { aspect-ratio: 4 / 3; border-radius: var(--r-lg); }
.slide__label { display: flex; gap: 10px; align-items: baseline; color: var(--on-dark-muted); font-size: .9375rem; }
.slide__label b { font: 500 .78rem/1 var(--f-mono); color: var(--accent-on-dark); }
@media (min-width: 768px) { .carousel__track { grid-auto-columns: calc((100% - 20px) / 1.6); gap: 20px; } .slide .media { aspect-ratio: 16 / 11; } }
@media (hover: hover) and (pointer: fine) { .slide:hover .media > img { transform: scale(1.025); } }

/* ==========================================================================
   5 · SERVICIOS
   ========================================================================== */
.services { display: grid; gap: 20px; }
.service { display: flex; flex-direction: column; overflow: hidden; transition: transform .25s var(--ease-out), box-shadow .25s ease; }
.service .media { aspect-ratio: 16 / 10; }
@media (min-width: 960px) { .service:not(.service--main) .media { flex: 1 1 auto; aspect-ratio: auto; min-height: 280px; } .service:not(.service--main) .service__body { flex: none; } }
.service__body { display: grid; gap: 14px; padding: clamp(22px, 3vw, 32px); align-content: start; flex: 1; }
.service__body > p { color: var(--muted); }
.service__body .checks svg { color: var(--accent); }
.service__body .btn { justify-self: start; margin-top: 6px; }
.service__body .pill { justify-self: start; }
.service--main { background: var(--white); }
@media (min-width: 960px) { .services { grid-template-columns: 1.2fr 1fr; } }
@media (hover: hover) and (pointer: fine) {
  .service--link:hover { transform: translateY(-2px); box-shadow: 0 1px 2px rgba(11, 12, 14, .05), 0 22px 44px -20px rgba(11, 12, 14, .28); }
  .service--link:hover .media > img { transform: scale(1.03); }
}
.services__more { margin-top: 28px; color: var(--muted); }

/* Bloque a mitad de página: segundo «Pide tu demo gratis» */
.cta-band {
  display: grid; gap: 24px; margin-top: clamp(48px, 6vw, 72px); padding: clamp(28px, 5vw, 56px);
  border-radius: var(--r-xl); background: var(--accent); color: var(--white);
}
.cta-band .h3 { font-size: clamp(1.6rem, 3vw, 2.4rem); letter-spacing: -.03em; }
.cta-band .checks svg { color: var(--white); }
.cta-band .btn { justify-self: start; }
@media (min-width: 960px) { .cta-band { grid-template-columns: 1fr auto; align-items: center; gap: 48px; } .cta-band__text { display: grid; gap: 18px; } }

/* ==========================================================================
   6 · QUÉ INCLUYE
   ========================================================================== */
.features { display: grid; list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--line); }
.feature { align-content: start; display: grid; grid-template-columns: 28px 1fr; gap: 6px 18px; align-items: start; padding: 26px 0; border-bottom: 1px solid var(--line); }
.feature > svg { grid-row: 1 / 3; width: 28px; height: 28px; margin-top: 2px; color: var(--accent); }
.feature p { color: var(--muted); max-width: 46ch; }
@media (min-width: 768px) { .features { grid-template-columns: 1fr 1fr; column-gap: 64px; } .feature { padding: 32px 0; } }

/* ==========================================================================
   7 · PARA QUIÉN
   ========================================================================== */
.photos { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.photos .media { aspect-ratio: 4 / 5; border-radius: var(--r-lg); }
@media (min-width: 960px) { .photos { grid-template-columns: repeat(4, 1fr); gap: 16px; } }
.sectors { display: grid; gap: 18px; margin-top: clamp(36px, 5vw, 56px); }
.tags { display: flex; flex-wrap: wrap; gap: 10px; list-style: none; margin: 0; padding: 0; }
.tags li { padding: 10px 16px; border-radius: var(--r-pill); background: var(--bg); font-weight: 500; font-size: .9375rem; cursor: default; }
.sectors > p { color: var(--muted); }

/* ==========================================================================
   8 · CÓMO TRABAJO
   ========================================================================== */
.about { display: grid; gap: clamp(36px, 5vw, 64px); align-items: start; }
.about__text { display: grid; gap: 20px; }
.about__text p:not(.eyebrow):not(.about__sign) { color: var(--muted); font-size: 1.125rem; max-width: 52ch; }
.about__sign { font: 500 .8125rem/1 var(--f-mono); color: var(--muted); letter-spacing: .03em; }
.about__points { display: grid; gap: 12px; list-style: none; margin: 0; padding: 0; }
.about__points li { display: flex; align-items: center; gap: 18px; padding: 20px 22px; font-size: 1.05rem; font-weight: 500; }
@media (min-width: 960px) { .about { grid-template-columns: 1.1fr 1fr; } }

/* ==========================================================================
   9 · PREGUNTAS FRECUENTES
   ========================================================================== */
.faq { max-width: 820px; margin: 0 auto; }
.faq .section__head { text-align: center; justify-items: center; margin-left: auto; margin-right: auto; }
.faq__list { border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary {
  display: flex; align-items: center; justify-content: space-between; gap: 20px;
  min-height: 72px; padding: 16px 4px; cursor: pointer; list-style: none;
  font-size: clamp(1.05rem, 1.6vw, 1.2rem); font-weight: 500; letter-spacing: -.01em;
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after {
  content: ""; flex: none; width: 36px; height: 36px; border-radius: 50%;
  background: rgba(11, 12, 14, .06) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230B0C0E' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='M12 6v12M6 12h12'/%3E%3C/svg%3E") center / 18px no-repeat;
  transition: transform .25s var(--ease-out), background-color .2s ease;
}
.faq details[open] summary::after { transform: rotate(45deg); background-color: var(--accent-soft); }
.faq details p { padding: 0 52px 24px 4px; color: var(--muted); max-width: 64ch; animation: abre .3s var(--ease-out); }
@keyframes abre { from { opacity: 0; transform: translateY(-6px); } }
.faq__more { display: flex; justify-content: center; margin-top: 36px; }
.faq__more .btn { white-space: normal; text-align: center; line-height: 1.35; padding-top: 12px; padding-bottom: 12px; }

/* ==========================================================================
   10 · CONTACTO (cierre)
   ========================================================================== */
.contact { display: grid; gap: 28px; padding: clamp(28px, 5vw, 64px); border-radius: var(--r-xl); background: #EDE3D5; }
.contact__text { display: grid; gap: 20px; align-content: start; }
.contact__text .h2 { font-size: clamp(2.4rem, 6vw, 4.5rem); letter-spacing: -.045em; }
.contact__text > p:not(.eyebrow) { color: var(--muted); font-size: 1.125rem; max-width: 46ch; }
.contact__steps { display: grid; gap: 12px; list-style: none; margin: 4px 0 0; padding: 0; counter-reset: c; }
.contact__steps li { display: flex; gap: 14px; align-items: center; font-weight: 500; counter-increment: c; }
.contact__steps li::before { content: counter(c); display: grid; place-items: center; width: 32px; height: 32px; flex: none; border-radius: 50%; background: var(--white); font: 500 .875rem/1 var(--f-mono); color: var(--accent-ink); }
.contact__panel { display: grid; gap: 14px; align-content: start; padding: clamp(20px, 3vw, 28px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-card); }
.channel { display: flex; align-items: center; gap: 14px; padding: 12px; border-radius: var(--r-md); background: var(--bg); }
.channel__icon { display: grid; place-items: center; width: 44px; height: 44px; flex: none; border-radius: 12px; background: var(--white); }
.channel__icon img, .channel__icon svg { width: 26px; height: 26px; }
.channel__text { display: grid; min-width: 0; flex: 1; }
.channel__text small { font: 500 .72rem/1.2 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.channel__text a { font-weight: 500; overflow-wrap: anywhere; text-decoration: none; min-height: 28px; display: inline-flex; align-items: center; }
@media (hover: hover) and (pointer: fine) { .channel__text a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; } }
.copy-btn { min-width: 104px; }
.chips { border: 0; margin: 8px 0 0; padding: 0; min-width: 0; }
.chips legend { padding: 0; margin-bottom: 10px; font-weight: 500; }
.chips__list { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { position: relative; }
.chip input { position: absolute; opacity: 0; inset: 0; margin: 0; cursor: pointer; }
.chip span { display: inline-flex; align-items: center; min-height: 44px; padding: 0 16px; border-radius: var(--r-pill); border: 1px solid var(--line); font-weight: 500; font-size: .9375rem; transition: background-color .2s ease, border-color .2s ease, color .2s ease, transform .16s var(--ease-out); }
.chip:active span { transform: scale(.97); }
.chip input:checked + span { background: var(--ink); border-color: var(--ink); color: var(--white); }
.chip input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
@media (hover: hover) and (pointer: fine) { .chip input:not(:checked):hover + span { border-color: var(--ink); } }
.no-js .chips { display: none; }
.contact__panel .btn--primary-wide { width: 100%; margin-top: 4px; }
.honest { display: grid; gap: 8px; list-style: none; margin: 4px 0 0; padding: 0; font-size: .9375rem; color: var(--muted); }
.honest li { display: flex; gap: 10px; align-items: flex-start; }
.honest svg { width: 18px; height: 18px; flex: none; margin-top: 3px; color: var(--ok); }
@media (min-width: 960px) { .contact { grid-template-columns: 1fr 1fr; gap: 48px; } }

/* ---------- Pie ---------- */
.site-footer { padding: 64px 0 calc(32px + env(safe-area-inset-bottom)); background: var(--white); border-top: 1px solid var(--line); }
.footer__grid { display: grid; gap: 32px; grid-template-columns: 1fr 1fr; }
.footer__brand { grid-column: 1 / -1; display: grid; gap: 14px; max-width: 34ch; }
.footer__brand p { color: var(--muted); }
.footer__col h2 { margin-bottom: 12px; font: 500 .78rem/1 var(--f-mono); text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.footer__col ul { list-style: none; margin: 0; padding: 0; }
.footer__col a { display: inline-flex; align-items: center; min-height: 40px; text-decoration: none; }
@media (hover: hover) and (pointer: fine) { .footer__col a:hover { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; } }
.footer__bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
@media (min-width: 768px) { .footer__grid { grid-template-columns: 2fr 1fr 1fr 1fr; } .footer__brand { grid-column: auto; } }

/* ---------- Botón flotante de WhatsApp ---------- */
.wa-float {
  position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: max(16px, env(safe-area-inset-bottom)); z-index: 40;
  display: grid; place-items: center; width: 60px; height: 60px; border-radius: 50%;
  background: var(--white); box-shadow: 0 10px 30px -8px rgba(11, 12, 14, .35), 0 1px 3px rgba(11, 12, 14, .12);
  transition: transform .2s var(--ease-out), box-shadow .2s ease;
}
.wa-float img { width: 36px; height: 36px; }
.wa-float { animation: entra-wa .5s var(--ease-out) .9s backwards; }
@keyframes entra-wa { from { opacity: 0; transform: translateY(10px) scale(.9); } }
.wa-float:active { transform: scale(.94); }
@media (hover: hover) and (pointer: fine) { .wa-float:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -10px rgba(11, 12, 14, .4), 0 1px 3px rgba(11, 12, 14, .12); } }
.menu-open .wa-float { display: none; }

/* ---------- Entradas suaves (solo algunos bloques, una vez) ---------- */
.js [data-reveal]:not([data-reveal="lista"]), .js [data-reveal="lista"] > * { opacity: 0; transform: translateY(14px); transition: opacity .5s ease, transform .6s var(--ease-out); }
.js [data-reveal].is-in:not([data-reveal="lista"]), .js [data-reveal="lista"].is-in > * { opacity: 1; transform: none; }
.js [data-reveal="lista"] > :nth-child(2) { transition-delay: 50ms; }
.js [data-reveal="lista"] > :nth-child(3) { transition-delay: 90ms; }
.js [data-reveal="lista"] > :nth-child(4) { transition-delay: 120ms; }

/* ---------- Portada: entra una vez al cargar, escalonada ---------- */
.js .hero__text > *, .js .hero__frame { animation: entra .6s var(--ease-out) backwards; }
.js .hero__text > :nth-child(2) { animation-delay: 60ms; }
.js .hero__text > :nth-child(3) { animation-delay: 120ms; }
.js .hero__text > :nth-child(4) { animation-delay: 170ms; }
.js .hero__text > :nth-child(5) { animation-delay: 210ms; }
.js .hero__frame { animation-duration: .8s; animation-delay: 260ms; }

/* ---------- Páginas legales ---------- */
.legal { padding: clamp(48px, 7vw, 96px) 0 var(--sec-pad); }
.legal .wrap > * { max-width: 760px; }
.legal .eyebrow { margin-bottom: 16px; }
.legal .wrap > .btn { margin-top: 32px; }
.legal h1 { font-size: clamp(2.2rem, 5vw, 3.4rem); line-height: 1.05; letter-spacing: -.04em; margin-bottom: 32px; }
.legal__body { display: grid; gap: 16px; padding: clamp(24px, 4vw, 48px); border-radius: var(--r-lg); background: var(--white); box-shadow: var(--shadow-card); }
.legal__body h2 { margin-top: 20px; font-size: 1.35rem; letter-spacing: -.02em; }
.legal__body h2:first-child { margin-top: 0; }
.legal__body p, .legal__body li { color: #352F29; }
.legal__body ul { padding-left: 1.2em; display: grid; gap: 6px; }
.legal__body a { color: var(--accent-ink); text-decoration: underline; text-underline-offset: 3px; }
.legal-page .site-header__bar .text-link { display: inline-flex; align-items: center; min-height: 44px; padding: 0 12px; font-weight: 500; }

/* ---------- Reducir movimiento: todo quieto, todo visible ---------- */
@media (prefers-reduced-motion: reduce) {
  .ground-live::before { animation: none; }
  .js .hero__text > *, .js .hero__frame, .wa-float, .menu-open .mobile-menu li, .menu-open .mobile-menu nav > .btn, .faq details p { animation-name: fade; }
  .js [data-reveal]:not([data-reveal="lista"]), .js [data-reveal="lista"] > * { opacity: 1; transform: none; }
  .chapters__frame .media, .service--link:hover, .wa-float:hover, .btn:hover svg.arrow, .slide:hover .media > img, .service--link:hover .media > img { transform: none; }
  .player__btn svg { transform: none !important; filter: none !important; }
  .slabs { --p: 1 !important; }
}
