@font-face { font-family: 'Inter'; font-style: normal; font-weight: 400; font-display: swap; src: url('/fuentes/inter-latin-400-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 500; font-display: swap; src: url('/fuentes/inter-latin-500-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 600; font-display: swap; src: url('/fuentes/inter-latin-600-normal.woff2') format('woff2'); }
@font-face { font-family: 'Inter'; font-style: normal; font-weight: 700; font-display: swap; src: url('/fuentes/inter-latin-700-normal.woff2') format('woff2'); }
:root {
  /* Guía Aleben v2: --marca, --marca-texto y --acento los pone cada página con el color del cliente. */
  --tinta: #22242e;
  --suave: #6b6f80;
  --fondo: #f4f5f8;
  --tarjeta: #ffffff;
  --borde: #e9eaef;
  --marca: #d3245c;
  --marca-texto: #ffffff;
  --acento: #d3245c;
  --acento-suave: #fce8ef;
  --marca-franja: #b01c4c;
  --ok: #0e7f5e;
  --ok-fondo: #e3f6ef;
  --mal: #b42318;
  --mal-fondo: #fdecea;
  --alerta: #a35400;
  --alerta-fondo: #fff4e2;
  --info: #1f5fbf;
  --info-fondo: #e8f0fe;
  --radio: 14px;
  font-family: Inter, system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color: var(--tinta);
  background: var(--fondo);
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--fondo); line-height: 1.45; }
a { color: var(--acento); }
h1 { font-size: 1.45rem; margin: 0 0 .4rem; letter-spacing: -.01em; }
h2 { font-size: 1.1rem; margin: 0 0 .8rem; }
small { color: var(--suave); }

.menu { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }

