/* Estilos de las páginas de acceso y moderación de Epikrisis (misma paleta que la app: azul cielo y pizarra, tranquila).
 * Para cambiar los colores, edite solo las variables de :root. */
@import url('https://fonts.googleapis.com/css2?family=Fraunces:opsz,wght@9..144,400;9..144,500;9..144,600&family=Plus+Jakarta+Sans:wght@400;500;600;700&family=JetBrains+Mono:wght@500;700&display=swap');
:root {
  --color-oscuro: #1e293b;      /* títulos */
  --color-fuerte: #075985;      /* botón al pasar el cursor */
  --color-principal: #0369a1;   /* botones */
  --color-acento: #0284c7;      /* enlaces y foco */
  --color-linea: #e2e8f0;       /* línea bajo el encabezado */
  --color-suave: #e2e8f0;       /* bordes de tarjetas */
  --color-fondo-suave: #f0f9ff;
  --color-fondo: #f8f9fa;
  --color-texto: #1e293b;
}
* { box-sizing: border-box; }
body { margin: 0; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #f2f7fb 0%, #f7f8fb 50%, #f6f6fb 100%); color: var(--color-texto);
  font-family: 'Plus Jakarta Sans', ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; line-height: 1.65; -webkit-font-smoothing: antialiased; }
