body {
    font-family: 'Montserrat', sans-serif !important;

}

.letrae {
    color: #FFFFFF;
    text-align: justify;
    padding: 10px 60px;
}

.linea {
    width: 90px;
    height: 5px;
    background: #f87902;
    border-radius: 10px;
    margin-bottom: 30px;
}

.separador {
    display: flex;
    align-items: center;
    gap: 15px;
}

.separador hr {
    flex: 1;
    border: none;
    border-top: 1px solid #ccc;
    margin: 0;
}

.separador span {
    font-weight: bold;
    color: #04809c;
    text-align: center;
}

.acordeones {
    width: 100%;
    max-width: 1100px;
    margin: 30px 0;
}

/* CADA ACORDEÓN */
.acordeon {
    position: relative;
    width: 100%;
    margin-bottom: 15px;
}

.acordeon-boton {
    width: 200px;
    min-height: 70px;
    border: none;
    border-radius: 8px;
    background: #f87902;
    color: white;
    font-size: 18px;
    font-weight: bold;
    cursor: pointer;
    transition: background 0.3s ease;
}

.acordeon-boton:hover {
    background: #555;
}

.acordeon-contenido {
    position: absolute;
    left: 215px;
    /* Aparece justo al lado del botón */
    top: 0;
    width: 0;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    transition: width 0.4s ease, opacity 0.3s ease;
    z-index: 10;
}

/* CORRECCIÓN 1: El contenedor interno ocupa el 100% del espacio disponible */
.acordeon-contenido-interno {
    width: 100%;
    padding: 20px;
    box-sizing: border-box;
}

.acordeon-contenido h3 {
    margin-top: 0;
    margin-bottom: 10px;
}

.acordeon-contenido p {
    margin: 0;
    line-height: 1.5;
}

/* ACORDEÓN ABIERTO */
.acordeon.activo .acordeon-contenido {
    width: calc(100% - 230px);
    /* Ocupa el ancho restante de la pantalla */
    max-width: 850px;
    max-height: 500px;
    opacity: 1;
}

.flecha {
    display: inline-block;
    margin-left: 8px;
    transition: transform 0.4s ease;
}

.acordeon.activo .flecha {
    transform: rotate(180deg);
}

/* CONTENEDOR DE TABLA RESPONSIVA CON SCROLL */
.tabla-contenedor {
    max-height: 380px;
    /* Controla la altura para tablas muy largas */
    overflow-x: auto;
    /* Permite scroll horizontal si la tabla es muy ancha */
    overflow-y: auto;
    /* Permite scroll vertical si hay muchas filas */
    border: 1px solid #dee2e6;
    border-radius: 6px;
}

.custom-table {
    width: 100%;
    margin-bottom: 0;
    white-space: nowrap;
}

.custom-table thead th {
    position: sticky;
    top: 0;
    background-color: #04809c;
    color: #ffffff;
    z-index: 2;
    border-bottom: 2px solid #036278;
}

/* CORRECCIÓN 2: Sintaxis corregida con coma */
.custom-table th,
.custom-table td {
    padding: 10px 15px;
    vertical-align: middle;
}

/* RESPONSIVE: En móviles y tablets el panel pasa a estar ABAJO del botón */
@media (max-width: 850px) {
    .acordeon-boton {
        width: 100%;
    }

    .acordeon-contenido {
        position: static;
        /* Pasa debajo del botón */
        width: 100% !important;
        max-height: 0;
        margin-top: 0;
    }

    .acordeon.activo .acordeon-contenido {
        width: 100% !important;
        max-height: 600px;
        margin-top: 10px;
    }
}

/*============================
         COMITES
=============================== */
.mensajes{
    font-size: 19px;
    text-align: justify;
    font-family: 'Montserrat', sans-serif !important;
}

.datagrid table {
    border-collapse: collapse;
    text-align: left;
    width: 100%;
}

.datagrid {
    font: 85%/140% Intro Light Regular, Arial, Helvetica, sans-serif;
    font-weight: normal;
    font-style: normal;
    background: #fff;
    overflow: hidden;
    border: 1px solid #006699;
    -webkit-border-radius: 3px;
    -moz-border-radius: 3px;
    border-radius: 3px
}

.datagrid table td .datagrid table th {
    padding: 3px 10px;
}

.datagrid table thead th {
    background: -webkit-gradient(linear, left top, left bottom, color-stop(0.05, #006699), color-stop(1, #00557F));
    background: -moz-linear-gradient(center top, #006699 5%, #00557F 100%);
    filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#006699', endColorstr='#00557F');
    background-color: #006699;
    color: #FFFFFF;
    font-size: 15px;
    font-weight: bold;
    border-left: 1px solid #0070A8;
}

.datagrid table thead th:first-child {
    border: none;
}

.datagrid table tbody td {
    color: #00496B;
    border-left: 1px solid #E1EEF4;
    font-size: 14px;
    border-bottom: 1px solid #E1EEF4;
    font-weight: normal;
}

.datagrid table tbody td:first-child {
    border-left: none;
}

.datagrid table tbody tr:last-child td {
    border-bottom: none;
}

.datagrid img {
    cursor: pointer;
}
/* MODAL*/
.modal-cerrado {
    background-color: #04809c;
    padding: 5px 15px;
    border-radius: 5px;
    color: #ffffff;
}

#modal::backdrop {
    background-color: rgba(0, 0, 0, .55);
}

#modal {
    max-width: 60%;
}

@media(max-width:992px) {
    #modal {
        max-width: 80%;
    }
}