/* =========================================
   1. BASE Y FONDO DEL SISTEMA
   ========================================= */
@import url('https://fonts.googleapis.com/css2?family=Quicksand:wght@400;600&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* Fondo general para todas las páginas */
body {
    min-height: 100vh;
    width: 100%;
    font-family: 'Quicksand', sans-serif;
    background: url('fondo_sistema.jpg') no-repeat center center fixed;
    background-size: cover;
}

/* =========================================
   2. EL BLOQUE MÁGICO PARA EL LOGIN
   ========================================= */

/* Este bloque centra la tarjeta SOLO cuando el body tiene la clase login-body */
.login-body {
    display: flex;
    justify-content: center;
    align-items: center;
    height: 100vh;
}

.login-card {
    background: rgba(255, 255, 255, 0.85);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    padding: 40px;
    border-radius: 35px;
    box-shadow: 0 15px 35px rgba(0,0,0,0.1);
    width: 340px;
    text-align: center;
    border: 2px solid white;
}

.login-card h2 {
    color: #800000;
    margin-bottom: 10px;
    font-weight: 600;
}

.input-box {
    margin-bottom: 20px;
}

.input-box input {
    width: 100%;
    padding: 12px 15px;
    border-radius: 15px;
    border: 1px solid #ddd;
    outline: none;
    font-family: 'Quicksand', sans-serif;
}

.btn-cute {
    width: 100%;
    padding: 14px;
    background: #800000;
    color: white;
    border: none;
    border-radius: 15px;
    font-weight: 600;
    cursor: pointer;
    text-transform: uppercase;
}

/* =========================================
   3. ESTILO PARA EL MENÚ (Navbar de colores)
   ========================================= */

.header-title {
    text-align: center;
    padding: 50px 0 30px 0;
}

.header-title h2 {
    color: #4b0082; /* El morado de tu captura */
    font-size: 32px;
    text-shadow: 2px 2px 4px rgba(255,255,255,0.8);
}

.navbar-cute {
    display: flex;
    justify-content: center;
}

.main-nav {
    list-style: none;
    display: flex;
    border-radius: 8px;
    overflow: visible; /* Permite que los submenús bajen */
    box-shadow: 0 8px 25px rgba(0,0,0,0.15);
}

.main-nav li {
    position: relative;
}

.nav-item {
    display: block;
    padding: 18px 15px;
    text-decoration: none;
    color: white;
    font-weight: 600;
    font-size: 11px;
    text-align: center;
    min-width: 110px;
    transition: 0.3s;
}

/* Los colores de tu imagen de referencia */
.color-1 { background: #f1948a; } .color-2 { background: #ec7063; }
.color-3 { background: #e74c3c; } .color-4 { background: #cb4335; }
.color-5 { background: #b03a2e; } .color-6 { background: #943126; }
.color-7 { background: #78281f; } .color-8 { background: #f5b7b1; }

.nav-item:hover {
    filter: brightness(1.1);
    transform: translateY(-3px);
}

/* SUBMENÚS */
.dropdown-content {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(8px);
    min-width: 160px;
    z-index: 1000;
    border-radius: 0 0 15px 15px;
    box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

.dropdown-content a {
    color: #333;
    padding: 12px 15px;
    text-decoration: none;
    display: block;
    font-size: 13px;
    border-bottom: 1px solid #f2f2f2;
}

.dropdown-content a:last-child { border: none; border-radius: 0 0 15px 15px; }

.dropdown-content a:hover {
    background: #ffb7c5;
    color: #800000;
    padding-left: 20px;
}

/* Activa el dropdown */
.main-nav li:hover .dropdown-content {
    display: block;
}