header.kit { background: #fff; color: var(--color-oscuro); border-bottom: 1px solid var(--color-linea); padding: 10px 20px; display: flex; align-items: center; gap: 10px; box-shadow: 0 1px 2px rgba(0,0,0,.03); }
header.kit .logo { width: 32px; height: 32px; border-radius: 8px; background: #0369a1; color: #fff; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
header.kit h1 { margin: 0; font-family: Fraunces, Georgia, serif; font-size: 18px; font-weight: 500; letter-spacing: -.01em; line-height: 1.2; } header.kit p { margin: 0; font-size: 11px; letter-spacing: .02em; color: #64748b; line-height: 1.3; }
header.kit a { color: inherit; text-decoration: none; }
.barra-sesion { background: #fff; border-bottom: 1px solid var(--color-linea); color: #64748b; font-size: 12px; padding: 5px 20px; display: flex; justify-content: flex-end; align-items: center; gap: 12px; flex-wrap: wrap; }
.barra-sesion a, .barra-sesion button { color: #0369a1; background: none; border: 0; font: inherit; font-weight: 500; text-decoration: none; cursor: pointer; padding: 0; width: auto; margin: 0; }
.barra-sesion a:hover, .barra-sesion button:hover { background: none; text-decoration: underline; }
.barra-sesion strong { color: #1e293b; font-weight: 600; }
.avatar { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; overflow: hidden; background: #0369a1; color: #fff; font-weight: 600; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
main.kit { flex: 1; width: 100%; max-width: 1000px; margin: 0 auto; padding: 24px 16px; }
.tarjeta { background: #fff; border: 1px solid var(--color-suave); border-radius: 16px; padding: 22px; margin-bottom: 14px; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.tarjeta.angosta { max-width: 480px; margin-left: auto; margin-right: auto; }
h2 { margin: 0 0 6px; font-size: 20px; font-weight: 500; font-family: Fraunces, Georgia, serif; color: var(--color-oscuro); } h3 { margin: 0 0 6px; font-size: 15px; font-weight: 500; font-family: Fraunces, Georgia, serif; color: var(--color-oscuro); }
p.sub { margin: 0 0 14px; font-size: 13px; color: #475569; } p.ayuda, .ayuda { font-size: 12px; color: #64748b; margin: 4px 0 0; line-height: 1.6; }
label { display: block; font-size: 13px; font-weight: 500; color: #334155; margin: 12px 0 4px; }
input:not([type]), input[type=text], input[type=password], input[type=email], select.campo, textarea { width: 100%; padding: 10px 12px; border: 1px solid #cbd5e1; border-radius: 8px; font: inherit; background: #f8fafc; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid #bae6fd; border-color: var(--color-acento); background: #fff; }
button, .boton { display: inline-block; margin-top: 14px; padding: 10px 14px; border: 0; border-radius: 8px; background: var(--color-principal); color: #fff; font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; text-align: center; }
button:hover, .boton:hover { background: var(--color-fuerte); }
button:disabled { opacity: .55; cursor: not-allowed; }
button.completo { width: 100%; }
button.sec, button.chico, .pestanas button { font-weight: 600; }
button.sec { background: #e2e8f0; color: #334155; } button.sec:hover { background: #cbd5e1; }
button.rojo { background: #be123c; } button.rojo:hover { background: #9f1239; }
button.chico { padding: 4px 9px; font-size: 12px; margin: 0 4px 0 0; }
.error { display: none; margin-top: 12px; padding: 10px 12px; background: #fff1f2; border: 1px solid #fecdd3; color: #9f1239; border-radius: 8px; font-size: 13px; }
.ok { display: none; margin-top: 12px; padding: 10px 12px; background: #f0fdf4; border: 1px solid #bbf7d0; color: #166534; border-radius: 8px; font-size: 13px; }
.aviso { margin-top: 16px; padding: 10px 12px; background: var(--color-fondo-suave); border: 1px solid var(--color-suave); border-radius: 8px; font-size: 12px; color: var(--color-fuerte); line-height: 1.6; }
.advertencia { padding: 10px 12px; background: #fffbeb; border: 1px solid #fcd34d; color: #92400e; border-radius: 8px; font-size: 12px; margin-bottom: 12px; }
.pestanas { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.pestanas button { margin: 0; background: #fff; color: var(--color-fuerte); border: 1px solid var(--color-suave); padding: 7px 12px; font-size: 13px; }
.pestanas button.activa { background: var(--color-principal); color: #fff; border-color: var(--color-principal); }
.insignia { display: inline-block; min-width: 18px; padding: 0 6px; margin-left: 4px; border-radius: 9px; background: #f59e0b; color: #fff; font-size: 11px; }
.enlace { background: none; border: 0; color: var(--color-fuerte); text-decoration: underline; padding: 0; margin-top: 12px; font-weight: 600; font-size: 13px; }
.enlace:hover { background: none; color: var(--color-fuerte); }
.tabla { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 13px; }
th, td { text-align: left; padding: 6px 8px; border-bottom: 1px solid #e2e8f0; vertical-align: top; }
th { background: var(--color-fondo-suave); color: var(--color-fuerte); font-size: 12px; }
.estado { display: inline-block; padding: 1px 8px; border-radius: 9px; font-size: 12px; font-weight: 600; }
.e-pendiente { background: #fef3c7; color: #92400e; } .e-especial { background: #f3e8ff; color: #7e22ce; } .e-aprobada, .e-activa { background: #dcfce7; color: #166534; } .e-rechazada, .e-retirada { background: #fee2e2; color: #991b1b; }
.tarjetas { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin-top: 10px; }
.dato { background: var(--color-fondo-suave); border: 1px solid var(--color-suave); border-radius: 10px; padding: 10px 12px; }
.dato b { display: block; font-size: 22px; color: var(--color-oscuro); } .dato span { font-size: 11px; color: #475569; }
.dato.alerta { background: #fffbeb; border-color: #fcd34d; } .dato.alerta b { color: #92400e; }
.formulario { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 8px; align-items: end; margin-bottom: 12px; }
.formulario label { margin-top: 0; }
#codigo-caja { display: none; border: 2px solid #16a34a; background: #f0fdf4; }
#codigo-caja .codigo { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 28px; font-weight: 700; letter-spacing: .08em; color: #14532d; margin: 6px 0; }
footer.kit { background: #fff; color: #64748b; font-size: 12px; text-align: center; padding: 14px; border-top: 1px solid var(--color-linea); }
.e-pro { background: #e0f2fe; color: #075985; } .e-exento { background: #dcfce7; color: #166534; } .e-gratuito { background: #f1f5f9; color: #475569; } .e-sin_registrar { background: #f1f5f9; color: #475569; } .e-solicitud_pendiente { background: #fef3c7; color: #92400e; }
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; } }
.oculto { display: none !important; }

/* Formas suaves de fondo (mismas que la app) */
body::before { content: ''; position: fixed; inset: 0; pointer-events: none; z-index: 0;
  background: radial-gradient(620px 420px at 88% -8%, rgba(56,189,248,.16), transparent 70%), radial-gradient(520px 400px at -6% 30%, rgba(45,212,191,.11), transparent 70%), radial-gradient(560px 440px at 60% 112%, rgba(167,139,250,.12), transparent 70%); }
header.kit, main.kit, footer.kit, .barra-sesion { position: relative; z-index: 1; }
header.kit { background: rgba(255,255,255,.8); backdrop-filter: blur(12px); }
header.kit .logo { border-radius: 12px; width: 36px; height: 36px; background-image: linear-gradient(135deg, #0ea5e9 -30%, #0369a1 85%); box-shadow: 0 6px 16px -6px rgba(3,105,161,.6); }
.tarjeta { border-radius: 22px; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 14px 36px -22px rgba(14,116,144,.4); }
.tarjeta.angosta { margin-top: 18px; }
.que-es p { font-size: 14px; color: #475569; margin: 0 0 10px; }
.pasos-identidad { margin: 0 0 10px; padding: 0; list-style: none; display: grid; gap: 8px; }
.pasos-identidad li { font-size: 14px; color: #475569; padding: 10px 12px; border-radius: 14px; background: var(--color-fondo-suave); border: 1px solid var(--color-suave); }
.pasos-identidad strong { color: var(--color-oscuro); font-weight: 600; }
html.oscuro .que-es p, html.oscuro .pasos-identidad li { color: #cbd5e1; }
button, .boton { border-radius: 999px; background-image: linear-gradient(135deg, #0ea5e9 -30%, #0369a1 85%); }
button.sec, button.rojo, .pestanas button:not(.activa), .enlace, .barra-sesion button { background-image: none; }
button.chico { border-radius: 10px; }
input:not([type]), input[type=text], input[type=password], input[type=email], select.campo, textarea { border-radius: 12px; }
.pestanas button { border-radius: 999px; }
.dato { border-radius: 16px; }

/* ---------- Modo oscuro (sigue al sistema) ---------- */
html.oscuro { color-scheme: dark; --color-oscuro: #f1f5f9; --color-suave: #24324a; --color-fondo-suave: #152035; --color-linea: #22304a; --color-texto: #e2e8f0; --color-acento: #38bdf8; }
html.oscuro body { background: #0b1220; color: #e2e8f0; }
html.oscuro body::before { opacity: .6; }
html.oscuro header.kit, html.oscuro .barra-sesion, html.oscuro footer.kit { background: rgba(13,21,37,.82); border-color: #22304a; }
html.oscuro header.kit h1, html.oscuro .barra-sesion strong { color: #f1f5f9; }
html.oscuro .barra-sesion a, html.oscuro .barra-sesion button { color: #7dd3fc; }
html.oscuro .tarjeta { background: #111a2b; border-color: #22304a; box-shadow: 0 12px 30px -20px rgba(0,0,0,.7); }
html.oscuro label, html.oscuro p.sub { color: #cbd5e1; }
html.oscuro .ayuda, html.oscuro p.ayuda, html.oscuro header.kit p, html.oscuro footer.kit { color: #94a3b8; }
html.oscuro input:not([type]), html.oscuro input[type=text], html.oscuro input[type=password], html.oscuro input[type=email], html.oscuro select, html.oscuro textarea { background: #152035; border-color: #334563; color: #e2e8f0; }
html.oscuro input:focus { background: #111a2b; outline-color: #0c4a6e; }
html.oscuro button.sec { background: #24324a; color: #e2e8f0; }
html.oscuro .pestanas button:not(.activa) { background: #111a2b; color: #7dd3fc; border-color: #24324a; }
html.oscuro .aviso { background: #152035; border-color: #24324a; color: #7dd3fc; }
html.oscuro .advertencia { background: rgba(245,158,11,.12); border-color: rgba(251,191,36,.35); color: #fcd34d; }
html.oscuro .error { background: rgba(244,63,94,.12); border-color: rgba(251,113,133,.35); color: #fda4af; }
html.oscuro .ok, html.oscuro #codigo-caja { background: rgba(16,185,129,.12); border-color: rgba(52,211,153,.35); color: #6ee7b7; }
html.oscuro #codigo-caja .codigo { color: #a7f3d0; }
html.oscuro th { background: #152035; color: #7dd3fc; } html.oscuro th, html.oscuro td { border-color: #22304a; }
html.oscuro .dato { background: #152035; border-color: #24324a; } html.oscuro .dato b { color: #f1f5f9; } html.oscuro .dato span { color: #94a3b8; }
html.oscuro .dato.alerta { background: rgba(245,158,11,.12); border-color: rgba(251,191,36,.35); } html.oscuro .dato.alerta b { color: #fcd34d; }
html.oscuro .e-pendiente, html.oscuro .e-solicitud_pendiente { background: rgba(245,158,11,.18); color: #fcd34d; }
html.oscuro .e-aprobada, html.oscuro .e-activa, html.oscuro .e-exento { background: rgba(16,185,129,.18); color: #6ee7b7; } html.oscuro .e-especial { background: rgba(168,85,247,.2); color: #d8b4fe; }
html.oscuro .e-rechazada, html.oscuro .e-retirada { background: rgba(244,63,94,.18); color: #fda4af; }
html.oscuro .e-pro { background: rgba(14,165,233,.18); color: #7dd3fc; } html.oscuro .e-gratuito, html.oscuro .e-sin_registrar { background: #24324a; color: #cbd5e1; }

/* ---------- Panel de moderación (moderacion.html) ---------- */
.oculto-visual { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
header.kit .cabeza-acciones { margin-left: auto; display: flex; align-items: center; gap: 10px; flex-wrap: wrap; justify-content: flex-end; }
header.kit .cabeza-acciones button { margin: 0; }
header.kit .cabeza-acciones .volver { font-size: 12px; font-weight: 600; color: var(--color-principal); }
main.kit.mod { max-width: 1280px; }
.panel-resumen h2 { margin-bottom: 4px; }
.grupo-datos { margin-top: 14px; } .grupo-datos h3 { font-family: inherit; font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #64748b; margin: 0 0 6px; }
.grupo-datos .tarjetas { margin-top: 0; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
.dato { display: flex; flex-direction: column; gap: 2px; text-align: left; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
.dato b { line-height: 1.1; } .dato span { line-height: 1.35; }
button.dato { margin: 0; padding: 10px 12px; font: inherit; color: inherit; cursor: pointer; background: var(--color-fondo-suave); background-image: none; border: 1px solid var(--color-suave); font-weight: 400; }
button.dato:hover { background: #e0f2fe; border-color: #7dd3fc; transform: translateY(-1px); box-shadow: 0 6px 16px -10px rgba(3,105,161,.5); }
button.dato.alerta:hover { background: #fef3c7; border-color: #f59e0b; }
button.dato.en-cero { opacity: .7; } button.dato.en-cero b { color: #64748b; }
button.dato:focus-visible { outline: 2px solid var(--color-acento); outline-offset: 2px; }
.avisos-fila { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-top: 14px; padding-top: 12px; border-top: 1px solid var(--color-suave); }
.avisos-fila .ayuda { margin: 0; flex: 1; min-width: 220px; } .avisos-fila button { margin: 0; }
.mod-cuerpo { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 14px; align-items: start; }
.mod-cuerpo .pestanas { position: sticky; top: 12px; flex-direction: column; flex-wrap: nowrap; gap: 12px; margin: 0; padding: 12px; background: #fff; border: 1px solid var(--color-suave); border-radius: 18px; box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.grupo-pestanas { display: flex; flex-direction: column; gap: 2px; }
.grupo-pestanas::before { content: attr(data-titulo); font-size: 10.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: #94a3b8; padding: 0 10px 4px; }
.mod-cuerpo .pestanas button { display: flex; align-items: center; justify-content: space-between; width: 100%; text-align: left; border: 0; border-radius: 10px; padding: 8px 10px; background: transparent; background-image: none; color: #334155; font-weight: 600; }
.mod-cuerpo .pestanas button:hover { background: var(--color-fondo-suave); color: var(--color-fuerte); }
.mod-cuerpo .pestanas button.activa { background: var(--color-principal); background-image: linear-gradient(135deg, #0ea5e9 -30%, #0369a1 85%); color: #fff; }
.mod-cuerpo .pestanas button.activa .insignia { background: #fff; color: #b45309; }
.mod-vista { min-width: 0; margin-bottom: 0; }
.vista-cabeza { display: flex; align-items: flex-start; gap: 12px; flex-wrap: wrap; margin-bottom: 8px; }
.vista-textos { flex: 1; min-width: 220px; } .vista-textos .ayuda { margin: 0; }
.vista-herr { display: flex; align-items: center; gap: 8px; } .vista-herr input { width: 240px; padding: 8px 12px; }
.casilla-correos { display: flex; gap: 8px; align-items: center; margin: 4px 0 10px; font-weight: 400; }
#estado:empty { display: none; } #estado { margin: 0 0 10px; padding: 8px 12px; border-radius: 10px; background: var(--color-fondo-suave); }
.desplegable { margin-bottom: 14px; border: 1px solid var(--color-suave); border-radius: 14px; padding: 10px 14px; background: var(--color-fondo-suave); }
.desplegable > summary { cursor: pointer; font-weight: 700; color: var(--color-fuerte); font-size: 13px; }
.desplegable[open] > summary { margin-bottom: 8px; }
table.resp thead th { position: sticky; top: 0; z-index: 1; }
table.resp tbody tr:not(.vacia):hover td { background: rgba(240,249,255,.6); }
td .acciones { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
td .acciones > button.chico { margin: 0; }
td .acciones button.rojo { background: #fff; color: #be123c; border: 1px solid #fecdd3; }
td .acciones button.rojo:hover { background: #fff1f2; }
td .acciones details { margin: 0 !important; }
td .acciones details[open] { display: block !important; flex-basis: 100%; padding: 8px; border: 1px solid var(--color-suave); border-radius: 10px; background: #fff; }
@media (max-width: 900px) {
  .mod-cuerpo { grid-template-columns: 1fr; }
  .mod-cuerpo .pestanas { position: static; flex-direction: row; overflow-x: auto; gap: 10px; padding: 8px; -webkit-overflow-scrolling: touch; }
  .grupo-pestanas { flex-direction: row; align-items: center; flex-shrink: 0; }
  .grupo-pestanas::before { padding: 0 4px 0 2px; writing-mode: horizontal-tb; }
  .mod-cuerpo .pestanas button { width: auto; white-space: nowrap; gap: 4px; }
  .vista-herr, .vista-herr input { width: 100%; }
}
/* En celular las tablas se leen como tarjetas: cada dato con su rótulo */
@media (max-width: 720px) {
  table.resp thead { display: none; }
  table.resp, table.resp tbody, table.resp tr, table.resp td { display: block; width: 100%; }
  table.resp tr { border: 1px solid var(--color-suave); border-radius: 14px; padding: 8px 10px; margin-bottom: 10px; background: #fff; }
  table.resp td { border: 0; padding: 3px 0; display: grid; grid-template-columns: 96px minmax(0, 1fr); gap: 8px; overflow-wrap: anywhere; }
  table.resp td::before { content: attr(data-etiqueta); font-size: 11px; font-weight: 700; color: #64748b; }
  table.resp td.celda-acciones { grid-template-columns: 1fr; padding-top: 8px; margin-top: 4px; border-top: 1px solid var(--color-suave); }
  table.resp td.celda-acciones::before { display: none; }
  table.resp tr.vacia td { display: block; } table.resp tr.vacia td::before { display: none; }
  header.kit { flex-wrap: wrap; } header.kit .cabeza-acciones { width: 100%; justify-content: flex-start; }
}
html.oscuro .mod-cuerpo .pestanas { background: #111a2b; border-color: #22304a; }
html.oscuro .mod-cuerpo .pestanas button:not(.activa) { background: transparent; color: #cbd5e1; border: 0; }
html.oscuro .mod-cuerpo .pestanas button:not(.activa):hover { background: #152035; color: #7dd3fc; }
html.oscuro button.dato { background: #152035; border-color: #24324a; } html.oscuro button.dato:hover { background: #1b2a44; border-color: #38bdf8; }
html.oscuro button.dato.alerta { background: rgba(245,158,11,.12); border-color: rgba(251,191,36,.35); } html.oscuro button.dato.en-cero b { color: #94a3b8; }
html.oscuro .grupo-datos h3, html.oscuro .grupo-pestanas::before { color: #94a3b8; }
html.oscuro .desplegable, html.oscuro #estado { background: #152035; border-color: #24324a; }
html.oscuro table.resp tbody tr:not(.vacia):hover td { background: rgba(21,32,53,.7); }
html.oscuro td .acciones button.rojo { background: transparent; color: #fda4af; border-color: rgba(251,113,133,.4); }
html.oscuro td .acciones details[open] { background: #111a2b; border-color: #24324a; }
html.oscuro header.kit .cabeza-acciones .volver { color: #7dd3fc; }
@media (max-width: 720px) { html.oscuro table.resp tr { background: #111a2b; border-color: #24324a; } }
.vista-herr input[type=search] { border: 1px solid #cbd5e1; border-radius: 12px; font: inherit; font-size: 13px; background: #f8fafc; }
html.oscuro .vista-herr input[type=search] { background: #152035; border-color: #334563; color: #e2e8f0; }

/* ---------- Moderación más ligera (fase 28): menos bordes y sombras, cifras en una línea, interruptores y chips ---------- */
main.kit.mod .tarjeta { border-color: transparent; box-shadow: 0 1px 2px rgba(15,23,42,.04), 0 8px 24px -18px rgba(15,23,42,.25); border-radius: 20px; }
main.kit.mod h2 { font-size: 18px; }
.panel-resumen h2 { font-size: 15px; color: #64748b; font-family: inherit; font-weight: 600; letter-spacing: .01em; }
.panel-resumen .tarjetas { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); margin-top: 8px; }
.al-dia { margin: 6px 0 0; padding: 10px 14px; border-radius: 14px; background: #f0fdf4; color: #166534; font-size: 13px; font-weight: 600; }
.cifras { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 12px; font-size: 12.5px; color: #64748b; }
.cifra b { color: var(--color-oscuro); font-weight: 700; } .cifra.alerta, .cifra.alerta b { color: #b45309; }
.avisos-fila { border-top: 0; padding-top: 4px; margin-top: 10px; }
.mod-cuerpo .pestanas { box-shadow: none; border-color: transparent; background: rgba(255,255,255,.7); }
.mod-cuerpo .pestanas button { font-weight: 500; }
main.kit.mod h3 { font-family: inherit; font-size: 13px; font-weight: 700; color: #475569; margin: 18px 0 8px; }
main.kit.mod table.resp th { background: transparent; color: #64748b; font-weight: 600; border-bottom-color: #e2e8f0; }
main.kit.mod td { border-bottom-color: #f1f5f9; }
main.kit.mod button.chico { border-radius: 999px; }
main.kit.mod button.chico.sec { background: #f1f5f9; } main.kit.mod button.chico.sec:hover { background: #e2e8f0; }
#sug-limpiar { margin: 0 0 10px; }
/* Bob: interruptor y fuentes como chips */
.bob-panel { display: grid; gap: 6px; }
.bob-fila { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.interruptor { display: inline-flex; align-items: center; gap: 10px; margin: 0; cursor: pointer; font-size: 15px; }
.interruptor input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.interruptor .pista { width: 44px; height: 24px; border-radius: 999px; background: #cbd5e1; position: relative; transition: background .2s; flex-shrink: 0; }
.interruptor .pista::after { content: ''; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: transform .2s; }
.interruptor input:checked + .pista { background: #7e22ce; } .interruptor input:checked + .pista::after { transform: translateX(20px); }
.interruptor input:focus-visible + .pista { outline: 2px solid var(--color-acento); outline-offset: 2px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { display: inline-flex; align-items: center; margin: 0; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.chip input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.chip span { padding: 6px 12px; border-radius: 999px; border: 1px solid #e2e8f0; background: #fff; color: #64748b; transition: all .15s; }
.chip input:checked + span { background: #f3e8ff; border-color: #d8b4fe; color: #6b21a8; }
.chip input:checked + span::before { content: '✓ '; }
.chip input:focus-visible + span { outline: 2px solid var(--color-acento); outline-offset: 2px; }
html.oscuro .al-dia { background: rgba(16,185,129,.12); color: #6ee7b7; }
html.oscuro .cifras { color: #94a3b8; } html.oscuro .cifra b { color: #f1f5f9; }
html.oscuro .mod-cuerpo .pestanas { background: rgba(17,26,43,.7); }
html.oscuro main.kit.mod h3 { color: #cbd5e1; } html.oscuro main.kit.mod table.resp th { color: #94a3b8; border-bottom-color: #22304a; } html.oscuro main.kit.mod td { border-bottom-color: #1b2740; }
html.oscuro main.kit.mod button.chico.sec { background: #1b2740; color: #e2e8f0; }
html.oscuro .chip span { background: #111a2b; border-color: #24324a; color: #94a3b8; } html.oscuro .chip input:checked + span { background: rgba(168,85,247,.2); border-color: rgba(216,180,254,.4); color: #e9d5ff; }
html.oscuro .interruptor .pista { background: #334563; }
/* Suscripciones y descuentos */
.promo-leyenda { display: flex; flex-wrap: wrap; align-items: end; gap: 8px; max-width: 640px; } .promo-leyenda label { width: 100%; margin: 8px 0 0; } .promo-leyenda input { flex: 1; min-width: 220px; } .promo-leyenda button { margin: 0; }
.promo-muestra { margin: 8px 0 0; padding: 8px 12px; border-radius: 12px; background: #ecfdf5; color: #065f46; font-size: 13px; font-weight: 600; }
.calendario { list-style: none; margin: 8px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 8px; }
.calendario li { border: 1px solid var(--color-suave); border-radius: 14px; padding: 10px 12px; background: #fff; display: grid; gap: 4px; }
.calendario li.ahora { border-color: #86efac; background: #f0fdf4; } .calendario li.proximo { border-color: #fcd34d; background: #fffbeb; }
.calendario li button { justify-self: start; margin: 2px 0 0; }
.cal-cab { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; } .cal-cab strong { color: var(--color-oscuro); } .cal-fecha { font-size: 12px; color: #64748b; }
.codigo-dev { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; } .codigo-dev code { font-family: 'JetBrains Mono', ui-monospace, monospace; font-size: 18px; letter-spacing: .08em; padding: 6px 12px; border-radius: 10px; background: #f8fafc; border: 1px dashed #cbd5e1; } .codigo-dev button { margin: 0; }
html.oscuro .promo-muestra { background: rgba(16,185,129,.12); color: #6ee7b7; }
html.oscuro .calendario li { background: #111a2b; border-color: #24324a; } html.oscuro .calendario li.ahora { background: rgba(16,185,129,.1); border-color: rgba(52,211,153,.35); } html.oscuro .calendario li.proximo { background: rgba(245,158,11,.1); border-color: rgba(251,191,36,.35); }
html.oscuro .codigo-dev code { background: #152035; border-color: #334563; color: #e2e8f0; }

html.oscuro .enlace, html.oscuro .enlace:hover { color: #7dd3fc; }

/* Páginas legales (privacidad, términos, devoluciones) */
.tarjeta.ancha { max-width: 760px; margin-left: auto; margin-right: auto; margin-top: 18px; }
.legal h3 { margin-top: 20px; }
.legal p, .legal li { font-size: 14px; line-height: 1.65; color: var(--color-fuerte); }
.legal ul, .legal ol { padding-left: 20px; margin: 6px 0 10px; }
.legal .borrador { padding: 8px 12px; border-radius: 8px; background: #fef3c7; border: 1px solid #fcd34d; color: #78350f; font-size: 12px; margin-bottom: 12px; }
.pendiente { background: #fef08a; color: #713f12; padding: 0 3px; border-radius: 3px; }
html.oscuro .pendiente { background: #854d0e; color: #fef9c3; }
/* Modo oscuro: el texto legal usaba el azul oscuro del modo claro (2.3:1); ahora gris claro (≥ 4.5:1) */
html.oscuro .legal p, html.oscuro .legal li { color: #cbd5e1; }
html.oscuro .legal .borrador { background: #422006; border-color: #a16207; color: #fde68a; }
.acepto { display: flex; gap: 8px; align-items: flex-start; font-size: 12.5px; line-height: 1.5; margin: 12px 0; font-weight: 400; }
.acepto input { width: 18px; height: 18px; margin-top: 2px; flex: none; }

/* Pulido táctil (iPhone/iPad), igual que en app/tema.css: campos a 16 px para que Safari de iOS no haga zoom al tocarlos y casillas de 20 px */
@media (pointer: coarse) {
  html input:not([type=checkbox]):not([type=radio]):not([type=range]):not([type=file]):not([type=color]), html select, html textarea { font-size: 16px !important; }
  html input[type=checkbox], html input[type=radio] { width: 20px; height: 20px; flex-shrink: 0; }
}
