/* Globanzer POS — muestra «Día» (clara). Primero el teléfono (390 px), después la computadora (1024 px y más). */

:root {
  --bg: #F4F2EC;
  --tinta: #111214;
  --tinta-2: #5C5A55;
  --tinta-3: #B9B5AB;
  --linea: #E3DFD5;
  --linea-2: #EFECE4;
  --blanco: #FFFFFF;
  --azul: #4F6CF0;
  --azul-suave: #E7EBFD;
  --sombra: 0 1px 1px rgba(17, 18, 20, .04), 0 10px 24px rgba(17, 18, 20, .08), 0 34px 70px rgba(17, 18, 20, .12);
  --sombra-baja: 0 1px 1px rgba(17, 18, 20, .04), 0 6px 16px rgba(17, 18, 20, .07);
  --f-titulo: "Bricolage Grotesque", "Arial Narrow", system-ui, sans-serif;
  --f-ui: "Geist", system-ui, -apple-system, "Segoe UI", sans-serif;
  --borde: 16px;
  --reticula: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='44' height='44'%3E%3Cpath d='M44 .5H.5V44' fill='none' stroke='%23111214' stroke-opacity='.055'/%3E%3C/svg%3E");
}

*, *::before, *::after { box-sizing: border-box; }
html { color-scheme: light; background: var(--bg); -webkit-text-size-adjust: 100%; }
html.mov { scroll-behavior: auto; }
html.estatico { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html.estatico { scroll-behavior: auto; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font-family: var(--f-ui);
  font-size: 16px;
  line-height: 1.45;
  overflow-x: clip;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img, video, svg { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
button { font: inherit; color: inherit; }
.sr { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; }
svg use { stroke: currentColor; }
.ic, .ok svg, .p-ico svg, .ico svg, .chat svg, .enviar svg {
  fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round;
}
:focus-visible { outline: 2px solid var(--azul); outline-offset: 3px; border-radius: 6px; }

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  height: 50px; padding: 0 20px; border-radius: 14px; border: 1px solid transparent;
  font: 600 15px/1 var(--f-ui); letter-spacing: -.005em; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: transform .2s ease, background-color .2s ease, border-color .2s ease;
}
.btn:active { transform: scale(.97); }
.btn .ic { width: 19px; height: 19px; }
.btn-azul { background: var(--azul); color: var(--blanco); }
.btn-azul:hover { background: #4361E8; }
.btn-claro { background: var(--blanco); color: var(--tinta); border-color: var(--linea); }
.btn-claro:hover { border-color: #CFCABD; }
.btn-tinta { background: var(--tinta); color: var(--blanco); }
.btn-chico { height: 38px; padding: 0 15px; font-size: 14px; border-radius: 11px; }
.btn-ancho { width: 100%; }

/* ---------- barra de arriba y progreso ---------- */
.progreso {
  position: fixed; z-index: 60; inset: 0 0 auto 0; height: 2px; background: var(--azul);
  transform-origin: 0 50%; transform: scaleX(0); pointer-events: none;
}
.estatico .progreso { display: none; }
.barra {
  position: fixed; z-index: 50; top: 10px; left: 10px; right: 10px; height: 56px;
  display: flex; align-items: center; justify-content: space-between; padding: 0 9px 0 11px;
  border-radius: 18px; background: rgba(255, 255, 255, .8);
  -webkit-backdrop-filter: blur(14px) saturate(1.3); backdrop-filter: blur(14px) saturate(1.3);
  border: 1px solid rgba(17, 18, 20, .06); box-shadow: 0 8px 24px rgba(17, 18, 20, .06);
  transition: transform .45s cubic-bezier(.2, .7, .2, 1);
}
.barra.oculta { transform: translateY(calc(-100% - 16px)); }
.marca { display: inline-flex; align-items: center; gap: 9px; text-decoration: none; font-weight: 650; font-size: 15px; letter-spacing: -.015em; }
.marca img { width: 30px; height: 30px; border-radius: 9px; }

/* ---------- piezas de interfaz (paneles flotantes) ---------- */
.panel {
  position: relative; background: var(--blanco); border: 1px solid var(--linea); border-radius: 20px;
  box-shadow: var(--sombra); padding: 13px 14px 12px; color: var(--tinta);
  font-size: 13px; line-height: 1.3; transform-style: preserve-3d;
}
.panel > * { transform: translateZ(16px); }
.p-cab { display: flex; align-items: center; gap: 9px; font-weight: 650; font-size: 13.5px; letter-spacing: -.01em; }
.p-ico { width: 28px; height: 28px; border-radius: 9px; background: var(--azul-suave); color: var(--azul); display: grid; place-items: center; flex: none; }
.p-ico svg { width: 16px; height: 16px; }
.p-avatar { width: 28px; height: 28px; border-radius: 50%; flex: none; }
.p-meta { margin-left: auto; color: var(--tinta-2); font-weight: 500; font-size: 12px; white-space: nowrap; }
.p-fila { display: flex; align-items: center; gap: 8px; padding: 8px 0; border-top: 1px solid var(--linea-2); }
.p-cab + .p-fila { margin-top: 10px; }
.p-nombre { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.p-cant, .p-valor { font-variant-numeric: tabular-nums; color: var(--tinta-2); white-space: nowrap; }
.p-valor b { color: var(--tinta); }
.etq { font-size: 11px; font-weight: 650; padding: 3px 8px; border-radius: 999px; background: var(--azul-suave); color: var(--azul); white-space: nowrap; transform: translateZ(30px); }
.etq.nuevo { background: var(--tinta); color: var(--blanco); }
.p-pie { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--linea-2); font-weight: 600; }
.ok { width: 24px; height: 24px; border-radius: 50%; background: var(--azul); color: var(--blanco); display: inline-grid; place-items: center; flex: none; }
.ok svg { width: 14px; height: 14px; stroke-width: 2.4; }
.p-total { font-family: var(--f-titulo); font-weight: 760; font-stretch: 86%; font-size: 36px; line-height: 1; letter-spacing: -.035em; margin: 12px 0 10px; font-variant-numeric: tabular-nums; }
.pagos { display: flex; gap: 6px; }
.pago { flex: 1; min-width: 0; display: flex; align-items: center; gap: 6px; border: 1px solid var(--linea); border-radius: 12px; padding: 8px 8px 8px 10px; transform: translateZ(26px); }
.pago b { font-size: 14px; }
.pago small { color: var(--tinta-2); font-size: 11px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.pago .ok { width: 18px; height: 18px; margin-left: auto; }
.pago .ok svg { width: 11px; height: 11px; }
.p-fila.abono .p-valor { color: var(--azul); font-weight: 600; }
.barra-fiado { height: 8px; border-radius: 99px; background: var(--linea-2); margin-top: 10px; overflow: hidden; }
.barra-fiado i { display: block; height: 100%; width: 25%; background: var(--azul); border-radius: inherit; transform-origin: 0 50%; }
.graf { display: flex; align-items: flex-end; gap: 6px; height: 74px; margin: 14px 0 6px; transform: translateZ(26px); }
.graf i { flex: 1; height: var(--h); background: #E4E0D6; border-radius: 5px 5px 2px 2px; transform-origin: 50% 100%; }
.graf i.hoy { background: var(--azul); }
.p-pregunta { font-family: var(--f-titulo); font-weight: 750; font-stretch: 86%; font-size: 30px; letter-spacing: -.03em; line-height: 1; margin: 14px 0 12px; }
.p-botones { display: flex; gap: 8px; transform: translateZ(28px); }
.p-botones span { position: relative; flex: 1; height: 42px; border-radius: 12px; display: grid; place-items: center; font-weight: 650; font-size: 15px; }
.b-no { border: 1px solid var(--linea); color: var(--tinta-2); }
.b-si { background: var(--azul); color: var(--blanco); }
.toque { position: absolute; left: 50%; top: 50%; width: 46px; height: 46px; margin: -23px 0 0 -23px; border-radius: 50%; border: 2px solid var(--azul); opacity: 0; pointer-events: none; }
.p-guardado { display: flex; align-items: center; gap: 8px; margin-top: 10px; font-weight: 650; color: var(--azul); }
.p-guardado .ok { width: 20px; height: 20px; }
.mini-filas { display: grid; gap: 7px; margin: 12px 0 2px; }
.mini-filas i { height: 8px; width: var(--w); border-radius: 99px; background: var(--linea-2); }

/* ---------- foto del comercio detrás (con un velo claro del color de la página) ---------- */
.fondo { position: absolute; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
.fondo img { width: 100%; height: 100%; object-fit: cover; }
.velo { position: absolute; inset: 0; background: rgba(244, 242, 236, .6); }
:where(.telefono, .precios, .empieza) > :not(.fondo) { position: relative; z-index: 1; }

/* ---------- 1. arriba ---------- */
.hero { position: relative; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg); }
.hero-media {
  position: absolute; z-index: 1; overflow: hidden; background: #E8E2D4; border-radius: 28px;
  top: 52svh; left: 16px; width: calc(100% - 32px); height: calc(48svh - 16px);
}
/* Donde la caja recorta el video (la tarjeta del teléfono), el punto que queda a la vista está entre la cara del dueño (arriba)
   y la de Banzi (abajo, que baja con el acercamiento del video): las dos caben aun en la tarjeta de un teléfono bajo (375×667). */
.hero-video { width: 100%; height: 100%; object-fit: cover; object-position: 30% 35%; }
.hero-copy { position: absolute; z-index: 3; top: 84px; left: 16px; right: 16px; }
.titulo {
  font-family: var(--f-titulo); font-weight: 760; font-stretch: 82%;
  font-size: clamp(46px, 13.6vw, 66px); line-height: .9; letter-spacing: -.045em;
}
.bajada { margin-top: 14px; max-width: 36ch; color: var(--tinta-2); font-size: 16px; line-height: 1.42; }
.acciones { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.hero-flota { position: absolute; inset: 0; z-index: 4; pointer-events: none; perspective: 1100px; }
.solo-escritorio { display: none; }
.chip-ui {
  position: absolute; display: inline-flex; align-items: center; gap: 9px;
  background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px;
  padding: 7px 15px 7px 7px; box-shadow: var(--sombra); font: 600 14px/1 var(--f-ui); letter-spacing: -.01em;
}
.chip-ui .ok { width: 26px; height: 26px; }
.chip-a { top: 12svh; left: 16px; }
.chip-b { top: 40svh; left: 16px; padding: 5px; }
.chip-c {
  bottom: 12svh; right: 18px; padding: 12px 20px; border: 0; background: var(--azul); color: var(--blanco);
  font: 760 26px/1 var(--f-titulo); border-radius: 22px 22px 22px 6px;
}
.seg { display: inline-flex; background: var(--linea-2); border-radius: 999px; padding: 3px; }
.seg b { font-size: 14px; padding: 7px 13px; border-radius: 999px; color: var(--tinta-2); }
.seg b.on { background: var(--blanco); color: var(--azul); box-shadow: var(--sombra-baja); }

/* ---------- 1b. la entrega: la pantalla se queda, las frases salen con el scroll y Banzi trae el teléfono ---------- */
.entrega { position: relative; z-index: 5; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg) var(--reticula); }
/* De fondo, la pantalla «Mi negocio» del dueño (una imagen un poco desenfocada, en la proporción de una computadora) con un
   velo claro: se distinguen las cifras, los botones con sus íconos y el gráfico, y las frases se siguen leyendo encima
   (el velo deja el punto más oscuro sobre 4,5:1 de contraste con ellas). La imagen pasa un 6 % de cada borde, sin el tope
   de ancho de las demás imágenes, para que al moverse nunca se vea el borde; en el teléfono se recorta (object-fit: cover),
   no se aplasta. Con movimiento, app.js la mueve despacio y la funde cuando entra el video de Banzi. */
.ent-pantalla { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.ent-pantalla img { position: absolute; left: -6%; top: -6%; width: 112%; max-width: none; height: 112%; object-fit: cover; object-position: 50% 30%; will-change: transform; }
.ent-pantalla::after { content: ""; position: absolute; inset: 0; background: rgba(244, 242, 236, .52); }
.ent-media { position: absolute; inset: 0; z-index: 1; overflow: hidden; background: var(--bg); }
.ent-video { display: block; width: 100%; height: 100%; object-fit: cover; object-position: 50% 50%; }
.ent-frases { position: absolute; z-index: 3; top: 50%; left: 16px; right: 16px; display: grid; transform-origin: 0 0; }
.ent-frase {
  grid-area: 1 / 1; align-self: center; margin: 0;
  font-family: var(--f-titulo); font-weight: 760; font-stretch: 82%;
  font-size: clamp(40px, 11.4vw, 58px); line-height: .94; letter-spacing: -.042em;
}

/* ---------- 2. teléfono: la pantalla se queda y el scroll avanza la conversación ---------- */
.telefono {
  position: relative; z-index: 5; height: 100svh; min-height: 600px; overflow: hidden;
  padding: 88px 16px 0; background: var(--bg);
  --pw: clamp(380px, calc((100svh - 270px) / 1.065), 560px);
}
.telefono .velo { background: rgba(244, 242, 236, .46); }
.frase-tel { font-family: var(--f-titulo); font-weight: 760; font-stretch: 82%; font-size: clamp(42px, 12.4vw, 60px); line-height: .9; letter-spacing: -.045em; }
.paso { display: block; color: var(--tinta-3); transition: color .45s ease; }
.paso.activo { color: var(--tinta); }
.paso .si { font-style: normal; }
.paso.activo .si { color: var(--azul); }
.tel-escena { position: relative; height: calc(var(--pw) * 1.409); margin-top: 16px; perspective: 1300px; }
.tel-3d { position: absolute; top: 0; left: 50%; width: var(--pw); margin-left: calc(var(--pw) * -.6335); transform-style: preserve-3d; }
.tel { position: relative; width: 100%; aspect-ratio: 1000 / 1409; }
.tel-foto { position: absolute; inset: 0; z-index: 2; width: 100%; height: 100%; pointer-events: none; }
.chat {
  position: absolute; z-index: 1; left: 37.6%; top: 1.35%; width: 51.5%; height: 76.3%;
  border-radius: 8.4% / 4.1%; overflow: hidden; background: #F7F6F1; color: var(--tinta);
  display: flex; flex-direction: column; container-type: inline-size; font-family: var(--f-ui);
}
.chat-estado { display: flex; justify-content: space-between; align-items: center; padding: 3.4cqw 8cqw 1cqw 9cqw; font-size: 3.9cqw; font-weight: 650; }
.chat-iconos { display: flex; align-items: flex-end; gap: .9cqw; }
.chat-iconos i { width: 1.1cqw; background: var(--tinta); border-radius: .4cqw; }
.chat-iconos i:nth-child(1) { height: 1.6cqw; } .chat-iconos i:nth-child(2) { height: 2.4cqw; } .chat-iconos i:nth-child(3) { height: 3.2cqw; }
.chat-iconos b { width: 6.2cqw; height: 3cqw; border: .35cqw solid var(--tinta); border-radius: 1cqw; margin-left: 1.2cqw; position: relative; }
.chat-iconos b::after { content: ""; position: absolute; inset: .5cqw 1.6cqw .5cqw .5cqw; background: var(--tinta); border-radius: .4cqw; }
.chat-cabeza { display: flex; align-items: center; gap: 2.6cqw; padding: 2.4cqw 4cqw 3cqw 2.6cqw; background: #FCFBF8; border-bottom: 1px solid #E9E6DE; }
.chat-atras { width: 5.6cqw; height: 5.6cqw; color: var(--azul); }
.chat-cabeza img { width: 10.5cqw; height: 10.5cqw; border-radius: 50%; }
.chat-quien { display: grid; line-height: 1.15; }
.chat-quien b { font-size: 4.6cqw; }
.chat-quien small { font-size: 3.3cqw; color: var(--azul); font-weight: 500; }
.chat-msgs { flex: 1; min-height: 0; display: flex; flex-direction: column; justify-content: flex-end; gap: 2.6cqw; padding: 4cqw 3.6cqw; overflow: hidden; }
.chat.pide-si .chat-msgs { padding-bottom: 15cqw; }
.msg { max-width: 82%; font-size: 4.45cqw; line-height: 1.34; padding: 2.6cqw 3.6cqw; border-radius: 4.6cqw; overflow-wrap: break-word; }
.msg.banzi { align-self: flex-start; background: var(--blanco); border: 1px solid #E9E6DE; border-bottom-left-radius: 1.2cqw; }
.msg.dueno { align-self: flex-end; background: var(--azul); color: var(--blanco); border-bottom-right-radius: 1.2cqw; }
.msg.foto { padding: 1.2cqw; }
.msg.foto img { width: 44cqw; height: auto; border-radius: 3.6cqw; }
.msg.si-msg { font-weight: 650; font-size: 5cqw; padding: 2.2cqw 5cqw; }
.msg .cursor { display: inline-block; width: .45em; height: 1em; margin-left: .05em; vertical-align: -.12em; background: var(--azul); border-radius: 1px; }
.escribiendo { align-self: flex-start; display: flex; gap: 1.4cqw; padding: 3.4cqw 4cqw; background: var(--blanco); border: 1px solid #E9E6DE; border-radius: 4.6cqw; border-bottom-left-radius: 1.2cqw; }
.escribiendo i { width: 1.9cqw; height: 1.9cqw; border-radius: 50%; background: #B9B5AB; animation: punto 1s infinite ease-in-out; }
.escribiendo i:nth-child(2) { animation-delay: .15s; } .escribiendo i:nth-child(3) { animation-delay: .3s; }
@keyframes punto { 0%, 60%, 100% { transform: translateY(0); opacity: .5; } 30% { transform: translateY(-1.2cqw); opacity: 1; } }
.chat-entrada { position: relative; display: flex; align-items: center; gap: 2.4cqw; padding: 2.8cqw 3.6cqw 6cqw; background: #FCFBF8; border-top: 1px solid #E9E6DE; }
.campo { flex: 1; height: 10cqw; display: flex; align-items: center; padding: 0 4cqw; border-radius: 99px; background: var(--blanco); border: 1px solid #E6E3DA; color: #ABA79D; font-size: 3.9cqw; }
.enviar { width: 10cqw; height: 10cqw; border-radius: 50%; background: var(--azul); color: var(--blanco); display: grid; place-items: center; }
.enviar svg { width: 5cqw; height: 5cqw; }
.chat-si {
  position: absolute; right: 3.6cqw; bottom: calc(100% + 2.6cqw); z-index: 2;
  padding: 2.4cqw 6cqw; border-radius: 99px; border: 1.5px solid var(--azul); background: var(--blanco); color: var(--azul);
  font-size: 4.8cqw; font-weight: 700; cursor: pointer; box-shadow: 0 2px 10px rgba(79, 108, 240, .25);
  animation: latido 1.3s ease-in-out infinite;
}
.chat-si::before { content: ""; position: absolute; inset: -12px; }
.chat-si[hidden] { display: none; }
/* con movimiento, cada mensaje se ve solo cuando el scroll llega a su paso (y se va al subir) */
.mov .chat-msgs > [data-paso-chat]:not(.visto) { display: none; }
.mov .chat-msgs > .entra { animation: entra .42s cubic-bezier(.2, .8, .25, 1.25) both; }
.mov .chat-msgs > .msg.dueno.entra { transform-origin: 100% 100%; }
.mov .chat-msgs > .msg.banzi.entra, .mov .chat-msgs > .escribiendo.entra { transform-origin: 0% 100%; }
@keyframes entra { from { opacity: 0; transform: translateY(12px) scale(.9); } to { opacity: 1; transform: none; } }
.estatico .chat-msgs > .escribiendo { display: none; }
@keyframes latido { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.07); } }

/* ---------- 3. lo que hace: sin movimiento, una escena debajo de otra ---------- */
.hace { position: relative; z-index: 5; background: var(--bg); padding: 88px 0 24px; }
.hace-fondos { position: absolute; inset: 0; z-index: 0; overflow: hidden; pointer-events: none; }
.hace-fondos .hf { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: 0; transition: opacity .9s ease; }
.hace-fondos .hf.on { opacity: 1; }
.hace-fondos .velo { background: rgba(244, 242, 236, .5); }
.hace-mundo { position: relative; z-index: 1; }
.esc { position: relative; max-width: 520px; margin: 0 auto; padding: 0 16px 64px; }
.esc-frase { font-family: var(--f-titulo); font-weight: 750; font-stretch: 84%; font-size: clamp(32px, 9.4vw, 46px); line-height: .94; letter-spacing: -.04em; max-width: 13ch; margin: 0 0 16px; }
.esc-foto { margin: 0; border-radius: 26px; overflow: hidden; background: #E8E2D4; box-shadow: var(--sombra); }
.esc-foto img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; }
.esc-panel { position: relative; z-index: 2; width: min(80vw, 300px); margin: -120px 0 0 auto; perspective: 1000px; touch-action: pan-y; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tilt { transform-style: preserve-3d; }
.hace-frases, .hace-indice { display: none; }

/* ---------- 3. lo que hace, con movimiento: la página se queda y la cámara avanza en profundidad ---------- */
.mov .hace { height: 100svh; min-height: 560px; padding: 0; overflow: hidden; }
.mov .hace-mundo { position: absolute; inset: 0; perspective: 1100px; perspective-origin: 50% 34%; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mov .esc { --ancho: min(80vw, 46svh, 430px); position: absolute; top: 10svh; left: 50%; width: var(--ancho); max-width: none; margin: 0 0 0 calc(var(--ancho) / -2); padding: 0; transform-style: preserve-3d; will-change: transform, opacity; }
.mov .esc > .esc-frase { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); clip-path: inset(50%); white-space: nowrap; margin: 0; }
.mov .esc-panel { position: absolute; right: -6%; bottom: -14%; width: min(72vw, 290px); margin: 0; transform: translateZ(90px); }
.mov .esc:nth-child(even) .esc-panel { right: auto; left: -6%; }
.mov .hace-frases { display: block; position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 82px; height: 2.9em; font-size: clamp(30px, 9vw, 44px); pointer-events: none; }
.mov .hace-frases .esc-frase { position: absolute; left: 0; right: 0; bottom: 0; margin: 0; font-size: 1em; visibility: hidden; }
.mov .hace-indice { display: flex; position: absolute; z-index: 3; left: 16px; right: 16px; bottom: 24px; align-items: center; justify-content: space-between; font: 600 13px/1 var(--f-ui); color: var(--tinta-2); font-variant-numeric: tabular-nums; }
.hace-cuenta b { color: var(--azul); font-weight: 700; }
.hace-marcas { display: flex; gap: 2px; }
.hace-marcas button { position: relative; width: 34px; height: 34px; border: 0; padding: 0; background: none; cursor: pointer; }
.hace-marcas button::after { content: ""; position: absolute; left: 4px; right: 4px; top: 15px; height: 3px; border-radius: 3px; background: rgba(17, 18, 20, .16); transition: background-color .3s; }
.hace-marcas button.on::after { background: var(--azul); }

/* ---------- detrás de Banzi ---------- */
.detras { position: relative; z-index: 6; overflow: hidden; background: var(--bg) var(--reticula); padding: 92px 16px 36px; }
.detras-texto h2 { font-family: var(--f-titulo); font-weight: 760; font-stretch: 82%; font-size: clamp(46px, 13.6vw, 66px); line-height: .9; letter-spacing: -.045em; }
.detras-quien { margin-top: 12px; color: var(--tinta-2); font-size: 16px; }
.detras-escena { position: relative; margin-top: 22px; }
.detras-foto { width: 86%; margin: 0 0 0 auto; border-radius: 28px; overflow: hidden; background: #E8E2D4; box-shadow: var(--sombra); }
.detras-foto img { width: 100%; height: auto; aspect-ratio: 3 / 4; object-fit: cover; object-position: 50% 18%; }
.detras-banzi { position: absolute; left: -4%; bottom: -12%; width: 33%; height: auto; filter: drop-shadow(0 18px 22px rgba(17, 18, 20, .22)); pointer-events: none; }

/* ---------- la playa ---------- */
.playa { position: relative; z-index: 6; height: 100svh; min-height: 600px; overflow: hidden; background: var(--bg); }
.playa-foto { position: absolute; inset: 0; margin: 0; }
.playa-foto picture, .playa-foto img { width: 100%; height: 100%; }
.playa-foto img { object-fit: cover; object-position: 50% 50%; }
.playa-globo {
  position: absolute; z-index: 2; left: 14px; top: 84px; max-width: min(88vw, 360px);
  background: var(--blanco); border-radius: 26px 26px 26px 8px; padding: 18px 20px 20px; box-shadow: var(--sombra);
}
.playa-globo h2 { font-family: var(--f-titulo); font-weight: 760; font-stretch: 82%; font-size: clamp(36px, 10.6vw, 50px); line-height: .92; letter-spacing: -.045em; }
/* la pantalla del teléfono de la foto: se coloca encima de la pantalla con una matriz de perspectiva (app.js) */
.playa-tel {
  position: absolute; left: 0; top: 0; width: 100px; height: 200px; transform-origin: 0 0; visibility: hidden;
  display: flex; flex-direction: column; gap: 9px; padding: 22px 9px 10px; background: #F7F6F1; overflow: hidden;
}
.playa-tel.lista { visibility: visible; }
.mt-cab { display: block; height: 7px; width: 46%; border-radius: 4px; background: #DCD8CE; margin-bottom: 4px; }
.mt { display: block; height: 15px; border-radius: 8px; }
.mt.dueno { align-self: flex-end; width: 62%; background: var(--azul); }
.mt.banzi { align-self: flex-start; width: 74%; height: 21px; background: var(--blanco); border: 1px solid #E2DED5; }
.mov .playa-tel > .mt:not(.visto) { display: none; }
/* la conversación en grande, como una ventana de chat afuera del teléfono */
.playa-chat {
  position: absolute; z-index: 3; left: 14px; right: 14px; bottom: 88px; max-width: 420px; margin-left: auto;
  background: rgba(255, 255, 255, .94); border-radius: 22px; box-shadow: var(--sombra); overflow: hidden;
}
.pc-cabeza { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--linea-2); }
.pc-cabeza img { width: 34px; height: 34px; border-radius: 50%; }
.pc-cabeza b { font-size: 16px; }
.pc-cabeza small { color: var(--azul); font-size: 13px; font-weight: 500; }
.pc-msgs { display: flex; flex-direction: column; gap: 7px; padding: 11px 12px 13px; }
.pb { max-width: 86%; padding: 9px 13px; border-radius: 18px; font: 500 16px/1.3 var(--f-ui); }
.pb.dueno { align-self: flex-end; background: var(--azul); color: var(--blanco); border-bottom-right-radius: 6px; }
.pb.banzi { align-self: flex-start; background: #F2F0EA; color: var(--tinta); border-bottom-left-radius: 6px; }
.pb.escribe { display: flex; gap: 5px; padding: 14px 16px; }
.pb.escribe i { width: 7px; height: 7px; border-radius: 50%; background: #B9B5AB; animation: punto 1s infinite ease-in-out; }
.pb.escribe i:nth-child(2) { animation-delay: .15s; } .pb.escribe i:nth-child(3) { animation-delay: .3s; }
.mov .pc-msgs > [data-paso]:not(.visto) { display: none; }
.mov .pc-msgs > .entra, .mov .playa-tel > .entra { animation: entra .42s cubic-bezier(.2, .8, .25, 1.25) both; }
.mov .pc-msgs > .dueno.entra { transform-origin: 100% 100%; }
.mov .pc-msgs > .banzi.entra { transform-origin: 0% 100%; }
.estatico .pc-msgs > .escribe { display: none; }
.mov .playa-chat { transition: opacity .4s ease, transform .4s ease; }
.mov .playa-chat:not(.activa) { opacity: 0; transform: translateY(16px); }

/* ---------- 4. precios ---------- */
.precios { position: relative; z-index: 6; background: var(--bg); padding: 104px 16px 72px; overflow: hidden; }
.precios .velo { background: rgba(244, 242, 236, .76); }
.ojo { font: 600 13px/1 var(--f-ui); letter-spacing: .14em; text-transform: uppercase; color: var(--azul); }
.precios-par { margin-top: 18px; }
.precio { padding: 30px 0 34px; border-top: 1px solid var(--linea); perspective: 900px; touch-action: pan-y; }
.cifra { display: flex; align-items: flex-end; gap: 12px; }
.num { font-family: var(--f-titulo); font-weight: 780; font-stretch: 78%; font-size: clamp(120px, 41vw, 220px); line-height: .78; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.unidad { font: 650 17px/1.1 var(--f-ui); padding-bottom: 8px; letter-spacing: -.01em; }
.incluye { list-style: none; margin: 22px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.incluye li { display: inline-flex; align-items: center; gap: 9px; background: var(--blanco); border: 1px solid var(--linea); border-radius: 999px; padding: 6px 15px 6px 6px; font-size: 14.5px; font-weight: 550; box-shadow: var(--sombra-baja); }
.ico { width: 30px; height: 30px; border-radius: 50%; background: var(--azul-suave); color: var(--azul); display: grid; place-items: center; flex: none; }
.ico svg { width: 18px; height: 18px; }

/* ---------- 5. empieza ---------- */
.empieza { position: relative; z-index: 6; background: var(--bg); padding: 96px 16px 80px; overflow: hidden; }
.empieza .velo { background: rgba(244, 242, 236, .66); }
.grande { font-family: var(--f-titulo); font-weight: 780; font-stretch: 84%; font-size: clamp(72px, 22vw, 200px); line-height: .84; letter-spacing: -.035em; }
.ficha-col { margin-top: 26px; display: grid; gap: 12px; max-width: 520px; }
.ficha { padding: 16px; }
.ficha > * { transform: none; }

/* ---------- 6. abajo ---------- */
.pie { position: relative; z-index: 6; display: flex; flex-wrap: wrap; align-items: center; gap: 14px 26px; padding: 28px 16px 44px; border-top: 1px solid var(--linea); background: var(--bg); color: var(--tinta-2); font-size: 14px; }
.pie .marca { color: var(--tinta); }
.pie-enlaces { display: flex; gap: 22px; }
.pie-enlaces a { text-decoration: none; }
.pie-enlaces a:hover { color: var(--tinta); }
.pie-dir { flex-basis: 100%; }
/* espacio abajo para que el botón de WhatsApp no tape el pie al final de la página */
.pie { padding-bottom: 104px; }

/* ---------- palabras que entran una por una ---------- */
.w { display: inline-block; overflow: hidden; vertical-align: top; padding-bottom: .06em; margin-bottom: -.06em; }
.w > span { display: inline-block; transform-origin: 50% 100%; will-change: transform; }

/* ---------- pantallas cortas ---------- */
@media (max-height: 700px) and (max-width: 1023px) {
  .titulo { font-size: clamp(40px, 11.4vw, 52px); }
  .bajada { font-size: 15px; margin-top: 10px; }
  .acciones { margin-top: 14px; }
  .frase-tel { font-size: clamp(30px, 9vw, 40px); }
  .telefono { padding-top: 72px; --pw: clamp(340px, calc((100svh - 190px) / 1.065), 520px); }
  .mov .esc { --ancho: min(70vw, 40svh); }
  .mov .esc-panel { width: min(66vw, 250px); }
  .mov .hace-frases { font-size: clamp(26px, 8vw, 34px); bottom: 70px; }
  .panel { font-size: 12px; }
}

/* ---------- computadora ---------- */
@media (min-width: 1024px) {
  .barra { left: 50%; right: auto; width: min(1180px, calc(100% - 40px)); margin-left: max(-590px, calc(-50% + 20px)); }

  /* la columna tiene la forma del video (9:16, con el alto de la pantalla de arriba): no se recorta nada del cuadro */
  .hero-media {
    top: 0; left: 50%; width: calc(max(100svh, 600px) * 9 / 16); height: 100%; margin-left: calc(max(100svh, 600px) * -9 / 32); border-radius: 0;
    clip-path: inset(0 round var(--r, 0px));
  }
  .hero-copy { top: 0; bottom: 0; left: max(40px, 6vw); right: auto; width: min(44vw, 620px); display: flex; flex-direction: column; justify-content: center; }
  .titulo { font-size: min(8.4vw, 14svh); }
  .bajada { font-size: 18px; max-width: 34ch; margin-top: 20px; }
  .acciones { margin-top: 28px; }
  .solo-movil { display: none; }
  .solo-escritorio { display: block; }
  .mini { position: absolute; width: 268px; }
  .mini-1 { left: 5vw; top: 15svh; }
  .mini-2 { right: 5.5vw; top: 13svh; width: 244px; }
  .mini-3 { left: 8.5vw; bottom: 14svh; width: 236px; }
  .mini-4 { right: 4vw; bottom: 12svh; width: 256px; }

  .ent-frases { left: 6vw; right: 6vw; }
  .ent-frase { justify-self: center; text-align: center; max-width: 15em; font-size: min(5.4vw, 10.5svh); }
  .ent-frase:last-child { justify-self: start; text-align: left; max-width: 8.4em; }
  .ent-media { inset: auto; top: 7svh; right: 8vw; width: calc(86svh * 9 / 16); height: 86svh; border-radius: 28px; box-shadow: var(--sombra); }

  .telefono { display: grid; grid-template-columns: 1fr 1fr; align-items: start; gap: 4vw; padding: 0 6vw; --pw: min(590px, 74svh); }
  .frase-tel { align-self: center; font-size: min(9vw, 16svh); padding-bottom: 6svh; }
  .tel-escena { margin-top: 6svh; height: calc(100svh - 6svh); }

  .esc { max-width: 640px; }
  .mov .esc { --ancho: min(36vw, 60svh); left: auto; right: 10vw; top: 10svh; margin: 0; }
  .mov .hace-mundo { perspective-origin: 68% 45%; }
  .mov .esc-panel, .mov .esc:nth-child(even) .esc-panel { left: -18%; right: auto; bottom: 8%; width: 320px; transform: translateZ(140px); }
  .mov .hace-frases { left: 6vw; right: auto; width: 40vw; top: 50%; bottom: auto; transform: translateY(-50%); height: 2.9em; font-size: min(5.6vw, 10svh); }
  .mov .hace-indice { left: 6vw; right: auto; bottom: 7svh; justify-content: flex-start; gap: 24px; }
  .panel { font-size: 13.5px; }

  .detras { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 4vw; min-height: 100svh; padding: 0 9vw 0 6vw; }
  .detras-texto h2 { font-size: min(8vw, 15svh); }
  .detras-quien { font-size: 19px; margin-top: 18px; }
  .detras-escena { margin: 0; }
  .detras-foto { width: min(38vw, 60svh); margin: 0; }
  .detras-texto { max-width: 36vw; }
  .detras-banzi { left: -14%; bottom: -7svh; width: 35%; }

  .playa-globo { left: 6vw; top: 16svh; max-width: 560px; padding: 26px 30px 30px; border-radius: 34px 34px 34px 10px; }
  .playa-globo h2 { font-size: min(6.4vw, 11svh); }
  .playa-chat { left: auto; right: 17vw; bottom: auto; top: 40svh; width: 400px; max-width: none; margin: 0; }
  .pb { font-size: 18px; }
  .pc-cabeza b { font-size: 17px; }

  .precios { padding: 120px 6vw 96px; }
  .precios-par { display: grid; grid-template-columns: 1fr 1fr; gap: 5vw; margin-top: 26px; }
  .num { font-size: min(17vw, 30svh); }
  .unidad { font-size: 20px; padding-bottom: 14px; }

  .empieza { display: grid; grid-template-columns: 1.1fr 1fr; gap: 5vw; align-items: start; padding: 120px 6vw 110px; }
  .grande { font-size: min(15vw, 30svh); position: sticky; top: 110px; }
  .ficha-col { margin-top: 0; }

  .pie { padding: 30px 6vw 48px; }
}

/* ---------- sin movimiento (preferencia del sistema o sin GSAP): todo quieto y a la vista ---------- */
.estatico .hero { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; }
.estatico .hero-copy { position: relative; inset: auto; padding: 84px 16px 0; }
.estatico .hero-media { position: relative; inset: auto; order: 2; height: 78svh; margin: 22px 12px 0; clip-path: none; border-radius: 28px; overflow: hidden; }
.estatico .hero-flota { display: none; }
.estatico .entrega { height: auto; min-height: 0; overflow: visible; display: flex; flex-direction: column; padding-top: 64px; }
.estatico .ent-frases { position: relative; inset: auto; display: block; padding: 0 16px; }
.estatico .ent-frase { margin: 0 0 .55em; }
.estatico .ent-media { position: relative; inset: auto; order: 2; height: 78svh; margin: 8px 12px 0; border-radius: 28px; }
.estatico .telefono { height: auto; min-height: 100svh; }
@media (min-width: 1024px) {
  .estatico .hero { display: grid; grid-template-columns: 1fr calc(86svh * 9 / 16); gap: 4vw; padding: 0 6vw; min-height: 100svh; align-items: center; }
  .estatico .hero-copy { width: auto; padding: 0; }
  .estatico .hero-media { height: 86svh; width: auto; margin: 7svh 0 0; }
  .estatico .entrega { display: grid; grid-template-columns: 1fr calc(86svh * 9 / 16); gap: 5vw; align-items: center; min-height: 100svh; padding: 0 8vw 0 6vw; }
  .estatico .ent-frases { padding: 0; }
  .estatico .ent-frase { text-align: left; max-width: none; font-size: min(3.7vw, 7.4svh); }
  .estatico .ent-media { height: 86svh; width: auto; margin: 0; }
}
@media (prefers-reduced-motion: reduce) {
  .chat-si, .escribiendo i, .pb.escribe i { animation: none; }
  .barra { transition: none; }
}
/* sin movimiento, en un teléfono bajo, la ventana de la playa muestra las tres últimas burbujas para no tapar el teléfono de la foto */
@media (max-height: 760px) and (max-width: 1023px) { .estatico .pc-msgs > [data-paso="1"] { display: none; } }
@media (max-height: 700px) and (max-width: 1023px) { .estatico .pc-msgs > [data-paso="3"] { display: none; } }

/* ---------- botón flotante de WhatsApp: fijo abajo a la derecha en toda la página ---------- */
/* El verde es el de WhatsApp, para que se reconozca de una vez. Si algo importante pasa por debajo
   (el «sí» del teléfono, el botón de enviar, el índice de los servicios...), app.js lo sube lo justo (--wa-y). */
.wa-flota {
  position: fixed; z-index: 80;
  right: max(16px, calc(env(safe-area-inset-right) + 12px));
  bottom: max(16px, calc(env(safe-area-inset-bottom) + 12px));
  width: 56px; height: 56px; border-radius: 50%; display: grid; place-items: center;
  background: #25D366; color: #FFFFFF; text-decoration: none;
  box-shadow: 0 2px 6px rgba(17, 18, 20, .14), 0 10px 26px rgba(17, 18, 20, .22);
  transform: translateY(var(--wa-y, 0px)); transition: transform .35s cubic-bezier(.2, .7, .2, 1), box-shadow .2s ease;
  -webkit-tap-highlight-color: transparent;
}
.wa-flota svg { width: 30px; height: 30px; }
.wa-flota:hover { box-shadow: 0 2px 6px rgba(17, 18, 20, .16), 0 14px 32px rgba(17, 18, 20, .28); }
.wa-flota:active { transform: translateY(var(--wa-y, 0px)) scale(.94); }
.wa-flota:focus-visible { outline: 3px solid var(--azul); outline-offset: 3px; border-radius: 50%; }
@media (min-width: 1024px) {
  .wa-flota { width: 60px; height: 60px; right: max(28px, calc(env(safe-area-inset-right) + 16px)); bottom: max(28px, calc(env(safe-area-inset-bottom) + 16px)); }
  .wa-flota svg { width: 32px; height: 32px; }
}
/* mientras se escribe en la ficha, el botón se aparta (con el teclado abierto taparía el campo) */
.wa-flota.apartado { opacity: 0; pointer-events: none; transform: translateY(24px); }
@media (prefers-reduced-motion: reduce) { .wa-flota { transition: none; } }
