/* Portada CLAVE. Solo recursos propios (sin CDN). */
@font-face { font-family: "Sora"; src: url("../fuentes/Sora-Light.woff2") format("woff2"); font-weight: 300; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fuentes/Sora-Regular.woff2") format("woff2"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Sora"; src: url("../fuentes/Sora-Bold.woff2") format("woff2"); font-weight: 600 700; font-display: swap; }

/* Valores animables (transiciones suaves de variables). */
@property --abre { syntax: "<number>"; inherits: true; initial-value: 0.6; }
@property --giro { syntax: "<angle>"; inherits: true; initial-value: 0deg; }

:root {
  --fondo: #071519;          /* Noche profunda (de #0B1F26) */
  --noche: #0B1F26;
  --petroleo: #0F2A33;
  --turquesa: #0D9488;
  --brillo: #4ADE80;
  --niebla: #E8F0EF;
  --suave: #9DB3B5;
  --linea: rgba(232, 240, 239, 0.12);
  --blanco: #FFFFFF;
  --curva: cubic-bezier(0.22, 1, 0.36, 1);
  --margen: clamp(16px, 6.25vw, 90px);
  --ancho: 1260px;
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; background: var(--fondo); color: var(--blanco); font: 400 1.0625rem/1.55 "Sora", system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; }
a { color: inherit; }
h1, h2, h3, p { margin: 0; }
:focus-visible { outline: 2px solid var(--brillo); outline-offset: 3px; border-radius: 6px; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 16px; top: -60px; z-index: 50; background: var(--blanco); color: var(--fondo); padding: 10px 16px; border-radius: 999px; text-decoration: none; }
.saltar:focus { top: 12px; }

/* ---------------------------------------------------------------- botones */
.pildora { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 22px; border-radius: 999px;
  font-weight: 600; font-size: 0.95rem; text-decoration: none; white-space: nowrap; transition: background-color .25s var(--curva), color .25s var(--curva), transform .25s var(--curva), border-color .25s; }