.barra { background: var(--marca); color: var(--marca-texto); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .6rem 1rem; flex-wrap: wrap; }
.marca { color: var(--marca-texto); text-decoration: none; font-weight: 600; display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.pastilla-logo { background: #fff; border-radius: 10px; padding: 4px 8px; display: inline-flex; align-items: center; height: 2.3rem; }
.pastilla-logo img { max-height: 1.8rem; max-width: 7rem; display: block; }
.punto { width: .7rem; height: .7rem; border-radius: 50%; background: var(--marca-texto); opacity: .8; display: inline-block; }
.menu a, .menu .enlace { color: var(--marca-texto); opacity: .88; text-decoration: none; font-size: .95rem; }
.menu a:hover { opacity: 1; text-decoration: underline; }
.con-tecnologia { font-size: .72rem; opacity: .75; color: var(--marca-texto); white-space: nowrap; }
main { max-width: 1180px; margin: 0 auto; padding: 1rem; }
.movil main { max-width: 560px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1.2rem; margin-bottom: 1rem; box-shadow: 0 1px 2px rgba(16, 24, 40, .04); }
.tarjeta.estrecha { max-width: 420px; margin: 2rem auto; }
.centrado { text-align: center; }
.encabezado { display: flex; justify-content: space-between; align-items: flex-end; gap: 1rem; flex-wrap: wrap; margin: .5rem 0 1rem; }
.nota { color: var(--suave); font-size: .9rem; }
.error { background: var(--mal-fondo); color: var(--mal); padding: .6rem .8rem; border-radius: 10px; }
.aviso-ok { background: var(--ok-fondo); color: var(--ok); padding: .6rem .8rem; border-radius: 10px; }
.aviso-mal { color: var(--mal); font-weight: 600; }
.banner { background: var(--alerta-fondo); color: var(--alerta); border: 1px solid #f3d19c; padding: .6rem .9rem; border-radius: 10px; font-weight: 600; font-size: .92rem; }
.mal { color: var(--mal); }
.bien { color: var(--ok); }

.boton, .boton-grande { background: var(--acento); color: #fff; border: 0; border-radius: 10px; padding: .65rem 1.1rem; font-size: 1rem; cursor: pointer; text-decoration: none; display: inline-block; }
.boton:hover, .boton-grande:hover { background: var(--marca-franja); }
.boton.secundario { background: #fff; color: var(--acento); border: 1px solid var(--borde); }
.boton.peligro { background: var(--mal); }
.boton.peligro:hover { background: #8f1c12; }
label.casilla { display: flex; gap: .5rem; align-items: center; }
.boton-grande { width: 100%; padding: 1.1rem; font-size: 1.25rem; font-weight: 700; margin-top: 1rem; background: var(--acento); }
.boton-grande:hover { background: var(--marca-franja); }
.enlace { background: none; border: 0; padding: 0; color: var(--info); cursor: pointer; font: inherit; text-decoration: underline; }
.en-linea { display: inline; }

.formulario { display: grid; gap: .8rem; }
.formulario.fila { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); align-items: end; }
.formulario.rejilla { grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-items: end; }
label { display: grid; gap: .3rem; font-size: .92rem; color: var(--suave); }
input, select, textarea { font: inherit; padding: .55rem .7rem; border: 1px solid var(--borde); border-radius: 9px; background: #fff; color: var(--tinta); width: 100%; }
input:focus, select:focus, textarea:focus { outline: 3px solid var(--acento-suave); border-color: var(--acento); }
.check-linea { display: flex; align-items: center; gap: .5rem; color: var(--tinta); }
.check-linea input, .dias input, .opciones-tipo input, .opcion input { width: auto; }
.dias { border: 1px solid var(--borde); border-radius: 9px; display: flex; flex-wrap: wrap; gap: .6rem; padding: .5rem .7rem; }
.dias label { display: flex; gap: .3rem; align-items: center; color: var(--tinta); }

.cajas { display: grid; grid-template-columns: repeat(auto-fit, minmax(128px, 1fr)); gap: .6rem; margin: .8rem 0 1rem; }
.caja { background: #fff; border: 1px solid var(--borde); border-radius: 12px; padding: .8rem .9rem; display: grid; gap: .1rem; }
.caja span { font-size: .82rem; color: var(--suave); }
.caja strong { font-size: 1.45rem; }
.caja.mal strong { color: var(--mal); }
.caja.bien strong { color: var(--ok); }
.caja.alerta strong { color: var(--alerta); }
.caja.info strong { color: var(--info); }

.tabla-envoltura { overflow-x: auto; }
.tabla { width: 100%; border-collapse: collapse; font-size: .92rem; }
.tabla th { text-align: left; color: var(--suave); font-weight: 600; border-bottom: 1px solid var(--borde); padding: .5rem; white-space: nowrap; }
.tabla td { border-bottom: 1px solid #edf0f4; padding: .55rem .5rem; vertical-align: top; }
.tabla tr.anulada td { color: #98a2b3; text-decoration: line-through; }
.tabla tr.fuera td { background: #fafbfc; }
.tabla tr.aviso-fila td { background: var(--alerta-fondo); color: var(--alerta); font-weight: 600; }
.avisos { font-size: .88rem; }
.estado { display: inline-block; border-radius: 999px; padding: .1rem .55rem; font-size: .8rem; font-weight: 600; white-space: nowrap; }
.estado.ok { background: var(--ok-fondo); color: var(--ok); }
.estado.mal { background: var(--mal-fondo); color: var(--mal); }
.estado.alerta { background: var(--alerta-fondo); color: var(--alerta); }
.estado.info { background: var(--info-fondo); color: var(--info); }
.estado.neutro { background: #eef1f5; color: var(--suave); }
code.corto { font-size: .78rem; word-break: break-all; }
.enlace-activacion code { word-break: break-all; font-size: .85rem; }
textarea.copiar { font-size: .85rem; }
details.justificar { margin-top: .4rem; }
details.justificar summary { cursor: pointer; color: var(--info); font-size: .85rem; }
details.justificar form { margin-top: .5rem; background: #f8fafc; padding: .6rem; border-radius: 9px; }

.selector-mes { display: flex; gap: 1rem; align-items: center; flex-wrap: wrap; }
.selector-mes strong::first-letter { text-transform: uppercase; }

.lista-hoy { list-style: none; margin: 0; padding: 0; }
.lista-hoy li { padding: .6rem 0; border-bottom: 1px solid #edf0f4; }
.lista-hoy li > a { font-weight: 600; text-decoration: none; color: var(--tinta); }
.turno { font-size: .9rem; margin-top: .25rem; display: flex; gap: .5rem; flex-wrap: wrap; align-items: center; }
.turno .horario { color: var(--suave); min-width: 6.5rem; }

/* Celular: marcar */
.marcar { text-align: center; }
.saludo { font-size: 1.1rem; margin: 0; }
.sede { color: var(--suave); margin: .2rem 0 .6rem; }
.reloj { font-size: 2.6rem; font-weight: 800; margin: .2rem 0; font-variant-numeric: tabular-nums; letter-spacing: -.02em; }
.opciones-tipo { display: grid; grid-template-columns: 1fr 1fr; gap: .5rem; margin-top: 1rem; }
.opciones-tipo label { border: 1px solid var(--borde); border-radius: 10px; padding: .7rem; display: flex; justify-content: center; gap: .4rem; align-items: center; color: var(--tinta); font-weight: 600; cursor: pointer; }
.opciones-tipo label:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); }
.pregunta { text-align: left; background: #f8fafc; border: 1px solid var(--borde); border-radius: 12px; padding: .8rem; margin-top: .8rem; }
.pregunta.alerta { background: var(--alerta-fondo); border-color: #f3d19c; }
.pregunta p { margin: .2rem 0 .5rem; color: var(--tinta); }
.opcion { display: flex; gap: .5rem; align-items: center; color: var(--tinta); padding: .3rem 0; }
.pie { margin-top: 1.2rem; }
.hecho .check { width: 4.5rem; height: 4.5rem; border-radius: 50%; background: var(--ok); color: #fff; font-size: 2.6rem; line-height: 4.5rem; margin: .5rem auto 1rem; }
.aviso-ok h1, .aviso-ok p strong { color: var(--ok); }
.aviso-mal h1 { color: var(--mal); }
.aviso-alerta h1 { color: var(--alerta); }
.aviso-info h1 { color: var(--info, #1d4ed8); }

/* Pantalla de recepción */
.recepcion { background: var(--marca); }
.recepcion .barra { display: none; }
.recepcion main { max-width: none; min-height: 100vh; display: flex; align-items: center; justify-content: center; }
.kiosco { display: grid; grid-template-columns: 1fr auto; gap: 3rem; align-items: center; color: #fff; padding: 2rem; max-width: 1200px; width: 100%; }
.kiosco h1 { font-size: 2.6rem; margin: .3rem 0 1rem; }
.kiosco ol { font-size: 1.35rem; line-height: 1.9; padding-left: 1.4rem; color: #dbe4f0; }
.kiosco-sede { color: var(--acento); font-weight: 700; letter-spacing: .06em; text-transform: uppercase; margin: 0; }
.kiosco-reloj { font-size: 3.2rem; font-weight: 800; margin: 1rem 0; font-variant-numeric: tabular-nums; }
.kiosco-qr { background: #fff; border-radius: 22px; padding: 1.4rem; text-align: center; }
.qr { width: min(46vh, 440px); height: min(46vh, 440px); }
.qr svg { width: 100%; height: 100%; }
.barra-tiempo { height: 6px; background: #e6ebf1; border-radius: 6px; overflow: hidden; margin: .8rem 0 .3rem; }
.barra-tiempo span { display: block; height: 100%; background: var(--acento); width: 100%; transition: width 1s linear; }
.ultimas { font-size: 1rem; color: #c9d5e3; display: grid; gap: .3rem; }
.ultimas b { color: #fff; }

/* Reportes impresos */
.impresion { background: #fff; }
.hoja { max-width: 900px; margin: 0 auto 2rem; padding: 1.5rem; border: 1px solid var(--borde); border-radius: 12px; page-break-after: always; }
.hoja header h1 { font-size: 1.2rem; text-transform: none; }
.firmas { display: grid; grid-template-columns: 1fr 1fr; gap: 3rem; margin-top: 3.5rem; }
.firmas span { border-top: 1px solid var(--tinta); padding-top: .4rem; text-align: center; color: var(--suave); font-size: .9rem; }
.no-imprimir { max-width: 900px; margin: 1rem auto; }
@media print {
  .no-imprimir { display: none; }
  .hoja { border: 0; padding: 0; }
  body { background: #fff; }
}

@media (max-width: 760px) {
  .kiosco { grid-template-columns: 1fr; gap: 1.5rem; }
  .qr { width: 80vw; height: 80vw; }
  .reloj { font-size: 2.2rem; }
  .tabla { font-size: .85rem; }
}

/* Aviso del navegador al vincular, pasos y pedidos de celular (19/11/2026). */
p.aviso-alerta { background: var(--alerta-fondo, #fff4e0); color: var(--alerta); padding: .6rem .8rem; border-radius: 10px; text-align: left; }
.pasos { text-align: left; margin: .5rem 0 1rem 1.2rem; }
.pasos li { margin: .3rem 0; }
.pedido { border-top: 1px solid var(--linea, #e5e7eb); padding: .6rem 0; }
.pedido:first-child { border-top: 0; }
.pedido .acciones { display: flex; gap: .5rem; flex-wrap: wrap; margin-top: .4rem; }

/* Personal (24/11/2026): mensaje al marcar, Mi asistencia, bolsa de horas y app con cámara. */
.resumen-marca { text-align: left; background: var(--ok-fondo); color: var(--ok); border-radius: 12px; padding: .8rem 1rem; margin: 1rem 0; }
.resumen-marca.con-descuento { background: var(--mal-fondo); color: var(--mal); }
.resumen-marca p { margin: .25rem 0; }
.acumulado { display: grid; gap: .1rem; background: var(--ok-fondo); color: var(--ok); border-radius: 12px; padding: .8rem 1rem; margin: .8rem 0; }
.acumulado.con-descuento { background: var(--mal-fondo); color: var(--mal); }
.acumulado span { font-size: .9rem; }
.acumulado strong { font-size: 1.8rem; }
.cajas-chicas { grid-template-columns: repeat(3, 1fr); }
.lista-dias { list-style: none; margin: 0; padding: 0; }
.dia { border-top: 1px solid var(--borde); padding: .7rem 0; }
.dia:first-child { border-top: 0; }
.dia-fecha { font-weight: 700; }
.dia-cabecera { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; margin-bottom: .3rem; }
.dia-monto { font-weight: 700; white-space: nowrap; }
.semana { border: 1px solid var(--borde); border-radius: 12px; padding: .2rem .8rem .3rem; margin: .7rem 0; }
.semana-cabecera { display: flex; justify-content: space-between; align-items: baseline; gap: .5rem; padding: .6rem 0; border-bottom: 1px solid var(--borde); font-weight: 600; }
.semana-cabecera strong { font-size: 1.15rem; white-space: nowrap; }
.acumulado small { font-size: .85rem; opacity: .9; }
.dia-fecha::first-letter { text-transform: uppercase; }
.plazo { display: block; margin-top: .3rem; }
.dia-turno { background: #f8fafc; border-radius: 10px; padding: .5rem .7rem; margin: .35rem 0; }
.dia-fila, .dia-horas { display: flex; justify-content: space-between; gap: .5rem; flex-wrap: wrap; }
.dia-horas { color: var(--suave); font-size: .92rem; }
.dia-notas { font-size: .9rem; margin-top: .25rem; }
.bolsa-saldo { font-size: 2rem; font-weight: 700; margin: .2rem 0; }
.bolsa-lista { list-style: none; padding: 0; margin: .5rem 0 0; }
.bolsa-lista li { display: flex; justify-content: space-between; border-top: 1px solid var(--borde); padding: .4rem 0; }
.app main { max-width: 520px; }
.escaner { display: grid; gap: .6rem; }
.escaner-hola { margin: 0; font-size: 1.1rem; }
.camara { position: relative; border-radius: 16px; overflow: hidden; background: #000; aspect-ratio: 3 / 4; }
.camara video { width: 100%; height: 100%; object-fit: cover; display: block; }
.marco { position: absolute; inset: 18%; border: 3px solid rgba(255, 255, 255, .85); border-radius: 18px; box-shadow: 0 0 0 999px rgba(0, 0, 0, .25); }
.instalar { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: var(--radio); padding: 1rem; }
.vista-foto { max-width: 100%; border-radius: 10px; border: 1px solid var(--borde); }
.qr-dos-pasos { width: 220px; margin: .5rem auto; }
.qr-dos-pasos svg { width: 100%; height: auto; }
.codigos { columns: 2; font-size: 1.1rem; }

/* ── Asistente de primer uso ── */
.asistente main { max-width: 620px; }
.asistente-cabeza { margin: .4rem 0 1rem; }
.asistente-paso { margin: 0 0 .4rem; color: var(--suave); font-size: .9rem; font-weight: 500; }
.asistente-barra { height: 8px; background: var(--borde); border-radius: 8px; overflow: hidden; }
.asistente-barra span { display: block; height: 100%; background: var(--acento); border-radius: 8px; transition: width .4s; }
.asistente-tarjeta { padding: 1.5rem 1.3rem; }
.asistente-tarjeta h1 { font-size: 1.6rem; font-weight: 700; }
.lead { font-size: 1.05rem; color: var(--suave); margin: .2rem 0 1.2rem; }
.ejemplo { color: var(--suave); font-size: .92rem; background: var(--fondo); border-radius: 10px; padding: .55rem .75rem; }
.asistente input[type=text], .asistente input:not([type]), .asistente input[type=password], .asistente input[type=number], .asistente input[type=date], .asistente input[type=time], .asistente select { font-size: 16px; padding: .75rem .8rem; border: 1px solid #cfd3dc; border-radius: 10px; width: 100%; }
.asistente .formulario label { display: block; font-weight: 500; margin-bottom: .9rem; }
.asistente-nav { display: flex; justify-content: space-between; align-items: center; gap: 1rem; padding: 0 .2rem 2rem; font-size: .95rem; }
.asistente-nav a { text-decoration: none; }
.asistente-nav .saltar { color: var(--suave); }
.guardado { color: var(--ok); font-size: .9rem; }
.oculto { position: absolute; left: -9999px; }
.opciones-grandes { display: grid; gap: .7rem; margin-bottom: 1rem; }
.opciones-grandes.tres { grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); }
.opcion-grande { display: flex !important; flex-direction: column; gap: .15rem; border: 2px solid var(--borde); border-radius: 14px; padding: .95rem 1rem; cursor: pointer; min-height: 72px; justify-content: center; }
.opcion-grande { position: relative; }
.opcion-grande input, .muestra input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; }
.opcion-grande strong { font-size: 1.05rem; }
.opcion-grande small { font-weight: 400; }
.opcion-grande:has(input:checked) { border-color: var(--acento); background: var(--acento-suave); }
.rejilla.dos { display: grid; grid-template-columns: 1fr 1fr; gap: .8rem; }
.paleta { display: grid; grid-template-columns: repeat(4, 1fr); gap: .6rem; margin-bottom: 1rem; }
.muestra { display: flex !important; flex-direction: column; align-items: center; gap: .25rem; cursor: pointer; margin: 0 !important; }
.muestra { position: relative; }
.muestra span { width: 52px; height: 52px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--borde); }
.muestra:has(input:checked) span { box-shadow: 0 0 0 3px var(--tinta); }
.muestra small { font-size: .78rem; }
.asistente input[type=color] { width: 100%; height: 48px; padding: 4px; border-radius: 10px; border: 1px solid #cfd3dc; }
.vista-previa { border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; margin: .5rem 0; }
.vp-barra { padding: .8rem 1rem; display: flex; align-items: center; gap: .6rem; font-size: 1.05rem; }
.vp-cuerpo { padding: 1rem; background: #fff; }
.vp-boton { display: block; text-align: center; color: #fff; border-radius: 12px; padding: .9rem; font-weight: 700; }
.logo-actual { min-height: 110px; display: flex; align-items: center; justify-content: center; background: var(--fondo); border-radius: 14px; margin-bottom: 1rem; padding: 1rem; }
.logo-actual img { max-width: 100%; max-height: 120px; }
.subir { cursor: pointer; display: inline-block; }
.sede-fila { border: 1px solid var(--borde); border-radius: 14px; padding: .8rem 1rem .2rem; margin: 0 0 .8rem; }
.sede-fila legend { font-weight: 600; padding: 0 .3rem; }
.por-sede { margin: .5rem 0 1rem; }
.por-sede summary { cursor: pointer; color: var(--acento); font-weight: 500; }
.revision { margin-bottom: 1rem; }
.siguientes { padding-left: 1.2rem; line-height: 1.6; }
.siguientes li { margin-bottom: .7rem; }
.licencia-franja { background: #b42318; color: #fff; text-align: center; padding: .55rem 1rem; font-weight: 600; }
.licencia-franja a { color: #fff; }
.botones-fila { display: flex; flex-wrap: wrap; gap: .5rem; }
.recepcion { color: var(--marca-texto); }
.recepcion .kiosco-sede { color: var(--marca-texto); opacity: .85; }
.kiosco-empresa { display: flex; align-items: center; gap: .8rem; font-weight: 600; font-size: 1.3rem; margin: 0 0 .6rem; color: var(--marca-texto); }
.pastilla-logo.grande { height: 3.4rem; padding: 6px 12px; }
.pastilla-logo.grande img { max-height: 2.8rem; max-width: 11rem; }

/* ── Aleben con vida (26/11/2026, pedido de Paul: moderno y con algo de animación, no plano) ── */
.barra { background: linear-gradient(115deg, var(--marca), color-mix(in srgb, var(--marca) 55%, #3730a3)); box-shadow: 0 6px 20px -12px rgba(30, 20, 60, .55); position: relative; z-index: 2; }
.tarjeta { border-radius: 18px; box-shadow: 0 1px 2px rgba(16, 24, 40, .04), 0 12px 32px -18px rgba(30, 20, 60, .25); animation: subir .5s cubic-bezier(.2, .8, .2, 1) both; }
main > .tarjeta:nth-of-type(2) { animation-delay: .06s; }
main > .tarjeta:nth-of-type(3) { animation-delay: .12s; }
.boton, .boton-grande { background: linear-gradient(135deg, var(--acento), color-mix(in srgb, var(--acento) 70%, #3730a3)); box-shadow: 0 8px 18px -10px color-mix(in srgb, var(--acento) 80%, transparent); transition: transform .15s, box-shadow .15s, filter .15s; }
.boton:hover, .boton-grande:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 12px 22px -10px color-mix(in srgb, var(--acento) 85%, transparent); }
.boton:active, .boton-grande:active { transform: translateY(1px) scale(.99); }
.boton.secundario { background: #fff; box-shadow: none; }
input, select, textarea { transition: border-color .15s, outline-color .15s; }

body.asistente { background: radial-gradient(1200px 500px at 10% -10%, color-mix(in srgb, var(--marca) 14%, transparent), transparent 60%), radial-gradient(900px 500px at 110% 10%, rgba(55, 48, 163, .12), transparent 60%), var(--fondo); min-height: 100vh; }
.asistente-barra { height: 10px; background: #e6e3ef; }
.asistente-barra span { background: linear-gradient(90deg, var(--acento), color-mix(in srgb, var(--acento) 45%, #5b52f2)); position: relative; overflow: hidden; transition: width .7s cubic-bezier(.2, .8, .2, 1); }
.asistente-barra span::after { content: ''; position: absolute; inset: 0; background: linear-gradient(90deg, transparent, rgba(255, 255, 255, .55), transparent); transform: translateX(-100%); animation: brillo 2.4s ease-in-out infinite; }
.asistente-tarjeta h1 { background: linear-gradient(90deg, var(--tinta), color-mix(in srgb, var(--acento) 70%, var(--tinta))); -webkit-background-clip: text; background-clip: text; color: transparent; }
.opcion-grande { transition: transform .15s, border-color .15s, background .15s, box-shadow .15s; }
.opcion-grande:hover { transform: translateY(-2px); box-shadow: 0 10px 20px -14px rgba(30, 20, 60, .45); }
.opcion-grande:has(input:checked) { animation: pop .3s ease-out; }
.muestra span { transition: transform .15s; }
.muestra:hover span { transform: scale(1.08); }

/* Portada de la bienvenida */
.portada { position: relative; overflow: hidden; border-radius: 22px; margin: .4rem 0 1rem; padding: 1.6rem 1.3rem 1.3rem; color: #fff; text-align: center;
  background: linear-gradient(130deg, var(--marca), #8b2fc9 55%, #3730a3); background-size: 180% 180%; animation: degradado 9s ease-in-out infinite alternate, subir .6s cubic-bezier(.2, .8, .2, 1) both; box-shadow: 0 20px 40px -22px rgba(55, 48, 163, .8); }
.portada-icono { width: 76px; height: 76px; border-radius: 22px; box-shadow: 0 10px 24px -8px rgba(0, 0, 0, .45); animation: flotar 4s ease-in-out infinite; position: relative; }
.portada-nombre { font-size: 1.55rem; font-weight: 700; margin: .7rem 0 .15rem; letter-spacing: -.01em; position: relative; }
.portada-lema { margin: 0 auto .9rem; max-width: 30ch; opacity: .92; position: relative; }
.portada-chips { display: flex; flex-wrap: wrap; justify-content: center; gap: .45rem; position: relative; }
.portada-chips span { background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .28); backdrop-filter: blur(4px); border-radius: 999px; padding: .3rem .7rem; font-size: .85rem; font-weight: 500; animation: subir .5s cubic-bezier(.2, .8, .2, 1) both; }
.portada-chips span:nth-child(1) { animation-delay: .25s; }
.portada-chips span:nth-child(2) { animation-delay: .4s; }
.portada-chips span:nth-child(3) { animation-delay: .55s; }
.burbuja { position: absolute; border-radius: 50%; background: rgba(255, 255, 255, .12); animation: flotar 7s ease-in-out infinite; }
.burbuja.b1 { width: 160px; height: 160px; left: -50px; top: -60px; }
.burbuja.b2 { width: 110px; height: 110px; right: -30px; bottom: -40px; animation-delay: -2s; background: rgba(255, 200, 69, .22); }
.burbuja.b3 { width: 46px; height: 46px; right: 22%; top: 14px; animation-delay: -4s; background: rgba(18, 184, 134, .35); }

/* ¡Listo! */
.hecho { position: relative; }
.hecho .check { background: linear-gradient(135deg, #12b886, #0e7f5e); box-shadow: 0 14px 28px -12px rgba(14, 127, 94, .8); animation: pop .6s cubic-bezier(.2, 1.4, .4, 1) both; }
.confeti { position: absolute; left: 50%; top: 2.6rem; width: 0; height: 0; pointer-events: none; }
.confeti i { position: absolute; width: 8px; height: 12px; border-radius: 2px; background: hsl(calc(var(--i) * 47deg) 85% 60%); opacity: 0;
  transform: rotate(calc(var(--i) * 25.7deg)) translateY(0); animation: confeti 1.2s cubic-bezier(.2, .8, .3, 1) .15s both; }

@keyframes subir { from { transform: translateY(14px); } to { transform: none; } }
@keyframes brillo { to { transform: translateX(100%); } }
@keyframes pop { 0% { transform: scale(.7); } 60% { transform: scale(1.06); } 100% { transform: scale(1); } }
@keyframes flotar { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes degradado { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }
@keyframes confeti { 0% { opacity: 1; transform: rotate(calc(var(--i) * 25.7deg)) translateY(0); } 100% { opacity: 0; transform: rotate(calc(var(--i) * 25.7deg)) translateY(-90px) rotate(160deg); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
.paso-cuenta .asistente-cabeza { display: none; }

/* ── Vida en cada paso del asistente (Paul, 26/11/2026; solo transform y opacity, liviano en celular) ── */
/* Sin color elegido o con «Color Aleben»: degradado morado-azul (--marca-fondo y --acento-fondo los pone la página). */
.barra { background: var(--marca-fondo, linear-gradient(115deg, var(--marca), color-mix(in srgb, var(--marca) 55%, #3730a3))); view-transition-name: barra; }
.boton, .boton-grande { background: var(--acento-fondo, linear-gradient(135deg, var(--acento), color-mix(in srgb, var(--acento) 70%, #3730a3))); position: relative; overflow: hidden; }
.boton.secundario { background: #fff; }
.boton:active, .boton-grande:active { transform: scale(.97); }
.onda { position: absolute; width: 12px; height: 12px; margin: -6px 0 0 -6px; border-radius: 50%; background: rgba(255, 255, 255, .55); pointer-events: none; animation: onda .6s ease-out forwards; }
.boton.secundario .onda { background: color-mix(in srgb, var(--acento) 25%, transparent); }
.boton-grande.enviando { pointer-events: none; }
.boton-grande.enviando::after { content: ''; position: absolute; right: 1.1rem; top: 50%; width: 18px; height: 18px; margin-top: -9px; border-radius: 50%; border: 2.5px solid rgba(255, 255, 255, .45); border-top-color: #fff; animation: girar .7s linear infinite; }
.portada { background: linear-gradient(130deg, #D3245C, #8B2FC9 55%, #3730A3); background-size: 100% 100%; animation: subir .6s cubic-bezier(.2, .8, .2, 1) both; } /* frambuesa, violeta e índigo de la versión 5adaa4c, quietos y los 3 a la vista: sin la animación «degradado» (Paul, 27/11/2026) */

/* Campos: se iluminan al escribir y muestran un check al quedar completos. */
.campo { position: relative; display: block; margin-top: .3rem; }
.asistente .campo input { padding-right: 2.6rem; }
.asistente input, .asistente select { transition: border-color .2s, box-shadow .25s; }
.asistente input:focus, .asistente select:focus { outline: none; border-color: var(--acento); box-shadow: 0 0 0 4px var(--acento-suave), 0 8px 22px -14px var(--acento); }
.asistente .formulario label:focus-within { color: var(--acento); }
.campo.ok input { border-color: #12a57a; }
.tilde { position: absolute; right: .7rem; top: 50%; width: 22px; height: 22px; margin-top: -11px; border-radius: 50%; background: linear-gradient(135deg, #1fc28f, #0e7f5e); color: #fff; display: grid; place-items: center; font-size: .78rem; font-weight: 700; transform: scale(0); opacity: 0; transition: transform .35s cubic-bezier(.2, 1.6, .4, 1), opacity .2s; box-shadow: 0 4px 10px -4px rgba(14, 127, 94, .8); pointer-events: none; }
.tilde::before { content: '✓'; }
.campo.ok .tilde { transform: scale(1); opacity: 1; }

/* Opciones y colores: check al elegir. */
.opcion-grande:has(input:checked)::after { content: '✓'; position: absolute; top: .65rem; right: .75rem; width: 24px; height: 24px; border-radius: 50%; background: var(--acento-fondo, var(--acento)); color: #fff; display: grid; place-items: center; font-size: .8rem; font-weight: 700; animation: pop .35s cubic-bezier(.2, 1.6, .4, 1); }
.muestra:has(input:checked) span { transform: scale(1.12); }
.muestra-aleben span { box-shadow: 0 0 0 1px var(--borde), 0 6px 14px -6px rgba(91, 79, 224, .8); }
.vista-previa.latido, .guardado.latido { animation: latido .45s ease; }

/* Ánimo y avance. */
.asistente-paso { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; }
.animo { font-weight: 600; font-size: .85rem; color: var(--acento); background: var(--acento-suave); padding: .2rem .7rem; border-radius: 999px; animation: pop .5s cubic-bezier(.2, 1.6, .4, 1) .25s backwards; }
.asistente-barra span { width: var(--hasta, 0%); background: var(--acento-fondo, linear-gradient(90deg, var(--acento), color-mix(in srgb, var(--acento) 45%, #5b52f2))); animation: avanzar .9s cubic-bezier(.2, .8, .2, 1) .15s backwards; }
.toast-animo { position: fixed; left: 50%; top: 4.2rem; z-index: 50; transform: translateX(-50%); background: var(--acento-fondo, var(--acento)); color: #fff; font-weight: 700; padding: .5rem 1.05rem; border-radius: 999px; box-shadow: 0 12px 28px -12px rgba(55, 48, 163, .8); animation: toast 1.8s ease both; pointer-events: none; }
.confeti-lienzo { position: fixed; inset: 0; width: 100vw; height: 100vh; pointer-events: none; z-index: 60; }

/* Transición suave entre pantallas (Chrome, Edge y Safari recientes; los demás cambian de página normal). */
@view-transition { navigation: auto; }
::view-transition-old(root) { animation: vt-salir .2s ease both; }
::view-transition-new(root) { animation: vt-entrar .35s cubic-bezier(.2, .8, .2, 1) both; }

@keyframes onda { to { transform: scale(28); opacity: 0; } }
@keyframes girar { to { transform: rotate(360deg); } }
@keyframes latido { 50% { transform: scale(1.03); } }
@keyframes avanzar { from { width: var(--desde, 0%); } }
@keyframes toast { 0% { opacity: 0; transform: translate(-50%, -10px) scale(.9); } 15%, 80% { opacity: 1; transform: translate(-50%, 0) scale(1); } 100% { opacity: 0; transform: translate(-50%, -6px); } }
@keyframes vt-salir { to { opacity: 0; transform: translateX(-28px); } }
@keyframes vt-entrar { from { opacity: 0; transform: translateX(28px); } }
@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*), ::view-transition-old(*), ::view-transition-new(*) { animation: none !important; }
}

/* ── Menú del panel (Paul, 27/11/2026): una fila arriba en la laptop; barra fija abajo en el celular. Lo demás en «Más». ── */
.menu { gap: .3rem; flex-wrap: nowrap; }
.menu .menu-item { display: flex; align-items: center; gap: .45rem; color: var(--marca-texto); opacity: .92; text-decoration: none; font-size: .95rem; font-weight: 500; padding: .45rem .75rem; border-radius: 10px; cursor: pointer; list-style: none; user-select: none; transition: background .15s, opacity .15s; }
.menu .menu-item svg { width: 19px; height: 19px; flex: none; }
.menu .menu-item:hover { opacity: 1; text-decoration: none; background: rgba(255, 255, 255, .14); }
.menu .menu-item[aria-current=page], .menu-mas[open] > summary.menu-item, .menu-mas.actual > summary.menu-item { opacity: 1; background: rgba(255, 255, 255, .2); }
summary.menu-item::-webkit-details-marker, summary.menu-item::marker { display: none; content: ''; }
.menu-mas { position: relative; }
.menu-mas-lista { position: absolute; right: 0; top: calc(100% + .55rem); min-width: 260px; background: #fff; color: var(--tinta); border: 1px solid var(--borde); border-radius: 14px; box-shadow: 0 22px 44px -18px rgba(20, 20, 50, .45); padding: .4rem; display: flex; flex-direction: column; z-index: 50; animation: mas-abrir .16s ease-out; }
.menu .menu-mas-lista a, .menu .menu-mas-lista .enlace { display: block; width: 100%; padding: .7rem .9rem; border-radius: 10px; color: var(--tinta); opacity: 1; text-decoration: none; font-size: .98rem; text-align: left; }
.menu .menu-mas-lista a:hover, .menu .menu-mas-lista .enlace:hover { background: var(--fondo); text-decoration: none; }
.menu .menu-mas-lista a[aria-current=page] { background: var(--acento-suave); color: var(--acento); font-weight: 600; }
.menu-mas-lista form { margin: .3rem 0 0; padding-top: .3rem; border-top: 1px solid var(--borde); }
.menu .menu-mas-lista .enlace { color: var(--mal); }
.menu-mas-lista .con-tecnologia { color: var(--suave); padding: .35rem .9rem .2rem; opacity: 1; }
@keyframes mas-abrir { from { opacity: 0; transform: translateY(-6px); } }

@media (max-width: 760px) {
  body.con-menu { padding-bottom: calc(72px + env(safe-area-inset-bottom)); }
  .con-menu .menu { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; display: grid; grid-template-columns: repeat(4, 1fr); gap: .2rem; background: #fff; border-top: 1px solid var(--borde); box-shadow: 0 -10px 28px -18px rgba(20, 20, 50, .4); padding: .35rem .4rem calc(.35rem + env(safe-area-inset-bottom)); }
  .con-menu .menu .menu-item { flex-direction: column; justify-content: center; gap: .18rem; padding: .4rem .2rem; font-size: .74rem; font-weight: 600; color: var(--suave); opacity: 1; min-height: 54px; }
  .con-menu .menu .menu-item svg { width: 24px; height: 24px; }
  .con-menu .menu .menu-item:hover { background: none; }
  .con-menu .menu .menu-item[aria-current=page], .con-menu .menu-mas[open] > summary.menu-item, .con-menu .menu-mas.actual > summary.menu-item { color: var(--acento); background: var(--acento-suave); }
  .con-menu .menu-mas { position: static; }
  .con-menu .menu-mas-lista { position: fixed; left: .6rem; right: .6rem; top: auto; bottom: calc(80px + env(safe-area-inset-bottom)); min-width: 0; max-height: calc(100vh - 140px); overflow-y: auto; animation-name: mas-subir; }
  .con-menu .menu .menu-mas-lista a, .con-menu .menu .menu-mas-lista .enlace { padding: .85rem .9rem; font-size: 1rem; }
  @keyframes mas-subir { from { opacity: 0; transform: translateY(10px); } }
}
@media (prefers-reduced-motion: reduce) { .menu-mas-lista { animation: none; } }

/* ── Vida en todas las pantallas (Paul, 27/11/2026): color de la marca, íconos, sombras suaves, toques que responden
      y transiciones rápidas (nada pasa de ~0,35 s). ── */
.tarjeta { animation-duration: .28s; }
.hecho .check { width: 5rem; height: 5rem; line-height: 5rem; font-size: 2.8rem; animation: pop .38s cubic-bezier(.2, 1.5, .4, 1) both, halo .9s ease-out .25s; }
@keyframes halo { from { box-shadow: 0 0 0 0 rgba(18, 184, 134, .45), 0 14px 28px -12px rgba(14, 127, 94, .8); } to { box-shadow: 0 0 0 22px rgba(18, 184, 134, 0), 0 14px 28px -12px rgba(14, 127, 94, .8); } }
.calido { font-size: 1.1rem; font-weight: 600; color: var(--ok); margin: .2rem 0 .8rem; animation: subir .3s ease-out .12s both; }
.calido:empty { display: none; }
.lead { font-size: 1.05rem; color: var(--suave); }
.boton, .boton-grande, .menu-item { position: relative; overflow: hidden; -webkit-tap-highlight-color: transparent; }
.boton:active, .boton-grande:active { transform: scale(.97); transition: transform .08s; }
.boton svg { width: 18px; height: 18px; vertical-align: -3px; margin-right: .3rem; }
.boton.copiado { background: var(--ok-fondo); color: var(--ok); border-color: var(--ok); }
.boton.ancho { width: 100%; padding: .9rem; margin-top: .6rem; }
a.boton-grande { display: block; text-align: center; color: #fff; text-decoration: none; }

/* Íconos grandes y cabeceras con el color del cliente */
.icono-grande { width: 4.4rem; height: 4.4rem; margin: .2rem auto .8rem; border-radius: 22px; display: grid; place-items: center; color: #fff;
  background: var(--marca-fondo, linear-gradient(135deg, var(--marca), color-mix(in srgb, var(--marca) 60%, #000))); box-shadow: 0 14px 28px -14px var(--marca); animation: pop .35s cubic-bezier(.2, 1.5, .4, 1) both; }
.icono-grande svg { width: 2.2rem; height: 2.2rem; }
.cabecera-viva { display: flex; align-items: center; gap: .9rem; margin: -.2rem 0 1rem; }
.cabecera-viva > svg, .cabecera-viva > .avatar { flex: none; }
.cabecera-viva > svg { width: 3rem; height: 3rem; padding: .65rem; border-radius: 16px; color: #fff; background: var(--marca-fondo, var(--marca)); box-shadow: 0 10px 22px -12px var(--marca); }
.cabecera-viva.alerta > svg { background: linear-gradient(135deg, #f59e0b, #c2410c); box-shadow: 0 10px 22px -12px #c2410c; }
.cabecera-viva h1 { margin: 0; font-size: 1.3rem; }
.cabecera-viva p { margin: .15rem 0 0; color: var(--suave); }
.avatar { width: 2.1rem; height: 2.1rem; border-radius: 50%; display: inline-grid; place-items: center; font-size: .78rem; font-weight: 700; color: #fff; text-decoration: none;
  background: var(--marca-fondo, var(--marca)); border: 2px solid #fff; box-shadow: 0 2px 6px -2px rgba(20, 20, 50, .35); animation: pop .3s cubic-bezier(.2, 1.5, .4, 1) calc(var(--i, 0) * 40ms) both; }
.avatar.grande { width: 3.2rem; height: 3.2rem; font-size: 1.1rem; }
.avatar.mas { background: #fff; color: var(--suave); border-color: var(--borde); }

/* Marcar: la hora en un recuadro con la marca */
.hero-marca { margin: -1.2rem -1.2rem 1rem; padding: 1.3rem 1.2rem 1.1rem; border-radius: 18px 18px 0 0; color: var(--marca-texto);
  background: var(--marca-fondo, linear-gradient(135deg, var(--marca), color-mix(in srgb, var(--marca) 60%, #000))); }
.hero-marca .saludo, .hero-marca .nota { color: inherit; opacity: .92; }
.hero-marca .sede { display: inline-flex; align-items: center; gap: .3rem; background: rgba(255, 255, 255, .18); border-radius: 999px; padding: .2rem .7rem; font-weight: 600; margin: .3rem 0 0; color: inherit; }
.hero-marca .sede svg { width: 16px; height: 16px; }
.hero-marca .reloj { color: inherit; }
.opciones-tipo label { transition: transform .12s, box-shadow .15s, border-color .15s; }
.opciones-tipo label:has(input:checked) { border-color: var(--acento); box-shadow: 0 0 0 3px var(--acento-suave); transform: scale(1.02); }

/* Panel: tarjetas con ícono, color e iniciales */
.cajas-vivas { grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); }
.caja-viva { position: relative; overflow: hidden; border-radius: 16px; padding: 1rem; gap: .35rem; box-shadow: 0 10px 26px -20px rgba(20, 20, 50, .5); animation: subir .28s ease-out both; }
.caja-viva::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: currentColor; }
.caja-viva.info { color: var(--info); }
.caja-viva.alerta { color: var(--alerta); }
.caja-viva.mal { color: var(--mal); }
.caja-cabeza { display: flex; align-items: center; gap: .5rem; }
.caja-viva .caja-cabeza span:last-child { color: var(--suave); font-size: .9rem; }
.caja-icono { width: 2.2rem; height: 2.2rem; border-radius: 12px; display: grid; place-items: center; background: color-mix(in srgb, currentColor 12%, #fff); }
.caja-icono svg { width: 1.25rem; height: 1.25rem; }
.caja-viva strong { font-size: 2rem; line-height: 1.1; color: inherit; }
.avatares { display: flex; flex-wrap: wrap; }
.avatares .avatar { margin-right: -.45rem; }
.caja-viva.info .avatar:not(.mas) { background: linear-gradient(135deg, #3b82f6, #1d4ed8); }
.caja-viva.alerta .avatar:not(.mas) { background: linear-gradient(135deg, #f59e0b, #b45309); }
.caja-viva.mal .avatar:not(.mas) { background: linear-gradient(135deg, #f43f5e, #b42318); }
.caja-vacia { color: var(--suave); }
.tabla tbody tr { transition: background .12s; }
.tabla tbody tr:hover { background: color-mix(in srgb, var(--acento) 5%, #fff); }

/* App: instalar paso a paso, aviso de cámara y cámara */
.pantalla-app { animation: subir .25s ease-out both; }
.pantalla-app h1 { font-size: 1.35rem; }
.dispositivo { display: flex; align-items: center; gap: .4rem; font-size: .92rem; background: var(--ok-fondo); color: var(--ok); border-radius: 12px; padding: .55rem .8rem; }
.dispositivo svg { width: 18px; height: 18px; flex: none; }
.pasos-app { list-style: none; padding: 0; margin: 1rem 0; display: grid; gap: .9rem; }
.paso-app { background: #fff; border: 1px solid var(--borde); border-radius: 18px; padding: .9rem; box-shadow: 0 10px 24px -20px rgba(20, 20, 50, .5); animation: subir .28s ease-out calc(var(--i) * 60ms) both; }
.paso-app-texto { display: flex; gap: .7rem; align-items: flex-start; }
.paso-app-texto p { margin: .15rem 0 .6rem; font-size: 1.02rem; line-height: 1.4; }
.paso-num { flex: none; width: 1.8rem; height: 1.8rem; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 700; background: var(--marca-fondo, var(--marca)); }
.dibujo { display: block; width: min(52%, 190px); height: auto; margin: 0 auto; filter: drop-shadow(0 10px 18px rgba(20, 20, 50, .22)); }
.toque { fill: color-mix(in srgb, var(--acento) 14%, transparent); stroke: var(--acento); stroke-width: 2.5; }
.toque-onda { fill: none; stroke: var(--acento); stroke-width: 2; transform-box: fill-box; transform-origin: center; animation: toque 1.4s ease-out infinite; }
@keyframes toque { from { transform: scale(1); opacity: .9; } to { transform: scale(2.1); opacity: 0; } }
.camara .linea-escaneo { position: absolute; left: 12%; right: 12%; height: 3px; top: 20%; border-radius: 3px; background: var(--acento); box-shadow: 0 0 12px var(--acento); animation: escanear 1.8s ease-in-out infinite alternate; }
@keyframes escanear { to { top: 78%; } }
.leido .camara { outline: 4px solid var(--ok); outline-offset: -4px; }

/* Recepción: el QR aparece con un pequeño salto */
.kiosco-qr { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .55); animation: pop .35s cubic-bezier(.2, 1.4, .4, 1) both; }
.kiosco-texto { animation: subir .3s ease-out both; }

@media (prefers-reduced-motion: reduce) {
  .toque-onda, .linea-escaneo, .avatar, .paso-app, .pantalla-app, .caja-viva { animation: none !important; }
}

[hidden] { display: none !important; }
input[type="radio"], input[type="checkbox"] { accent-color: var(--acento); }
