/* Sistema comercial MOMA: consola de entrada. Paleta MOMA: cabecera #0F2B3D, acento #C96A00. Primero celular. */
:root {
  --navy: #0F2B3D;
  --naranja: #C96A00;
  --fondo: #f1f5f9;
  --card: #ffffff;
  --texto: #1e293b;
  --texto2: #475569;
  --borde: #e2e8f0;
  --radio: 14px;
}
* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; background: var(--fondo); color: var(--texto); font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif; font-size: 15px; -webkit-text-size-adjust: 100%; }
a { color: var(--navy); }
button { font: inherit; cursor: pointer; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* Cabecera */
.hdr { position: sticky; top: 0; z-index: 20; background: var(--navy); color: #fff; padding: 12px 16px; display: flex; align-items: center; gap: 10px; }
.hdr .logo { flex: none; width: 34px; height: 34px; border-radius: 9px; background: var(--naranja); display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 13px; }
.hdr .titulos { min-width: 0; }
.hdr .t1 { font-weight: 700; font-size: 15px; line-height: 1.15; overflow-wrap: anywhere; }
.hdr .t2 { font-size: 12px; opacity: .7; line-height: 1.15; overflow-wrap: anywhere; }
.hdr .botones { margin-left: auto; display: flex; gap: 8px; flex-wrap: wrap; justify-content: flex-end; align-items: center; }
.hdr form { margin: 0; }
.hbtn { display: inline-flex; align-items: center; gap: 6px; padding: 7px 13px; border-radius: 9px; border: 1px solid rgba(255,255,255,.4); background: rgba(255,255,255,.08); color: #fff; font-size: 13px; font-weight: 700; text-decoration: none; line-height: 1; white-space: nowrap; cursor: pointer; }
.hbtn:hover { background: rgba(255,255,255,.18); border-color: #fff; }
.hbtn:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
.hbtn.naranja { background: var(--naranja); border-color: var(--naranja); }
.hbtn.naranja:hover { background: #e07a10; border-color: #e07a10; }
.hbtn svg { width: 17px; height: 17px; flex: none; }
@media (max-width: 560px) { .hbtn { padding: 8px 10px; } .hbtn span { display: none; } .hbtn svg { width: 19px; height: 19px; } }

/* Cuerpo */
main { max-width: 960px; margin: 0 auto; padding: 20px 16px 40px; }
h1 { margin: 0 0 4px; font-size: 20px; color: var(--navy); }
.sub { margin: 0 0 18px; color: var(--texto2); }
.card { background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); padding: 16px; }

/* Íconos de los módulos */
.modulos { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (min-width: 640px) { .modulos { grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 16px; } }
.modulo a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; min-height: 124px; padding: 16px 8px; background: var(--card); border: 1px solid var(--borde); border-radius: var(--radio); color: var(--navy); font-weight: 700; text-align: center; text-decoration: none; overflow-wrap: anywhere; }
.modulo a:hover { border-color: var(--naranja); box-shadow: 0 2px 10px rgba(15, 43, 61, .1); }
.modulo a:focus-visible { outline: 2px solid var(--naranja); outline-offset: 2px; }
.modulo svg { width: 44px; height: 44px; stroke: var(--naranja); }

/* Entrada */
.entrada { max-width: 480px; margin: 0 auto; }
.boton { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 48px; padding: 12px 16px; border-radius: 10px; border: 0; background: var(--naranja); color: #fff; font-size: 16px; font-weight: 700; text-decoration: none; }
.boton:hover { background: #e07a10; }
.boton:focus-visible { outline: 2px solid var(--navy); outline-offset: 2px; }
.boton svg { width: 20px; height: 20px; }
.aviso { margin-top: 16px; font-size: 13px; line-height: 1.5; color: var(--texto2); }
.aviso h2 { margin: 0 0 6px; font-size: 13px; text-transform: uppercase; letter-spacing: .04em; color: var(--navy); }
.aviso p { margin: 0 0 8px; overflow-wrap: anywhere; }
.vacio { text-align: center; color: var(--texto2); }
.vacio svg { width: 40px; height: 40px; stroke: var(--texto2); margin-bottom: 8px; }
