/* Portal de acudientes: estilos compartidos (ingreso, aviso de privacidad, panel y solicitud de datos).
   Móvil primero. Paleta tomada del escudo (azul #0456A7); cada par de colores de texto cumple contraste 4,5:1.
   El panel (ver.php) cambia de vista con la barra inferior; sin JavaScript se ven todas las vistas seguidas. */

:root {
  --tinta: #0F2A47;
  --cuerpo: #3B4B5F;
  --tenue: #5A6B80;
  --azul: #0456A7;
  --azul-oscuro: #034482;
  --azul-claro: #E8F1FB;
  --fondo: #F3F6FA;
  --borde: #DCE3EC;
  --borde-campo: #8FA3BA;
  --borde-suave: #E6ECF3;
  --rojo: #9A1B12;
  --rojo-fondo: #FDECEA;
  --rojo-borde: #F2B8B2;
  --ambar: #8A4B00;
  --ambar-fondo: #FFF4DB;
  --ambar-borde: #E8CF8A;
  --verde: #0B6B43;
  --verde-fondo: #E4F5EC;
  --verde-borde: #B7DEC8;
  --teal: #0B5B57;
  --teal-fondo: #E3F4F2;
}

*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  background: var(--fondo);
  color: var(--tinta);
  font-family: 'Plus Jakarta Sans', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
