body {
    font-family: Arial;
    margin: 0;
    background: #f4f4f4;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
}

/* =========================
   HEADER
========================= */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 15px 30px;
    background: linear-gradient(135deg, #000000, #720846);
    color: white;
}

.logo img {
    height: 30px;
}

.menu button, .menu a {
    margin-left: 10px;
    padding: 8px 14px;
    border: solid 1px #727071;
    border-radius: 8px;
    cursor: pointer;
    color: white;
    background: #000000;
    text-decoration: none;
    display: inline-block;
}

.menu button:hover, .menu a:hover {
    background: #8e0a58;
}

/* =========================
   BODY CENTRAL - FRAME
========================= */
.main-frame {
    flex: 1;
    padding: 10px;
    width: 100%;
    box-sizing: border-box;
}

.content-frame {
    width: 100%;
    height: 80vh;
    min-height: 450px;
    border: none;
    border-radius: 8px;
    background: white;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
}

/* =========================
   FOOTER
========================= */
.footer {
    background: linear-gradient(135deg, #000000, #720846);
    color: #F3AD10;
    padding: 10px;
    margin-top: auto;
}

.footer-bottom {
    text-align: center;
    padding-top: 5px;
    border-top: 1px solid #333;
    font-size: 12px;
    color: #F3AD10;
}

/* =========================
   MODAL BACKDROP
========================= */
.modal {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.65);
    backdrop-filter: blur(4px);
    justify-content: center;
    align-items: center;
    z-index: 1000;
}

/* =========================
   MODAL CONTENT
========================= */
.modal-content {
    background: #ffffff;
    width: 100%;
    max-width: 420px;
    border-radius: 14px;
    padding: 28px 26px;
    position: relative;
    box-shadow: 0 15px 40px rgba(0,0,0,0.25);
    animation: popIn 0.25s ease-out;
}

/* animación modal */
@keyframes popIn {
    from {
        transform: translateY(-15px) scale(0.98);
        opacity: 0;
    }
    to {
        transform: translateY(0) scale(1);
        opacity: 1;
    }
}

/* =========================
   CERRAR MODAL
========================= */
.cerrar {
    position: absolute;
    top: 12px;
    right: 14px;
    font-size: 24px;
    color: #888;
    cursor: pointer;
    transition: 0.2s;
}

.cerrar:hover {
    color: #720846;
    transform: scale(1.2);
}

/* =========================
   TITULO MODAL
========================= */
.modal-content h2 {
    text-align: center;
    margin-bottom: 18px;
    color: #720846;
    font-size: 22px;
}

/* =========================
   FORMULARIO
========================= */
#formRegistro {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.modal-content input,
.modal-content select {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    outline: none;
    transition: 0.2s;
    background: #fafafa;
    box-sizing: border-box;
}

.modal-content input:focus,
.modal-content select:focus {
    border-color: #720846;
    background: #fff;
    box-shadow: 0 0 0 3px rgba(114, 8, 70, 0.1);
}

.modal-content label {
    font-size: 13px;
    color: #444;
    margin-top: 4px;
}

/* =========================
   BOTÓN
========================= */
.modal-content button {
    margin-top: 10px;
    width: 100%;
    padding: 12px;
    border: none;
    border-radius: 8px;
    background: linear-gradient(45deg, #720846, #8e0a58);
    color: white;
    font-weight: bold;
    cursor: pointer;
    transition: 0.2s;
}

.modal-content button:hover {
    transform: translateY(-1px);
    box-shadow: 0 8px 20px rgba(114, 8, 70, 0.25);
}

/* =========================
   RESPUESTA FORM
========================= */
#respuesta {
    margin-top: 12px;
    text-align: center;
    font-size: 13px;
    min-height: 18px;
}

/* =========================
   RESPONSIVE
========================= */
@media (max-width: 768px) {
    .header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
        padding: 15px;
    }

    .content-frame {
        height: 55vh;
        min-height: 350px;
    }

    .modal-content {
        width: 92%;
        padding: 20px;
        border-radius: 12px;
    }
}

/* =========================
   ESTILOS PARA CUANDO EL HEADER ESTÁ OCULTO (USUARIO LOGUEADO)
   - El footer se CONSERVA visible
========================= */
/* Estilos para cuando el header está oculto */
body.header-hidden .header {
    display: none !important;
}

body.header-hidden .main-frame {
    padding-top: 0 !important;
}

body.header-hidden .content-frame {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100vh !important;
    z-index: 1 !important;
}

body.header-hidden .footer {
    position: fixed !important;
    bottom: 0 !important;
    left: 0 !important;
    width: 100% !important;
    z-index: 2 !important;
}

body.header-hidden {
    overflow: hidden !important;
}

/* =========================
   ENLACE OLVIDÉ CONTRASEÑA
========================= */
.olvide-contrasena {
    text-align: center;
    margin-top: 15px;
    padding-top: 10px;
    border-top: 1px solid #eee;
}

.olvide-contrasena a {
    color: #720846;
    text-decoration: none;
    font-size: 13px;
    transition: 0.2s;
}

.olvide-contrasena a:hover {
    color: #f46c1B;
    text-decoration: underline;
}

/* =========================
   MODAL RECUPERAR CONTRASEÑA
========================= */
#modalRecuperar .modal-content {
    max-width: 400px;
}

#modalRecuperar input {
    width: 100%;
    padding: 11px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    font-size: 14px;
    box-sizing: border-box;
}

#modalRecuperar button {
    width: 100%;
    padding: 12px;
    background: linear-gradient(45deg, #720846, #8e0a58);
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-weight: bold;
    margin-top: 10px;
}

#modalRecuperar button:hover {
    background: linear-gradient(45deg, #8e0a58, #a00c68);
}