/* ──────────────────────────────────────────────────────────────────────
   IMPULS DIGITAL LABS — home (rediseño motion, 2026-11)
   Portado del diseño aprobado (web-impuls-motion/diseno/Main.dc.html) a
   CSS propio. Solo lo usa index.html: checklist.html y privacidad.html
   siguen con style.css. Fuentes alojadas en assets/fonts (sin Google
   Fonts): Space Grotesk del diseño → Bricolage Grotesque, Inter → Plus
   Jakarta Sans. Sin monoespaciada, sin mesh, sin rejillas ni estrellas.
   ────────────────────────────────────────────────────────────────────── */
@font-face {
  font-family: 'Bricolage Grotesque';
  font-style: normal;
  font-weight: 600 700;
  font-display: swap;
  src: url('assets/fonts/bricolage-grotesque-latin-600-700.woff2') format('woff2');
}
@font-face {
  font-family: 'Plus Jakarta Sans';
  font-style: normal;
  font-weight: 400 700;
  font-display: swap;
  src: url('assets/fonts/plus-jakarta-sans-latin-400-700.woff2') format('woff2');
}

:root {
  --blue: #2540FF;
  --coral: #FF5A3C;
  --ink: #0B0D12;
  --ink2: #12151D;
  --ink3: #1A1E29;
  --line: rgba(255, 255, 255, .09);
  --soft: #A9B0C2;
  --green: #2BD67B;
  --font-display: 'Bricolage Grotesque', system-ui, sans-serif;
  --font-body: 'Plus Jakarta Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  background: var(--ink);
  color: #fff;
  font-family: var(--font-body);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/* height:auto: los atributos width/height de <img>/<video> (que reservan
   el hueco) fijarían si no una altura en px y anularían el aspect-ratio. */
img, video { display: block; max-width: 100%; height: auto; }
a { color: #fff; }
a:hover { color: var(--coral); }
button { font-family: inherit; }
h1, h2, h3, h4 { overflow-wrap: break-word; hyphens: auto; }
:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }
section[id], [id="flotaturnos"] { scroll-margin-top: 24px; }

/* Recorta cintas, órbitas, franja inclinada y la palabra gigante del
   laboratorio sin crear barra horizontal. */
.ip { position: relative; overflow-x: hidden; overflow-x: clip; }

/* Barra de avisos (avisos.js + avisos.json): fina, arriba del todo, fuera de
   .ip. Como .ip es position:relative, la cabecera (absoluta) y su menú bajan
   con la barra en vez de quedar encima. */
.aviso { position: relative; display: flex; align-items: center; justify-content: center; min-height: 42px; padding: 9px 52px; background: var(--coral); color: var(--ink); font-size: 14px; line-height: 1.35; text-align: center; }
.aviso[hidden] { display: none; }
.aviso-txt { margin: 0; }
.aviso-txt a { display: inline-flex; align-items: center; justify-content: center; gap: 6px 12px; flex-wrap: wrap; color: var(--ink); font-weight: 600; text-decoration: none; }
.aviso-txt a:hover .aviso-msg { text-decoration: underline; text-underline-offset: 3px; }
.aviso-chip { padding: 3px 10px; border-radius: 999px; background: var(--ink); color: var(--coral); font-family: var(--font-display); font-weight: 700; font-size: 12px; letter-spacing: .02em; white-space: nowrap; }
.aviso-close { position: absolute; right: 10px; top: 50%; transform: translateY(-50%); width: 32px; height: 32px; padding: 0; display: grid; place-items: center; border: 0; border-radius: 50%; background: transparent; color: var(--ink); cursor: pointer; }
.aviso-close:hover { background: rgba(11, 13, 18, .12); }
.aviso-close svg { width: 16px; height: 16px; }
.aviso-txt a:focus-visible, .aviso-close:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
/* Solo para lectores de pantalla */
.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; }
.coral { color: var(--coral); }
/* Enlaces que solo existen mientras dura un aviso (p. ej. Black Friday en el menú) */
[data-aviso-seccion][hidden] { display: none !important; }
.nav-bf { color: var(--coral) !important; font-weight: 700 !important; }

.wrap { max-width: 1240px; margin: 0 auto; padding: 0 32px; }
.kicker {
  display: inline-flex; align-items: center; gap: 10px;
  font-size: 15px; font-weight: 600; color: var(--coral);
}
.kicker::before { content: ""; width: 28px; height: 2px; background: var(--coral); border-radius: 2px; }
.h2 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.035em;
  font-size: clamp(32px, 4.4vw + 12px, 68px); line-height: 1.02; margin: 18px 0 0;
  text-wrap: balance;
}
.lead { color: var(--soft); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; max-width: 620px; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 26px; border-radius: 999px;
  font-weight: 600; font-size: 16px; text-decoration: none;
  transition: transform .25s, background .25s, box-shadow .25s, border-color .25s;
}
.btn svg { width: 20px; height: 20px; flex: none; }
.btn-main { background: var(--coral); color: #fff; }
.btn-main:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(255, 90, 60, .7); }
.btn-ghost { border: 1.5px solid rgba(255, 255, 255, .22); color: #fff; }
.btn-ghost:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }
.btn-sm { min-height: 46px; padding: 0 20px; font-size: 15px; }

/* ── NAV ─────────────────────────────────────────────────────────────── */
/* Encima del hero (absoluta) para que las cintas empiecen arriba del todo;
   el menú móvil abierto se superpone al hero en vez de empujarlo. */
