:root {
    --verde-windsor: #00224C;
    --beige-fondo: #E4E9F2;
}

/* === GENERAL === */
html, body {
    height: 100%;
    margin: 0;
    padding: 0;
    background-color: var(--beige-fondo);
    font-family: Arial, sans-serif;
    display: flex;
    flex-direction: column;
    overflow-x: hidden; /* 🔥 elimina scroll horizontal */
    overflow-y: auto;   /* permite scroll solo si es necesario */
}

/* === BARRA SUPERIOR === */
.barra-superior {
    background-color: var(--verde-windsor);
    color: white;
    text-align: center;
    padding: 12px 0;
    font-weight: bold;
    font-size: 18px;
    letter-spacing: 0.5px;
    box-shadow: 0 3px 6px rgba(0,0,0,0.2);
}

/* === INDEX === */
.page-index {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    min-height: calc(100vh - 120px); /* 🔥 evita forzar más altura que la disponible */
}

/* Cuadro central */
.page-index .inicio-container {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    margin-top: 80px; /* 🔥 mantiene la posición visual exacta */
    height: auto;     /* evita forzar alto fijo */
}

.inicio-box {
    background: #fff;
    padding: 40px 50px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    border-top: 10px solid var(--verde-windsor);
    width: 600px;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.inicio-box:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 25px rgba(0,0,0,0.2);
}

.inicio-box .logo {
    width: 280px;
    margin-bottom: 15px;
}

.inicio-box h3 {
    color: var(--verde-windsor);
    font-weight: bold;
    font-size: 18px;
    margin-bottom: 10px;
}

.inicio-box p {
    color: #555;
    margin-bottom: 25px;
}

/* === BOTONES === */
.btn {
    background-color: var(--verde-windsor);
    color: white;
    font-weight: bold;
    padding: 10px 25px;
    border-radius: 6px;
    text-decoration: none;
    display: inline-block;
    transition: all 0.3s ease;
    border: none;
}

.btn:hover {
    background-color: #5f6760;
    transform: translateY(-2px);
}

/* === PIE DE PÁGINA === */
.pie-pagina {
    background-color: var(--verde-windsor);
    color: white;
    text-align: center;
    padding: 10px 0;
    font-size: 14px;
    width: 100%;
    position: fixed;
    bottom: 0;
    left: 0;
    box-shadow: 0 -3px 6px rgba(0,0,0,0.1);
}

/* === MÓDULOS === */
.contenedor {
    width: 520px;
    margin: 40px auto;
    background: #fff;
    padding: 35px;
    border-radius: 12px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    text-align: center;
    border-top: 10px solid var(--verde-windsor);
}

h2 {
    color: var(--verde-windsor);
    margin-bottom: 10px;
    font-size: 22px;
}

.subtitulo {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
}

label {
    float: left;
    font-weight: bold;
    margin-top: 10px;
    font-size: 13px;
    color: #333;
}

.select2-container {
    width: 100% !important;
    font-size: 13px;
}

.checkbox-list {
    text-align: left;
    border: 1px solid #ccc;
    padding: 15px;
    margin-top: 10px;
    border-radius: 6px;
    background-color: #f8f8f8;
    min-height: 180px;
}

.checkbox-list label {
    display: block;
    margin-bottom: 6px;
    font-weight: normal;
    color: #333;
    font-size: 13px;
}

.btn:disabled {
    background-color: #a0a0a0;
    cursor: not-allowed;
}

/* === RESPONSIVE === */
@media (max-width: 640px) {
    .inicio-box {
        width: 90%;
        padding: 30px 25px;
    }
}

/* === ESTRUCTURA GENERAL === */
.contenido-pagina {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

/* === Fondo general === */
body {
    display: flex;
    flex-direction: column;
    background-color: var(--beige-fondo);
}
