/* E.Silver · app del residente: botones enormes, alto contraste, sin nada que distraiga. */
:root { --azul: #0B3D91; --azul-2: #1659C7; --fondo: #F3F5F8; --texto: #14213D; --suave: #4D5B72; --rojo: #C62828; --verde: #2E7D32; --plata: #C9D1DC; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; }
body { font-family: system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif; background: var(--fondo); color: var(--texto);
       font-size: 22px; user-select: none; -webkit-user-select: none; overscroll-behavior: none; }
body.muy_grande { font-size: 26px; }
.pantalla { min-height: 100vh; padding: max(16px, env(safe-area-inset-top)) 16px 24px; display: flex; flex-direction: column; }
[hidden] { display: none !important; }
h1 { font-size: 1.6em; margin: .3em 0; text-align: center; }
.logo { width: 120px; margin: 24px auto 8px; display: block; border-radius: 26px; }
.guia { text-align: center; color: var(--suave); margin: 0 0 12px; }
.error { color: var(--rojo); text-align: center; min-height: 1.4em; font-weight: 600; }
.digitos { display: flex; gap: 10px; justify-content: center; margin: 8px 0 18px; }
.digitos span { width: 52px; height: 64px; border: 3px solid var(--plata); border-radius: 14px; background: #fff; font-size: 36px; font-weight: 800;
                display: flex; align-items: center; justify-content: center; color: var(--azul); }
.teclado { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 420px; width: 100%; margin: 0 auto; }
.teclado button { min-height: 76px; font-size: 34px; font-weight: 700; border-radius: 18px; border: 0; background: #fff; color: var(--texto); box-shadow: 0 2px 0 var(--plata); }
.teclado button.borrar { font-size: 22px; background: #E7EBF0; }
.cabeza { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.saludo { display: flex; align-items: center; gap: 12px; }
.avatar { width: 64px; height: 64px; border-radius: 50%; background: #DDE7F8; color: var(--azul); display: flex; align-items: center; justify-content: center;
          font-weight: 800; font-size: 30px; overflow: hidden; flex: none; }
.avatar img { width: 100%; height: 100%; object-fit: cover; }
.hola { font-size: 1.25em; font-weight: 800; }
.fecha { color: var(--suave); font-size: .85em; }
.hora { font-size: 1.9em; font-weight: 800; color: var(--azul); font-variant-numeric: tabular-nums; }
.sos { width: 100%; min-height: 120px; border: 0; border-radius: 26px; background: var(--rojo); color: #fff; font-size: 1.5em; font-weight: 800;
       display: flex; align-items: center; justify-content: center; gap: 16px; box-shadow: 0 6px 0 #8E1B1B; }
.sos:active { transform: translateY(4px); box-shadow: 0 2px 0 #8E1B1B; }
.sos-ico { font-size: 1.6em; }
.pregunta { font-size: 1.15em; font-weight: 700; margin: 18px 4px 10px; }
.botones { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 14px; }
.boton { min-height: 150px; border: 3px solid transparent; border-radius: 22px; background: #fff; color: var(--texto); display: flex; flex-direction: column;
         align-items: center; justify-content: center; gap: 8px; padding: 10px; font-size: .95em; font-weight: 700; text-align: center;
         box-shadow: 0 4px 0 var(--plata); }
.boton:active, .boton.tocado { border-color: var(--azul-2); transform: translateY(3px); box-shadow: 0 1px 0 var(--plata); }
.boton .ico { font-size: 3em; line-height: 1; }
.aviso-red { background: #FFF1E0; color: #8A4500; padding: 12px; border-radius: 14px; text-align: center; margin-top: 14px; }
#avisado { align-items: center; justify-content: center; text-align: center; }
.av-ico { font-size: 7em; line-height: 1.1; }
.av-estado { font-size: 1.3em; color: var(--suave); max-width: 640px; }
.av-estado.camino { color: var(--verde); font-weight: 800; }
.av-acciones { display: flex; flex-direction: column; gap: 14px; width: 100%; max-width: 480px; margin-top: 18px; }
.btn-grande { min-height: 84px; border: 0; border-radius: 22px; font-size: 1.1em; font-weight: 800; background: var(--azul-2); color: #fff; }
.btn-grande.sec { background: var(--azul); }
.btn-grande.gris { background: #E3E8EF; color: var(--texto); }
@media (max-width: 480px) {
  .hola { font-size: 1.05em; } .hora { font-size: 1.5em; } .avatar { width: 52px; height: 52px; }
  .botones { grid-template-columns: repeat(2, 1fr); } .boton { min-height: 140px; }
}
@media (orientation: landscape) and (min-width: 900px) {
  .botones { grid-template-columns: repeat(4, 1fr); }
}
