/* El Culto · estilos de las pantallas. Valores copiados de la maqueta aprobada (23/11/2026); no inventar otros.
   Fondo #111111 · texto #FFFFFF · tarjetas #1C1C1C · botones secundarios #2E2E2E · apagado #C4C4C4 · bordes #3A3A3A
   ámbar #FFB547 (texto #111111) · lima #8FD92F solo como fondo con texto #111111 (nunca texto lima). */
* { box-sizing: border-box; }
html, body { margin: 0; }
body {
  background: #111111; color: #FFFFFF; font-family: 'Archivo', system-ui, sans-serif; font-size: 17px; line-height: 1.4;
  -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent;
}
[hidden] { display: none !important; }
a { color: #FFFFFF; }

/* Botones */
.b { font: inherit; cursor: pointer; border: 0; border-radius: 12px; min-height: 50px; padding: 12px 18px; font-weight: 800; font-size: 17px; line-height: 1.2; display: inline-flex; align-items: center; justify-content: center; gap: 8px; text-align: center; box-sizing: border-box; touch-action: manipulation; }
.b:focus-visible, .opt:focus-visible, .inp:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.b:disabled { opacity: 0.6; cursor: default; }
.b1 { background: #8FD92F; color: #111111; }
.b2 { background: transparent; color: #FFFFFF; box-shadow: inset 0 0 0 2px #FFFFFF; }
.b3 { background: #2E2E2E; color: #FFFFFF; }
.bw { width: 100%; }
.bs { min-height: 44px; font-size: 15px; padding: 8px 14px; }

/* Estructura */
.app { min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; }
.cabecera { position: sticky; top: 0; z-index: 1; background: #111111; }
.top { padding: 14px 18px 12px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid #2E2E2E; flex: none; }
.top-titulo { flex: 1; min-width: 0; font-weight: 800; }
.top-iso { width: 34px; height: auto; display: block; }
.scr { flex: 1; width: 100%; max-width: 640px; margin: 0 auto; padding: 18px 16px; display: flex; flex-direction: column; gap: 16px; }
.scr > * { flex: none; }
.scr-centro { justify-content: center; padding-bottom: 36px; }
/* Logo entero (logo-blanco.png, 1282×416): en el ingreso y la invitación, y en una fila arriba del inicio de cada rol (como Kamel).
   El isotipo queda solo en la barra superior (.top-iso), los íconos y el favicon. */
.logo-ingreso { width: 220px; max-width: 70%; height: auto; display: block; }
.fila-logo { display: flex; align-items: center; }
.logo-inicio { width: 130px; max-width: 100%; height: auto; display: block; }

/* Textos */
.h1 { font-size: 26px; font-weight: 800; line-height: 1.15; margin: 0; }
.h2 { font-size: 19px; font-weight: 800; line-height: 1.2; margin: 0; }
.lbl { font-size: 13px; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: #C4C4C4; }
.mut { color: #C4C4C4; font-size: 15px; line-height: 1.4; margin: 0; }
.col { display: flex; flex-direction: column; gap: 10px; }
.campo { display: flex; flex-direction: column; gap: 6px; }
.row { display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; }

/* Tarjetas, campos y avisos */
.card { background: #1C1C1C; border-radius: 16px; padding: 16px; display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.inp { font: inherit; font-size: 22px; font-weight: 600; padding: 12px 14px; border-radius: 12px; border: 2px solid #FFFFFF; background: #111111; color: #FFFFFF; min-height: 56px; box-sizing: border-box; width: 100%; }
.warn { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; background: #FFB547; color: #111111; font-weight: 600; font-size: 16px; line-height: 1.35; }
.okb { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; background: #8FD92F; color: #111111; font-weight: 600; font-size: 16px; line-height: 1.35; }
.info { display: flex; gap: 10px; align-items: flex-start; border-radius: 12px; padding: 12px 14px; box-shadow: inset 0 0 0 2px #FFFFFF; color: #FFFFFF; font-size: 16px; line-height: 1.35; }
.ico { flex: none; }

/* Menú lateral */
.scrim { position: fixed; inset: 0; width: 100%; height: 100%; background: rgba(0, 0, 0, 0.6); border: 0; padding: 0; z-index: 2; cursor: pointer; }
.drawer { position: fixed; top: 0; left: 0; bottom: 0; width: 82%; max-width: 320px; background: #1C1C1C; z-index: 3; padding: 18px 16px; padding-top: max(18px, env(safe-area-inset-top)); box-sizing: border-box; display: flex; flex-direction: column; gap: 12px; overflow-y: auto; box-shadow: 8px 0 24px rgba(0, 0, 0, 0.5); }
.drawer-nombre { font-weight: 800; font-size: 19px; }
.drawer-abajo { margin-top: auto; }
.opt { font: inherit; cursor: pointer; text-align: left; border: 0; border-radius: 12px; padding: 12px 14px; min-height: 56px; background: #2E2E2E; color: #FFFFFF; display: flex; flex-direction: column; justify-content: center; gap: 2px; width: 100%; box-sizing: border-box; }
.opton { background: #FFFFFF; color: #111111; }
.optt { font-weight: 800; font-size: 17px; }
.optg { flex-direction: row; align-items: center; justify-content: space-between; gap: 10px; }
.optflecha { font-size: 17px; flex: none; }
.menu-sub { display: flex; flex-direction: column; gap: 8px; margin-left: 8px; padding-left: 10px; border-left: 2px solid #3A3A3A; }
.drawer-agrupado .drawer-abajo { border-top: 1px solid #3A3A3A; padding-top: 12px; }

/* Franja de «ver como» */
/* «Estás mirando como»: fija arriba, dentro de la cabecera. */
.vercomo { background: #FFB547; color: #111111; padding: 10px 16px; padding-top: max(10px, env(safe-area-inset-top)); display: flex; align-items: center; justify-content: space-between; gap: 10px; flex-wrap: wrap; font-weight: 800; }
.vercomo .b { background: #111111; color: #FFFFFF; }

/* Tablet (etapa 3: maqueta aprobada; teclado más grande que en la maqueta). En horizontal, datos y teclado lado a lado;
   en vertical (768 px), el teclado abajo. */
.tablet { flex: 1; display: flex; flex-wrap: wrap; align-items: center; justify-content: center; width: 100%; max-width: 1100px; margin: 0 auto; font-size: 18px; }
.tablet-izq { flex: 1 1 400px; min-width: 0; padding: 28px; display: flex; flex-direction: column; gap: 20px; justify-content: center; }
.tablet-col { gap: 18px; }
.tablet-logo { width: 200px; max-width: 60%; height: auto; display: block; }
.tablet-texto { font-size: 46px; font-weight: 800; line-height: 1.05; margin: 0; }
.tablet-franja { font-size: 20px; }
.tablet-dni { min-height: 84px; border-radius: 16px; box-shadow: inset 0 0 0 3px #FFFFFF; display: flex; align-items: center; padding: 0 22px; font-size: 40px; font-weight: 800; letter-spacing: 0.08em; overflow-wrap: anywhere; }
.tablet-teclado { flex: 1 1 400px; min-width: 0; padding: 28px; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; align-content: center; }
.key { font: inherit; cursor: pointer; border: 0; border-radius: 16px; min-height: 96px; font-size: 38px; font-weight: 800; background: #2E2E2E; color: #FFFFFF; touch-action: manipulation; }
.key:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.key:disabled { opacity: 0.6; cursor: default; }
.keyalt { font-size: 22px; background: #1C1C1C; box-shadow: inset 0 0 0 2px #FFFFFF; }
.keyok { font-size: 22px; background: #8FD92F; color: #111111; }
.tres { border-radius: 22px; padding: 26px; display: flex; flex-direction: column; gap: 14px; }
.tresok { background: #8FD92F; color: #111111; }
.treswarn { background: #1C1C1C; color: #FFFFFF; box-shadow: inset 0 0 0 4px #FFB547; }
.tres-titulo { font-size: 38px; font-weight: 800; line-height: 1.1; }
.tres-texto { font-size: 22px; line-height: 1.35; }
.tres-aviso { background: #111111; color: #FFFFFF; border-radius: 14px; padding: 14px 16px; display: flex; gap: 12px; align-items: flex-start; font-size: 19px; line-height: 1.35; }
.tablet-listo { min-height: 64px; font-size: 22px; }
@media (max-width: 480px) { .tablet-texto { font-size: 34px; } .tres-titulo { font-size: 30px; } }

/* Etapa 1 · Alumnos (clases de la maqueta aprobada el 23/11/2026, misma paleta) */
.wrap { display: flex; flex-wrap: wrap; gap: 8px; }
.big { font-size: 22px; font-weight: 800; line-height: 1.2; }
.sg { font: inherit; min-height: 44px; padding: 8px 14px; border-radius: 10px; border: 0; background: #2E2E2E; color: #FFFFFF; font-weight: 600; font-size: 15px; cursor: pointer; touch-action: manipulation; }
.sg:focus-visible, .rowb:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.sgw { background: #FFFFFF; color: #111111; font-weight: 800; }
.pill { display: inline-flex; align-items: center; gap: 6px; border-radius: 999px; padding: 5px 12px; font-size: 14px; font-weight: 800; line-height: 1.2; flex: none; }
.pok { background: #8FD92F; color: #111111; }
.pwarn { background: #FFB547; color: #111111; }
.pnone { background: #3A3A3A; color: #FFFFFF; }
.pwhite { background: #FFFFFF; color: #111111; }
.lista { display: flex; flex-direction: column; }
.rowb { font: inherit; cursor: pointer; text-align: left; border: 0; border-top: 1px solid #3A3A3A; background: transparent; color: #FFFFFF; padding: 12px 0; min-height: 64px; display: flex; align-items: center; gap: 12px; width: 100%; box-sizing: border-box; }
.rowb-texto { display: flex; flex-direction: column; gap: 2px; flex: 1; min-width: 0; font-weight: 600; }
.li { display: flex; flex-direction: column; gap: 6px; padding: 12px 0; border-top: 1px solid #3A3A3A; }
.lista > :first-child { border-top: 0; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 16px; }
.kv > span:first-child { color: #C4C4C4; flex: none; }
.kv > span:last-child { text-align: right; font-weight: 600; overflow-wrap: anywhere; }
.kv > span.nw { overflow-wrap: normal; }
.fila-av { display: flex; align-items: center; gap: 14px; }
.av { width: 72px; height: 72px; border-radius: 50%; background: #FFFFFF; color: #111111; display: flex; align-items: center; justify-content: center; font-size: 26px; font-weight: 800; flex: none; }
.av-foto { object-fit: cover; background: #2E2E2E; }
.avs { width: 44px; height: 44px; border-radius: 50%; background: #2E2E2E; color: #FFFFFF; display: flex; align-items: center; justify-content: center; font-size: 16px; font-weight: 800; flex: none; }
.bar { height: 14px; background: #2E2E2E; border-radius: 7px; overflow: hidden; }
.barf { height: 14px; border-radius: 7px; background: #8FD92F; width: 0; }
.optd { font-size: 14px; }
textarea.inp { resize: vertical; font-size: 18px; line-height: 1.35; }

/* Etapa 2 · Grilla (clases de la maqueta aprobada; mismos colores de la paleta) */
.g { display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 16px; }
.grilla { display: grid; grid-template-columns: 46px repeat(5, minmax(0, 1fr)); gap: 5px; align-items: center; }
.gh { font-size: 13px; font-weight: 800; text-align: center; line-height: 1.2; }
.gt { font-weight: 800; font-size: 14px; }
.gc { font: inherit; cursor: pointer; border: 0; min-height: 46px; border-radius: 8px; font-weight: 800; font-size: 15px; padding: 0; width: 100%; touch-action: manipulation; }
.gc:focus-visible { outline: 3px solid #FFFFFF; outline-offset: 2px; }
.gfull { background: #2E2E2E; color: #FFFFFF; box-shadow: inset 0 0 0 1px #C4C4C4; }
.gfree { background: #8FD92F; color: #111111; }
.gsel { outline: 3px solid #FFFFFF; outline-offset: 1px; }
.gclosed { min-height: 46px; border-radius: 8px; background: repeating-linear-gradient(45deg, #1C1C1C, #1C1C1C 6px, #2E2E2E 6px, #2E2E2E 12px); display: flex; align-items: center; justify-content: center; color: #C4C4C4; font-size: 12px; font-weight: 600; }
.leyenda { gap: 14px; font-size: 14px; align-items: center; }
.ley { display: inline-flex; align-items: center; gap: 6px; }
.cuad { width: 22px; min-height: 16px; height: 16px; border-radius: 4px; display: inline-block; }
.opt-fija { cursor: default; }

/* Etapa 3 · Asistencia en la ficha (barras de la maqueta) y botones Presente / Ausente */
.barras { display: flex; gap: 8px; }
.hbc { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 4px; }
.hbc-v { font-size: 13px; font-weight: 800; }
.hbc-t { font-size: 12px; color: #C4C4C4; }
.hbt { height: 70px; width: 100%; display: flex; align-items: flex-end; background: #2E2E2E; border-radius: 5px 5px 0 0; }
.hb { width: 100%; border-radius: 5px 5px 0 0; background: #FFFFFF; height: 0; }
.dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.dos .sg { min-height: 48px; }
.nw { white-space: nowrap; overflow-wrap: normal; }

/* Etapa 4 · Ausencias, recuperos y cambios (clases de la maqueta aprobada; mismos colores de la paleta) */
.full { min-height: 50px; border-radius: 12px; background: #1C1C1C; color: #C4C4C4; display: flex; align-items: center; justify-content: space-between; padding: 0 18px; font-weight: 600; font-size: 16px; box-shadow: inset 0 0 0 1px #3A3A3A; }
.bsel { background: #FFFFFF; color: #111111; }
.entre { justify-content: space-between; }
.alinicio { align-self: flex-start; }
.resumen { font-weight: 600; }

/* Etapa 6 · Abonos y pagos (clases de las maquetas aprobadas; mismos colores de la paleta) */
.monto { font-size: 44px; font-weight: 800; line-height: 1; }

/* Etapa 8 · Horas de la profe (maqueta aprobada: − / + de 56 px y las horas en grande) */
.paso-fila { display: flex; align-items: center; gap: 14px; }
.paso { width: 56px; font-size: 26px; padding: 0; }
.horas-adj { font-size: 40px; font-weight: 800; min-width: 96px; text-align: center; }

/* Etapa 10 · Panel (maqueta aprobada; es de lectura: sin lima). Barras blancas, ámbar para lo flojo o lo que falta y gris
   apagado para lo que resta. */
.barw { height: 14px; border-radius: 7px; background: #FFFFFF; width: 0; }
.bara { height: 14px; border-radius: 7px; background: #FFB547; width: 0; }
.barg { height: 14px; border-radius: 7px; background: #C4C4C4; width: 0; }
.pnl-horas { gap: 4px; }
.pnl-horas .hbt { height: 110px; }
.pnl-horas .hbc-v { font-size: 11px; line-height: 1.15; display: flex; flex-direction: column; align-items: center; }
.pnl-horas .hbc-t { font-size: 13px; font-weight: 800; color: #FFFFFF; }
.hbweak { background: #FFB547; }
.pnl-resultado { font-size: 20px; }
.pnl-deuda { display: flex; align-items: center; gap: 8px; }
/* En el panel el texto de la izquierda se achica y baja de renglón: «Lunes, miércoles y viernes» + «41 de 165 · 25 %» no
   entran juntos en 375 px. */
.pnl .kv > span:first-child { flex: 1 1 auto; min-width: 0; }
.pnl .kv > strong { flex: none; text-align: right; }
/* Etapa 10b · «Mensaje para WhatsApp» es un enlace con forma de botón (abre wa.me). Los avisos del alumno: título y texto. */
a.b { text-decoration: none; }
.aviso-t { font-weight: 800; }
select.inp { font-size: 18px; }
.col-8 { gap: 8px; }
.card-junta { gap: 0; }
.aviso-card { gap: 4px; }
.hito-t { font-weight: 600; flex: 1; }

/* CULTO-11 · invitación personal y link de la app (maqueta aprobada el 26/11/2026). */
.wa { background: #FFFFFF; color: #111111; border-radius: 14px; padding: 12px 14px; font-size: 15px; line-height: 1.4; white-space: pre-line; overflow-wrap: anywhere; }
.link { font-size: 20px; font-weight: 800; overflow-wrap: anywhere; }
