/*
 * florpos.com. Colores de la marca (azul marino y rosa), tipografía Plus Jakarta Sans.
 * Sin fotos: cada función se muestra con una maqueta animada hecha en HTML/CSS basada en las pantallas de FlorPOS.
 */
@font-face { font-family: 'Jakarta'; src: url('/fuentes/jakarta.woff2') format('woff2'); font-weight: 400 800; font-display: swap; }

:root {
  --marino: #142a59;
  --marino-oscuro: #0d1d40;
  --marino-claro: #213f80;
  --rosa: #cc275b;
  --rosa-oscuro: #b81f50;
  --rosa-suave: #ffd9e5;
  --rosa-texto: #ff8fb1;
  --crema: #f6f3ee;
  --blanco: #fff;
  --tinta: #142a59;
  --tinta-2: #56617d;
  --linea: #e4dfd6;
  --azul-f: #dfe8ff; --azul-t: #2b55c7;
  --ambar-f: #fff0c7; --ambar-t: #946000;
  --verde-f: #d6f3e1; --verde-t: #1c7f45;
  --radio: 20px;
  --radio-ch: 12px;
  --sombra: 0 24px 60px -24px rgb(8 20 50 / .45), 0 2px 6px rgb(8 20 50 / .08);
  --suave: cubic-bezier(.16, 1, .3, 1);
  --dur: 7s;
  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 400 1.0625rem/1.6 'Jakarta', system-ui, sans-serif; -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { display: block; max-width: 100%; height: auto; }
h1, h2, h3 { font-weight: 800; line-height: 1.1; letter-spacing: -.02em; margin: 0; text-wrap: balance; }
p { margin: 0; text-wrap: pretty; }
a { color: var(--rosa-oscuro); text-underline-offset: .2em; }
figure { margin: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
:focus-visible { outline: 3px solid var(--rosa); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--rosa); color: #fff; }
.ico { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.saltar { position: absolute; left: 12px; top: -60px; background: var(--rosa); color: #fff; padding: 10px 14px; border-radius: 8px; z-index: 30; }
.saltar:focus { top: 12px; }
.envoltura { width: 100%; max-width: 74rem; margin: 0 auto; padding: 0 1.25rem; }
.acento { color: var(--rosa); }

/* Botones */
.boton { display: inline-flex; align-items: center; justify-content: center; gap: .5rem; min-height: 3.25rem; padding: 0 1.6rem; border-radius: 999px; border: 2px solid transparent; font: 700 1.0625rem/1 'Jakarta', sans-serif; text-decoration: none; cursor: pointer; transition: transform .2s var(--suave), background-color .2s, border-color .2s; }
.boton:hover { transform: translateY(-2px); }
.boton:active { transform: none; }
.boton .ico { transition: transform .2s var(--suave); }
.boton:hover .ico { transform: translateX(3px); }
.boton-rosa { background: var(--rosa); color: #fff; box-shadow: 0 8px 20px -10px rgb(8 20 50 / .5); }
.boton-rosa:hover { background: var(--rosa-oscuro); }
.boton-fantasma { color: #fff; border-color: rgb(255 255 255 / .35); }
.boton-fantasma:hover { border-color: #fff; background: rgb(255 255 255 / .08); }
.boton-claro { background: var(--blanco); color: var(--marino); }
.boton-claro:hover { background: var(--rosa-suave); }
.boton-chico { min-height: 2.6rem; padding: 0 1.1rem; font-size: .9375rem; }
.boton-ancho { width: 100%; }
button.boton:disabled { opacity: .6; cursor: wait; transform: none; }

/* Barra */
.barra { position: sticky; top: 0; z-index: 20; background: rgb(13 29 64 / .92); backdrop-filter: blur(10px); color: #fff; }
.barra-fila { display: flex; align-items: center; gap: 2rem; min-height: 4.25rem; }
.marca { display: inline-flex; align-items: center; gap: .6rem; color: inherit; text-decoration: none; font-weight: 800; font-size: 1.3rem; letter-spacing: -.02em; }
.marca img { border-radius: 9px; background: var(--crema); }
.barra nav { display: flex; gap: 1.75rem; margin-left: auto; }
.barra nav a { color: #cdd6ec; text-decoration: none; font-weight: 600; }
.barra nav a:hover { color: #fff; }

/* Hero */
.hero { background: radial-gradient(60rem 40rem at 85% 10%, #22407f 0%, transparent 60%), var(--marino-oscuro); color: #fff; padding: 4.5rem 0 3rem; overflow: hidden; }
.hero-rejilla { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.05fr); gap: 3rem; align-items: center; }
.hero h1 { font-size: clamp(2.5rem, 1.6rem + 3.2vw, 4.1rem); }
.hero h1 .acento { display: block; color: var(--rosa-texto); }
.hero-entrada { margin-top: 1.5rem; font-size: 1.1875rem; color: #d7deef; max-width: 36rem; }
.hero-acciones { display: flex; flex-wrap: wrap; gap: .875rem; margin-top: 2rem; }
.hero-nota { margin-top: 1rem; font-size: .9375rem; color: #a9b6d6; }
.hechos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1rem; margin-top: 3.5rem; }
.hechos li { display: flex; gap: .75rem; align-items: center; padding: 1rem 1.25rem; border-radius: var(--radio-ch); background: rgb(255 255 255 / .06); color: #d7deef; font-size: .9375rem; }
.hechos .ico { color: var(--rosa-texto); width: 1.5em; height: 1.5em; }
.hechos b { color: #fff; }

.hero-escena { position: relative; min-height: 520px; }
.hero-ventana { width: 88%; margin-left: auto; }

/* Ventanas y maquetas (data-ui) */
.ventana { background: var(--blanco); color: var(--tinta); border-radius: 16px; box-shadow: var(--sombra); overflow: hidden; font-size: .875rem; }
.ventana-barra { display: flex; align-items: center; gap: 6px; padding: 10px 14px; background: #eef0f5; }
.ventana-barra span { width: 10px; height: 10px; border-radius: 50%; background: #cfd4df; }
.ventana-barra span:first-child { background: #ff6b6b; } .ventana-barra span:nth-child(2) { background: #ffc24b; } .ventana-barra span:nth-child(3) { background: #3fcf74; }
.ventana-barra b { margin-left: 10px; font-weight: 700; font-size: .8125rem; color: var(--tinta-2); }
.ventana-cuerpo { padding: 18px; }
.mini-titulo { font-weight: 700; font-size: .8125rem; color: var(--tinta-2); margin: 14px 0 8px; }
.kpis { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.kpis > div { background: var(--crema); border-radius: var(--radio-ch); padding: 10px 12px; display: grid; }
.kpis small { color: var(--tinta-2); font-size: .75rem; font-weight: 600; }
.kpis b { font-size: 1.375rem; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.kpis .sube { font-style: normal; color: var(--verde-t); font-weight: 700; font-size: .75rem; }
.entregas li { display: grid; grid-template-columns: 3rem 1fr auto; gap: 10px; align-items: center; padding: 9px 0; }
.entregas li + li { border-top: 1px solid #eef0f5; }
.hora { font-weight: 800; font-variant-numeric: tabular-nums; }
.quien { font-weight: 700; display: grid; line-height: 1.3; }
.quien small { font-weight: 500; color: var(--tinta-2); font-size: .75rem; }
.estado { display: inline-grid; padding: 4px 10px; border-radius: 999px; font-size: .75rem; font-weight: 700; white-space: nowrap; }
.estado.listo { background: var(--verde-f); color: var(--verde-t); }
.estado.armado { background: var(--ambar-f); color: var(--ambar-t); }
.estado.ciclo i { grid-area: 1 / 1; font-style: normal; text-align: center; }
.estado.ciclo { background: var(--azul-f); color: var(--azul-t); }
.estado.ciclo i:nth-child(1), .estado.ciclo i:nth-child(2) { opacity: 0; }

.impresora { position: absolute; left: 0; bottom: 0; width: 150px; }
.papel { position: relative; z-index: 1; width: 118px; margin: 0 auto -6px; background: #fff; color: #111; border-radius: 4px 4px 0 0; padding: 12px 12px 18px; font-size: .75rem; box-shadow: 0 6px 16px rgb(0 0 0 / .25); display: grid; gap: 6px; }
.papel b { font-size: .75rem; }
.linea { height: 5px; border-radius: 3px; background: #e3e5ea; }
.l1 { width: 90%; } .l2 { width: 70%; } .l3 { width: 80%; }
.mini-dedicatoria { border: 1.5px dashed #333; border-radius: 4px; padding: 3px 5px; font-style: italic; font-size: .75rem; }
.impresora-cuerpo { position: relative; z-index: 2; height: 70px; border-radius: 16px; background: linear-gradient(#2a2f3c, #171a22); box-shadow: var(--sombra); }
.impresora-cuerpo::before { content: ''; position: absolute; left: 14px; right: 14px; top: 0; height: 8px; border-radius: 0 0 6px 6px; background: #0a0c10; }
.led { position: absolute; right: 18px; bottom: 16px; width: 8px; height: 8px; border-radius: 50%; background: #3fcf74; }

.telefono { position: absolute; right: -10px; bottom: 0; width: 160px; height: 250px; border-radius: 30px; background: #0a0f1d; padding: 8px; box-shadow: var(--sombra); }
.tel-pantalla { height: 100%; border-radius: 23px; background: #ece5dd; padding: 30px 10px 10px; display: flex; flex-direction: column; gap: 8px; font-size: .75rem; position: relative; overflow: hidden; }
.tel-barra { position: absolute; top: 0; left: 0; right: 0; height: 24px; background: #075e54; color: #fff; font-size: .75rem; font-weight: 700; padding: 4px 14px; }
.burbuja { background: #fff; color: #1b1b1b; padding: 8px 10px; border-radius: 10px 10px 10px 2px; max-width: 92%; line-height: 1.35; box-shadow: 0 1px 1px rgb(0 0 0 / .1); }
.burbuja.propia { align-self: flex-end; background: #d9fdd3; border-radius: 10px 10px 2px 10px; }

/* Secciones */
.seccion { padding: 6rem 0; }
.seccion-crema { background: var(--crema); }
.titulo { font-size: clamp(2rem, 1.4rem + 2.2vw, 3rem); }
.titulo .acento { display: block; }
.entrada { margin-top: 1rem; font-size: 1.1875rem; color: var(--tinta-2); max-width: 40rem; }
.centrado { text-align: center; margin-inline: auto; }
.dos-columnas { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 4rem; align-items: center; }

/* Nota viva */
.editor-nota { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-top: 2rem; }
.editor-nota .ancho { grid-column: 1 / -1; }
label { display: grid; gap: 6px; font-weight: 700; font-size: .9375rem; }
input, select, textarea { font: 500 1rem/1.4 'Jakarta', sans-serif; color: var(--tinta); background: var(--blanco); border: 1.5px solid #d3cdc2; border-radius: var(--radio-ch); padding: 12px 14px; width: 100%; min-height: 50px; transition: border-color .2s; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--rosa); box-shadow: 0 0 0 4px rgb(220 50 102 / .15); }

.nota-escenario { position: relative; padding-top: 18px; max-width: 460px; margin-inline: auto; width: 100%; }
.ranura { position: absolute; top: 0; left: -14px; right: -14px; height: 26px; border-radius: 14px; background: linear-gradient(#2a2f3c, #171a22); z-index: 2; box-shadow: var(--sombra); }
.ranura::after { content: ''; position: absolute; left: 16px; right: 16px; bottom: 6px; height: 4px; border-radius: 2px; background: #05070a; }
.nota { position: relative; z-index: 1; background: #fff; color: #111; font: 400 13px/1.35 'Jakarta', sans-serif; padding: 20px 18px 18px; border-radius: 0 0 6px 6px; box-shadow: var(--sombra); font-variant-numeric: tabular-nums; }
.nota.imprime { animation: imprime .7s var(--suave); }
@keyframes imprime { from { transform: translateY(-40px); clip-path: inset(40px 0 0 0); } to { transform: none; clip-path: inset(0); } }
.nt-cabeza { display: flex; justify-content: space-between; align-items: center; background: #f8a8d0; border: 2px solid #111; border-radius: 6px; padding: 8px 12px; }
.nt-cabeza div { display: grid; line-height: 1.1; }
.nt-cabeza b { font-size: 17px; }
.nt-cabeza small { font-size: 11px; font-weight: 700; }
.nt-folio { font-size: 19px; letter-spacing: .02em; }
.nt-fecha { display: flex; justify-content: space-between; align-items: center; gap: 8px; border: 2px solid #111; border-radius: 6px; padding: 8px 12px; margin-top: 10px; }
.nt-fecha b:first-child { font-size: 13px; }
.nt-hora { font-size: 23px; white-space: nowrap; }
.nt-marcas { display: flex; gap: 6px; margin-top: 8px; }
.nt-marcas span { border: 2px solid #111; border-radius: 5px; padding: 1px 6px; font-weight: 700; font-size: 11px; }
.nt-marcas .lleno { background: #111; color: #fff; }
.nt-rotulo { font-size: 11px; text-transform: uppercase; letter-spacing: .04em; border-bottom: 1px solid #111; margin: 10px 0 4px; }
.nt-tabla { width: 100%; border-collapse: collapse; }
.nt-tabla th { font-size: 11px; text-transform: uppercase; text-align: left; font-weight: 700; }
.nt-tabla th:last-child, .nt-tabla td:last-child { text-align: right; }
.nt-tabla td:first-child { width: 2.5em; }
.nt-dedicatoria { border: 2px dashed #111; border-radius: 5px; padding: 6px 10px; font-style: italic; font-size: 14px; min-height: 2.2em; overflow-wrap: anywhere; }
.nt-personas { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.nt-personas b, .nt-personas span { display: block; overflow-wrap: anywhere; }
.nt-personas b { font-size: 14px; }
.nt-total { display: flex; justify-content: space-between; border-top: 1px solid #111; margin-top: 10px; padding-top: 6px; font-weight: 700; font-size: 14px; }
.nt-sello { border: 2px solid #111; border-radius: 6px; text-align: center; font-weight: 800; font-size: 16px; padding: 4px; margin-top: 10px; }

/* Vitrina de funciones */
.vitrina { display: grid; grid-template-columns: minmax(0, 22rem) minmax(0, 1fr); gap: 2.5rem; margin-top: 3.5rem; align-items: start; }
.pestanas { display: grid; gap: .375rem; }
.pestanas button { position: relative; display: flex; gap: .875rem; align-items: center; text-align: left; padding: .875rem 1rem; border: 0; border-radius: var(--radio-ch); background: transparent; color: var(--tinta); font: inherit; cursor: pointer; overflow: hidden; transition: background .2s; }
.pestanas button:hover { background: var(--crema); }
.pestanas button .ico { width: 2.5rem; height: 2.5rem; padding: .55rem; border-radius: 10px; background: var(--crema); color: var(--marino); transition: background .2s, color .2s; }
.pestanas button span { display: grid; line-height: 1.3; }
.pestanas button b { font-weight: 700; }
.pestanas button small { color: var(--tinta-2); font-size: .875rem; }
.pestanas button[aria-selected="true"] { background: var(--marino); color: #fff; }
.pestanas button[aria-selected="true"] small { color: #c3cde6; }
.pestanas button[aria-selected="true"] .ico { background: var(--rosa); color: #fff; }
.avance { position: absolute; left: 0; bottom: 0; height: 3px; width: 0; background: var(--rosa-texto); }
.auto .pestanas button[aria-selected="true"] .avance { animation: avance var(--dur) linear forwards; }
.vitrina:hover .avance, .vitrina:focus-within .avance { animation-play-state: paused !important; }
@keyframes avance { to { width: 100%; } }

.escenas { background: radial-gradient(40rem 30rem at 80% 0%, #22407f, transparent 70%), var(--marino-oscuro); border-radius: 28px; padding: 2.25rem; min-height: 35rem; }
.escena[hidden] { display: none; }
.escena .ventana, .escena .tele, .escena .factura-escena { max-width: 36rem; margin-inline: auto; }
.puntos { display: grid; grid-template-columns: 1fr 1fr; gap: .625rem 1.5rem; margin-top: 1.75rem; color: #d7deef; font-size: .9375rem; max-width: 36rem; margin-inline: auto; }
.puntos li { padding-left: 1.6rem; position: relative; }
.puntos li::before { content: ''; position: absolute; left: 0; top: .35em; width: 1rem; height: 1rem; border-radius: 50%; background: var(--rosa) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 12l4 4 8-8'/%3E%3C/svg%3E") center / 70% no-repeat; }

/* Escena: pedido */
.campo-falso { display: grid; border: 1.5px solid var(--rosa); border-radius: 10px; padding: 6px 12px; }
.campo-falso small { font-size: .75rem; color: var(--tinta-2); font-weight: 600; }
.tecleo { font-weight: 700; font-size: 1rem; font-variant-numeric: tabular-nums; justify-self: start; }
.cliente-chip { display: flex; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; border-radius: 10px; background: var(--verde-f); color: var(--verde-t); font-size: .8125rem; }
.cliente-chip b { color: #0f4f2a; }
.renglones { margin-top: 12px; }
.renglones li { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e3e6ed; }
.total-fila { display: flex; justify-content: space-between; align-items: baseline; margin-top: 10px; font-weight: 800; font-size: 1.25rem; }
.pagos { display: flex; gap: 6px; margin-top: 10px; }
.pago { flex: 1; text-align: center; padding: 7px; border-radius: 8px; border: 1.5px solid #e3e6ed; font-weight: 600; font-size: .8125rem; }
.pago.sel { border-color: var(--marino); background: var(--marino); color: #fff; }
.boton-falso { display: block; margin-top: 12px; text-align: center; padding: 10px; border-radius: 999px; background: var(--rosa); color: #fff; font-weight: 700; }

/* Escena: producción en TV */
.tele { background: #070b16; border-radius: 18px; padding: 12px; box-shadow: var(--sombra); border: 6px solid #1a1f2c; }
.tele-cabeza { display: flex; justify-content: space-between; align-items: center; color: #fff; padding: 4px 6px 12px; font-size: .9375rem; }
.tele-cabeza i { font-style: normal; background: var(--rosa); border-radius: 999px; padding: 1px 9px; margin-left: 6px; font-size: .8125rem; }
.tele-cabeza span { color: #9fb0d6; font-variant-numeric: tabular-nums; font-weight: 700; }
.tele-rejilla { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tarjeta-tv { position: relative; background: #fff; border-radius: 10px; padding: 9px 10px; display: grid; gap: 2px; font-size: .75rem; color: var(--tinta); }
.tarjeta-tv b { font-size: .9375rem; font-variant-numeric: tabular-nums; }
.tarjeta-tv small { color: var(--tinta-2); }
.folio { justify-self: start; padding: 1px 7px; border-radius: 5px; font-weight: 800; font-size: .75rem; }
.folio.rosa { background: var(--rosa-suave); color: var(--rosa-oscuro); }
.folio.azul { background: var(--azul-f); color: var(--azul-t); }
.folio.amarillo { background: var(--ambar-f); color: var(--ambar-t); }
.tarjeta-tv em { position: absolute; top: 8px; right: 8px; font-style: normal; font-weight: 700; font-size: .75rem; padding: 1px 7px; border-radius: 999px; background: var(--rosa); color: #fff; }
.tarjeta-tv em.armando { position: static; justify-self: start; margin-top: 3px; background: var(--ambar-f); color: var(--ambar-t); }
.tarjeta-tv.nueva { outline: 3px solid var(--rosa); }

/* Escena: tablero */
.kanban { position: relative; display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
.columna { background: #f3f5f9; border-radius: 10px; padding: 8px; min-height: 15rem; display: flex; flex-direction: column; gap: 6px; }
.columna p { font-weight: 700; font-size: .75rem; color: var(--tinta-2); margin-bottom: 4px; }
.ficha { display: block; height: 44px; border-radius: 8px; background: #fff linear-gradient(#dfe3eb, #dfe3eb) 9px 11px / 45% 6px no-repeat; box-shadow: 0 1px 2px rgb(0 0 0 / .06); }
.ficha::after { content: ''; display: block; margin: 23px 0 0 9px; width: 65%; height: 5px; border-radius: 3px; background: #eef0f5; }
.columna:nth-child(4) .ficha { opacity: .6; }
.ficha-viaja { position: absolute; top: 9.25rem; left: 0; width: calc(25% - 7.5px); padding: 8px; border-radius: 8px; background: #fff; border: 2px solid var(--rosa); box-shadow: 0 10px 24px -12px rgb(8 20 50 / .4); display: grid; gap: 2px; font-size: .75rem; transform: translateX(calc(300% + 30px)); }
.ficha-viaja small { color: var(--tinta-2); font-size: .75rem; }
.pagado { justify-self: start; font-style: normal; font-weight: 700; font-size: .75rem; padding: 0 6px; border-radius: 999px; background: var(--verde-f); color: var(--verde-t); }

/* Escena: reparto */
.mapa-cuerpo { position: relative; padding: 0; }
.mapa { display: block; width: 100%; height: auto; background: #eef2f0; }
.calles path { stroke: #fff; stroke-width: 10; fill: none; }
.calles .avenida { stroke: #ffe9a8; stroke-width: 14; }
.ruta { fill: none; stroke: var(--rosa); stroke-width: 5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 1; stroke-dashoffset: 0; }
.parada circle { fill: var(--verde-t); stroke: #fff; stroke-width: 3; }
.parada path { fill: none; stroke: #fff; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.tienda rect { fill: var(--marino); }
.tienda path { stroke: #fff; stroke-width: 2.5; stroke-linecap: round; }
.camioneta { fill: var(--rosa); stroke: #fff; stroke-width: 3; offset-path: path('M60 180H150V110H250V40H340'); offset-distance: 100%; offset-rotate: 0deg; }
.hoja-ruta { position: absolute; right: 12px; bottom: 12px; background: #fff; border-radius: 12px; padding: 10px 14px; box-shadow: 0 8px 20px -8px rgb(0 0 0 / .3); font-size: .8125rem; }

/* Escena: temporada */
.dia-temporada { display: flex; align-items: center; gap: 12px; }
.dia-temporada > b { display: grid; place-items: center; width: 3.5rem; height: 3.5rem; border-radius: 14px; background: var(--rosa); color: #fff; font-size: 1.75rem; }
.dia-temporada span { display: grid; font-weight: 800; font-size: 1.125rem; line-height: 1.2; }
.dia-temporada small { font-weight: 500; font-size: .8125rem; color: var(--tinta-2); }
.cupos { margin-top: 16px; display: grid; gap: 12px; }
.cupo { display: grid; grid-template-columns: 5.5rem 1fr 4rem; gap: 10px; align-items: center; font-weight: 600; }
.cupo > b { text-align: right; font-variant-numeric: tabular-nums; }
.barra-cupo { height: 12px; border-radius: 999px; background: #eef0f5; overflow: hidden; }
.barra-cupo i { display: block; height: 100%; width: calc(var(--lleno) * 100%); border-radius: inherit; background: var(--marino-claro); transform-origin: left; }
.cupo.lleno .barra-cupo i { background: var(--rosa); }
.cupo.lleno > b { color: var(--rosa-oscuro); }
.aviso-cupo { margin-top: 16px; padding: 10px 12px; border-radius: 10px; background: var(--rosa-suave); color: #7d1236; font-size: .8125rem; }

/* Escena: caja */
.caja-cuerpo { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.caja-cuerpo .mini-titulo { margin-top: 0; }
.corte, .credito { background: var(--crema); border-radius: var(--radio-ch); padding: 14px; }
.corte-fila { display: flex; justify-content: space-between; padding: 6px 0; font-variant-numeric: tabular-nums; }
.corte-fila b { font-weight: 700; }
.corte-fila.total { border-top: 1.5px solid #d9d3c8; margin-top: 4px; padding-top: 10px; font-size: 1.125rem; }
.corte-fila.total b { font-weight: 800; }
.credito > b { font-size: 1rem; }
.barra-credito { height: 12px; border-radius: 999px; background: #fff; margin: 12px 0 8px; overflow: hidden; }
.barra-credito i { display: block; height: 100%; width: 47%; border-radius: inherit; background: var(--rosa); }
.credito-texto { display: grid; grid-template-columns: auto 1fr; gap: .3em; font-size: .8125rem; color: var(--tinta-2); }
.credito-texto .antes, .credito-texto .despues { grid-area: 1 / 1; font-weight: 700; color: var(--tinta); }
.credito-texto .antes { opacity: 0; }
.abono { display: inline-block; margin-top: 12px; padding: 5px 10px; border-radius: 999px; background: var(--verde-f); color: var(--verde-t); font-weight: 700; font-size: .75rem; }

/* Escena: factura */
.factura-escena { position: relative; }
.factura { position: relative; background: #fff; color: var(--tinta); border-radius: 14px; padding: 22px; box-shadow: var(--sombra); font-size: .875rem; overflow: hidden; }
.fac-cabeza { display: flex; justify-content: space-between; align-items: baseline; border-bottom: 2px solid var(--marino); padding-bottom: 10px; }
.fac-cabeza b { font-size: 1.375rem; }
.fac-cabeza span { color: var(--tinta-2); font-weight: 600; font-size: .8125rem; }
.fac-partes { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; margin: 14px 0; }
.fac-partes div { display: grid; line-height: 1.35; }
.fac-partes small { color: var(--tinta-2); font-size: .75rem; font-weight: 600; }
.fac-partes span { color: var(--tinta-2); font-size: .75rem; }
.fac-concepto { display: flex; justify-content: space-between; padding: 7px 0; border-bottom: 1px dashed #e3e6ed; font-variant-numeric: tabular-nums; }
.fac-concepto.total { border: 0; font-weight: 800; font-size: 1.125rem; }
.uuid { margin-top: 10px; display: grid; font-size: .75rem; color: var(--tinta-2); }
.uuid span { font-weight: 700; color: var(--tinta); letter-spacing: .02em; overflow-wrap: anywhere; }
.sello { position: absolute; right: 22px; bottom: 18px; padding: 6px 14px; border: 3px solid var(--verde-t); border-radius: 10px; color: var(--verde-t); font-weight: 800; font-size: 1.125rem; text-transform: uppercase; letter-spacing: .06em; transform: rotate(-10deg); background: rgb(255 255 255 / .85); }
.fac-etiquetas { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; margin-top: 14px; }
.fac-etiquetas span { padding: 6px 12px; border-radius: 999px; background: rgb(255 255 255 / .1); color: #fff; font-weight: 600; font-size: .8125rem; }

/* Escena: reportes */
.grafica { display: grid; grid-template-columns: repeat(7, 1fr); gap: 10px; align-items: end; height: 13rem; margin-top: 18px; padding-top: 10px; }
.barra-g { height: 100%; display: grid; grid-template-rows: 1fr auto; gap: 6px; text-align: center; font-size: .75rem; color: var(--tinta-2); font-weight: 600; }
.barra-g i { align-self: end; height: calc(var(--h) * 100%); border-radius: 8px 8px 4px 4px; background: var(--marino-claro); transform-origin: bottom; }
.barra-g:nth-child(6) i { background: var(--rosa); }

/* Animaciones de las escenas: el estado sin animar es el final, así sin movimiento se ve completo */
@media (prefers-reduced-motion: no-preference) {
  .activa .tecleo { animation: teclea 1.2s steps(12) .4s both; }
  .activa .cliente-chip { animation: entra .5s var(--suave) 1.8s both; }
  .activa .renglones li { animation: entra .45s var(--suave) both; }
  .activa .renglones li:nth-child(1) { animation-delay: 2.4s; } .activa .renglones li:nth-child(2) { animation-delay: 2.75s; }
  .activa .renglones li:nth-child(3) { animation-delay: 3.1s; } .activa .renglones li:nth-child(4) { animation-delay: 3.45s; }
  .activa .total-fila { animation: entra .5s var(--suave) 3.9s both; }
  .activa .pago.sel { animation: selecciona .4s ease 4.5s both; }
  .activa .boton-falso { animation: entra .5s var(--suave) 5s both, latido 1s ease 5.6s 2; }

  .activa .tarjeta-tv.nueva { animation: cae .7s var(--suave) 1s both, brillo 1.2s ease 1.7s 3; }
  .activa .tarjeta-tv:not(.nueva) { animation: baja .7s var(--suave) 1s both; }
  .activa .tarjeta-tv .armando { animation: entra .4s var(--suave) 3.6s both; }

  .activa .ficha-viaja { animation: viaja 6s var(--suave) .4s both; }

  .activa .ruta { animation: traza 5s linear .5s both; }
  .activa .camioneta { animation: maneja 5s linear .5s both; }
  .activa .parada.p1 circle { animation: llega .3s ease 2.4s both; } .activa .parada.p1 path { animation: aparece .3s ease 2.4s both; }
  .activa .parada.p2 circle { animation: llega .3s ease 3.6s both; } .activa .parada.p2 path { animation: aparece .3s ease 3.6s both; }
  .activa .parada.p3 circle { animation: llega .3s ease 5.5s both; } .activa .parada.p3 path { animation: aparece .3s ease 5.5s both; }

  .activa .barra-cupo i { animation: llena 1.6s var(--suave) both; }
  .activa .cupo:nth-child(1) i { animation-delay: .5s; } .activa .cupo:nth-child(2) i { animation-delay: 1s; } .activa .cupo:nth-child(3) i { animation-delay: 1.5s; }
  .activa .aviso-cupo { animation: entra .5s var(--suave) 3.3s both; }

  .activa .barra-credito i { animation: paga 4s var(--suave) both; }
  .activa .credito-texto .antes { animation: sale-a 4s steps(1) both; }
  .activa .credito-texto .despues { animation: entra-a 4s steps(1) both; }
  .activa .abono { animation: entra .5s var(--suave) 2.3s both; }

  .activa .fac-concepto, .activa .fac-partes { animation: entra .5s var(--suave) both; }
  .activa .fac-partes { animation-delay: .3s; }
  .activa .fac-concepto:nth-of-type(3) { animation-delay: .7s; } .activa .fac-concepto:nth-of-type(4) { animation-delay: 1s; } .activa .fac-concepto:nth-of-type(5) { animation-delay: 1.3s; }
  .activa .uuid span { animation: teclea 1.4s steps(36) 2s both; }
  .activa .sello { animation: sella .5s cubic-bezier(.3, 1.6, .5, 1) 3.6s both; }
  .activa .fac-etiquetas span { animation: entra .4s var(--suave) both; }
  .activa .fac-etiquetas span:nth-child(1) { animation-delay: 4.4s; } .activa .fac-etiquetas span:nth-child(2) { animation-delay: 4.7s; } .activa .fac-etiquetas span:nth-child(3) { animation-delay: 5s; }

  .activa .barra-g i { animation: crece 1s var(--suave) both; }
  .activa .barra-g:nth-child(1) i { animation-delay: .3s; } .activa .barra-g:nth-child(2) i { animation-delay: .4s; } .activa .barra-g:nth-child(3) i { animation-delay: .5s; }
  .activa .barra-g:nth-child(4) i { animation-delay: .6s; } .activa .barra-g:nth-child(5) i { animation-delay: .7s; } .activa .barra-g:nth-child(6) i { animation-delay: .8s; } .activa .barra-g:nth-child(7) i { animation-delay: .9s; }

  /* Hero: ciclo continuo */
  .papel { animation: sale-papel 10s var(--suave) infinite; }
  .led { animation: parpadea 10s steps(1) infinite; }
  .estado.ciclo i:nth-child(1) { animation: ciclo1 10s steps(1) infinite; }
  .estado.ciclo i:nth-child(2) { animation: ciclo2 10s steps(1) infinite; }
  .estado.ciclo i:nth-child(3) { animation: ciclo3 10s steps(1) infinite; }
  .estado.ciclo { animation: ciclo-color 10s steps(1) infinite; }
  .burbuja.b1 { animation: burbuja1 10s var(--suave) infinite; }
  .burbuja.b2 { animation: burbuja2 10s var(--suave) infinite; }

  .js .revela { opacity: 0; transform: translateY(18px); transition: opacity .7s var(--suave), transform .7s var(--suave); }
  .js .revela.visto { opacity: 1; transform: none; }
}

@keyframes entra { from { opacity: 0; transform: translateY(10px); } }
@keyframes aparece { from { opacity: 0; } }
@keyframes teclea { from { clip-path: inset(0 100% 0 0); } to { clip-path: inset(0); } }
@keyframes selecciona { from { background: transparent; color: var(--tinta); border-color: #e3e6ed; } }
@keyframes latido { 50% { transform: scale(1.04); } }
@keyframes cae { from { opacity: 0; transform: translateY(-24px) scale(.9); } }
@keyframes baja { from { transform: translateY(-8px); } }
@keyframes brillo { 50% { outline-color: rgb(204 39 91 / .25); } }
@keyframes viaja {
  0%, 12% { transform: translateX(0); }
  25%, 37% { transform: translateX(calc(100% + 10px)); }
  50%, 62% { transform: translateX(calc(200% + 20px)); }
  75%, 100% { transform: translateX(calc(300% + 30px)); }
}
@keyframes traza { from { stroke-dashoffset: 1; } }
@keyframes maneja { from { offset-distance: 0%; } }
@keyframes llega { from { fill: #fff; stroke: var(--marino); } }
@keyframes llena { from { transform: scaleX(0); } }
@keyframes paga { 0%, 50% { width: 62%; } }
@keyframes sale-a { 0% { opacity: 1; } 55% { opacity: 0; } }
@keyframes entra-a { 0% { opacity: 0; } 55% { opacity: 1; } }
@keyframes sella { from { opacity: 0; transform: rotate(-10deg) scale(2.2); } }
@keyframes crece { from { transform: scaleY(0); } }
@keyframes sale-papel { 0%, 8% { transform: translateY(100%); } 22%, 88% { transform: none; } 96%, 100% { transform: translateY(100%); } }
@keyframes parpadea { 0% { background: #3fcf74; } 8% { background: #ffc24b; } 22% { background: #3fcf74; } }
@keyframes ciclo1 { 0% { opacity: 1; } 30% { opacity: 0; } }
@keyframes ciclo2 { 0% { opacity: 0; } 30% { opacity: 1; } 55% { opacity: 0; } }
@keyframes ciclo3 { 0% { opacity: 0; } 55% { opacity: 1; } 95% { opacity: 0; } }
@keyframes ciclo-color { 0% { background: var(--ambar-f); color: var(--ambar-t); } 30% { background: var(--verde-f); color: var(--verde-t); } 55% { background: var(--azul-f); color: var(--azul-t); } 95% { background: var(--ambar-f); color: var(--ambar-t); } }
@keyframes burbuja1 { 0%, 55% { opacity: 0; transform: translateY(12px) scale(.95); } 60%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }
@keyframes burbuja2 { 0%, 70% { opacity: 0; transform: translateY(12px) scale(.95); } 75%, 92% { opacity: 1; transform: none; } 97%, 100% { opacity: 0; } }

/* Pasos */
.pasos { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.25rem; margin-top: 3rem; counter-reset: paso; }
.pasos li { background: var(--blanco); border-radius: var(--radio); padding: 2rem 1.75rem; }
.paso-num { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border-radius: 50%; background: var(--rosa); color: #fff; font-weight: 800; font-size: 1.25rem; margin-bottom: 1.25rem; }
.pasos h3 { font-size: 1.25rem; margin-bottom: .5rem; }
.pasos p { color: var(--tinta-2); }

/* Precios */
.periodo { display: flex; justify-content: center; gap: 4px; margin: 2.25rem auto 0; padding: 5px; border: 0; border-radius: 999px; background: var(--crema); width: max-content; max-width: 100%; }
.periodo label { position: relative; display: block; }
.periodo input { position: absolute; opacity: 0; inset: 0; cursor: pointer; }
.periodo span { display: flex; align-items: center; gap: .5rem; min-height: 2.75rem; padding: 0 1.25rem; border-radius: 999px; font-weight: 700; transition: background .2s, color .2s; }
.periodo em { font-style: normal; font-size: .8125rem; padding: 2px 8px; border-radius: 999px; background: var(--rosa-suave); color: var(--rosa-oscuro); }
.periodo input:checked + span { background: var(--marino); color: #fff; }
.periodo input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 2px; }

.planes { display: grid; grid-template-columns: repeat(2, minmax(0, 24rem)); justify-content: center; gap: 1.5rem; margin-top: 2.5rem; }
.plan { position: relative; display: flex; flex-direction: column; padding: 2.25rem 2rem 2rem; border-radius: 28px; background: var(--blanco); border: 2px solid var(--linea); transition: transform .3s var(--suave), box-shadow .3s; }
.plan:hover { transform: translateY(-4px); box-shadow: var(--sombra); }
.plan:first-child { border-color: var(--rosa); box-shadow: var(--sombra); }
.plan-nube { background: var(--marino-oscuro); color: #fff; border-color: var(--marino-oscuro); }
.plan-cabeza { display: flex; align-items: center; gap: .75rem; }
.plan-cabeza .ico { width: 2.75rem; height: 2.75rem; padding: .6rem; border-radius: 12px; background: var(--rosa-suave); color: var(--rosa-oscuro); }
.plan-nube .plan-cabeza .ico { background: rgb(255 255 255 / .1); color: var(--rosa-texto); }
.plan h3 { font-size: 1.5rem; }
.plan-para { margin-top: .75rem; color: var(--tinta-2); }
.plan-nube .plan-para { color: #c3cde6; }
.precio { margin: 1.5rem 0; display: grid; }
.precio b { font-size: 3.25rem; line-height: 1; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.precio span { margin-top: .5rem; color: var(--tinta-2); font-size: .9375rem; }
.plan-nube .precio span { color: #c3cde6; }
.por-anio { display: none; }
.precios.anual .por-mes { display: none; }
.precios.anual .por-anio { display: grid; }
.incluye { display: grid; gap: .7rem; margin-bottom: 2rem; flex: 1; }
.incluye li { display: flex; gap: .6rem; align-items: flex-start; }
.incluye .ico { color: var(--rosa); margin-top: .15em; stroke-width: 2.5; }
.plan-nube .incluye .ico, .incluye.claro .ico { color: var(--rosa-texto); }
.insignia { position: absolute; top: -.85rem; left: 2rem; padding: 4px 12px; border-radius: 999px; background: var(--rosa); color: #fff; font-weight: 700; font-size: .8125rem; }

.extras { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1rem; margin-top: 1.5rem; }
.extra { display: flex; flex-direction: column; gap: .5rem; padding: 1.5rem; border-radius: var(--radio); background: var(--crema); }
.extra .ico { width: 2.25rem; height: 2.25rem; padding: .45rem; border-radius: 10px; background: var(--blanco); color: var(--marino); }
.extra h3 { font-size: 1.0625rem; }
.extra p { color: var(--tinta-2); font-size: .9375rem; flex: 1; }
.extra em { font-style: normal; font-weight: 700; color: var(--rosa-oscuro); }
.extra b { font-size: 1.125rem; }
.nota-precios { text-align: center; margin-top: 2rem; color: var(--tinta-2); }

/* Preguntas */
.preguntas { display: grid; grid-template-columns: minmax(0, 20rem) minmax(0, 1fr); gap: 3rem; align-items: start; }
.acordeon { display: grid; gap: .625rem; }
details { background: var(--blanco); border-radius: var(--radio-ch); }
summary { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 1.1rem 1.25rem; font-weight: 700; cursor: pointer; list-style: none; }
summary::-webkit-details-marker { display: none; }
summary::after { content: '+'; flex: none; display: grid; place-items: center; width: 1.75rem; height: 1.75rem; border-radius: 50%; background: var(--crema); color: var(--rosa-oscuro); font-size: 1.25rem; font-weight: 700; transition: transform .25s var(--suave); }
details[open] summary::after { transform: rotate(45deg); }
details p { padding: 0 1.25rem 1.25rem; color: var(--tinta-2); }

/* Registro */
.registro { padding: 6rem 0; background: radial-gradient(50rem 30rem at 10% 100%, #2a2070 0%, transparent 60%), var(--marino-oscuro); color: #fff; }
.registro h2 { font-size: clamp(2.25rem, 1.5rem + 2.6vw, 3.5rem); }
.registro h2 .acento { color: var(--rosa-texto); }
.registro-texto > p { margin-top: 1.25rem; font-size: 1.1875rem; color: #d7deef; max-width: 32rem; }
.registro-texto .incluye { margin-top: 2rem; }
.dialogo { background: var(--blanco); color: var(--tinta); border-radius: 28px; padding: clamp(1.5rem, 4vw, 2.5rem); box-shadow: var(--sombra); }
.dialogo h3 { font-size: 1.5rem; margin-bottom: .5rem; }
#form-registro { display: grid; gap: 1rem; }
.segmento { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.segmento legend { font-weight: 700; font-size: .9375rem; margin-bottom: 6px; padding: 0; }
.segmento label { position: relative; display: block; }
.segmento input { position: absolute; opacity: 0; inset: 0; cursor: pointer; min-height: 0; }
.segmento span { display: flex; align-items: center; justify-content: center; min-height: 3rem; padding: 6px 10px; text-align: center; border-radius: var(--radio-ch); background: var(--crema); font-weight: 700; font-size: .9375rem; transition: background .2s, color .2s; }
.segmento input:checked + span { background: var(--marino); color: #fff; }
.segmento input:focus-visible + span { outline: 3px solid var(--rosa); outline-offset: 2px; }
.campo-whatsapp > label { margin-bottom: 6px; }
.fila-whatsapp { display: grid; grid-template-columns: minmax(0, 11rem) minmax(0, 1fr); gap: 8px; }
.ayuda { font-size: .875rem; color: var(--tinta-2); margin-top: 6px; }
.trampa { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
.legal-form { font-size: .875rem; color: var(--tinta-2); }
.error-form { color: #b0103d; font-weight: 700; }
.listo p { margin: .5rem 0 1.5rem; color: var(--tinta-2); }

/* Pie */
.pie { background: var(--marino-oscuro); color: #a9b6d6; border-top: 1px solid rgb(255 255 255 / .08); }
.pie-fila { display: flex; flex-wrap: wrap; align-items: center; gap: 1rem 2rem; padding-block: 2rem; font-size: .875rem; }
.pie .marca { color: #fff; font-size: 1.125rem; }
.pie nav { display: flex; flex-wrap: wrap; gap: .5rem 1.25rem; }
.pie a { color: #c3cde6; }
.pie .marca { text-decoration: none; }
.credito-ambit { margin-left: auto; }

/* Páginas legales */
.legal { max-width: 46rem; margin: 0 auto; padding: 4rem 1.25rem 6rem; }
.legal h1 { font-size: clamp(2rem, 1.5rem + 2vw, 2.75rem); margin-bottom: .5rem; }
.legal .fecha { color: var(--tinta-2); margin-bottom: 2.5rem; }
.legal h2 { font-size: 1.375rem; margin: 2.5rem 0 .75rem; }
.legal p, .legal li { margin-bottom: .75rem; }
.legal ul { padding-left: 1.2em; list-style: disc; }
.legal li::marker { color: var(--rosa); }
.legal table { width: 100%; border-collapse: collapse; margin: .75rem 0 1.25rem; font-size: .9375rem; }
.legal th, .legal td { text-align: left; padding: .5rem; border-bottom: 1px solid var(--linea); vertical-align: top; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .nota.imprime { animation: none; }
  .estado.ciclo i:nth-child(3) { opacity: 1; }
  .burbuja { opacity: 1; }
}

/* Tableta */
@media (max-width: 1000px) {
  .hero-rejilla, .dos-columnas { grid-template-columns: minmax(0, 1fr); }
  .hero-escena { max-width: 36rem; width: 100%; margin-inline: auto; }
  .vitrina { grid-template-columns: minmax(0, 1fr); gap: 1.25rem; }
  .pestanas { position: relative; display: flex; overflow-x: auto; gap: .5rem; scroll-snap-type: x mandatory; padding-bottom: .25rem; scrollbar-width: none; }
  .pestanas::-webkit-scrollbar { display: none; }
  .pestanas button { flex: none; scroll-snap-align: start; padding: .6rem 1rem .7rem; background: var(--crema); border-radius: 999px; }
  .pestanas button .ico { width: 1.9rem; height: 1.9rem; padding: .4rem; background: var(--blanco); }
  .pestanas button small { display: none; }
  .preguntas { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .extras { grid-template-columns: repeat(2, 1fr); }
}

/* Teléfono */
@media (max-width: 700px) {
  .barra nav { display: none; }
  .barra .boton-chico { margin-left: auto; }
  .hero { padding-top: 3rem; }
  .hechos { grid-template-columns: minmax(0, 1fr); margin-top: 2.5rem; }
  .hero-ventana { width: 100%; }
  .impresora { display: none; }
  .hero-escena { min-height: 0; padding-bottom: 150px; }
  .telefono { width: 140px; height: 230px; right: -6px; bottom: -14px; border-radius: 24px; }
  .tel-pantalla { border-radius: 18px; font-size: .75rem; }
  .seccion, .registro { padding: 4.5rem 0; }
  .escenas { padding: 1.25rem; border-radius: 22px; min-height: 0; }
  .ventana-cuerpo { padding: 14px; }
  .kpis b { font-size: 1.0625rem; }
  .kanban { gap: 6px; }
  .columna { min-height: 12rem; padding: 6px; }
  .ficha-viaja { width: calc(25% - 4.5px); top: 8.4rem; padding: 6px; }
  .ficha-viaja small { display: none; }
  .tele-rejilla { grid-template-columns: repeat(2, 1fr); }
  .tarjeta-tv:nth-child(n+5) { display: none; }
  .caja-cuerpo { grid-template-columns: minmax(0, 1fr); }
  .puntos { grid-template-columns: minmax(0, 1fr); }
  .hoja-ruta { position: static; border-radius: 0; box-shadow: none; display: flex; justify-content: space-between; }
  .pasos, .planes, .extras { grid-template-columns: minmax(0, 1fr); }
  .precio b { font-size: 2.75rem; }
  .editor-nota { grid-template-columns: minmax(0, 1fr); }
  .fila-whatsapp { grid-template-columns: minmax(0, 8.5rem) minmax(0, 1fr); }
  .nota { padding: 16px 12px 12px; }
  .nt-folio { font-size: 15px; }
  .nt-hora { font-size: 18px; }
  .nt-fecha b:first-child { font-size: 11px; }
  .credito-ambit { margin-left: 0; }
}