.site-header { position: absolute; top: 0; left: 0; right: 0; z-index: 20; }
.nav { position: relative; }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 20px; padding: 26px 0; }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; flex: none; }
.brand img { width: auto; height: 42px !important; margin-right: 4px; }
.brand b { font-family: var(--font-display); font-size: 25px; font-weight: 700; letter-spacing: -.04em; color: #fff; }
.brand b i { font-style: normal; color: var(--coral); }
.brand span { font-size: 14px; color: var(--soft); font-weight: 500; }
.brand:hover b { color: #fff; }
.links { display: flex; gap: 30px; }
.links a { text-decoration: none; color: #D6DAE5; font-size: 15px; font-weight: 500; position: relative; }
.links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -6px; height: 2px;
  background: var(--coral); transition: right .3s;
}
.links a:hover, .links a.is-active { color: #fff; }
.links a:hover::after, .links a.is-active::after { right: 0; }
.nav-r { display: flex; align-items: center; gap: 14px; }

.lang-switch { display: flex; gap: 2px; padding: 4px; border-radius: 999px; border: 1px solid var(--line); }
.lang-option {
  min-width: 40px; min-height: 34px; border: 0; border-radius: 999px;
  background: transparent; color: var(--soft); font: 600 13px var(--font-body); cursor: pointer;
}
.lang-option:hover { color: #fff; }
.lang-option.is-active { background: #fff; color: var(--ink); }

.nav-toggle {
  display: none; width: 46px; height: 46px; border-radius: 14px;
  border: 1px solid var(--line); background: rgba(255, 255, 255, .04); color: #fff; cursor: pointer;
}
.nav-toggle-bars { display: grid; gap: 5px; width: 20px; margin: 0 auto; }
.nav-toggle-bars span { display: block; height: 2px; border-radius: 2px; background: currentColor; transition: transform .25s, opacity .25s; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(2) { opacity: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle-bars span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: flex; flex-direction: column; gap: 4px;
  margin: 0 20px; padding: 14px; border-radius: 22px;
  background: var(--ink2); border: 1px solid var(--line); box-shadow: 0 30px 60px -30px #000;
}
.mobile-menu[hidden] { display: none; }
.mobile-menu-link {
  display: flex; align-items: center; min-height: 50px; padding: 0 14px; border-radius: 14px;
  color: #fff; text-decoration: none; font-weight: 600; font-size: 17px;
}
.mobile-menu-link:hover { background: rgba(255, 255, 255, .06); color: #fff; }
.mobile-menu-foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-top: 8px; padding-top: 14px; border-top: 1px solid var(--line); }

/* ── HERO ────────────────────────────────────────────────────────────── */
.hero { position: relative; padding: 98px 0 120px; }
.ribbons { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.rb { fill: none; stroke-linecap: round; stroke-dasharray: 1400 2600; animation: flow 9s linear infinite; }
.rb.r2 { animation-duration: 12s; animation-delay: -4s; }
.rb.r3 { animation-duration: 15s; animation-delay: -8s; }
.rb.r4 { animation-duration: 11s; animation-delay: -2s; }
.rb.r5 { animation-duration: 17s; animation-delay: -11s; }
@keyframes flow { to { stroke-dashoffset: -4000; } }
.orbit {
  position: absolute; right: -180px; top: 80px; width: 880px; height: 880px;
  border-radius: 50%; border: 1px solid var(--line); animation: spin 60s linear infinite; pointer-events: none;
}
.orbit.o2 { width: 620px; height: 620px; right: -50px; top: 210px; animation-duration: 40s; animation-direction: reverse; }
.orbit::before, .orbit::after {
  content: ""; position: absolute; width: 12px; height: 12px; border-radius: 50%;
  background: var(--coral); top: 50%; left: -6px; box-shadow: 0 0 0 6px rgba(255, 90, 60, .15);
}
.orbit::after { background: var(--blue); left: auto; right: -6px; top: 30%; box-shadow: 0 0 0 6px rgba(37, 64, 255, .2); }
@keyframes spin { to { transform: rotate(360deg); } }

.hero-center { position: relative; z-index: 3; display: flex; flex-direction: column; align-items: center; text-align: center; padding-top: 70px; }
.pill {
  display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 10px; border-radius: 999px;
  background: rgba(255, 255, 255, .06); border: 1px solid var(--line); font-size: 14px; color: #D6DAE5;
  animation: rise .9s .1s both;
}
.pill i { width: 8px; height: 8px; border-radius: 50%; background: var(--green); animation: ping 2s infinite; }
@keyframes ping {
  0% { box-shadow: 0 0 0 0 rgba(43, 214, 123, .6); }
  70% { box-shadow: 0 0 0 10px rgba(43, 214, 123, 0); }
  100% { box-shadow: 0 0 0 0 rgba(43, 214, 123, 0); }
}
.h1 {
  font-family: var(--font-display); font-weight: 700; letter-spacing: -.045em;
  font-size: clamp(40px, 6.4vw, 96px); line-height: 1; margin: 26px 0 0; text-wrap: balance;
}
.h1 .l1 { display: block; animation: rise .9s .2s both; }
.h1 .l2 { display: block; animation: rise .9s .35s both; }
.uline { position: relative; display: inline-block; color: #fff; white-space: nowrap; }
.uline svg { position: absolute; left: -2%; bottom: -.12em; width: 104%; height: .32em; overflow: visible; }
.uline path {
  fill: none; stroke: var(--coral); stroke-width: 7; stroke-linecap: round;
  stroke-dasharray: 600; stroke-dashoffset: 600;
  animation: draw 1.4s 1s cubic-bezier(.65, 0, .35, 1) forwards;
}
@keyframes draw { to { stroke-dashoffset: 0; } }
.hero .lead { margin: 28px auto 0; animation: rise .9s .5s both; }
.cta-row { display: flex; gap: 14px; flex-wrap: wrap; justify-content: center; margin-top: 38px; animation: rise .9s .65s both; }
@keyframes rise { from { opacity: 0; transform: translateY(28px); } to { opacity: 1; transform: none; } }

/* Vídeo del hero: entra inclinado en 3D y se endereza con el scroll.
   Sin soporte de animation-timeline se ve recto (sin transform). */
.showcase { position: relative; z-index: 3; margin-top: 80px; perspective: 1800px; }
.device {
  position: relative; max-width: 1180px; margin: 0 auto; border-radius: 26px;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .12); overflow: hidden;
  box-shadow: 0 60px 140px -40px rgba(37, 64, 255, .55), 0 30px 60px -30px #000;
  transform-origin: center top;
}
@supports (animation-timeline: view()) {
  .device { animation: devscroll linear both; animation-timeline: view(); animation-range: entry 0% cover 45%; }
  @keyframes devscroll {
    from { transform: rotateX(26deg) scale(.9); opacity: .4; }
    to { transform: none; opacity: 1; }
  }
}
.dev-video { width: 100%; aspect-ratio: 16 / 10; object-fit: cover; background: var(--ink); }

.side {
  position: absolute; z-index: 4; width: 280px; padding: 18px; border-radius: 20px;
  background: rgba(18, 21, 29, .92); border: 1px solid rgba(255, 255, 255, .12);
  box-shadow: 0 30px 80px -30px #000; backdrop-filter: blur(8px);
}
.side-l { left: -10px; top: 42%; animation: pop .8s 1.6s both, bob 7s 2.4s ease-in-out infinite; }
.side-r { right: -10px; top: 12%; animation: pop .8s 1.9s both, bob 8s 2.7s ease-in-out infinite reverse; }
@keyframes pop { from { opacity: 0; transform: scale(.85) translateY(30px); } to { opacity: 1; transform: none; } }
@keyframes bob { 50% { transform: translateY(-16px); } }
.fc-h { display: flex; align-items: center; gap: 10px; font-size: 13px; color: var(--soft); font-weight: 600; }
.dot { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; flex: none; }
.dot svg { width: 16px; height: 16px; }
.fc-t { font-weight: 600; font-size: 15px; margin-top: 12px; line-height: 1.35; }
.fc-s { font-size: 13px; color: var(--soft); margin-top: 4px; }
.msg { margin-top: 12px; background: #1F2A22; border-radius: 14px 14px 14px 4px; padding: 10px 12px; font-size: 13px; line-height: 1.4; color: #DDF5E4; }

/* ── PAUSA / REPRODUCIR (WCAG 2.2.2) ─────────────────────────────────── */
.vid-wrap { position: relative; }
.vid-toggle {
  position: absolute; right: 14px; bottom: 14px; z-index: 2;
  width: 40px; height: 40px; border-radius: 50%; padding: 0;
  display: grid; place-items: center; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(11, 13, 18, .66); color: #fff;
  backdrop-filter: blur(6px); transition: opacity .2s, background .2s;
  opacity: 0; pointer-events: none;
}
/* No se ve nunca con ratón ni en táctil (2026-11-13, a petición): el clic
   sobre el vídeo lo amplía (lightbox, con sus controles). Solo aparece al
   llegar con Tab, para que se pueda pausar con teclado. Sin pointer-events,
   un clic en esa esquina amplía el vídeo en vez de pausarlo a ciegas. */
.vid-toggle:focus-visible { opacity: 1; pointer-events: auto; }
.vid-toggle[hidden] { display: none; }
.vid-toggle svg { width: 14px; height: 14px; fill: currentColor; }
.vid-toggle .i-pause, .vid-toggle.is-playing .i-play { display: none; }
.vid-toggle.is-playing .i-pause { display: block; }

/* Ampliar: botón transparente sobre todo el vídeo (tarjetas y Sistemas). */
.vid-zoom {
  position: absolute; inset: 0; z-index: 1; width: 100%; height: 100%; padding: 0;
  border: 0; border-radius: inherit; background: transparent; cursor: zoom-in;
}
.vid-zoom:focus-visible { outline: 3px solid var(--coral); outline-offset: 3px; }

/* Lightbox (<dialog> modal, ver script.js) */
.lightbox {
  width: 100%; height: 100%; max-width: 100%; max-height: 100%; margin: 0; padding: 0;
  border: 0; background: transparent; color: #fff; overflow: hidden;
}
.lightbox[open] { display: grid; place-items: center; animation: lbin .25s ease both; }
.lightbox::backdrop { background: rgba(5, 7, 12, .93); }
@keyframes lbin { from { opacity: 0; } to { opacity: 1; } }
.lightbox-video {
  width: auto; height: auto; max-width: min(94vw, 1400px); max-height: 86vh; max-height: 86dvh;
  border-radius: 16px; background: #000; box-shadow: 0 40px 120px -30px rgba(37, 64, 255, .5);
}
.lightbox-close {
  position: fixed; top: 16px; right: 16px; z-index: 2; width: 48px; height: 48px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; cursor: pointer;
  border: 1px solid rgba(255, 255, 255, .3); background: rgba(255, 255, 255, .08); color: #fff;
}
.lightbox-close:hover { background: rgba(255, 255, 255, .18); }
.lightbox-close svg { width: 22px; height: 22px; }
.lightbox-guard { position: fixed; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
html:has(.lightbox[open]) { overflow: hidden; }

/* ── FRANJA ──────────────────────────────────────────────────────────── */
.marqs { position: relative; z-index: 3; margin: 40px -40px 0; transform: rotate(-2deg); }
.marq { background: var(--blue); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); overflow: hidden; }
.marq-in { display: flex; width: max-content; padding: 18px 0; animation: mq 28s linear infinite; }
.marq-in span {
  display: flex; align-items: center; gap: 48px; padding-right: 48px; white-space: nowrap;
  font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 68px); letter-spacing: -.03em;
}
.marq-in span::after { content: ""; width: 16px; height: 16px; border-radius: 50%; background: var(--coral); }
.marq-o { overflow: hidden; }
.marq-o-in { display: flex; width: max-content; padding: 16px 0; animation: mqr 34s linear infinite; }
.marq-o-in span {
  padding-right: 48px; white-space: nowrap; color: transparent; -webkit-text-stroke: 1.5px rgba(255, 255, 255, .35);
  font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 5vw, 68px); letter-spacing: -.03em;
}
@keyframes mqr { from { transform: translateX(-50%); } to { transform: none; } }
@keyframes mq { to { transform: translateX(-50%); } }

/* ── SECCIONES ───────────────────────────────────────────────────────── */
.sec { position: relative; padding: 150px 0; }
.sec-tight { padding-top: 40px; }
.sec-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; flex-wrap: wrap; margin-bottom: 64px; }
.sec-head .lead { margin: 0; }
.rv { opacity: 1; }
@supports (animation-timeline: view()) {
  .rv { animation: reveal linear both; animation-timeline: view(); animation-range: entry 0% cover 28%; }
  .rv-d1 { animation-range: entry 5% cover 32%; }
  .rv-d2 { animation-range: entry 10% cover 36%; }
  .rv-d3 { animation-range: entry 15% cover 40%; }
  @keyframes reveal { from { opacity: 0; transform: translateY(70px) scale(.97); } to { opacity: 1; transform: none; } }
}

/* Sistemas a medida: "Del problema real al producto" (diseño v3). Sin JS o con
   reduced-motion se ven las 4 completas; home-v3.js añade .is-animated y va
   marcando la activa (borde coral) y las hechas, en bucle. */
.pasos-wrap { margin-top: 90px; }
.pasos-title { margin: 0 0 40px; font-family: var(--font-display); font-weight: 700; font-size: clamp(36px, 4.6vw, 64px); line-height: 1; letter-spacing: -.04em; }
.pasos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.paso { padding: 28px; border-radius: 22px; background: var(--ink2); border: 1px solid var(--line); transition: border-color .5s ease; }
.paso-n { display: block; font-family: var(--font-display); font-weight: 700; font-size: 64px; line-height: 1; color: var(--coral); transition: color .5s ease; }
.paso h4 { margin: 18px 0 8px; font-family: var(--font-display); font-size: 24px; letter-spacing: -.02em; }
.paso p { margin: 0; color: var(--soft); font-size: 15px; line-height: 1.55; }
.paso-bar { display: block; margin-top: 20px; height: 4px; border-radius: 2px; background: rgba(255, 255, 255, .08); overflow: hidden; }
.paso-bar i { display: block; height: 100%; width: 100%; background: var(--coral); transition: width .8s ease; }
.pasos.is-animated .paso-n { color: rgba(255, 255, 255, .2); }
.pasos.is-animated .paso-bar i { width: 0; }
.pasos.is-animated .paso.is-done .paso-n, .pasos.is-animated .paso.is-active .paso-n { color: var(--coral); }
.pasos.is-animated .paso.is-done .paso-bar i { width: 100%; }
.pasos.is-animated .paso.is-active .paso-bar i { width: 60%; }
.pasos.is-animated .paso.is-active { border-color: rgba(255, 90, 60, .6); }

/* Qué hacemos: cuatro vías. 4 en fila en escritorio, 2×2 en tablet, 1 en móvil
   (ver media queries: ≤1100 y ≤600). */
/* 2026-11-14: sin altura mínima ni el título empujado al fondo (sobraba
   espacio). Icono arriba y justo debajo título y texto, con huecos fijos
   (20 px y 10 px). Cada tarjeta ocupa 3 filas de la rejilla (subgrid): icono,
   título y texto quedan a la misma altura en todas las tarjetas de una fila
   aunque un título ocupe dos líneas ("Productos digitales", "Webs para
   negocios") y otro una. */
.ways { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 22px; }
.way {
  position: relative; display: grid; grid-template-rows: subgrid; grid-row: span 3; row-gap: 0; align-content: start;
  padding: 28px; border-radius: 28px; background: var(--ink2); border: 1px solid var(--line); overflow: hidden;
  transition: transform .4s, border-color .4s;
}
.way:hover { transform: translateY(-6px); border-color: rgba(37, 64, 255, .7); }
.way h3 { align-self: start; margin: 20px 0 10px; font-family: var(--font-display); font-size: 26px; line-height: 1.15; letter-spacing: -.03em; text-wrap: balance; hyphens: manual; }
.way p { align-self: start; margin: 0; color: var(--soft); line-height: 1.55; }
/* Iconos de las vías: SVG con su propia animación dentro (assets/icons/,
   2026-11-13), que se para sola con prefers-reduced-motion. Alineados a la
   izquierda. 2026-11-14: un 10 % más grandes (132×106 en vez de 120×96; el
   dibujo queda entre 67 y 116 px de ancho según el icono). */
.way-icon { display: block; width: 132px; height: 106px; }

/* Productos */
.pgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 22px; }
.pcard {
  position: relative; padding: 30px; border-radius: 30px; background: var(--ink2);
  border: 1px solid var(--line); overflow: hidden; transition: transform .4s, border-color .4s;
}
.pcard:hover { transform: translateY(-6px); border-color: rgba(255, 90, 60, .5); }
.pvid-wrap { margin-bottom: 26px; }
.pvid {
  width: 100%; aspect-ratio: 16 / 10; object-fit: cover; border-radius: 18px;
  background: var(--ink); border: 1px solid rgba(255, 255, 255, .08);
}
.pcard h3 {
  display: flex; align-items: center; flex-wrap: wrap; gap: 12px; margin: 0 0 8px;
  font-family: var(--font-display); font-size: 32px; letter-spacing: -.035em;
}
.pcard p { color: var(--soft); line-height: 1.55; margin: 0 0 18px; }
.pcard-wide { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 34px; align-items: center; }
.pcard-wide .pvid-wrap { margin-bottom: 0; }
.st { font: 600 12px var(--font-body); padding: 5px 11px; border-radius: 999px; letter-spacing: 0; }
.st-live { background: rgba(43, 214, 123, .14); color: #5BE59A; }
.st-dev { background: rgba(255, 255, 255, .08); color: #C5CAD8; }
.more { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; font-size: 15px; text-decoration: none; color: #fff; }
.more svg { width: 18px; height: 18px; flex: none; transition: transform .3s; }
.more:hover svg { transform: translateX(5px); }

/* Sistemas a medida: los 4 pasos + vídeo de ejemplo (4:5). */
.split { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 48px; align-items: center; }
.ex-tag {
  display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px; border-radius: 999px;
  background: rgba(255, 255, 255, .08); color: #D6DAE5; font-size: 13px; font-weight: 600;
}
.ex-tag::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

@keyframes msgin { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.sbtn {
  min-height: 48px; padding: 0 22px; border-radius: 999px; border: 0; cursor: pointer;
  font: 600 15px var(--font-body); transition: transform .2s, opacity .2s;
}
.sbtn:hover { transform: translateY(-2px); }
.sbtn:disabled { opacity: .45; cursor: default; transform: none; }
.sbtn-main { background: var(--coral); color: #fff; }

.sis-video { display: flex; flex-direction: column; align-items: center; gap: 16px; }
/* Mismo 4:5 que el vídeo (720×900): ni recorte ni bandas. Sin marco
   (2026-11-14): el vídeo trae fondo liso --ink y el móvil flota sobre la
   página, sin borde, esquinas ni sombra. La máscara difumina los bordes para
   que no se note ningún corte; va en el <video> y no en .sys-frame para no
   recortar el contorno de foco de Ampliar ni el botón de pausa. */
.sys-frame { width: min(100%, 480px); aspect-ratio: 720 / 900; background: var(--ink); }
.sys-video {
  width: 100%; height: 100%; object-fit: cover;
  -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 91%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  -webkit-mask-composite: source-in;
  mask-image: linear-gradient(to bottom, transparent 0, #000 3%, #000 91%, transparent 100%), linear-gradient(to right, transparent 0, #000 7%, #000 93%, transparent 100%);
  mask-composite: intersect;
}

/* Automatizaciones: escena animada del ejemplo del restaurante (2026-11-15;
   estilo de "Un cliente escribe a las 23:47" de la v3; automatizaciones-demo.js).
   Sustituye al simulador de 4 pasos. Lo que se ve sin clases es el estado
   final, quieto: es lo que sale sin JS y con reduced-motion. Mientras se
   anima, .is-anim + .p1…p7 (una por fase, se van sumando) esconden lo que aún
   no ha llegado:
     p1 Mesa 4 → Visita cerrada (paso 1) · p2 el punto va al móvil ·
     p3 aparece el mensaje preparado (paso 2) · p4 el dedo toca Enviar ·
     p5 enviado, doble check (paso 3) · p6 el punto va a la reseña ·
     p7 las 5 estrellas se rellenan una a una (paso 4). */
.auto-head { max-width: 760px; }
.auto { margin-top: 48px; padding: 30px; border-radius: 30px; background: var(--ink2); border: 1px solid var(--line); }
.auto-top { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; }
.auto-top .sbtn { min-height: 44px; }
.auto-steps { list-style: none; margin: 22px 0 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.astep {
  display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-radius: 14px;
  background: rgba(255, 255, 255, .04); border: 1px solid var(--line);
  font-weight: 600; font-size: 15px; line-height: 1.25; transition: opacity .4s, border-color .4s;
}
.astep .n {
  width: 28px; height: 28px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--coral); color: #fff; font-size: 13px; font-weight: 700; transition: background .4s;
}
.auto-scene {
  display: grid; align-items: center; margin-top: 34px;
  grid-template-columns: minmax(0, 1fr) minmax(40px, 90px) auto minmax(40px, 90px) minmax(0, 1fr);
}
.auto-piece { margin: 0; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 16px; }
.auto-piece figcaption { max-width: 250px; color: var(--soft); font-size: 13px; line-height: 1.4; text-align: center; }

/* 1. Panel del restaurante (claro, como "Reservas · mañana" de la v3) */
.aw-panel { width: 100%; max-width: 300px; padding: 18px; border-radius: 22px; background: #F7F7FB; color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.aw-panel-t { margin: 0 0 12px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.aw-tables { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; }
.aw-t {
  position: relative; min-height: 66px; padding: 9px 8px; border-radius: 12px; background: #fff;
  border: 1px solid rgba(11, 13, 23, .1); font-size: 12px; font-weight: 600;
  transition: background .4s, border-color .4s, box-shadow .4s;
}
.aw-t i { position: absolute; left: 9px; bottom: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--blue); }
.aw-free i { background: #C9CEDB; }
.aw-t4 { background: #E8EBFF; border-color: var(--blue); box-shadow: inset 0 0 0 1px var(--blue); }
.aw-t4 i { display: none; }
.aw-chip { position: absolute; left: 8px; right: 6px; bottom: 7px; color: var(--blue); font-size: 10.5px; line-height: 1.15; }

/* 2. Móvil con un chat genérico, sin logo (el de la v3) */
.aw-phone {
  position: relative; width: 252px; border: 9px solid #1A1E33; border-radius: 34px; background: #EFE7DE;
  overflow: hidden; box-shadow: 0 40px 80px rgba(0, 0, 0, .5);
}
.aw-ph-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; background: #0B5C52; color: #fff; font-size: 13px; }
.aw-av { width: 30px; height: 30px; flex: none; border-radius: 50%; background: #BFE6DF; }
.aw-ph-body { display: flex; flex-direction: column; justify-content: flex-end; min-height: 200px; padding: 14px 10px; }
.aw-bub {
  align-self: flex-end; max-width: 94%; padding: 9px 11px 6px; border-radius: 12px 12px 4px 12px;
  background: #D9FDD3; color: #111B21; font-size: 13px; line-height: 1.35; transition: opacity .3s;
}
.aw-link { display: block; margin-top: 6px; color: #027EB5; font-weight: 600; text-decoration: underline; text-underline-offset: 2px; }
.aw-meta { display: flex; align-items: center; justify-content: flex-end; gap: 3px; margin-top: 4px; color: #667781; font-size: 10.5px; }
.aw-meta svg { width: 15px; height: 11px; }
.aw-clock { display: none; }
.aw-ticks { color: #53BDEB; }
.aw-ph-foot { display: flex; align-items: center; gap: 8px; padding: 6px 8px 10px; }
.aw-input { flex: 1; height: 32px; border-radius: 999px; background: #fff; }
.aw-send { width: 34px; height: 34px; flex: none; display: grid; place-items: center; border-radius: 50%; background: #0B5C52; color: #fff; }
.aw-send svg { width: 16px; height: 16px; }
/* El dedo que toca Enviar: un círculo de toque, encima del botón. */
.aw-finger {
  position: absolute; right: 10px; bottom: 12px; width: 30px; height: 30px; border-radius: 50%;
  background: rgba(255, 255, 255, .6); box-shadow: 0 0 0 2px rgba(11, 13, 18, .25), 0 6px 14px rgba(0, 0, 0, .25);
  opacity: 0; pointer-events: none;
}

/* 3. Tarjeta de reseña genérica, sin logo */
.aw-review { width: 100%; max-width: 280px; padding: 18px; border-radius: 22px; background: #F7F7FB; color: var(--ink); box-shadow: 0 40px 80px rgba(0, 0, 0, .5); }
.aw-rv-head { display: flex; align-items: center; gap: 10px; font-family: var(--font-display); font-weight: 700; font-size: 17px; }
.aw-rv-av { width: 34px; height: 34px; flex: none; border-radius: 50%; background: #E8EBFF; }
.aw-stars { display: flex; gap: 4px; margin-top: 14px; }
.aw-stars svg { width: 26px; height: 26px; fill: var(--coral); stroke: var(--coral); stroke-width: 1.4; stroke-linejoin: round; }
.aw-line { display: block; height: 8px; margin-top: 14px; border-radius: 4px; background: #E3E6EE; }
.aw-line.aw-short { width: 62%; margin-top: 8px; }

/* Conectores: línea discontinua y el punto coral que viaja (los de la v3) */
.aw-conn { position: relative; height: 24px; }
.aw-conn::before {
  content: ""; position: absolute; left: 4px; right: 4px; top: 11px; height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px);
}
.aw-conn i { position: absolute; left: 0; top: 0; width: 24px; height: 24px; border-radius: 50%; background: var(--coral); opacity: 0; }

/* Mientras se anima: lo que aún no ha llegado */
.auto.is-anim:not(.p1) .astep[data-step="1"], .auto.is-anim:not(.p3) .astep[data-step="2"],
.auto.is-anim:not(.p5) .astep[data-step="3"], .auto.is-anim:not(.p7) .astep[data-step="4"] { opacity: .45; }
.auto.is-anim:not(.p1) .astep[data-step="1"] .n, .auto.is-anim:not(.p3) .astep[data-step="2"] .n,
.auto.is-anim:not(.p5) .astep[data-step="3"] .n, .auto.is-anim:not(.p7) .astep[data-step="4"] .n { background: rgba(255, 255, 255, .12); }
.auto.is-anim.p1:not(.p3) .astep[data-step="1"], .auto.is-anim.p3:not(.p5) .astep[data-step="2"],
.auto.is-anim.p5:not(.p7) .astep[data-step="3"], .auto.is-anim.p7 .astep[data-step="4"] { border-color: var(--coral); }
.auto.is-anim:not(.p1) .aw-t4 { background: #fff; border-color: rgba(11, 13, 23, .1); box-shadow: none; }
.auto.is-anim:not(.p1) .aw-t4 i { display: block; }
.auto.is-anim:not(.p1) .aw-chip { opacity: 0; }
.auto.is-anim.p1 .aw-chip { animation: aw-pop .5s ease both; }
.auto.is-anim.p2:not(.p3) .aw-c1 i, .auto.is-anim.p6:not(.p7) .aw-c2 i { animation: aw-travel .9s cubic-bezier(.65, 0, .2, 1) both; }
.auto.is-anim:not(.p3) .aw-bub { opacity: 0; }
.auto.is-anim.p3:not(.p5) .aw-bub { animation: aw-draft .45s ease both; }
.auto.is-anim:not(.p5) .aw-clock { display: block; }
.auto.is-anim:not(.p5) .aw-ticks { display: none; }
.auto.is-anim.p5 .aw-ticks { animation: aw-pop .4s ease both; }
.auto.is-anim.p4:not(.p5) .aw-finger { animation: aw-tap .8s ease both; }
.auto.is-anim.p4:not(.p5) .aw-send { animation: aw-press .8s ease both; }
.auto.is-anim:not(.p7) .aw-stars svg { fill: transparent; stroke: #C9CEDB; }
.auto.is-anim.p7 .aw-stars svg { animation: aw-star .45s ease both; }
.auto.is-anim.p7 .aw-stars svg:nth-child(2) { animation-delay: .22s; }
.auto.is-anim.p7 .aw-stars svg:nth-child(3) { animation-delay: .44s; }
.auto.is-anim.p7 .aw-stars svg:nth-child(4) { animation-delay: .66s; }
.auto.is-anim.p7 .aw-stars svg:nth-child(5) { animation-delay: .88s; }
@keyframes aw-pop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: none; } }
@keyframes aw-draft { from { opacity: 0; transform: translateY(10px) scale(.96); } to { opacity: .75; transform: none; } }
@keyframes aw-travel { 0% { left: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { left: calc(100% - 24px); opacity: 0; } }
@keyframes aw-travel-v { 0% { top: 0; opacity: 0; } 12%, 88% { opacity: 1; } 100% { top: calc(100% - 24px); opacity: 0; } }
@keyframes aw-tap { 0% { opacity: 0; transform: translate(-70px, -60px); } 45% { opacity: 1; transform: none; } 60% { transform: scale(.82); } 78% { opacity: 1; transform: none; } 100% { opacity: 0; transform: none; } }
@keyframes aw-press { 0%, 50% { transform: none; } 60% { transform: scale(.88); } 78%, 100% { transform: none; } }
@keyframes aw-star { 0% { fill: transparent; stroke: #C9CEDB; transform: scale(.8); } 60% { transform: scale(1.18); } 100% { fill: var(--coral); stroke: var(--coral); transform: none; } }
/* Por debajo de 1000 px (a 920 el panel ya no cabía en su columna) y en
   móvil: las 3 piezas en vertical; las líneas, también (el punto baja). Los 4
   pasos, en 2 × 2 por debajo de 760 px (a 600 ya no cabían en fila). */
@media (max-width: 1000px) {
  .auto-scene { grid-template-columns: minmax(0, 1fr); justify-items: center; margin-top: 28px; }
  .aw-conn { width: 24px; height: 64px; }
  .aw-conn::before {
    left: 11px; right: auto; top: 4px; bottom: 4px; width: 2px; height: auto;
    background: repeating-linear-gradient(180deg, rgba(255, 255, 255, .25) 0 8px, transparent 8px 16px);
  }
  .auto.is-anim.p2:not(.p3) .aw-c1 i, .auto.is-anim.p6:not(.p7) .aw-c2 i { animation-name: aw-travel-v; }
}
@media (max-width: 760px) { .auto-steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Caso "21" (diseño v3): bloque azul a todo el ancho; el número cuenta de 0 a
   21 al entrar en pantalla (home-v3.js). Ancho fijo para que no salte. El
   número va en blanco: coral sobre azul no llega al contraste mínimo. */
.caso21 { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: 32px 56px; align-items: center; margin-top: 70px; padding: clamp(32px, 5vw, 64px); border-radius: 32px; background: var(--blue); overflow: hidden; }
.caso21-num { min-width: 1.2em; font-family: var(--font-display); font-weight: 700; font-size: clamp(140px, 22vw, 300px); line-height: .8; letter-spacing: -.02em; color: #fff; font-variant-numeric: tabular-nums; }
.caso21 h3 { margin: 0 0 16px; font-family: var(--font-display); font-weight: 700; font-size: clamp(30px, 3.4vw, 46px); line-height: 1.05; letter-spacing: -.03em; }
.caso21 p { margin: 0 0 24px; max-width: 520px; font-size: 18px; line-height: 1.55; color: #E8EBFF; }
.btn-ink { background: var(--ink); color: #fff; }
.btn-ink:hover { color: #fff; transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .6); }

/* El laboratorio. "el laboratorio · impuls labs" rueda solo, lento y en bucle
   (2026-11-14; antes iba ligado al scroll): dos copias seguidas, cada una con
   su " · " detrás, y la pista se desplaza media anchura. Con reduced-motion,
   quieto y alineado a la izquierda. */
.lab-marq { overflow: hidden; }
.lab-marq-in { display: flex; width: max-content; animation: mq 70s linear infinite; }
.big-word {
  font-family: var(--font-display); font-weight: 700; font-size: clamp(90px, 15vw, 230px);
  width: max-content; letter-spacing: -.06em; line-height: .85; white-space: nowrap; color: transparent;
  -webkit-text-stroke: 1.5px rgba(255, 255, 255, .12); user-select: none;
}
.lab-marq-in .big-word::after { content: "\00a0\00b7\00a0"; }
.phases { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; margin-top: 10px; }
.ph-line { position: absolute; left: 4%; right: 4%; top: 27px; height: 2px; background: #232838; overflow: hidden; }
.ph-line i { position: absolute; inset: 0; background: linear-gradient(90deg, var(--blue), var(--coral)); transform-origin: left; animation: trk 9s cubic-bezier(.65, 0, .35, 1) infinite; }
@keyframes trk { 0% { transform: scaleX(0); } 80%, 100% { transform: scaleX(1); } }
.ph { position: relative; text-align: center; }
.ph-n {
  position: relative; z-index: 2; display: grid; place-items: center; width: 56px; height: 56px; margin: 0 auto;
  border-radius: 50%; background: var(--ink); border: 2px solid #2A3042;
  font-family: var(--font-display); font-weight: 700; font-size: 20px; animation: phon 9s infinite;
}
.ph:nth-child(3) .ph-n { animation-delay: 1.03s; }
.ph:nth-child(4) .ph-n { animation-delay: 2.06s; }
.ph:nth-child(5) .ph-n { animation-delay: 3.09s; }
.ph:nth-child(6) .ph-n { animation-delay: 4.12s; }
.ph:nth-child(7) .ph-n { animation-delay: 5.15s; }
.ph:nth-child(8) .ph-n { animation-delay: 6.18s; }
@keyframes phon {
  0% { border-color: #2A3042; background: var(--ink); }
  3%, 88% { border-color: var(--coral); background: #2A1712; }
  100% { border-color: #2A3042; background: var(--ink); }
}
.ph-name { margin: 14px 0 0; font-size: 15px; font-weight: 600; }
.labgrid { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, .7fr); gap: 22px; margin-top: 60px; }
.lbox { padding: 30px; border-radius: 26px; border: 1px solid var(--line); background: var(--ink2); }
.lbox h3 { margin: 0 0 18px; font-family: var(--font-display); font-size: 22px; letter-spacing: -.02em; }
.lbox > p { margin: 0 0 14px; color: var(--soft); line-height: 1.5; }
.lrows { list-style: none; margin: 0; padding: 0; }
.lrow { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 14px 0; border-bottom: 1px solid var(--line); font-weight: 600; }
.lrow:last-child { border-bottom: 0; }

/* FAQ (faq.js: aria-expanded + hidden) */
.faq-list { display: grid; gap: 12px; max-width: 900px; }
.faq-item { border-radius: 20px; border: 1px solid var(--line); background: var(--ink2); overflow: hidden; transition: border-color .3s; }
.faq-item:has(.faq-question[aria-expanded="true"]) { border-color: rgba(255, 90, 60, .55); }
.faq-heading { margin: 0; }
.faq-question {
  width: 100%; min-height: 72px; display: flex; justify-content: space-between; align-items: center; gap: 20px;
  padding: 14px 26px; border: 0; background: transparent; color: #fff; cursor: pointer; text-align: left;
  font: 600 18px var(--font-display); letter-spacing: -.01em;
}
.faq-icon { position: relative; width: 30px; height: 30px; flex: none; border-radius: 50%; background: rgba(255, 255, 255, .08); transition: transform .4s, background .4s; }
.faq-icon::before, .faq-icon::after {
  content: ""; position: absolute; left: 50%; top: 50%; width: 12px; height: 2px;
  margin: -1px 0 0 -6px; background: #fff; border-radius: 2px;
}
.faq-icon::after { transform: rotate(90deg); }
.faq-question[aria-expanded="true"] .faq-icon { transform: rotate(45deg); background: var(--coral); }
.faq-answer { padding: 0 26px 24px; color: var(--soft); line-height: 1.6; animation: msgin .4s both; }
.faq-answer[hidden] { display: none; }
.faq-answer p { margin: 0; }

/* Contacto: bloque azul con ondas */
.cta { position: relative; margin: 0 32px 32px; padding: 120px 0; border-radius: 40px; background: var(--blue); overflow: hidden; }
.cta :focus-visible { outline-color: #fff; }
.waves { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.wv { fill: none; stroke: rgba(255, 255, 255, .16); stroke-width: 2; animation: wave 8s ease-in-out infinite alternate; }
.wv:nth-child(2) { animation-duration: 10s; stroke: rgba(255, 90, 60, .7); stroke-width: 3; }
.wv:nth-child(3) { animation-duration: 13s; }
@keyframes wave { to { transform: translateY(40px); } }
.cta .wrap { position: relative; }
.cta .kicker { color: #fff; }
.cta .kicker::before { background: #fff; }
.cta h2 {
  margin: 20px 0 0; max-width: 11ch; font-family: var(--font-display); font-weight: 700;
  font-size: clamp(46px, 11vw, 168px); letter-spacing: -.045em; line-height: .9;
}
.cta-sub { margin: 28px 0 0; max-width: 620px; color: rgba(255, 255, 255, .88); font-size: clamp(17px, 1.5vw, 20px); line-height: 1.55; }
.cta-links { display: flex; gap: 14px; flex-wrap: wrap; margin-top: 40px; }
.cta-links .btn { max-width: 100%; overflow-wrap: anywhere; text-align: center; }
.btn-white { background: #fff; color: var(--ink); }
/* «mos?» de ¿Hablamos?: sobre el azul del contacto, blanco con subrayado coral
   (coral sobre azul no llega al contraste mínimo; sobre fondo oscuro iría en coral). */
.cta-mark { color: #fff; text-decoration: underline; text-decoration-color: var(--coral); text-decoration-thickness: .08em; text-underline-offset: .1em; text-decoration-skip-ink: none; }
.btn-wa { background: #25D366; color: var(--ink); }
.btn-wa:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .5); }
.btn-white:hover { color: var(--ink); transform: translateY(-2px); box-shadow: 0 14px 40px -10px rgba(0, 0, 0, .5); }
.btn-line { border: 1.5px solid rgba(255, 255, 255, .5); color: #fff; }
.btn-line:hover { color: #fff; border-color: #fff; transform: translateY(-2px); }

/* Formulario: mismo contenido y comportamiento que antes (Formspree,
   contacto-validacion.js, contacto-whatsapp.js); solo cambia el aspecto. */
.cform {
  display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 14px;
  max-width: 860px; margin-top: 44px; padding: 30px; border-radius: 28px;
  background: rgba(11, 13, 18, .35); border: 1px solid rgba(255, 255, 255, .18);
}
.form-group { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.form-group.full, .form-consent, .form-error-consent, .cform .send, .contacto-wa-link, .form-status { grid-column: 1 / -1; }
.form-group label { font-size: 14px; font-weight: 600; color: rgba(255, 255, 255, .92); }
.form-optional { font-weight: 500; color: rgba(255, 255, 255, .7); }
.form-group input, .form-group select, .form-group textarea {
  width: 100%; min-height: 50px; padding: 0 16px; border-radius: 14px;
  border: 1.5px solid rgba(255, 255, 255, .24); background: rgba(255, 255, 255, .08); color: #fff;
  font: 500 15px var(--font-body);
}
.form-group textarea { min-height: 120px; padding: 14px 16px; resize: vertical; }
.form-group select option { color: var(--ink); }
.form-group input::placeholder, .form-group textarea::placeholder { color: rgba(255, 255, 255, .62); }
.form-group input:focus-visible, .form-group select:focus-visible, .form-group textarea:focus-visible { outline: 3px solid #fff; outline-offset: 1px; }
.cform [aria-invalid="true"] { border-color: #FFD3CA; box-shadow: 0 0 0 2px rgba(255, 211, 202, .55); }
.form-error {
  margin: 2px 0 0; padding: 7px 10px; border-radius: 10px; font-size: 13px; font-weight: 600; line-height: 1.4;
  color: #fff; background: rgba(11, 13, 18, .5); border-left: 3px solid #FFB4A6;
}
.form-error[hidden] { display: none; }
.form-consent { display: flex; align-items: center; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, .92); }
.form-consent input { width: 20px; height: 20px; flex: none; accent-color: var(--coral); }
.form-consent a { color: #fff; font-weight: 600; }
.cform .send {
  justify-self: start; min-height: 54px; padding: 0 30px; border: 0; border-radius: 999px; cursor: pointer;
  background: #fff; color: var(--ink); font: 700 16px var(--font-body); transition: transform .2s;
}
.cform .send:hover { transform: translateY(-2px); }
.cform .send:disabled { opacity: .6; cursor: default; transform: none; }
.contacto-wa-link { display: inline-flex; align-items: center; gap: 8px; justify-self: start; color: #fff; font-weight: 600; font-size: 15px; }
.contacto-wa-link svg { width: 18px; height: 18px; flex: none; }
.form-status { margin: 0; font-weight: 600; }
.form-status:empty { display: none; }
.form-status.is-success, .form-status.is-error { padding: 12px 14px; border-radius: 12px; background: rgba(11, 13, 18, .5); }
.form-status.is-success { border-left: 3px solid var(--green); }
.form-status.is-error { border-left: 3px solid #FFB4A6; }

/* Pie */
.foot { display: flex; justify-content: space-between; align-items: center; gap: 20px; flex-wrap: wrap; padding-top: 30px; padding-bottom: 40px; color: #7D8498; font-size: 14px; }
.foot-brand { display: inline-flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.foot-brand img { width: auto; height: 30px; }
.foot a { color: #B5BBCB; text-decoration: none; }
.foot a:hover { color: #fff; }
.foot nav { display: flex; gap: 8px 18px; flex-wrap: wrap; }

/* ── RESPONSIVE ──────────────────────────────────────────────────────── */
@media (max-width: 1100px) {
  .side { display: none; }
  .pasos { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ways { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .way h3 { font-size: 30px; }
}
@media (max-width: 900px) {
  .links { display: none; }
  .nav-toggle { display: block; }
  .pgrid, .split, .labgrid, .cform, .pcard-wide { grid-template-columns: minmax(0, 1fr); }
  .phases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
  .ph-line { display: none; }
  .sec { padding: 100px 0; }
  .sec-tight { padding-top: 30px; }
  .split { gap: 40px; }
}
@media (max-width: 600px) {
  .wrap { padding: 0 20px; }
  .ways { grid-template-columns: minmax(0, 1fr); }
  .pasos { grid-template-columns: minmax(0, 1fr); }
  .pasos-wrap { margin-top: 60px; }
  .caso21 { grid-template-columns: minmax(0, 1fr); gap: 20px; margin-top: 50px; }
  .nav-r { display: none; }
  .brand img { height: 36px; }
  .brand b { font-size: 22px; }
  .hero-center { padding-top: 34px; }
  .showcase { margin-top: 50px; }
  .device { border-radius: 18px; }
  .marq-in span, .marq-o-in span { font-size: 30px; gap: 28px; padding-right: 28px; }
  .marq-in span::after { width: 10px; height: 10px; }
  .marq-in { padding: 14px 0; }
  .marq-o-in { padding: 12px 0; }
  .sec { padding: 80px 0; }
  .sec-head { margin-bottom: 40px; }
  .way, .pcard, .auto, .lbox { padding: 22px; border-radius: 24px; }
  .pcard h3 { font-size: 27px; }
  .cta { margin: 0 10px 10px; padding: 80px 0; border-radius: 28px; }
  .cform { padding: 20px; border-radius: 22px; }
  .faq-question { padding: 14px 18px; font-size: 17px; }
  .faq-answer { padding: 0 18px 20px; }
  .hero { padding-top: 88px; }
  .cta-links .btn { font-size: 15px; padding: 0 20px; }
}

/* Movimiento reducido: sin animaciones ni autoplay (script.js no arranca
   los vídeos); se ve el póster y el subrayado ya dibujado. */
/* ── CUÉNTANOS TU CASO (fin de Productos, Sistemas y Automatizaciones) ──
   Píldora con borde coral y texto blanco (2026-11-14); la flecha se desplaza
   al pasar el ratón o al llegar con el teclado. */
.mini-cta { margin: 40px 0 0; }
.mini-cta a {
  display: inline-flex; align-items: center; gap: 12px; padding: 14px 24px;
  border: 2px solid var(--coral); border-radius: 999px; color: #fff; text-decoration: none;
  font-weight: 600; font-size: 17px; line-height: 1.25; transition: background .25s;
}
.mini-cta a:hover, .mini-cta a:focus-visible { color: #fff; background: rgba(255, 90, 60, .14); }
.mini-cta a span[aria-hidden] { display: inline-block; transition: transform .3s cubic-bezier(.2, .8, .2, 1); }
.mini-cta a:hover span[aria-hidden], .mini-cta a:focus-visible span[aria-hidden] { transform: translateX(6px); }
@media (max-width: 600px) { .mini-cta a { font-size: 16px; } }

/* ── ANIMACIONES DE ENTRADA (animaciones.js, 2026-11-14) ─────────────────
   Solo en las secciones sin estelas (no en el hero ni en el contacto) y sin
   puntos, estrellas, partículas ni brillos. Las clases las pone el JS una vez
   por elemento; sin JS o con reduced-motion no se pone ninguna y todo se ve
   como antes. */

/* Plegado de cinta: tarjetas de Qué hacemos, Productos y los 4 pasos entran
   girando en 3D desde su borde de arriba, escalonadas. Fill backwards: al
   acabar no queda ningún transform puesto, así el hover de las tarjetas
   (translateY) sigue funcionando. */
.fold { transform-origin: 50% 0; }
.fold:not(.is-in) { opacity: 0; transform: perspective(1100px) rotateX(-75deg); }
.fold.is-in { animation: fold .95s cubic-bezier(.2, .8, .2, 1) var(--fold-d, 0s) backwards; }
@keyframes fold {
  from { opacity: 0; transform: perspective(1100px) rotateX(-75deg); }
  35% { opacity: 1; }
  to { opacity: 1; transform: perspective(1100px) rotateX(0deg); }
}

/* Rotulador coral: la parte del titular que ya va en coral recibe un
   subrayado grueso que se dibuja de izquierda a derecha (si ocupa dos líneas,
   las recorre en orden), como el de «de verdad.» del hero. Va justo bajo la
   línea base (de +0,06 a +0,14 em; el área de la fuente baja 0,26 em), así
   no tapa las letras ni toca la línea siguiente. Una franja translúcida
   detrás del texto se veía como un bloque marrón sobre el fondo oscuro. */
.rotu {
  background-image: linear-gradient(var(--coral), var(--coral));
  background-repeat: no-repeat; background-position: left 0 bottom .12em; background-size: 0% .08em;
  transition: background-size 1s cubic-bezier(.65, 0, .35, 1);
}
.rotu.is-on { background-size: 100% .08em; }

/* Bloque coral (2026-11-14; Productos «hecho para usarse.» y calculadora
   «contestando lo mismo?»), como «la libreta.» del diseño v3: fondo coral
   sólido, texto --ink (6,3:1), padding 0 .14em, esquinas de 14 px. Si la frase
   se parte en dos líneas, un bloque por línea (clone). Girado -1,5° solo si
   cabe en una línea (.blk-1l la pone animaciones.js): un trozo de texto
   partido en dos líneas no se puede girar con CSS. La entrada es un barrido de
   izquierda a derecha con mask-size (que respeta el clone: cada línea barre
   desde su izquierda); .blk-wait/.blk-go las pone el JS. */
.blk { padding: 0 .14em; border-radius: 14px; background: var(--coral); color: var(--ink); -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.blk-1l { display: inline-block; transform: rotate(-1.5deg); }
.blk-wait {
  -webkit-mask-image: linear-gradient(#000, #000); mask-image: linear-gradient(#000, #000);
  -webkit-mask-repeat: no-repeat; mask-repeat: no-repeat;
  -webkit-mask-size: 0% 100%; mask-size: 0% 100%;
}
.blk-wait.blk-go { -webkit-mask-size: 100% 100%; mask-size: 100% 100%; transition: -webkit-mask-size .65s cubic-bezier(.65, 0, .35, 1), mask-size .65s cubic-bezier(.65, 0, .35, 1); }

/* Titulares con máscara (2026-11-14; sustituye a los que "se descifraban"):
   mientras esperan, el texto real está en su sitio pero transparente
   (.mr-wait). Al entrar, el JS reparte el contenido en un bloque por línea
   real: .ml es la máscara y .ml-in sube desde abajo (0,7 s, ease-out, cada
   línea 0,08 s después). La máscara es un clip-path algo más alto que la
   línea (no un overflow: hidden del tamaño justo), porque las letras de la
   fuente sobresalen de su interlineado (1,02) y se cortarían los acentos y
   los rabos de la p o la g; por eso lo que sube parte de 100 % + .35em. Al
   terminar se devuelve el contenido original y no se mueve nada. */
.mr-wait { -webkit-text-fill-color: transparent; }
.ml { display: block; white-space: nowrap; clip-path: inset(-.2em -.6em -.3em -.6em); }
.ml-in { display: block; transform: translateY(calc(100% + .35em)); transition: transform .7s cubic-bezier(.22, 1, .36, 1); }
.mr-go .ml-in { transform: none; }

/* Vídeos de producto que se inclinan siguiendo el cursor (solo con ratón). */
.tilt { transition: transform .5s cubic-bezier(.2, .8, .2, 1); }
.tilt.is-tilting { transition-duration: .15s; }

/* ── BOTÓN FLOTANTE DE WHATSAPP ─────────────────────────────────────────
   Fijo abajo a la derecha; verde oficial de WhatsApp. .is-away (JS) lo
   esconde mientras se ve el formulario de contacto o el pie, para no tapar
   "Enviar" en móvil. Con el lightbox o el menú móvil abiertos no se muestra. */
.wa-fab {
  position: fixed; right: 20px; bottom: calc(20px + env(safe-area-inset-bottom, 0px)); z-index: 40;
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  color: #fff; background: #25D366; text-decoration: none;
  box-shadow: 0 12px 28px -10px rgba(37, 211, 102, .6), 0 4px 12px rgba(0, 0, 0, .45);
  transition: transform .2s, opacity .25s, visibility .25s;
}
.wa-fab:hover { transform: translateY(-2px); }
.wa-fab svg { width: 30px; height: 30px; }
.wa-fab:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.wa-fab.is-away { opacity: 0; visibility: hidden; pointer-events: none; }
html:has(.lightbox[open]) .wa-fab, html:has(.nav-toggle[aria-expanded="true"]) .wa-fab { display: none; }
@media (max-width: 600px) { .wa-fab { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* ── CALCULADORA (diseño v3): solo con los números del visitante ───────── */
.calc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 48px; align-items: center; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: var(--ink2); border: 1px solid var(--line); }
.calc-title { margin: 0 0 14px; font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 4vw, 56px); line-height: 1; letter-spacing: -.04em; }
.calc-lead { margin: 0 0 32px; color: var(--soft); font-size: 17px; line-height: 1.55; }
.calc-field { display: block; margin-bottom: 26px; }
.calc-field:last-child { margin-bottom: 0; }
.calc-row { display: flex; justify-content: space-between; gap: 12px; margin-bottom: 10px; font-weight: 600; }
.calc-val { color: var(--coral); white-space: nowrap; font-variant-numeric: tabular-nums; }
.calc input[type="range"] { width: 100%; height: 28px; margin: 0; accent-color: var(--coral); cursor: pointer; }
.calc input[type="range"]:focus-visible { outline: 3px solid var(--coral); outline-offset: 4px; }
.calc-result { text-align: center; }
.calc-pre { margin: 0; color: var(--soft); font-size: 17px; }
.calc-hours { margin: 6px 0 26px; display: flex; flex-direction: column; align-items: center; }
.calc-hours output { font-family: var(--font-display); font-weight: 700; font-size: clamp(110px, 14vw, 200px); line-height: .9; letter-spacing: -.06em; color: var(--coral); font-variant-numeric: tabular-nums; }
.calc-unit { margin-top: 6px; font-family: var(--font-display); font-weight: 700; font-size: 32px; }
.calc-note { margin: 0 auto 26px; max-width: 360px; color: #C9CDDC; font-size: 16px; line-height: 1.55; }

/* ── BLACK FRIDAY (diseño v3; oculta salvo en fechas, ver avisos.json) ──── */
.bf { padding: 40px 0 90px; }
.bf-strip { margin: 0 -40px; padding: 12px 0; background: var(--coral); color: var(--ink); overflow: hidden; transform: rotate(2deg); }
.bf-strip-in { display: flex; width: max-content; animation: mq 16s linear infinite; font-family: var(--font-display); font-weight: 700; font-size: clamp(40px, 6vw, 84px); letter-spacing: -.04em; white-space: nowrap; }
.bf-strip-in span { padding-right: 40px; }
.bf-box { position: relative; display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, .8fr); gap: 48px; align-items: center; margin-top: 56px; padding: clamp(28px, 5vw, 64px); border-radius: 32px; background: #000; border: 2px solid var(--coral); overflow: hidden; }
.bf-chip { display: inline-flex; align-items: center; gap: 8px; padding: 7px 14px; border-radius: 999px; background: var(--coral); color: var(--ink); font-weight: 700; font-size: 14px; }
.bf-chip i { width: 8px; height: 8px; border-radius: 50%; background: var(--ink); animation: bfblink 1s infinite; }
.bf-title { margin: 20px 0 18px; font-family: var(--font-display); font-weight: 700; font-size: clamp(44px, 5.6vw, 88px); line-height: .92; letter-spacing: -.05em; hyphens: manual; overflow-wrap: normal; }
.bf-text { margin: 0 0 28px; max-width: 520px; font-size: 18px; line-height: 1.55; color: #C9CDDC; }
.bf-cd { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 30px; }
.bf-cd[hidden] { display: none; }
.bf-cd-u { min-width: 84px; padding: 14px 16px; border-radius: 16px; background: var(--ink2); border: 1px solid rgba(255, 90, 60, .4); text-align: center; }
.bf-cd-u b { display: block; font-family: var(--font-display); font-weight: 700; font-size: 38px; line-height: 1; color: #fff; font-variant-numeric: tabular-nums; }
.bf-cd-u span { display: block; margin-top: 6px; font-size: 13px; color: var(--soft); }
.bf-btn { background: var(--coral); color: var(--ink); font-weight: 700; font-size: 17px; animation: bfpulse 2s infinite; }
.bf-btn:hover { color: var(--ink); transform: translateY(-2px); }
.bf-art { position: relative; display: grid; place-items: center; min-height: 380px; }
.bf-ring { position: absolute; width: 300px; height: 300px; border-radius: 50%; border: 2px dashed rgba(255, 90, 60, .4); animation: spin 18s linear infinite; }
.bf-card { position: relative; width: 230px; padding: 22px; border-radius: 26px; background: #fff; color: var(--ink); transform: rotate(-6deg); box-shadow: 0 40px 80px rgba(0, 0, 0, .6); animation: bffloat 4s ease-in-out infinite; }
.bf-card-head { display: flex; align-items: center; gap: 8px; margin-bottom: 14px; font-weight: 700; font-size: 14px; }
.bf-card-head img { width: auto; height: 26px; }
.bf-qr { position: relative; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; padding: 10px; border-radius: 12px; background: #F7F7FB; overflow: hidden; }
.bf-qr i { aspect-ratio: 1; border-radius: 2px; }
.bf-qr i.on { background: var(--ink); }
.bf-scan { position: absolute; left: 0; right: 0; top: 6%; height: 3px; background: var(--coral); box-shadow: 0 0 0 1px rgba(255, 90, 60, .3); animation: bfscan 2.4s ease-in-out infinite; }
.bf-card-q { margin: 14px 0 0; text-align: center; font-size: 15px; }
.bf-card-q b, .bf-card-q span { display: block; }
.bf-card-q span { font-weight: 500; font-size: 13px; color: #464A5E; }
.bf-stars { display: flex; justify-content: center; gap: 4px; margin-top: 8px; }
.bf-stars svg { width: 18px; height: 18px; fill: var(--coral); animation: bfpop .4s ease both; }
.bf-stars svg:nth-child(2) { animation-delay: .42s; }
.bf-stars svg:nth-child(3) { animation-delay: .54s; }
.bf-stars svg:nth-child(4) { animation-delay: .66s; }
.bf-stars svg:nth-child(5) { animation-delay: .78s; }
.bf-stars svg:nth-child(1) { animation-delay: .3s; }
@keyframes bfblink { 50% { opacity: .35; } }
@keyframes bfpulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255, 90, 60, .55); } 60% { box-shadow: 0 0 0 14px rgba(255, 90, 60, 0); } }
@keyframes bffloat { 0%, 100% { transform: rotate(-6deg) translateY(0); } 50% { transform: rotate(-6deg) translateY(-12px); } }
@keyframes bfscan { 0%, 100% { top: 6%; } 50% { top: 90%; } }
@keyframes bfpop { 0% { opacity: 0; transform: scale(.6); } 70% { transform: scale(1.06); } 100% { opacity: 1; transform: scale(1); } }
@media (max-width: 900px) {
  .calc, .bf-box { grid-template-columns: minmax(0, 1fr); }
  .bf-art { min-height: 320px; }
}
@media (max-width: 600px) {
  .aviso { font-size: 13px; padding: 8px 46px 8px 16px; }
  .bf-cd-u { flex: 1; min-width: 0; padding: 12px 6px; }
  .bf-cd-u b { font-size: 28px; }
}

/* ── ESTELAS ALEATORIAS (estelas.js, 2026-11-15) ─────────────────────────
   De vez en cuando, una estela como las del hero (arco de 5 px con el degradado
   azul → coral, a veces un arco fino y una órbita con el punto azul) en la
   sección que está en pantalla, por los márgenes y huecos. El SVG lo crea el
   JS, solo en escritorio y sin reduced-motion, y lo quita al desvanecerse.
   z-index -1: .ip no crea contexto de apilamiento, así que queda sobre el
   fondo del body y bajo todo lo demás. La órbita, como .orbit del hero: 1 px
   del color de --line. */
.estela { position: absolute; z-index: -1; overflow: visible; pointer-events: none; }
.estela path { fill: none; stroke-linecap: round; }
.estela-orb { fill: none; stroke: rgba(255, 255, 255, .09); stroke-width: 1; }
@media (max-width: 768px), (prefers-reduced-motion: reduce), print { .estela { display: none; } }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .uline path { stroke-dashoffset: 0; }
}
