/* ============================================================
   Base de la portada (index.php) sin Bootstrap.
   Sustituye solo las piezas de Bootstrap 3 que usaba la portada:
   normalizacion minima, .container, .sr-only, .form-control, .btn,
   el panel plegable de la cabecera y el dialogo de recuperacion.
   ============================================================ */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; }
main, header, footer, nav, section { display: block; }
img { vertical-align: middle; border: 0; max-width: 100%; }
button, input, select { font: inherit; color: inherit; margin: 0; }
button { cursor: pointer; }
p { margin: 0 0 10px; }
h1, h2, h3, h4 { margin-top: 20px; margin-bottom: 10px; line-height: 1.2; }

.container { width: 100%; max-width: 1170px; margin-inline: auto; padding-inline: 15px; }

.sr-only {
    position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
    overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0;
}

.form-control {
    display: block; width: 100%; height: 40px; padding: 6px 12px;
    font-size: 15px; line-height: 1.4; background: #fff; color: #33393e;
    border: 1px solid var(--control-border, #515961); border-radius: 6px;
}
.form-control:focus-visible { outline: 3px solid var(--on-surface-strong, #3a4045); outline-offset: 1px; }
.btn {
    display: inline-flex; align-items: center; justify-content: center; gap: 6px;
    min-height: 40px; padding: 6px 16px; border: 1px solid transparent; border-radius: 6px;
    font-size: 15px; line-height: 1.2; text-decoration: none; white-space: nowrap;
}
.btn:focus-visible { outline: 3px solid var(--on-surface-strong, #3a4045); outline-offset: 2px; }

/* Panel de la cabecera: plegado en movil con [hidden]; en >= 768px refresh.css lo muestra siempre. */
.gate-header-panel[hidden] { display: none; }

/* Dialogo nativo de recuperacion de contrasena */
.gate-dialogo {
    width: min(92vw, 480px); padding: 0; border: 0; border-radius: 16px;
    background: var(--surface, #fafbfb); color: var(--text, #454d53);
    box-shadow: 0 20px 60px rgba(0, 0, 0, .35); text-align: left;
}
.gate-dialogo::backdrop { background: rgba(20, 24, 27, .6); }
.gate-dialogo-cabecera {
    display: flex; align-items: center; justify-content: space-between; gap: 12px;
    padding: 16px 20px; background: var(--ink, #33393e); color: #fff;
}
.gate-dialogo-cabecera h2 { margin: 0; font-size: 20px; color: #fff; font-family: var(--font-display); line-height: 1.3; }
.gate-dialogo-cerrar {
    width: 36px; height: 36px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%;
    background: transparent; color: #fff; font-size: 20px; line-height: 1;
}
.gate-dialogo-cerrar:focus-visible { outline: 3px solid #fff; outline-offset: 2px; }
.gate-dialogo-cuerpo { padding: 20px; line-height: 1.5; }
.gate-dialogo-cuerpo label { display: block; margin-bottom: 6px; font-weight: 600; }
.gate-dialogo-pie { padding: 0 20px 20px; display: flex; justify-content: flex-end; }
.gate-dialogo-pie .btn { background: var(--accent-deep, #515961); color: #fff; }
.gate-dialogo-pie .btn:hover { background: var(--ink-deep, #23282c); }