h1, h2, h3, p, ul, ol { margin: 0; padding: 0; }
ul, ol { list-style: none; }
a { color: var(--azul); }
a:hover { color: var(--azul-oscuro); }
img { max-width: 100%; }
:focus-visible { outline: 3px solid var(--azul); outline-offset: 2px; }
.solo-lectores {
  position: absolute !important; width: 1px; height: 1px; margin: -1px; padding: 0; border: 0;
  overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap;
}
.ico { width: 22px; height: 22px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.ico-sm { width: 18px; height: 18px; }
.ico-relleno { fill: currentColor; stroke: none; }

/* ── Botones, fichas y tarjetas ─────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 48px; padding: 0 18px; border: 1.5px solid transparent; border-radius: 12px;
  font: inherit; font-size: 16px; font-weight: 700; line-height: 1.2; text-align: center; text-decoration: none; cursor: pointer;
}
.btn-principal { background: var(--azul); color: #FFFFFF; }
.btn-principal:hover { background: var(--azul-oscuro); color: #FFFFFF; }
.btn-contorno { background: #FFFFFF; border-color: var(--azul); color: var(--azul); }
.btn-contorno:hover { background: var(--azul-claro); color: var(--azul-oscuro); }
.btn-contorno-rojo { background: #FFFFFF; border-color: var(--rojo); color: var(--rojo); }
.btn-contorno-rojo:hover { background: var(--rojo-fondo); color: var(--rojo); }
.btn-bloque { width: 100%; }
.btn-grande { min-height: 56px; font-size: 18px; border-radius: 14px; }
.btn[disabled] { opacity: .6; cursor: default; }

.tarjeta { background: #FFFFFF; border: 1px solid var(--borde); border-radius: 16px; }
.chip {
  display: inline-flex; align-items: center; min-height: 24px; padding: 0 10px; border-radius: 999px;
  font-size: 13px; font-weight: 700; line-height: 1.2; white-space: nowrap;
}
.chip-rojo, .nivel-bajo { background: var(--rojo-fondo); color: var(--rojo); }
.chip-ambar, .nivel-basico { background: var(--ambar-fondo); color: var(--ambar); }
.chip-verde, .nivel-superior { background: var(--verde-fondo); color: var(--verde); }
.chip-teal, .nivel-alto { background: var(--teal-fondo); color: var(--teal); }
.chip-azul { background: var(--azul-claro); color: var(--azul); }
.enlace {
  display: inline; padding: 0; border: 0; background: none; color: var(--azul); font: inherit; font-weight: 700;
  text-decoration: underline; cursor: pointer;
}

/* ── Páginas de entrada: ingreso, aviso de privacidad ─────────────────────── */
.pagina-ingreso { background: #FFFFFF; }
.ingreso { display: flex; flex-direction: column; width: 100%; max-width: 440px; min-height: 100vh; margin: 0 auto; padding: 48px 24px 28px; background: #FFFFFF; }
.ingreso-marca img { display: block; width: 72px; height: 72px; }
.ingreso-marca h1 { margin: 20px 0 6px; font-size: 28px; line-height: 1.15; font-weight: 800; letter-spacing: -.01em; }
.ingreso-marca p { color: var(--cuerpo); font-size: 16px; }
.ingreso-form { display: flex; flex-direction: column; gap: 18px; margin: 28px 0; }
.campo label { display: block; margin-bottom: 8px; font-size: 15px; font-weight: 700; }
.campo input, .campo select, .campo textarea {
  display: block; width: 100%; min-height: 52px; padding: 0 16px; border: 1.5px solid var(--borde-campo); border-radius: 12px;
  background: #FFFFFF; color: var(--tinta); font: inherit; font-size: 18px;
}
.campo select { padding-right: 40px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 16px; }
.campo textarea { min-height: 120px; padding: 12px 16px; font-size: 16px; line-height: 1.5; resize: vertical; }
.campo input:focus, .campo select:focus, .campo textarea:focus { border-color: var(--azul); outline: 3px solid var(--azul-claro); outline-offset: 0; }
.campo .ayuda { margin-top: 6px; color: var(--tenue); font-size: 14px; line-height: 1.4; }
.campo-pin { position: relative; }
.campo-pin input { padding-right: 96px; }
.campo-pin .mostrar {
  position: absolute; top: 4px; right: 4px; min-width: 44px; height: 44px; padding: 0 14px; border: 0; border-radius: 10px;
  background: transparent; color: var(--azul); font: inherit; font-size: 15px; font-weight: 700; cursor: pointer;
}
.alerta { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border-radius: 12px; font-size: 15px; font-weight: 600; line-height: 1.4; }
.alerta .ico { margin-top: 1px; }
.alerta-error { background: var(--rojo-fondo); color: var(--rojo); }
.alerta-exito { background: var(--verde-fondo); color: var(--verde); }
.ayuda-pin { display: flex; flex-direction: column; gap: 12px; margin-top: auto; padding: 16px; border-radius: 16px; background: var(--fondo); color: var(--cuerpo); font-size: 15px; line-height: 1.45; }
.ayuda-pin strong { color: var(--tinta); }
.ingreso-pie { margin-top: 16px; color: var(--tenue); font-size: 14px; text-align: center; }
.resumen-legal { margin-top: 24px; padding: 16px; border-radius: 14px; background: var(--fondo); color: var(--cuerpo); font-size: 16px; line-height: 1.55; }
.aceptar-fila { display: flex; align-items: flex-start; gap: 14px; margin: 20px 0 8px; padding: 14px; border: 1.5px solid var(--borde-campo); border-radius: 14px; cursor: pointer; font-size: 16px; line-height: 1.5; }
.aceptar-fila input { flex: none; width: 24px; height: 24px; margin: 2px 0 0; accent-color: var(--azul); }
.acciones-pila { display: flex; flex-direction: column; gap: 12px; margin-top: 16px; }
@media (min-width: 520px) {
  .pagina-ingreso { background: var(--fondo); }
  .ingreso { min-height: 0; margin: 40px auto; padding: 40px 32px 32px; border: 1px solid var(--borde); border-radius: 20px; }
  .ingreso-ancho { max-width: 520px; }
}

/* ── Estructura del panel ─────────────────────────────────────────────── */
.app { max-width: 720px; min-height: 100vh; margin: 0 auto; }
.cabecera {
  position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between;
  height: 64px; padding: 0 8px 0 16px; background: #FFFFFF; border-bottom: 1px solid var(--borde);
}
.marca { display: flex; align-items: center; gap: 10px; font-size: 17px; font-weight: 800; }
.marca img { display: block; width: 36px; height: 36px; }
.cabecera-accion { display: flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 12px; color: var(--cuerpo); }
.cabecera-accion:hover { background: var(--fondo); color: var(--tinta); }
.cabecera-volver { display: flex; align-items: center; gap: 6px; min-height: 48px; padding: 0 12px; border-radius: 12px; color: var(--azul); font-size: 16px; font-weight: 700; text-decoration: none; }
.principal { padding: 16px 16px 104px; }
.vista { display: flex; flex-direction: column; gap: 20px; }
.js .vista { display: none; }
.js .vista.activa { display: flex; }
.vista > h2 { font-size: 24px; line-height: 1.2; font-weight: 800; }
.vista > h2:focus { outline: none; }
.grupo { display: flex; flex-direction: column; gap: 10px; }
.grupo > h3, .grupo-titulo h3 { font-size: 17px; line-height: 1.3; font-weight: 800; }
.grupo-titulo { display: flex; align-items: center; gap: 8px; }
.contador { display: inline-flex; align-items: center; justify-content: center; min-width: 24px; height: 24px; padding: 0 7px; border-radius: 999px; background: var(--tinta); color: #FFFFFF; font-size: 13px; font-weight: 800; }
.subtitulo { color: var(--tenue); font-size: 14px; line-height: 1.4; }
.vacio { padding: 20px 16px; color: var(--tenue); font-size: 15px; text-align: center; }

.nav-inferior {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; width: 100%; max-width: 720px; margin: 0 auto;
  padding: 6px 4px max(8px, env(safe-area-inset-bottom)); background: #FFFFFF; border-top: 1px solid var(--borde);
}
.nav-inferior a {
  flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 56px;
  color: var(--tenue); font-size: 13px; font-weight: 600; text-decoration: none;
}
.nav-inferior .pildora { display: flex; align-items: center; justify-content: center; width: 56px; height: 28px; border-radius: 999px; }
.nav-inferior a[aria-current="page"] { color: var(--azul); font-weight: 800; }
.nav-inferior a[aria-current="page"] .pildora { background: var(--azul-claro); }
@media (min-width: 720px) {
  .nav-inferior { position: sticky; top: 64px; bottom: auto; padding: 0 8px; border-top: 0; border-bottom: 1px solid var(--borde); }
  .nav-inferior a { flex-direction: row; gap: 8px; min-height: 52px; font-size: 15px; }
  .nav-inferior .pildora { width: auto; height: auto; background: none !important; }
  .nav-inferior a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--azul); }
  .principal { padding-bottom: 48px; }
}

/* ── Inicio ───────────────────────────────────────────────────────────── */
.estudiante { display: flex; align-items: center; gap: 12px; padding: 14px; }
.avatar { display: flex; flex: none; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-size: 17px; font-weight: 800; }
.estudiante-datos { min-width: 0; }
.estudiante-nombre { font-size: 18px; line-height: 1.25; font-weight: 800; }
.estudiante-linea { color: var(--tenue); font-size: 14px; line-height: 1.35; }
.aviso { display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid transparent; border-radius: 16px; }
.aviso-ambar { background: var(--ambar-fondo); border-color: var(--ambar-borde); }
.aviso-ambar .ico { color: var(--ambar); }
.aviso-rojo { background: var(--rojo-fondo); border-color: var(--rojo-borde); }
.aviso-rojo .ico { color: var(--rojo); }
.aviso-verde { background: var(--verde-fondo); border-color: var(--verde-borde); }
.aviso-verde .ico { color: var(--verde); }
.aviso-fila { flex-direction: row; align-items: center; gap: 12px; }
.aviso-cab { display: flex; align-items: flex-start; gap: 12px; }
.aviso-cab > .ico { margin-top: 1px; }
.aviso-titulo { font-size: 16px; line-height: 1.3; font-weight: 700; }
.aviso-sub { margin-top: 2px; color: var(--cuerpo); font-size: 14px; line-height: 1.4; }
.aviso-monto { margin-top: 2px; color: var(--rojo); font-size: 22px; line-height: 1.2; font-weight: 800; }
.aviso-texto { flex: 1; min-width: 0; }
.error-inline { color: var(--rojo); font-size: 14px; font-weight: 600; }
.casillas { display: flex; gap: 12px; }
.casilla { display: flex; flex: 1; flex-direction: column; gap: 2px; min-width: 0; padding: 14px; color: var(--tinta); text-decoration: none; }
.casilla:hover { color: var(--tinta); border-color: var(--azul); }
.casilla-etiqueta { color: var(--tenue); font-size: 14px; font-weight: 600; }
.casilla-valor { font-size: 26px; line-height: 1.15; font-weight: 800; }
.casilla-detalle { color: var(--cuerpo); font-size: 14px; line-height: 1.35; }
.fila-enlace { display: flex; align-items: center; gap: 12px; min-height: 64px; padding: 12px 14px; color: var(--tinta); text-decoration: none; }
.fila-enlace:hover { color: var(--tinta); border-color: var(--azul); }
.fila-enlace .ico:first-child { color: var(--azul); }
.fila-enlace .ico:last-child { color: var(--tenue); }
.fila-texto { flex: 1; min-width: 0; }
.fila-titulo { font-size: 15px; line-height: 1.3; font-weight: 700; }
.fila-sub { color: var(--tenue); font-size: 14px; line-height: 1.35; }

/* ── Notas ────────────────────────────────────────────────────────────── */
.materias { display: flex; flex-direction: column; gap: 10px; }
details.materia, details.desplegable { background: #FFFFFF; border: 1px solid var(--borde); border-radius: 16px; overflow: hidden; }
details > summary { list-style: none; cursor: pointer; }
details > summary::-webkit-details-marker { display: none; }
.materia > summary, .desplegable > summary { display: flex; align-items: center; gap: 10px; min-height: 68px; padding: 10px 14px; }
.materia-nombre { font-size: 16px; line-height: 1.3; font-weight: 700; }
.materia-sub { color: var(--tenue); font-size: 14px; line-height: 1.3; }
.materia-sub .alerta-baja { color: var(--rojo); font-weight: 700; }
.materia-ultima { text-align: right; }
.nota-num { font-size: 22px; line-height: 1; font-weight: 800; }
.nota-etiqueta { display: block; margin-bottom: 4px; color: var(--tenue); font-size: 12px; font-weight: 600; }
.chevron { color: var(--tenue); transition: transform .15s; }
details[open] > summary .chevron { transform: rotate(180deg); }
.actividad { display: flex; align-items: center; gap: 8px; min-height: 52px; padding: 6px 14px; border-top: 1px solid var(--borde-suave); }
.actividad-texto { flex: 1; min-width: 0; }
.actividad-nombre { font-size: 15px; line-height: 1.3; font-weight: 600; }
.actividad-sub { color: var(--tenue); font-size: 14px; line-height: 1.3; }
.actividad .nota-num { font-size: 17px; }
.escala { display: flex; flex-direction: column; gap: 6px; }
.escala h3 { color: var(--tenue); font-size: 14px; line-height: 1.4; font-weight: 700; }
.escala-fichas { display: flex; flex-wrap: wrap; gap: 6px; }
.escala-fichas .chip { min-height: 28px; }
.bloque-titulo { padding: 10px 14px 2px; color: var(--azul); font-size: 14px; font-weight: 800; }

/* ── Pagos ────────────────────────────────────────────────────────────── */
.saldo { display: flex; flex-direction: column; gap: 2px; padding: 16px; border: 1px solid var(--rojo-borde); border-radius: 16px; background: var(--rojo-fondo); }
.saldo-cab { display: flex; align-items: center; gap: 8px; color: var(--rojo); }
.saldo-cab h3 { color: var(--tinta); font-size: 16px; font-weight: 700; }
.saldo-total { color: var(--rojo); font-size: 36px; line-height: 1.2; font-weight: 800; }
.saldo-meses { color: var(--cuerpo); font-size: 15px; line-height: 1.4; }
.saldo details { margin-top: 12px; }
.saldo-ok { display: flex; align-items: flex-start; gap: 12px; padding: 16px; border: 1px solid var(--verde-borde); border-radius: 16px; background: var(--verde-fondo); }
.saldo-ok .ico { margin-top: 1px; color: var(--verde); }
.como-pagar { padding: 12px 0 0; color: var(--cuerpo); font-size: 15px; line-height: 1.5; }
.como-pagar p + p { margin-top: 8px; }
.como-pagar .btn { margin-top: 12px; }
.fila-pago { display: flex; align-items: center; gap: 12px; min-height: 68px; padding: 10px 14px; background: #FFFFFF; border: 1px solid var(--borde); border-radius: 16px; }
.fila-pago-corta { min-height: 56px; padding: 8px 14px; }
.fila-pago-texto { flex: 1; min-width: 0; }
.fila-pago-mes { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 16px; line-height: 1.3; font-weight: 700; }
.fila-pago-sub { color: var(--tenue); font-size: 14px; line-height: 1.3; }
.fila-pago-monto { text-align: right; }
.fila-pago-monto small { display: block; color: var(--tenue); font-size: 13px; line-height: 1.2; }
.fila-pago-monto strong { font-size: 18px; line-height: 1.3; font-weight: 800; }
.pagados { display: flex; flex-direction: column; }
.pagados .actividad:first-child { border-top: 1px solid var(--borde-suave); }
.pagado-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 48px; padding: 6px 14px; border-top: 1px solid var(--borde-suave); font-size: 15px; }
.pagado-fila span:last-child { color: var(--tenue); font-size: 14px; }

/* ── Asistencia ───────────────────────────────────────────────────────── */
.asist-cifras { display: flex; gap: 12px; }
.asist-cifra { display: flex; flex: 1; flex-direction: column; align-items: center; gap: 2px; padding: 16px 8px; text-align: center; }
.asist-cifra strong { font-size: 32px; line-height: 1.1; font-weight: 800; }
.asist-cifra span { color: var(--cuerpo); font-size: 14px; }
.cifra-verde { color: var(--verde); }
.cifra-rojo { color: var(--rojo); }
.cifra-ambar { color: var(--ambar); }
.lista-avisos > li { padding: 12px 14px; border-top: 1px solid var(--borde-suave); }
.lista-avisos > li:first-child { border-top: 0; }
.lista-avisos p { font-size: 15px; line-height: 1.4; }
.lista-avisos small { display: block; margin-top: 2px; color: var(--tenue); font-size: 14px; }

/* ── Más ──────────────────────────────────────────────────────────────── */
.comunicado > summary, .cita-fila { min-height: 64px; }
.comunicado > summary { display: flex; align-items: center; gap: 10px; padding: 10px 14px; }
.comunicado-cuerpo { padding: 0 14px 14px; color: var(--cuerpo); font-size: 15px; line-height: 1.55; }
.cita-fila { display: flex; flex-direction: column; gap: 8px; padding: 12px 14px; border-top: 1px solid var(--borde-suave); }
.cita-fila:first-child { border-top: 0; }
.cita-fila .btn { align-self: flex-start; min-height: 44px; }
.cita-cab { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.cita-titulo { font-size: 15px; font-weight: 700; line-height: 1.3; }
.cita-sub { color: var(--cuerpo); font-size: 14px; line-height: 1.4; }
.avisos-celular { display: flex; flex-direction: column; gap: 12px; padding: 16px; }
.avisos-celular h3 { font-size: 17px; font-weight: 800; }
.avisos-estado { display: flex; align-items: flex-start; gap: 10px; color: var(--cuerpo); font-size: 15px; line-height: 1.45; }
.avisos-ayuda { padding: 14px; border-radius: 12px; background: var(--azul-claro); color: var(--tinta); font-size: 15px; line-height: 1.5; }
.avisos-ayuda ol { display: flex; flex-direction: column; gap: 8px; padding-left: 20px; list-style: decimal; }
.avisos-ayuda .ico { display: inline-block; vertical-align: -5px; }
.lista-enlaces { overflow: hidden; }
.lista-enlaces a, .lista-enlaces button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 56px; padding: 10px 14px; border: 0; border-top: 1px solid var(--borde-suave); background: transparent; color: var(--tinta); font: inherit; font-size: 15px; font-weight: 600; text-align: left; text-decoration: none; cursor: pointer; }
.lista-enlaces > :first-child { border-top: 0; }
.lista-enlaces .ico:first-child { color: var(--azul); }
.lista-enlaces .ico:last-child { margin-left: auto; color: var(--tenue); }
.pie-colegio { color: var(--tenue); font-size: 14px; line-height: 1.5; text-align: center; }

/* ── Solicitud de datos ───────────────────────────────────────────────── */
.formulario { display: flex; flex-direction: column; gap: 18px; padding: 16px; }
.formulario p { color: var(--cuerpo); font-size: 15px; line-height: 1.55; }
.formulario #msg-box:empty { display: none; }
.solicitud { padding: 14px; border-top: 1px solid var(--borde-suave); }
.solicitud:first-child { border-top: 0; }
.solicitud-cab { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; }
.solicitud-cab strong { font-size: 15px; }
.solicitud p { color: var(--cuerpo); font-size: 15px; line-height: 1.5; }
.solicitud small { display: block; margin-top: 4px; color: var(--tenue); font-size: 14px; }
.respuesta { margin-top: 8px; padding: 10px 12px; border-radius: 10px; background: var(--azul-claro); font-size: 15px; line-height: 1.45; }
.respuesta strong { display: block; color: var(--azul); font-size: 14px; }

/* ── Recomendar a un estudiante (descuento por recomendado) ───────────── */
.btn-texto { min-height: 48px; padding: 0 14px; border: 0; background: transparent; color: var(--azul); font: inherit; font-size: 15px; font-weight: 700; text-decoration: underline; cursor: pointer; }
.ref-aviso { position: relative; display: flex; flex-direction: column; gap: 12px; padding: 14px; border: 1px solid #B9D3EE; border-radius: 16px; background: var(--azul-claro); }
.ref-aviso-cab { display: flex; align-items: flex-start; gap: 12px; padding-right: 36px; }
.ref-aviso-cab > .ico { margin-top: 1px; color: var(--azul); }
.ref-cerrar { position: absolute; top: 4px; right: 4px; display: flex; align-items: center; justify-content: center; width: 44px; height: 44px; padding: 0; border: 0; border-radius: 12px; background: transparent; color: var(--tenue); cursor: pointer; }
.ref-cerrar:hover { background: rgba(4, 86, 167, .08); color: var(--tinta); }
.ref-aviso-acciones { display: flex; align-items: center; gap: 10px; }
.ref-aviso-acciones .btn { flex: 1; }

.ref-tarjeta { overflow: hidden; }
.ref-cab { display: flex; align-items: flex-start; gap: 14px; padding: 16px; border-bottom: 1px solid #B9D3EE; background: var(--azul-claro); }
.ref-insignia { flex: none; display: flex; flex-direction: column; align-items: center; justify-content: center; width: 60px; height: 60px; border-radius: 50%; background: var(--azul); color: #FFFFFF; }
.ref-insignia strong { font-size: 20px; line-height: 1; font-weight: 800; }
.ref-insignia span { margin-top: 2px; font-size: 13px; line-height: 1; font-weight: 700; }
.ref-titulo { font-size: 17px; line-height: 1.3; font-weight: 800; }
.ref-texto { margin-top: 4px; color: var(--cuerpo); font-size: 15px; line-height: 1.45; }
.ref-bloque { padding: 16px; border-bottom: 1px solid var(--borde-suave); }
.ref-bloque h4 { margin: 0; font-size: 15px; line-height: 1.3; font-weight: 800; }
.ref-nota { margin: 2px 0 8px; color: var(--tenue); font-size: 14px; line-height: 1.4; }
.ref-fila { display: flex; align-items: center; justify-content: space-between; gap: 8px; min-height: 44px; border-top: 1px solid var(--borde-suave); font-size: 15px; }
.ref-fila > span { display: flex; align-items: center; gap: 8px; }
.ref-fila strong { font-size: 16px; font-weight: 800; }
.ref-ahorro { color: var(--verde); }
.ref-pasos { display: flex; gap: 10px; margin-top: 12px; }
.ref-pasos li { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 6px; }
.ref-pasos strong { font-size: 14px; line-height: 1.3; font-weight: 700; }
.ref-pasos li > span:last-child { color: var(--cuerpo); font-size: 13px; line-height: 1.4; }
.ref-num { display: flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--azul-claro); color: var(--azul); font-size: 14px; font-weight: 800; }
.ref-accion { display: flex; flex-direction: column; gap: 12px; }
.ref-etq { margin: 0 0 6px; font-weight: 600; }
.ref-pie { margin: 6px 0 0; }
.ref-codigo { display: flex; align-items: center; justify-content: space-between; gap: 8px; padding: 4px 4px 4px 16px; border: 1.5px solid var(--borde-campo); border-radius: 12px; background: #FFFFFF; }
.ref-codigo strong { font-size: 20px; line-height: 1.2; font-weight: 800; letter-spacing: .04em; }
.ref-copiar { min-height: 44px; padding: 0 14px; border-radius: 10px; font-size: 15px; gap: 8px; }
.ref-condiciones > summary { display: flex; align-items: center; gap: 10px; min-height: 56px; padding: 10px 16px; font-size: 15px; font-weight: 800; }
.ref-condiciones > summary > span { flex: 1; }
.ref-lista { display: flex; flex-direction: column; gap: 10px; padding: 0 16px 16px; color: var(--cuerpo); font-size: 15px; line-height: 1.5; }
.ref-lista li { display: flex; gap: 10px; }
.ref-lista .ico { width: 18px; height: 18px; margin-top: 3px; color: var(--verde); }
.ref-volver { align-self: flex-start; margin: -8px 0 -8px -12px; }
.ref-intro { display: flex; flex-direction: column; gap: 8px; }
.ref-intro .subtitulo { color: var(--cuerpo); font-size: 16px; line-height: 1.5; }
.ref-mensaje { padding: 16px; }
.ref-mensaje > h3 { margin: 0 0 8px; }
.ref-burbuja { padding: 14px; border-radius: 16px 16px 4px 16px; background: var(--azul-claro); font-size: 16px; line-height: 1.5; }
.ref-nb { white-space: nowrap; }
.ref-privacidad { display: flex; align-items: flex-start; gap: 10px; color: var(--tenue); font-size: 14px; line-height: 1.4; }
.ref-privacidad .ico { width: 18px; height: 18px; margin-top: 1px; }

@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}
