body {
    margin: 0;
    font-family: Arial, sans-serif;
    background-color: #f4f4f4;
}

/* ===== HEADER ===== */
header {
    background-color: #850B0B;
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 40px;
    position: sticky;
    top: 0;
    z-index: 1000;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    flex-wrap: wrap;
}

.logo-area {
    display: flex;
    align-items: center;
    gap: 10px;
}

.logo-area img {
    height: 50px;
}

.logo-area h2 {
    margin: 0;
    font-size: 1.2rem;
    color: white;
}

/* ===== BOTÓN HAMBURGUESA ===== */
.menu-toggle {
    display: none;
    background: transparent;
    border: 1px solid rgba(255,255,255,0.5);
    color: white;
    font-size: 1.2rem;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
}

/* ===== NAV ===== */
nav {
    display: flex;
    align-items: center;
    gap: 5px;
}

nav a {
    color: white;
    text-decoration: none;
    font-weight: bold;
    padding: 8px 14px;
    border-radius: 6px;
    transition: background 0.2s;
    font-size: 14px;
    margin-left: 0;
    cursor: pointer;
}

nav a:hover {
    background: rgba(255,255,255,0.15);
}

/* ===== DROPDOWN ===== */
.nav-dropdown {
    position: relative;
    display: inline-block;
}

.dropdown-menu {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #6a0909;
    border-radius: 8px;
    min-width: 170px;
    z-index: 999;
    box-shadow: 0px 6px 16px rgba(0,0,0,0.25);
    overflow: hidden;
}

.dropdown-menu a {
    display: block;
    padding: 10px 16px;
    color: white !important;
    font-size: 14px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
    margin-left: 0;
    border-radius: 0;
}

.dropdown-menu a:last-child {
    border-bottom: none;
}

.dropdown-menu a:hover {
    background: rgba(255,255,255,0.15);
}

.nav-dropdown:hover .dropdown-menu {
    display: block;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .menu-toggle {
        display: block; /* 👈 mostrar hamburguesa en móvil */
    }

    nav {
        display: none;  /* 👈 oculto por defecto en móvil */
        flex-direction: column;
        align-items: flex-start;
        width: 100%;
        padding: 10px 0;
        gap: 2px;
    }

    nav.open {
        display: flex; /* 👈 se muestra al hacer click */
    }

    nav a {
        width: 100%;
        padding: 10px 14px;
    }

    .nav-dropdown {
        width: 100%;
    }

    .nav-dropdown > a {
        width: 100%;
        display: block;
    }

    .dropdown-menu {
        position: static;  /* 👈 no flota, empuja el contenido */
        box-shadow: none;
        border-radius: 0;
        background: #5a0808;
        padding-left: 15px;
    }

    .nav-dropdown:hover .dropdown-menu {
        display: none; /* 👈 en móvil no funciona hover */
    }

    .nav-dropdown.open .dropdown-menu {
        display: block; /* 👈 en móvil funciona con click */
    }
}


/* ===========================
   FONDO
=========================== */

.login-container{
    min-height:100vh;
    display:flex;
    justify-content:center;
    align-items:center;
    padding-top:20px;
    background:#F4F6F8;
}


/* ===========================
   TARJETA LOGIN
=========================== */

.login-box{

    width:380px;
    background:#FFFFFF;
    border-radius:18px;
    padding:70px 35px 35px;
    box-shadow: 0 12px 35px rgba(0,0,0,.12);
    position:relative;

}


/* ===========================
   ICONO
=========================== */

.user-icon{
    position:absolute;
    top:-42px;
    left:50%;
    transform:translateX(-50%);
    width:80px;
    height:80px;
    border-radius:50%;
    background:#B71C1C;
    color:white;
    display:flex;
    justify-content:center;
    align-items:center;
    font-size:40px;
    box-shadow:0 8px 18px rgba(183,28,28,.28);
    border:4px solid #F4F6F8;
}


/* ===========================
   TITULO
=========================== */

.login-box h3{
    text-align:center;
    margin-top:8px;
    margin-bottom:10px;
    color:#1F2937;
    font-size:35px;
    font-weight:700;
}



/* ===========================
   LABELS
=========================== */

.login-box label{
    display:block;
    margin-bottom:8px;
    margin-top:18px;
    color:#374151;
    font-size:16px;
    font-weight:600;
}


