@font-face { font-family: Montserrat; src: url(fonts/montserrat-latin.woff2) format('woff2'); font-weight: 100 900; font-display: swap; }
:root { --fondo: #0A0A0A; --tarjeta: #171717; --borde: #2A2A2A; --texto: #F5F5F5; --suave: #A3A3A3; --amarillo: #FFEB3B; --verde: #4ADE80; --rojo: #F87171; --ambar: #FBBF24; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; background: var(--fondo); color: var(--texto); font-family: Montserrat, system-ui, sans-serif; font-size: 16px; }
body { min-height: 100dvh; padding: env(safe-area-inset-top) 0 env(safe-area-inset-bottom); }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
.barra { display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--borde); position: sticky; top: 0; background: var(--fondo); z-index: 5; }
.barra h1 { font-size: 17px; font-weight: 700; flex: 1; }
.logo { border-radius: 8px; }
.pantalla { padding: 16px; max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.suave { color: var(--suave); } .chico { font-size: 13px; }
.tarjeta { background: var(--tarjeta); border: 1px solid var(--borde); border-radius: 14px; padding: 14px; display: flex; flex-direction: column; gap: 6px; animation: entra .2s ease-out; }
.tarjeta .cabecera { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tarjeta.vencida, .tarjeta.suspendida { border-color: #5B2A2A; } .tarjeta.pendiente { border-color: #5B4E10; }
.grupo { font-size: 12px; color: var(--amarillo); letter-spacing: .02em; margin-top: 6px; }
.chip { font-size: 12px; font-weight: 700; padding: 3px 10px; border-radius: 99px; white-space: nowrap; background: #1f2f22; color: var(--verde); }
.chip.vencida, .chip.suspendida { background: #3a1d1d; color: var(--rojo); } .chip.pendiente { background: #3a3210; color: var(--ambar); }
label { display: flex; flex-direction: column; gap: 6px; font-size: 14px; color: var(--suave); }
input { font: inherit; color: var(--texto); background: #101010; border: 1px solid var(--borde); border-radius: 12px; padding: 14px; min-height: 50px; width: 100%; }
input:focus { outline: 2px solid var(--amarillo); outline-offset: 1px; }
button { font: inherit; font-weight: 700; border: 0; border-radius: 12px; min-height: 50px; padding: 0 18px; cursor: pointer; color: var(--texto); background: #262626; transition: transform .12s, opacity .12s; }
button:active:not(:disabled) { transform: scale(.97); } button:disabled { opacity: .45; cursor: default; }
button.primario { background: var(--amarillo); color: #111; } button.peligro { background: var(--rojo); color: #111; }
button.texto { background: none; min-height: 40px; padding: 0 6px; color: var(--suave); font-weight: 600; }
.pestanas { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; background: var(--tarjeta); padding: 4px; border-radius: 14px; }
.pestanas button { min-height: 44px; background: none; color: var(--suave); font-size: 14px; } .pestanas button.activa { background: #262626; color: var(--amarillo); }
#vista-buscar, #vista-ultimas, #resultados { display: flex; flex-direction: column; gap: 12px; }
.error { color: var(--rojo); font-size: 14px; } .bien { color: var(--verde); }
.fondo { position: fixed; inset: 0; background: #000b; z-index: 10; animation: velo .2s ease-out; }
.hoja { position: fixed; left: 0; right: 0; bottom: 0; z-index: 11; max-width: 560px; margin: 0 auto; max-height: 88dvh; overflow-y: auto; background: var(--tarjeta); border: 1px solid var(--borde); border-bottom: 0;
  border-radius: 20px 20px 0 0; padding: 18px 16px calc(18px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 12px; animation: sube .25s ease-out; }
.hoja > div { display: flex; flex-direction: column; gap: 10px; } .hoja h2 { font-size: 18px; }
.fila { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; border-bottom: 1px solid var(--borde); padding-bottom: 6px; } .fila strong { text-align: right; }
.aclaracion { background: #101010; border-radius: 12px; padding: 12px; font-size: 14px; }
.planes { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; } .plan { border: 2px solid transparent; } .plan.elegido { border-color: var(--amarillo); color: var(--amarillo); }
.acciones { display: flex; flex-direction: column; gap: 8px; }
.aviso { position: fixed; left: 16px; right: 16px; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 20; background: #262626; border-radius: 12px; padding: 12px 14px; opacity: 0; pointer-events: none; transition: opacity .2s; }
.aviso.visible { opacity: 1; }
* { scrollbar-width: thin; scrollbar-color: #3a3a3a transparent; }
@keyframes entra { from { opacity: 0; transform: translateY(6px); } } @keyframes velo { from { opacity: 0; } } @keyframes sube { from { transform: translateY(100%); } }
@media (prefers-reduced-motion: reduce) { * { animation: none !important; transition: none !important; } }