.pildora:active { transform: scale(0.97); }
.pildora--clara { background: var(--blanco); color: #06161A; }
.pildora--clara:hover { background: var(--niebla); }
.pildora--contorno { border: 1.5px solid rgba(255, 255, 255, 0.9); color: var(--blanco); }
.pildora--contorno:hover { background: rgba(255, 255, 255, 0.1); }
.pildora--grande { min-height: 56px; padding: 0 28px; font-size: 1rem; }

/* ---------------------------------------------------------------- cabecera */
.cabecera { position: fixed; inset: 0 0 auto; z-index: 20; transition: background-color .35s var(--curva), backdrop-filter .35s; }
.cabecera.con-fondo { background: rgba(7, 21, 25, 0.78); backdrop-filter: blur(14px) saturate(140%); -webkit-backdrop-filter: blur(14px) saturate(140%); }
.cabecera__fila { width: min(var(--ancho), 100% - 2 * var(--margen)); margin: 0 auto; height: 72px; display: flex; align-items: center; gap: 36px; }
.cabecera__logo img { height: 30px; width: auto; }
.cabecera__menu { display: flex; gap: 30px; font-size: 0.95rem; }
.cabecera__menu a, .cabecera__secundario { text-decoration: none; color: rgba(255, 255, 255, 0.88); transition: color .2s; }
.cabecera__menu a:hover, .cabecera__secundario:hover { color: var(--blanco); }
.cabecera__acciones { margin-left: auto; display: flex; align-items: center; gap: 28px; font-size: 0.95rem; }

/* ---------------------------------------------------------------- portada */
.portada { position: relative; min-height: max(100svh, 640px); display: flex; align-items: flex-end; overflow: hidden; background: var(--noche); isolation: isolate; }
.escenas, .escena, .portada__velo { position: absolute; inset: 0; }
.escena { opacity: 0; transition: opacity .35s ease; overflow: hidden; }
.escena.activa { opacity: 1; transition: opacity .8s ease .3s; }
.escena { transform-origin: 70% 45%; }
.escena.activa { animation: acercar 5.5s var(--curva) both; }
@keyframes acercar { from { scale: 1.09; } to { scale: 1; } }

/* Luces desenfocadas: dan profundidad de cámara a cada escena. */
.bokeh { position: absolute; inset: -10%; filter: blur(46px); opacity: .9; animation: flotar 14s ease-in-out infinite alternate;
  background:
    radial-gradient(28% 32% at 72% 30%, rgba(13, 148, 136, .55), transparent 70%),
    radial-gradient(22% 26% at 88% 78%, rgba(74, 222, 128, .28), transparent 70%),
    radial-gradient(30% 30% at 40% 85%, rgba(15, 42, 51, .9), transparent 70%),
    radial-gradient(12% 14% at 60% 62%, rgba(255, 255, 255, .12), transparent 70%); }
.bokeh--frio { background: radial-gradient(30% 34% at 70% 40%, rgba(56, 120, 190, .4), transparent 70%), radial-gradient(24% 28% at 50% 80%, rgba(13, 148, 136, .45), transparent 70%), radial-gradient(10% 12% at 85% 20%, rgba(255, 255, 255, .14), transparent 70%); }
.bokeh--calido { background: radial-gradient(34% 36% at 70% 45%, rgba(214, 140, 72, .32), transparent 70%), radial-gradient(22% 26% at 85% 82%, rgba(13, 148, 136, .4), transparent 70%), radial-gradient(14% 16% at 58% 18%, rgba(255, 230, 200, .16), transparent 70%); }
.bokeh--ia { background: radial-gradient(30% 34% at 68% 42%, rgba(120, 100, 220, .32), transparent 70%), radial-gradient(26% 28% at 82% 78%, rgba(13, 148, 136, .45), transparent 70%), radial-gradient(12% 14% at 52% 20%, rgba(255, 255, 255, .12), transparent 70%); }
@keyframes flotar { to { transform: translate3d(-3%, 2%, 0) scale(1.06); } }

.portada__velo { z-index: 1; background:
  linear-gradient(90deg, rgba(7, 21, 25, .92) 0%, rgba(7, 21, 25, .7) 38%, rgba(7, 21, 25, .18) 70%, rgba(7, 21, 25, .1) 100%),
  linear-gradient(0deg, rgba(7, 21, 25, .85) 0%, transparent 38%); }
.portada__contenido { position: relative; z-index: 2; width: min(var(--ancho), 100% - 2 * var(--margen)); margin: 0 auto; padding: 140px 0 clamp(96px, 14vh, 150px); }
.portada__titulo { font-weight: 300; font-size: clamp(2.75rem, 5.4vw, 5.4rem); line-height: 1.04; letter-spacing: -0.045em; }
@media (min-width: 761px) { .portada__titulo > span:not(.oculto) { white-space: nowrap; } }
.portada__titulo > span { display: block; }
.palabra { white-space: nowrap; min-height: 1.04em; }
.palabra .l { display: inline-block; white-space: pre; transition: transform .55s var(--curva), opacity .45s ease, filter .45s ease; transition-delay: calc(var(--i) * 22ms); }
.palabra .l.entra { transform: translateY(0.42em); opacity: 0; filter: blur(8px); }
.palabra .l.sale { transform: translateY(-0.36em); opacity: 0; filter: blur(8px); transition-delay: calc(var(--i) * 14ms); }
.portada__bajada { margin-top: 28px; max-width: 30ch; font-size: clamp(1.05rem, 1.45vw, 1.3rem); line-height: 1.45; color: rgba(255, 255, 255, .9); }
.portada__botones { margin-top: 34px; display: flex; flex-wrap: wrap; gap: 14px; }

.pausa { position: absolute; z-index: 3; right: var(--margen); bottom: clamp(70px, 10vh, 110px); width: 44px; height: 44px; border-radius: 50%; border: 1px solid rgba(255, 255, 255, .35);
  background: rgba(7, 21, 25, .35); backdrop-filter: blur(8px); color: var(--blanco); cursor: pointer; display: grid; place-items: center; }
.pausa__icono { width: 12px; height: 14px; border-left: 4px solid currentColor; border-right: 4px solid currentColor; }
.pausa[aria-pressed="true"] .pausa__icono { border: 0; width: 0; height: 0; border-left: 12px solid currentColor; border-top: 7px solid transparent; border-bottom: 7px solid transparent; margin-left: 3px; }

/* Escena 1: teléfono con WhatsApp, de cerca y levemente girado */
.telefono { position: absolute; right: 7%; top: 50%; translate: 0 -50%; rotate: -7deg; }
.telefono--grande { width: 330px; height: 670px; border-radius: 54px; background: #0a0c0d; padding: 11px; box-shadow: 0 50px 120px rgba(0, 0, 0, .55), inset 0 0 0 2px #2a2f33; }
.telefono__pantalla { height: 100%; border-radius: 44px; overflow: hidden; background: #ECE5DD; color: #111; display: flex; flex-direction: column; font-size: .9rem; }
.wa-cabeza { display: flex; align-items: center; gap: 10px; padding: 46px 16px 12px; background: #075E54; color: #fff; }
.wa-cabeza small { display: block; font-size: .72rem; opacity: .8; }
.wa-avatar { width: 34px; height: 34px; border-radius: 50%; background: #D9A35B; display: grid; place-items: center; font-weight: 700; color: #fff; }
.wa-cuerpo { padding: 16px 12px; display: flex; flex-direction: column; gap: 9px; }
.wa { max-width: 82%; padding: 8px 11px; border-radius: 10px; line-height: 1.35; box-shadow: 0 1px 1px rgba(0, 0, 0, .12); opacity: 0; translate: 0 10px; }
.wa--cliente { align-self: flex-start; background: #fff; border-top-left-radius: 2px; }
.wa--bot { align-self: flex-end; background: #D9FDD3; border-top-right-radius: 2px; }
.activa .wa { animation: aparecer .5s var(--curva) forwards; }
.activa .wa:nth-child(2) { animation-delay: .6s; }
.activa .wa:nth-child(3) { animation-delay: 1.4s; }
.activa .wa:nth-child(4) { animation-delay: 2s; }
@keyframes aparecer { to { opacity: 1; translate: 0 0; } }

/* Escena 2: planilla en perspectiva que se ordena sola */
.planilla { position: absolute; right: -6%; top: 36%; width: min(660px, 46vw); translate: 0 -50%; transform: perspective(1400px) rotateX(34deg) rotateZ(-12deg);
  background: rgba(255, 255, 255, .96); color: #1b2a2e; border-radius: 14px; padding: 10px; box-shadow: 0 60px 120px rgba(0, 0, 0, .5); font-size: 1rem; }
.planilla__fila { display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 12px; padding: 14px 16px; border-bottom: 1px solid #e3ebea; }
.planilla__fila--cabeza { font-weight: 600; color: #4E6A72; background: #F1F7F6; border-radius: 8px; }
.estado { justify-self: start; padding: 2px 10px; border-radius: 999px; background: #DCFCE7; color: #166534; font-size: .85rem; font-weight: 600; }
.escena--planilla .planilla__fila:not(.planilla__fila--cabeza) { translate: 0 var(--o, 0); opacity: .35; }
.escena--planilla.activa .planilla__fila:not(.planilla__fila--cabeza) { animation: ordenar .9s var(--curva) forwards; }
.escena--planilla .planilla__fila:nth-child(2) { --o: 150px; } .escena--planilla .planilla__fila:nth-child(3) { --o: -40px; }
.escena--planilla .planilla__fila:nth-child(4) { --o: 90px; } .escena--planilla .planilla__fila:nth-child(5) { --o: -120px; }
.escena--planilla .planilla__fila:nth-child(6) { --o: 40px; } .escena--planilla .planilla__fila:nth-child(7) { --o: -60px; }
.escena--planilla.activa .planilla__fila:nth-child(3) { animation-delay: .12s; } .escena--planilla.activa .planilla__fila:nth-child(4) { animation-delay: .24s; }
.escena--planilla.activa .planilla__fila:nth-child(5) { animation-delay: .36s; } .escena--planilla.activa .planilla__fila:nth-child(6) { animation-delay: .48s; }
.escena--planilla.activa .planilla__fila:nth-child(7) { animation-delay: .6s; }
@keyframes ordenar { to { translate: 0 0; opacity: 1; } }

/* Escena 3: pantalla bloqueada con el informe de las 8:00 */
.bloqueo { position: absolute; right: 6%; top: 46%; translate: 0 -50%; width: min(440px, 34vw); text-align: center; }
.bloqueo__fecha { font-size: 1.2rem; color: rgba(255, 255, 255, .85); }
.bloqueo__hora { font-weight: 300; font-size: clamp(6rem, 12vw, 10.5rem); line-height: 1; letter-spacing: -0.05em; }
.noti { margin-top: 34px; display: grid; grid-template-columns: auto 1fr auto; gap: 12px; align-items: start; text-align: left; padding: 16px; border-radius: 22px;
  background: rgba(240, 245, 244, .82); color: #10201f; backdrop-filter: blur(20px); box-shadow: 0 30px 70px rgba(0, 0, 0, .35); opacity: 0; translate: 0 -18px; }
.noti b { display: block; font-size: .98rem; }
.noti span, .noti small { font-size: .88rem; color: #3d5355; }
.escena--aviso.activa .noti { animation: aparecer .7s var(--curva) .9s forwards; }

/* Escena 4: pregunta a la IA y respuesta */
.pregunta { position: absolute; right: 5%; top: 40%; translate: 0 -50%; width: min(500px, 35vw); display: grid; gap: 16px; }
.pregunta__barra { display: flex; align-items: center; gap: 14px; padding: 18px 18px 18px 24px; border-radius: 26px; background: rgba(255, 255, 255, .95); color: #10201f; font-size: 1.15rem; min-height: 92px; box-shadow: 0 40px 90px rgba(0, 0, 0, .45); }
.pregunta__texto { flex: 1; }
.pregunta__texto::after, [data-escribe].escribiendo::after { content: ""; display: inline-block; width: 2px; height: 1.05em; margin-left: 2px; vertical-align: -0.15em; background: currentColor; animation: cursor 1s steps(1) infinite; }
@keyframes cursor { 50% { opacity: 0; } }
.pregunta__enviar { width: 40px; height: 40px; flex: none; border-radius: 50%; background: #10201f; position: relative; }
.pregunta__enviar::before { content: ""; position: absolute; inset: 0; margin: auto; width: 10px; height: 10px; border-left: 2.5px solid #fff; border-top: 2.5px solid #fff; rotate: 45deg; translate: 0 2px; }
.pregunta__respuesta { display: flex; gap: 14px; align-items: center; padding: 18px 22px; border-radius: 20px; background: rgba(15, 42, 51, .88); border: 1px solid rgba(255, 255, 255, .12); backdrop-filter: blur(16px); opacity: 0; translate: 0 14px; transition: opacity .6s var(--curva), translate .6s var(--curva); }
.pregunta__respuesta b { display: block; font-size: 1.15rem; }
.pregunta__respuesta span { color: var(--suave); font-size: .95rem; }
.pregunta.respondida .pregunta__respuesta { opacity: 1; translate: 0 0; }

/* ---------------------------------------------------------------- hoja que sube sobre la portada */
.hoja { position: relative; z-index: 2; margin-top: -40px; background: var(--fondo); border-radius: 32px 32px 0 0; padding-top: clamp(64px, 9vw, 120px); }
.seccion { width: min(var(--ancho), 100% - 2 * var(--margen)); margin: 0 auto clamp(96px, 13vw, 170px); }
.titulo-1 { font-weight: 300; font-size: clamp(2.2rem, 4.6vw, 4rem); line-height: 1.08; letter-spacing: -0.04em; margin-bottom: clamp(36px, 5vw, 64px); }
.titulo-2 { font-weight: 300; font-size: clamp(2.1rem, 3.9vw, 3.5rem); line-height: 1.08; letter-spacing: -0.04em; }
.bajada { color: var(--suave); max-width: 46ch; }
.dos-columnas { display: grid; grid-template-columns: 1.3fr 1fr; gap: 40px; align-items: end; margin-bottom: clamp(36px, 5vw, 64px); }
.dos-columnas .titulo-1 { margin: 0; }

/* ---------------------------------------------------------------- caja del chat */
.caja-chat { position: relative; display: grid; grid-template-columns: 1fr 1fr; min-height: 560px; border-radius: 22px; overflow: hidden;
  border: 1px solid rgba(255, 255, 255, .07);
  background: radial-gradient(120% 120% at 0% 100%, #0E4A45 0%, #0F2A33 48%, #0B1F26 100%); }
.caja-chat__texto { display: flex; flex-direction: column; justify-content: space-between; gap: 48px; padding: clamp(28px, 3.4vw, 44px); }
.caja-chat__bajada { margin-top: 18px; max-width: 40ch; color: #B7C9CA; }
.caja-chat__bajada a, .tarjeta p a { color: inherit; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color .2s; }
.caja-chat__bajada a:hover, .tarjeta p a:hover { color: var(--blanco); }
.pila { list-style: none; margin: 0; padding: 0; display: flex; }
.pila li { width: 58px; height: 58px; border-radius: 50%; background: var(--blanco); display: grid; place-items: center; box-shadow: 0 0 0 3px #0F2A33; }
.pila li + li { margin-left: -12px; }
.caja-chat__escena { position: relative; min-height: 420px; }

.chat-escena { position: absolute; inset: 0; display: grid; place-items: center; }
.chat-escena::before { content: ""; position: absolute; width: 60%; height: 60%; border-radius: 50%; background: radial-gradient(closest-side, rgba(13, 148, 136, .55), transparent); filter: blur(30px); }
.chat-escena > * { position: absolute; transition: opacity .6s var(--curva), transform .8s var(--curva), translate .8s var(--curva); }
.burbuja-pregunta { width: min(300px, 80%); padding: 14px 16px; border-radius: 18px; background: var(--blanco); color: #10201f; display: flex; gap: 12px; align-items: flex-end; font-size: .98rem; line-height: 1.35; box-shadow: 0 20px 50px rgba(0, 0, 0, .35); }
.burbuja-pregunta span { flex: 1; min-height: 2.7em; }
.enviar { width: 26px; height: 26px; flex: none; border-radius: 50%; background: #10201f; position: relative; }
.enviar::before { content: ""; position: absolute; inset: 0; margin: auto; width: 7px; height: 7px; border-left: 2px solid #fff; border-top: 2px solid #fff; rotate: 45deg; translate: 0 1.5px; }
.tarjeta-bot { width: min(300px, 80%); padding: 16px; border-radius: 18px; background: #D9FDD3; color: #10201f; box-shadow: 0 20px 50px rgba(0, 0, 0, .3); opacity: 0; translate: 0 70px; }
.horas { display: flex; gap: 8px; margin-top: 12px; }
.horas span { flex: 1; text-align: center; padding: 8px 0; border-radius: 10px; background: rgba(255, 255, 255, .8); font-weight: 600; font-size: .9rem; transition: background-color .3s, color .3s, transform .3s var(--curva); }
.mini-tel { width: 190px; height: 380px; border-radius: 30px; padding: 7px; background: #0a0c0d; box-shadow: 0 30px 80px rgba(0, 0, 0, .55), inset 0 0 0 1.5px #2a2f33; opacity: 0; transform: scale(.7); }
.mini-tel__isla { position: absolute; top: 14px; left: 50%; translate: -50% 0; width: 54px; height: 15px; border-radius: 10px; background: #000; z-index: 1; }
.mini-tel__ok { height: 100%; border-radius: 24px; background: #F6FAF9; color: #10201f; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; text-align: center; padding: 16px; font-size: .8rem; }
.mini-tel__ok i { width: 48px; height: 48px; border-radius: 50%; background: #DCFCE7; position: relative; margin-bottom: 6px; }
.mini-tel__ok i::after { content: ""; position: absolute; left: 17px; top: 13px; width: 11px; height: 19px; border-right: 3px solid #16A34A; border-bottom: 3px solid #16A34A; rotate: 45deg; }
.mini-tel__ok b { font-size: .98rem; }
.mini-tel__ok span { color: #4E6A72; }
.aviso-dueno { display: flex; gap: 10px; align-items: center; padding: 10px 14px; border-radius: 16px; background: rgba(240, 245, 244, .92); color: #10201f; font-size: .82rem; box-shadow: 0 16px 40px rgba(0, 0, 0, .35); backdrop-filter: blur(10px); opacity: 0; translate: 90px -170px; }
.aviso-dueno b { display: block; }

/* Pasos de la animación del chat */
.chat-escena[data-paso="1"] .burbuja-pregunta, .chat-escena[data-paso="2"] .burbuja-pregunta { transform: translateY(-88px) scale(.94); }
.chat-escena[data-paso="1"] .tarjeta-bot, .chat-escena[data-paso="2"] .tarjeta-bot { opacity: 1; translate: 0 40px; }
.chat-escena[data-paso="2"] .horas .elegida { background: #075E54; color: #fff; transform: scale(1.06); }
.chat-escena[data-paso="3"] .burbuja-pregunta, .chat-escena[data-paso="4"] .burbuja-pregunta { opacity: 0; transform: translateY(-40px) scale(.6); }
.chat-escena[data-paso="3"] .tarjeta-bot, .chat-escena[data-paso="4"] .tarjeta-bot { opacity: 0; translate: 0 0; transform: scale(.6); }
.chat-escena[data-paso="3"] .mini-tel, .chat-escena[data-paso="4"] .mini-tel { opacity: 1; transform: scale(1); }
.chat-escena[data-paso="4"] .aviso-dueno { opacity: 1; translate: 90px -150px; }
.chat-escena[data-paso="5"] > * { opacity: 0; }

/* ---------------------------------------------------------------- tres tarjetas conectadas */
.tarjetas { display: flex; gap: 24px; }
.tarjeta { --abre: 0.6; flex: 1 1 0; min-width: 0; transition: flex-grow .7s var(--curva), --abre .7s var(--curva); }
.tarjeta.abierta { flex-grow: 2; --abre: 1; }
.tarjeta h3 { margin-top: 26px; font-weight: 400; font-size: 1.3rem; line-height: 1.3; letter-spacing: -0.01em; max-width: 24ch; }
.tarjeta p { margin-top: 10px; color: var(--suave); font-size: .95rem; max-width: 42ch; }
.tarjeta__visual { position: relative; height: 420px; border-radius: 18px; overflow: hidden; background: radial-gradient(90% 80% at 50% 50%, #0F2A33 0%, #0B1F26 70%); border: 1px solid rgba(255, 255, 255, .06); }

/* Tarjeta 1: el sistema */
.visual-sistema { display: grid; place-items: center; }
.app { width: min(300px, 82%); padding: 16px; border-radius: 16px; background: rgba(255, 255, 255, .96); color: #10201f; box-shadow: 0 30px 70px rgba(0, 0, 0, .4); position: relative; }
.app__barra { display: flex; align-items: center; gap: 5px; font-size: .78rem; color: #4E6A72; }
.app__barra i { width: 8px; height: 8px; border-radius: 50%; background: #D3E0DE; }
.app__barra span { margin-left: 8px; font-weight: 600; }
.app__datos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 14px; }
.app__datos div { padding: 10px 12px; border-radius: 10px; background: #F1F7F6; }
.app__datos small { display: block; font-size: .72rem; color: #4E6A72; }
.app__datos b { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.02em; }
.app__grafico { display: flex; align-items: flex-end; gap: 6px; height: 90px; margin-top: 14px; }
.app__grafico i { flex: 1; height: 100%; border-radius: 4px 4px 2px 2px; background: linear-gradient(#0D9488, #0B7A70); transform-origin: bottom;
  transform: scaleY(calc(var(--h) * (0.2 + 0.8 * (var(--abre) - 0.6) / 0.4))); }
.app__grafico i:nth-child(odd) { background: linear-gradient(#4ADE80, #22C55E); }
.app__toast { position: absolute; left: 50%; bottom: -16px; translate: -50% 0; display: flex; gap: 8px; align-items: center; white-space: nowrap; padding: 9px 14px; border-radius: 999px; background: #0B1F26; color: #fff; font-size: .8rem;
  opacity: calc((var(--abre) - 0.6) / 0.4); scale: calc(0.8 + 0.2 * (var(--abre) - 0.6) / 0.4); }
.check { width: 16px; height: 16px; flex: none; border-radius: 50%; background: var(--brillo); position: relative; }
.check::after { content: ""; position: absolute; left: 5.5px; top: 3px; width: 4px; height: 8px; border-right: 2px solid #06161A; border-bottom: 2px solid #06161A; rotate: 45deg; }

/* Anillos compartidos por las tarjetas 2 y 3 */
.anillos { position: absolute; inset: 0; display: grid; place-items: center; }
.anillos i { grid-area: 1 / 1; border-radius: 50%; border: 1px solid rgba(74, 222, 128, .14); width: calc(var(--t) * 1px); height: calc(var(--t) * 1px); }
.anillos i:nth-child(1) { --t: 150; background: radial-gradient(closest-side, rgba(13, 148, 136, .25), transparent); }
.anillos i:nth-child(2) { --t: 280; }
.anillos i:nth-child(3) { --t: 420; border-color: transparent; border-top-color: rgba(74, 222, 128, .55); border-right-color: rgba(74, 222, 128, .2); animation: barrer 9s linear infinite; }
.anillos i:nth-child(4) { --t: 580; }
@keyframes barrer { to { rotate: 360deg; } }
.anillos--costado { display: block; }
.anillos--costado i { position: absolute; left: 12%; top: 96%; translate: -50% -50%; }
.anillos--costado i:nth-child(1) { --t: 380; background: none; }
.anillos--costado i:nth-child(2) { --t: 620; }
.anillos--costado i:nth-child(3) { --t: 860; }

/* Tarjeta 2: herramientas en órbita alrededor de CLAVE */
.orbita { position: absolute; inset: 0; animation: girar 90s linear infinite; }
@keyframes girar { to { --giro: 360deg; } }
.chip { --R: 175px; position: absolute; left: 50%; top: 50%; display: inline-flex; align-items: center; gap: 7px; padding: 8px 14px; border-radius: 999px; white-space: nowrap;
  background: rgba(11, 31, 38, .85); border: 1px solid rgba(255, 255, 255, .16); font-size: .88rem; color: rgba(255, 255, 255, calc(0.35 + 0.65 * (var(--abre) - 0.6) / 0.4));
  transform: translate(-50%, -50%) rotate(calc(var(--a) + var(--giro))) translateX(calc(var(--R) * var(--r) * var(--abre))) rotate(calc(-1 * (var(--a) + var(--giro)))); }
.chip img { opacity: calc(0.4 + 0.6 * (var(--abre) - 0.6) / 0.4); }
.nucleo { position: absolute; inset: 0; display: grid; place-items: center; }
.nucleo > * { grid-area: 1 / 1; transition: opacity .6s var(--curva), scale .7s var(--curva); }
.nucleo__tarjeta { display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; padding: 16px 18px; border-radius: 14px; background: #DCFCE7; color: #10201f; box-shadow: 0 24px 60px rgba(0, 0, 0, .4); }
.nucleo__tarjeta .check { grid-row: span 2; width: 26px; height: 26px; }
.nucleo__tarjeta .check::after { left: 9px; top: 5px; width: 6px; height: 12px; }
.nucleo__tarjeta small { color: #3d5355; font-size: .78rem; }
.nucleo__logo { width: 96px; height: 96px; border-radius: 24px; filter: drop-shadow(0 0 30px rgba(74, 222, 128, .35)); opacity: 0; scale: .6; }
.tarjeta.abierta .nucleo__tarjeta { opacity: 0; scale: .85; }
.tarjeta.abierta .nucleo__logo { opacity: 1; scale: 1; }

/* Tarjeta 3: IA, baldosas que se separan al abrir */
.baldosa { position: absolute; width: 62px; height: 62px; border-radius: 16px; display: grid; place-items: center; background: rgba(11, 31, 38, .9); border: 1px solid rgba(255, 255, 255, .14);
  box-shadow: 0 14px 30px rgba(0, 0, 0, .35); left: calc((0.5 + (var(--x) - 0.5) * var(--abre)) * 100%); top: calc((0.5 + (var(--y) - 0.5) * var(--abre)) * 100%); translate: -50% -50%;
  animation: flotar-baldosa 7s ease-in-out infinite; animation-delay: var(--d); }
.baldosa img { filter: saturate(calc(0.3 + 0.7 * (var(--abre) - 0.6) / 0.4)); }
@keyframes flotar-baldosa { 50% { transform: translateY(-10px); } }

/* ---------------------------------------------------------------- precios y redes */
.precios { list-style: none; margin: 0; padding: 0; border-bottom: 1px solid var(--linea); }
.precios li { border-top: 1px solid var(--linea); }
.precios a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr) 13rem 20px; gap: 24px; align-items: baseline; padding: 26px 12px; margin: 0 -12px; border-radius: 14px; text-decoration: none; transition: background-color .3s var(--curva); }
.precios a::after { content: ""; width: 9px; height: 9px; border-top: 2px solid var(--suave); border-right: 2px solid var(--suave); rotate: 45deg; align-self: center; justify-self: end; transition: translate .3s var(--curva), border-color .3s; }
.precios a:hover { background: rgba(255, 255, 255, .05); }
.precios a:hover::after { translate: 4px 0; border-color: var(--brillo); }
.precios span:first-child { font-size: 1.3rem; letter-spacing: -0.01em; }
.precios span:nth-child(2) { color: var(--suave); }
.precios b { font-weight: 400; font-size: 1.15rem; text-align: right; }
.precios small { color: var(--suave); font-size: .85rem; }

.cierre { width: min(var(--ancho), 100% - 2 * var(--margen)); margin: 0 auto; padding: clamp(56px, 8vw, 110px) clamp(24px, 5vw, 72px); border-radius: 26px;
  background: radial-gradient(110% 140% at 100% 0%, #0E4A45 0%, #0F2A33 50%, #0B1F26 100%); border: 1px solid rgba(255, 255, 255, .07); }
.titulo-cierre { font-weight: 300; font-size: clamp(2.3rem, 5.4vw, 4.6rem); line-height: 1.05; letter-spacing: -0.045em; max-width: 14ch; }
.cierre p { margin-top: 18px; color: #B7C9CA; max-width: 44ch; }
/* Redes: últimas publicaciones (imágenes propias, sin scripts de terceros) */
.redes { list-style: none; margin: 0 0 32px; padding: 0; display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.redes a { display: block; border-radius: 18px; overflow: hidden; border: 1px solid var(--linea); }
.redes img { width: 100%; height: auto; transition: scale .5s var(--curva); }
.redes a:hover img { scale: 1.04; }

/* Pie: el logo mantiene su proporción (480×212) con alto automático. */
.pie { width: min(var(--ancho), 100% - 2 * var(--margen)); margin: 0 auto; padding: 64px 0 48px; display: grid; grid-template-columns: 1.4fr repeat(3, 1fr); gap: 32px; color: var(--suave); font-size: .88rem; }
.pie__marca img { width: 120px; height: auto; margin-bottom: 14px; }
.pie__marca p { max-width: 30ch; }
.pie nav { display: grid; align-content: start; gap: 10px; }
.pie nav a { text-decoration: none; transition: color .2s; }
.pie nav a:hover { color: var(--blanco); }

/* ---------------------------------------------------------------- celular y tablet */
@media (max-width: 1080px) {
  .cabecera__menu { display: none; }
  .tarjeta__visual { height: 360px; }
  .chip { --R: 140px; }
}
@media (max-width: 899px) {
  .tarjetas { flex-direction: column; gap: 48px; }
  .tarjeta, .tarjeta.abierta { flex: none; --abre: 1; }
  .caja-chat { grid-template-columns: 1fr; }
  .caja-chat__escena { min-height: 460px; background: rgba(0, 0, 0, .22); }
  .dos-columnas { grid-template-columns: 1fr; gap: 16px; }
  .pie { grid-template-columns: repeat(3, 1fr); }
  .pie__marca { grid-column: 1 / -1; }
}
@media (max-width: 760px) {
  .cabecera__fila { height: 64px; }
  .cabecera__secundario { display: none; }
  .cabecera__logo img { height: 26px; }
  .portada { align-items: flex-end; }
  .portada__velo { background: linear-gradient(0deg, rgba(7, 21, 25, .98) 0%, rgba(7, 21, 25, .9) 52%, rgba(7, 21, 25, .35) 74%, rgba(7, 21, 25, .5) 100%); }
  .portada__contenido { padding-bottom: 80px; }
  .portada__titulo { font-size: clamp(2.6rem, 12vw, 3.6rem); }
  .portada__botones { flex-direction: column; align-items: stretch; }
  .pausa { top: 76px; bottom: auto; right: 16px; width: 38px; height: 38px; }
  /* Escenas: la composición sube y se achica, el texto queda abajo legible. */
  .telefono { right: 50%; top: 9%; translate: 50% 0; scale: .5; transform-origin: top center; rotate: -5deg; }
  .planilla { right: -44%; top: 13%; translate: 0 0; width: 640px; scale: .58; transform-origin: top right; }
  .bloqueo { right: 50%; top: 8%; translate: 50% 0; width: 86%; }
  .bloqueo__hora { font-size: 4.8rem; }
  .noti { margin-top: 12px; padding: 12px; }
  .pregunta { right: 50%; top: 20%; translate: 50% 0; width: calc(100% - 32px); }
  .pregunta__barra { font-size: 1rem; min-height: 76px; }
  .hoja { border-radius: 24px 24px 0 0; margin-top: -24px; }
  .caja-chat { min-height: 0; }
  .tarjeta__visual { height: 340px; }
  .app__grafico { height: 64px; }
  .aviso-dueno { translate: 30px -150px; }
  .chat-escena[data-paso="4"] .aviso-dueno { translate: 30px -150px; }
  .chip { --R: 118px; font-size: .78rem; padding: 6px 11px; }
  .anillos i:nth-child(2) { --t: 230; } .anillos i:nth-child(3) { --t: 340; } .anillos i:nth-child(4) { --t: 460; }
  .precios a { grid-template-columns: 1fr 20px; gap: 4px 12px; padding: 20px 12px; }
  .precios a > * { grid-column: 1; }
  .precios a::after { grid-column: 2; grid-row: 1 / span 3; }
  .redes { grid-template-columns: 1fr 1fr; gap: 12px; }
  .precios b { text-align: left; margin-top: 6px; }
  .pie { grid-template-columns: 1fr 1fr; }
  .pie nav[aria-label=Contacto] { grid-column: 1 / -1; }
}

/* ---------------------------------------------------------------- pausa y movimiento reducido */
.pausado *, .pausado *::before, .pausado *::after { animation-play-state: paused !important; }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .pausa { display: none; }
}

/* Portada B: flujo continuo en bucle (como un GIF). Sin cortes, sin botón de play. */
.portada--flujo { --linea: 66%; background: #071A1E; }

/* Aurora verde difuminada: manchas grandes que se mueven lento, cada una con su propio ciclo. */
.aurora { position: absolute; inset: -20%; filter: blur(70px); opacity: .95; }
.aurora i { position: absolute; border-radius: 50%; mix-blend-mode: screen; animation: deriva var(--t) ease-in-out infinite alternate; }
.aurora i:nth-child(1) { --t: 19s; width: 46%; height: 52%; left: 48%; top: 18%; background: radial-gradient(closest-side, rgba(13, 148, 136, .75), transparent); }
.aurora i:nth-child(2) { --t: 27s; width: 38%; height: 44%; left: 62%; top: 52%; background: radial-gradient(closest-side, rgba(34, 197, 94, .38), transparent); animation-delay: -9s; }
.aurora i:nth-child(3) { --t: 23s; width: 52%; height: 50%; left: 18%; top: 48%; background: radial-gradient(closest-side, rgba(15, 74, 69, .9), transparent); animation-delay: -4s; }
.aurora i:nth-child(4) { --t: 31s; width: 30%; height: 34%; left: 72%; top: 6%; background: radial-gradient(closest-side, rgba(74, 222, 128, .22), transparent); animation-delay: -15s; }
@keyframes deriva {
  0% { transform: translate3d(0, 0, 0) scale(1); }
  50% { transform: translate3d(-6%, 5%, 0) scale(1.12); }
  100% { transform: translate3d(5%, -4%, 0) scale(.94); }
}

/* Filas de trabajo en profundidad */
.flujo { position: absolute; inset: 0; }
.fila { position: absolute; left: 0; right: 0; top: calc(var(--y) * 100%); height: 84px; translate: 0 -50%;
  scale: var(--escala); opacity: var(--opacidad); filter: blur(var(--desenfoque)); transform-origin: 66% 50%; }
.capa { position: absolute; inset: 0; overflow: hidden; }
/* Antes de la luz se ve lo pendiente; después, lo resuelto. El cruce es un fundido corto. */
.portada--flujo { --nace: 47%; }
.capa--pendiente { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--nace) - 14%), #000 var(--nace), #000 calc(var(--linea) - 1.5%), transparent calc(var(--linea) + 1.5%));
  mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--nace) - 14%), #000 var(--nace), #000 calc(var(--linea) - 1.5%), transparent calc(var(--linea) + 1.5%)); }
.capa--listo { -webkit-mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--linea) - 1.5%), #000 calc(var(--linea) + 1.5%));
  mask-image: linear-gradient(90deg, transparent 0, transparent calc(var(--linea) - 1.5%), #000 calc(var(--linea) + 1.5%)); }
.pista { display: flex; gap: 56px; width: max-content; height: 100%; align-items: center; padding-right: 56px; will-change: transform;
  animation: avanzar var(--segundos) linear infinite; }
@keyframes avanzar { from { transform: translateX(-50%); } to { transform: translateX(0); } }

.item { flex: none; width: 268px; height: 68px; display: flex; align-items: center; gap: 12px; padding: 0 16px; border-radius: 16px;
  background: rgba(9, 30, 36, .72); border: 1px solid rgba(255, 255, 255, .12); color: var(--blanco); box-shadow: 0 18px 40px rgba(0, 0, 0, .3);
  backdrop-filter: blur(8px); -webkit-backdrop-filter: blur(8px); }
.item__ico { flex: none; width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: rgba(255, 255, 255, .94); }
.item__texto { min-width: 0; display: grid; line-height: 1.25; }
.item__texto b { font-weight: 600; font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item__texto small { font-size: .76rem; color: #A9C1C2; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.item--listo { background: rgba(233, 251, 240, .96); border-color: rgba(74, 222, 128, .6); color: #0B1F26; box-shadow: 0 18px 44px rgba(34, 197, 94, .22); }
.item--listo small { color: #3E6A5A; }
.item--listo .item__ico.check { width: 36px; height: 36px; border-radius: 50%; background: var(--brillo); }
.item--listo .item__ico.check::after { left: 13px; top: 8px; width: 8px; height: 15px; border-right-width: 3px; border-bottom-width: 3px; }

/* Franja de luz: donde el trabajo se resuelve. Late suave, nunca se detiene. */
.luz { position: absolute; top: 0; bottom: 0; left: var(--linea); width: 0; pointer-events: none; }
.luz::before { content: ""; position: absolute; top: 4%; bottom: 4%; left: -90px; width: 180px;
  background: radial-gradient(50% 50% at 50% 50%, rgba(74, 222, 128, .28), transparent 70%); filter: blur(18px); animation: latir 4.5s ease-in-out infinite; }
.luz i { position: absolute; top: 8%; bottom: 8%; left: -1px; width: 2px;
  background: linear-gradient(transparent, rgba(190, 255, 215, .85) 30%, rgba(190, 255, 215, .85) 70%, transparent); box-shadow: 0 0 18px 4px rgba(74, 222, 128, .45); }
@keyframes latir { 50% { opacity: .55; transform: scaleX(.8); } }

/* El velo deja ver el flujo a la derecha y protege el texto a la izquierda. */
.portada--flujo .portada__velo { background:
  linear-gradient(90deg, rgba(7, 26, 30, .94) 0%, rgba(7, 26, 30, .78) 32%, rgba(7, 26, 30, .2) 58%, transparent 75%),
  linear-gradient(0deg, rgba(7, 21, 25, .9) 0%, transparent 30%); }

@media (max-width: 760px) {
  .portada--flujo { --linea: 60%; --nace: 16%; }
  /* En el celular el flujo ocupa la mitad de arriba y el texto queda abajo, sobre fondo oscuro. */
  .flujo { inset: 0 0 46% 0; }
  .luz { bottom: 46%; }
  .fila { height: 70px; }
  .item { width: 214px; height: 58px; padding: 0 12px; gap: 10px; border-radius: 14px; }
  .item__ico, .item--listo .item__ico.check { width: 30px; height: 30px; }
  .item--listo .item__ico.check::after { left: 10.5px; top: 6px; width: 7px; height: 13px; }
  .pista { gap: 40px; padding-right: 40px; }
  .portada--flujo .portada__velo { background: linear-gradient(0deg, rgba(7, 21, 25, .98) 0%, rgba(7, 21, 25, .92) 46%, rgba(7, 21, 25, .1) 64%, rgba(7, 21, 25, .35) 100%); }
}

/* Movimiento reducido: el flujo queda quieto mostrando antes y después. */
@media (prefers-reduced-motion: reduce) {
  .pista { animation: none !important; transform: translateX(-25%); }
}

/* ---------------------------------------------------------------- menú del celular y tablet */
.menu__abrir { display: none; min-height: 40px; padding: 0 18px; background: transparent; font: inherit; font-weight: 600; font-size: .95rem; cursor: pointer; }
.menu__icono { position: relative; width: 16px; height: 10px; }
.menu__icono::before, .menu__icono::after { content: ""; position: absolute; left: 0; right: 0; height: 1.5px; border-radius: 2px; background: currentColor; transition: translate .35s var(--curva), rotate .35s var(--curva); }
.menu__icono::before { top: 0; }
.menu__icono::after { bottom: 0; }
.menu-abierto .menu__icono::before { translate: 0 4.25px; rotate: 45deg; }
.menu-abierto .menu__icono::after { translate: 0 -4.25px; rotate: -45deg; }

/* Panel a pantalla completa bajo la cabecera, con el mismo verde difuminado de la portada. */
.menu-movil { position: fixed; inset: 0; z-index: 19; display: flex; flex-direction: column; gap: 32px; padding: 96px var(--margen) 32px; overflow-y: auto; overscroll-behavior: contain;
  background: radial-gradient(90% 55% at 100% 0%, rgba(13, 148, 136, .3), transparent 70%), radial-gradient(70% 40% at 0% 100%, rgba(34, 197, 94, .12), transparent 70%), #071519;
  opacity: 0; visibility: hidden; transition: opacity .35s var(--curva), visibility 0s .35s; }
.menu-abierto .menu-movil { opacity: 1; visibility: visible; transition: opacity .35s var(--curva); }
.menu-abierto, .menu-abierto body { overflow: hidden; }
.menu-abierto .cabecera { background: transparent; backdrop-filter: none; -webkit-backdrop-filter: none; }
.menu-movil__grupo { display: grid; justify-items: start; }
.menu-movil__grupo p { color: var(--suave); font-size: .85rem; margin-bottom: 10px; }
.menu-movil__grupo a { padding: 3px 0; text-decoration: none; font-weight: 300; font-size: clamp(1.6rem, 6.6vw, 2.4rem); line-height: 1.2; letter-spacing: -0.035em;
  opacity: 0; translate: 0 14px; transition: opacity .5s var(--curva), translate .5s var(--curva), color .2s; transition-delay: calc(var(--i, 0) * 35ms); }
.menu-movil__grupo--chico { gap: 4px; padding-top: 24px; border-top: 1px solid var(--linea); }
.menu-movil__grupo--chico a { font-size: 1.15rem; font-weight: 400; letter-spacing: 0; color: rgba(255, 255, 255, .88); }
.menu-abierto .menu-movil__grupo a { opacity: 1; translate: 0 0; }
.menu-movil__grupo a:hover { color: var(--brillo); }
.menu-movil__acciones { margin-top: auto; display: grid; gap: 12px; }
@media (max-width: 1080px) {
  .menu__abrir { display: inline-flex; }
  .cabecera__hablemos { display: none; }
}
@media (min-width: 1081px) { .menu-movil { display: none; } }
