@media (min-width: 768px) {
    html {
        font-size: 16px;
    }
}

.container, .container-fluid {
    max-width: 1920px;
    width: 100%;
    margin: 0 auto;
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
    box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

.navbar-toggler {
    border-color: white !important; /* Cambia el color del borde del botón */
    border-width: 3px;
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3E%3Cpath stroke='white' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E") !important;
}

h1 {
    color: white;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

h2 {
    color: #004AAC;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

h3 {
    color: white;
    border: none;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

h4 {
    color: white;
    border: 0px solid red;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}

h5 {
    color: white;
    border: 0px solid red;
    font-family: 'Montserrat', sans-serif;
    font-weight: bold;
}


html {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: bold;
    position: relative;
    min-height: 100%;
    background-color: #F5F5F5;
}

header {
    background-color: #F5F5F5;
}


body-header {
    background-color: #F5F5F5;
}

body {
    margin-bottom: 60px;
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    font-weight: 500;
    margin: 8px 0px 16px;
    background-color: #F5F5F5;
}


p {
    font-family: 'Montserrat', sans-serif;
    font-size: 14px;
    color: white;
}

li {
    font-family: 'Montserrat', sans-serif;
    font-size: 13px;
    color: white;
}

footer {
    background-color: #F5F5F5;
}

navbar {
    background-color: white;    /* Cambia este valor al color que desees */
    color: #ffffff;             /* Cambia el color del texto si es necesario */
}

select {
    width: 400px;
    height:40px;
}

label {
    width: 400px;
    color: white;
}

input {
    width: 200px;
    height: 40px;
    color: white;
}

div {
    margin: 5px;
}


button {
    height: 40px;
}


/* TABLA DE COLOR   */
/* ===============  */

.table_Color {
    border-collapse: collapse;
    width: 100%;
}

    .table_Color thead {
        background: #004AAC;
        color: #fff;
        font-size: 14px;
    }

    .table_Color th {
        height: 40px;
        text-align: center;
    }

    .table_Color tbody tr:nth-child(odd) {
        background: #73abf5;
        height: 40px;
    }

    .table_Color tbody tr:nth-child(even) {
        background: #FFFFFF;
        height: 40px;
    }

    .table_Color td {
        height: 40px;
        text-align: center;
        align-items: center;
        vertical-align: middle;
    }


.table_White {
    border-collapse: collapse;
    width: 100%;
}

    .table_White tbody tr:nth-child(odd) {
        background: white;
    }

    .table_White tbody tr:nth-child(even) {
        background: white;
    }


/* MENU DE NAVEGACIÓN */
/* BOCADILLO */
/* ================== */

/* Estilos del botón del menú */
.menu-container {
    position: relative;
    display: inline-block;
}

.menu-button {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600; /* Bold */
    background-color: #F5F5F5;
    border: 3px solid #004AAC;
    color: #004AAC;
    padding: 10px 20px;
    cursor: pointer;
    border-radius: 2px;
}

/* Estilos para el contenido desplegable */
.menu-content {
    font-family: 'Montserrat', sans-serif;
    font-size: 12px;
    font-weight: 600; /* Bold */
    display: none;
    position: absolute;
    background-color: #004AAC;
    box-shadow: 0px 8px 16px rgba(0, 0, 0, 0.2);
    border-radius: 2px;
    padding: 10px;
    margin-top: 5px;
    z-index: 1;
    min-width: 255px;
}

    .menu-content a {
        color: white;
        padding: 8px 12px;
        text-decoration: none;
        display: block;
        border-radius: 2px;
        border-color:white;
    }

        .menu-content a.linea {
            padding: 0px 12px;
        }

        .menu-content a:hover {
            background-color: #01295e;
            text-transform: uppercase;
            font-weight: bold;
        }

    /* Triángulo del bocadillo */
    .menu-content::before {
        content: "";
        position: absolute;
        top: -10px;
        left: 20px;
        border-width: 10px;
        border-style: solid;
        border-color: transparent transparent white transparent;
    }

.uppercase-text {
    text-transform: uppercase;
}

.uppercase-text-centrado {
    text-transform: uppercase;
    display: block; /* Hace que el enlace ocupe toda la línea */
    text-align: center; /* Centra el texto */
}

.centrado {
    display: block; /* Hace que el enlace ocupe toda la línea */
    text-align: center; /* Centra el texto */
}

.search_header_frame {
    font: 300;
    width: 100%;
    color: white;
    background-color: #292929;
    text-align: left;
    border: solid;
    border-width: 2px;
    border-color: #004AAC;
    padding: 5px 5px 5px 5px;
}

.single_frame {
    display: block;
    width: 100%;
    color: white;
    background-color: #292929;
    align-items: center;
    overflow-y: auto;
    border: solid;
    border-width: 2px;
    border-color: #004AAC;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    padding: 5px 5px 5px 5px;
}

    .single_frame select {
        width: 400px;
        height: 40px;
    }

    .single_frame ul {
        list-style: none;
        padding: 0px;
    }

    .single_frame li {
        padding: 0px;
    }

    .single_frame a {
        text-decoration: none;
        color: blue;
    }


.cuadro_doble_superior {
    display: block;
    width: 100%;
    height: 325px;
    color: white;
    background-color: #292929;
    align-items: center;
    overflow-y: auto;
    border: solid;
    border-width: 2px;
    border-color: #E43232;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    padding: 5px 5px 5px 5px;
}

    .cuadro_doble_superior ul {
        list-style: none;
    }

    .cuadro_doble_superior li {
    }

    .cuadro_doble_superior a {
        text-decoration: none;
        color: blue;
    }

    .cuadro_doble_superior dl {
        list-style: none;
    }

    .cuadro_doble_superior dt {
        padding: 5px;
    }


.cuadro_doble_inferior {
    display: block;
    width: 100%;
    height: 325px;
    color: red;
    background-color: #292929;
    align-items: center;
    overflow-y: auto;
    border: solid;
    border-width: 2px;
    border-color: #E43232;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    padding: 5px 5px 5px 5px;
}

    .cuadro_doble_inferior ul {
        list-style: none;
    }

    .cuadro_doble_inferior li {
    }

    .cuadro_doble_inferior a {
        text-decoration: none;
        color: blue;
    }

    .cuadro_doble_inferior td {
        padding: 5px;
    }


.cuadro_triple_superior {
    display: block;
    width: 100%;
    max-height: 180px;
    color: red;
    background-color: #292929;
    align-items: center;
    overflow-y: auto;
    border: solid;
    border-width: 2px;
    border-color: #E43232;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    padding: 5px 5px 5px 5px;
}

    .cuadro_triple_superior ul {
        list-style: none;
    }

    .cuadro_triple_superior li {
    }

    .cuadro_triple_superior a {
        text-decoration: none;
        color: red;
    }

    .cuadro_triple_superior dl {
        list-style: none;
    }

    .cuadro_triple_superior dt {
        padding: 10px;
    }


.cuadro_triple_medio {
    display: block;
    width: 100%;
    max-height: 260px;
    color: red;
    background-color: #292929;
    align-items: center;
    overflow-y: auto;
    border: solid;
    border-width: 2px;
    border-color: #E43232;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    padding-inline-start: 10px;
    padding-inline-end: 10px;
    padding: 5px 5px 5px 5px;
}

    .cuadro_triple_medio ul {
        list-style: none;
    }

    .cuadro_triple_medio li {
    }

    .cuadro_triple_medio a {
        text-decoration: none;
        color: blue;
    }

    .cuadro_triple_medio th {
        padding: 5px;
        padding-inline: 5px;
        padding-inline-start: 5px;
        padding-inline-end: 5px;
    }

    .cuadro_triple_medio td {
        padding: 5px;
        padding-inline: 5px;
        padding-inline-start: 5px;
        padding-inline-end: 5px;
    }

.cuadro_triple_inferior {
    display: block;
    max-height: 260px;
    width: 100%;
    color: red;
    background-color: #292929;
    align-items: center;
    overflow-y: auto;
    border: solid;
    border-width: 2px;
    border-color: #292929;
    border-bottom-left-radius: 1px;
    border-bottom-right-radius: 1px;
    border-top-left-radius: 1px;
    border-top-right-radius: 1px;
    padding: 5px 5px 5px 5px;
}
    .cuadro_triple_inferior ul {
        list-style: none;
    }

    .cuadro_triple_inferior li {
    }

    .cuadro_triple_inferior a {
        text-decoration: none;
        color: blue;
    }

    .cuadro_triple_inferior th {
        padding: 5px;
        padding-inline: 5px;
        padding-inline-start: 5px;
        padding-inline-end: 5px;
    }

    .cuadro_triple_inferior td {
        padding: 5px;
        padding-inline: 5px;
        padding-inline-start: 5px;
        padding-inline-end: 5px;
    }


.header_frame {
    font: 300;
    width: 99%;
    background-color: #292929;
    color: red;
    height: 40px;
    text-align: left;
    border: none;
}

/* ----- Recomendación: poner esto globalmente al inicio del site.css ----- */
*, *::before, *::after {
    box-sizing: border-box;
}

/* =============================
   DATA_FRAME Y CALENDARIOS — Estilos optimizados
   ============================= */
.data_frame {
    display: block;
    width: 100%;
    height: 65%;
    color: black;
    background-color: #262944; /* Color final aplicado */
    overflow-y: auto;
    border: 2px solid #004AAC; /* Mantiene el azul original */
    border-radius: 4px;
    padding: 10px;
}

    /* Elementos internos */
    .data_frame select {
        width: 400px;
        height: 40px;
    }

    .data_frame ul {
        list-style: none;
        padding: 10px;
        margin: 0;
    }

    .data_frame li {
        padding: 0;
    }

    .data_frame a {
        text-decoration: none;
        color: blue;
    }


    /* Grid adaptable: máximo 3 calendarios por fila */
    .data_frame .row.g-3.my-3 {
        display: grid;
        /* usar minmax(0,1fr) para evitar columnas que no se encogen */
        grid-template-columns: repeat(auto-fit, minmax(calc(100% / 3 - 1rem), 1fr));
        gap: 1rem;
        justify-items: stretch;
        width: 100%;
        margin: 0 auto;
    }

        /* wrapper de cada partial */
        .data_frame .row.g-3.my-3 > div {
            width: 100%;
            padding: 0;
        }

/* ----------------------------
   PLANNING-MONTH (tarjeta)
   ---------------------------- */
.planning-month {
    display: block;
    width: 100%;
    background: linear-gradient(180deg, #31345b 0%, #2a2d4e 100%);
    color: #f2f2f2;
    border-radius: 8px;
    padding: 10px;
    border: 1px solid #ff9500;
    box-shadow: 0 2px 8px rgba(0,0,0,0.3);
    transition: transform .25s ease, box-shadow .25s ease;
}

    .planning-month:hover {
        transform: translateY(-3px);
        box-shadow: 0 4px 10px rgba(0,0,0,0.4);
    }

    /* encabezado */
    .planning-month .month-header {
        text-align: center;
        background: linear-gradient(90deg, #ff9800 0%, #ffb74d 100%);
        color: #1c1e35;
        padding: 6px 0;
        margin-bottom: 10px;
        border-radius: 6px 6px 0 0;
        font-weight: bold;
        letter-spacing: .5px;
    }

        .planning-month .month-header h5 {
            color: white;
            margin: 0;
            font-size: 1.5rem;
        }

    /* grid interno de 7 columnas (usar minmax(0,1fr) por seguridad) */
    .planning-month .month-grid {
        display: grid;
        grid-template-columns: repeat(7, minmax(0, 1fr));
        gap: 4px;
        width: 100%;
    }

    /* día (común) */
    .planning-month .day-card {
        display: flex;
        align-items: center;
        justify-content: space-between;
        gap: 6px;
        padding: 6px;
        min-height: 34px;
        border-radius: 4px;
        background: rgba(255,255,255,0.03);
        transition: background .18s ease, color .18s ease, box-shadow .18s ease;
    }

        /* día vacío */
        .planning-month .day-card.empty {
            background: transparent;
        }

    /* número del día */
    .planning-month .day-number {
        width: 2ch;
        text-align: right;
        font-size: .85rem;
        color: #e6e6e6;
        font-weight: 600;
    }

    /* select dentro del día: texto oscuro para legibilidad + estilos consistentes */
    .planning-month .day-card select.day-code {
        flex: 1 1 auto;
        min-width: 0;
        width: 100%;
        font-size: .85rem;
        font-weight: 600;
        color: #212529 !important; /* legible sobre fondos */
        background-color: rgba(255,255,255,0.9) !important;
        border: 1px solid rgba(0,0,0,0.15);
        border-radius: 4px;
        padding: 2px;
    }

        .planning-month .day-card select.day-code:focus {
            outline: none;
            background-color: #fff !important;
            color: #000 !important;
            border-color: #666;
        }

        .planning-month .day-card select.day-code option {
            color: #212529;
            background: #fff;
        }

    /* =============================
   COLORES POR TIPO (clases)
   ============================= */
    /* nota: usamos selectores con .planning-month para mantener scope */
    .planning-month .day-card.day-lb {
        background: #0d6efd;
        color: #fff;
    }

    .planning-month .day-card.day-nl {
        background: #1e7e34;
        color: #fff;
    }

    .planning-month .day-card.day-vc {
        background: #ffc107;
        color: #fff;
    }

    .planning-month .day-card.day-ba {
        background: #F09B59;
        color: #fff;
    }

    .planning-month .day-card.day-au {
        background: #dc3545;
        color: #fff;
    }

    .planning-month .day-card.day-ot {
        background: #6c757d;
        color: #fff;
    }

        /* que el select y el número hereden el color legible */
        .planning-month .day-card.day-lb select,
        .planning-month .day-card.day-nl select,
        .planning-month .day-card.day-vc select,
        .planning-month .day-card.day-ba select,
        .planning-month .day-card.day-au select,
        .planning-month .day-card.day-ot select {
            background: rgba(255,255,255,0.85) !important; /* mantener select legible */
            color: #212529 !important;
            border: 1px solid rgba(0,0,0,0.15);
        }

    /* contraste específico para día amarillo */
    .planning-month .day-card.day-vc .day-number {
        color: #222;
    }

/* tabla superior (campos) */
.data_frame nav table {
    width: 100%;
    table-layout: fixed;
}

/* responsive: tablet -> 2 col, móvil -> 1 col */
@media (max-width:991px) {
    .data_frame .row.g-3.my-3 {
        grid-template-columns: repeat(auto-fit, minmax(calc(100% / 2 - 1rem), 1fr));
    }
}

@media (max-width:600px) {
    .data_frame .row.g-3.my-3 {
        grid-template-columns: 1fr;
    }
}