/* ===========================
   INPUTS
=========================== */

.login-box input{

    width:100%;
    height:48px;
    padding:0 15px;
    border-radius:10px;
    border:1px solid #D1D5DB;
    background:white;
    color:#374151;
    font-size:15px;
    transition:.25s;
    outline:none;
    box-sizing:border-box;

}


.login-box input::placeholder{

    color:#9CA3AF;

}


.login-box input:focus{

    border-color:#B71C1C;
    box-shadow:
        0 0 0 3px rgba(183,28,28,.15);

}


/* ===========================
   PASSWORD
=========================== */

.password-container{

    position:relative;

}


.password-container input{

    padding-right:45px;

}


.toggle-password{

    position:absolute;
    top:50%;
    right:15px;
    transform:translateY(-50%);
    color:#6B7280;
    cursor:pointer;
    font-size:22px;
    transition:.25s;

}


.toggle-password:hover{

    color:#B71C1C;

}


/* Quitar ojito nativo del navegador */ 
input[type="password"]::-ms-reveal,
input[type="password"]::-ms-clear, input[type="password"]::-webkit-contacts-auto-fill-button, 
input[type="password"]::-webkit-credentials-auto-fill-button { display: none !important; visibility: hidden; }

/* ===========================
   BOTON
=========================== */

.btn-ingresar{

    width:100%;
    height:50px;
    margin-top:28px;
    border:none;
    border-radius:12px;
    background:#B71C1C;
    color:white;
    font-size:16px;
    font-weight:600;
    cursor:pointer;
    transition:.25s;

}


.btn-ingresar:hover{

    background:#991B1B;
    transform:translateY(-2px);
    box-shadow:
        0 8px 20px rgba(183,28,28,.25);

}


.btn-ingresar:active{

    transform:scale(.98);

}
.subtitle{
    text-align:center;
    color:#6B7280;
    line-height:1.5;
    margin-bottom:28px;
    font-size:14px;
}

.error-alert{

    display:flex;
    align-items:center;
    gap:10px;
    width:90%;
    padding:12px 15px;
    margin-bottom:20px;
    background:#FEE2E2;
    border:1px solid #FCA5A5;
    border-left:5px solid #DC2626;
    border-radius:10px;
    color:#991B1B;
    font-size:14px;
    font-weight:500;
    animation:fadeIn .25s ease;

}

.error-alert::before{

    content:"⚠";
    font-size:18px;

}

@keyframes fadeIn{

    from{
        opacity:0;
        transform:translateY(-5px);
    }

    to{
        opacity:1;
        transform:translateY(0);
    }

}

/* ===== MODAL LOGOUT ===== */
/* ===== MODAL CERRAR SESIÓN ===== */

.modal-logout {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.45);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 1000;
    opacity: 1;
    transition: opacity 0.2s ease;
}

.modal-logout.hidden-logoutt {
    display: none;
    opacity: 0;
}

.logout-boxx{
    background: #ffffff;
    border-radius: 12px;
    padding: 32px 28px 24px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
    animation: logoutFadeIn 0.18s ease-out;
}

@keyframes logoutFadeIn {
    from {
        opacity: 0;
        transform: translateY(-8px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}

.logout-iconn {
    width: 52px;
    height: 52px;
    margin: 0 auto 16px;
    border-radius: 50%;
    background: #FCEBEB;
    color: #A32D2D;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 20px;
}

.logout-titlee {
    color: #3D3A3B;
    font-size: 17px;
    font-weight: 600;
    margin: 0 0 8px;
}

.logout-subtitlee {
    color: #8A8785;
    font-size: 13.5px;
    margin: 0 0 24px;
    line-height: 1.4;
}

.logout-actionss {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.btn-logout-cancell,
.btn-logout-confirmm {
    flex: 1;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 14px;
    cursor: pointer;
    transition: background 0.15s ease, border-color 0.15s ease;
}

.btn-logout-cancell {
    background: transparent;
    border: 1px solid #C9C6BE;
    color: #656061;
    font-weight: 500;
}

.btn-logout-cancell:hover {
    background: #F5F4F2;
}

.btn-logout-confirmm {
    background: #FCEBEB;
    border: 1px solid #A32D2D;
    color: #A32D2D;
    font-weight: 600;
}

.btn-logout-confirmm:hover {
    background: #A32D2D;
    color: #ffffff;
}




















