:root {
    --blue: #007bff;
    --indigo: #6610f2;
    --purple: #6f42c1;
    --pink: #e83e8c;
    --red: #dc3545;
    --orange: #fd7e14;
    --yellow: #ffc107;
    --green: #28a745;
    --teal: #20c997;
    --cyan: #17a2b8;
    --white: #fff;
    --gray: #6c757d;
    --gray-dark: #343a40;
    --primary: #992143;
    --secondary: #33211D;
    --success: #28a745;
    --info: #17a2b8;
    --warning: #ffc107;
    --danger: #dc3545;
    --light: #FFFBF2;
    --dark: #111111;
    --breakpoint-xs: 0;
    --breakpoint-sm: 576px;
    --breakpoint-md: 768px;
    --breakpoint-lg: 992px;
    --breakpoint-xl: 1200px;

    --primary-color: #3AB235;
    --secondary-color: #1C4C1B;
    /* Color verde de la pagina */
    --background-color: #F5F6F9;
    --white: #fff;
    --text-dark: #0A290A;
    --text-light: #FFFBF2;
}

* {
    padding: 0;
    margin: 0;
    box-sizing: border-box;
    list-style: none;
    text-decoration: none;
    font-family: Arial, sans-serif;

}

/* Estilos Generales */
html, body {
    overflow-x: hidden;
    max-width: 100vw;
    position: relative;
}

.disabled-link {
    pointer-events: none;
    color: gray;
    cursor: not-allowed;
    text-decoration: none;
}


.text-primary {
    color: var(--primary-color) !important;
}

.text-light {
    color: var(--text-light) !important;
}

.text-dark {
    color: var(--text-dark) !important;
}

.text-white {
    color: var(--white) !important;
}

/* Header */
header {
    position: relative;
    /* Superpone la barra sobre la imagen */
    background-color: rgba(0, 0, 0, 0.2);
    /* Fondo negro semi-transparente */    
    width: 100vw;
    top: 0;
    right: 0;
    z-index: 1000;
    /* Se asegura de que esté sobre el contenido */
    padding: 20px 6%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all .50s ease;
}

.card-img-top {
    max-height: 300px;
    object-fit: cover;
}

.card-title {
    font-size: 1.2rem;
    font-weight: bold;
}

.logo h1 {
    font-size: 3rem;
}

.nav-list {
    list-style: none;
    display: flex;
}

.nav-list a {
    display: inline-block;
    margin: 0 35px;
    color: var(--text-light);
    font-size: 1rem;
    transition: all .6s ease;
}

.nav-list a:hover {
    color: var(--primary-color);
}

.right-content {
    display: flex;
    align-items: center;
}

.logout-btn {
    background-color: transparent;
    color: var(--white);
    border: 1px solid var(--white);
    padding: 8px 15px;
    border-radius: 5px;
    font-weight: bold;
    transition: all .6s ease;
}

a .logout-btn {
    text-decoration: none;
}

.logout-btn:hover {
    transform: translateY(-5px);
    background-color: var(--primary-color);
    border-color: var(--white);
    color: var(--white);

}

#menu-icono {
    font-size: 42px;
    z-index: 10001;
    cursor: pointer;
    margin-left: 25px;
    display: none;
    color: var(--white);
}

/* Ícono de logout */
.logout-btn .fa-sign-out-alt {
    margin-left: 5px;
}

.logo-teschi img {
    width: 100%;
    height: 50px;
}

@media(max-width: 1192px) {
    .logo-teschi img {
        width: 100%;
        height: 30px;
    }
}

body.menu-abierto {
    overflow: hidden;
    position: absolute;
}

@media (max-width: 1067px) {
    .logo-teschi img {
        width: 100%;
        height: 50px;
    }

    .logo h1 {
        font-size: 2.8rem;
    }

    #menu-icono {
        display: block;
        z-index: 10001;
        margin-left: 5px;
    }

    .nav-list {
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        width: 100%;
        height: 100vh;
        padding: 100px 50px;
        display: flex;
        flex-direction: column;
        backdrop-filter: blur(32px);
        z-index: 9999;
        transform: translateX(100%);
        transition: transform 0.5s ease-in-out;
    }

    .nav-list.open {
        transform: translateX(0);
    }

    .nav-list a {
        display: block;
        padding: 0;
        margin: 0 0 25px 0;
        font-size: 1.7rem;
    }
}

@media(max-width: 620px) {
    .logo-teschi img {
        display: none;
    }

    .logo h1 {
        font-size: 2rem;
    }


}

.head-container {
    position: relative;
    background-image: url('../img/Teschi.jpg');
    background-size: cover;
    background-position: center;
    height: 350px;
    display: flex;
    justify-content: center;
    align-items: center;
    padding-top: 95.4px;
}

/* Overlay oscuro sobre la imagen */
.head-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.3);
    /* Capa oscura sobre la imagen */
    z-index: 1;
    /* Mantiene el overlay detrás del contenido */
}

.head-box {
    z-index: 2;
    /* Para asegurarse de que el texto esté por encima del overlay */
    color: white;
    max-width: 100vh;
    width: 100%;
    margin: 10%;
    text-align: center;
    /* Alinea el texto a la derecha */
}

.head-box h1 {
    font-size: 3rem;
    /* Tamaño más grande para el título */
    font-weight: bold;
}

.head-box a,
li {
    font-size: 1.2rem;
    font-weight: bold;
    transition: all .5s ease;
}

.head-box a:hover {
    font-size: 1.4rem;
    color: var(--secondary-color);

}

/* ======= CLASES ESPECÍFICAS DE HOME ======= */

/* Estilo específico para el contenedor principal de Home */
.home-container {
    position: relative;
    background-image: url('../img/Teschi.jpg');
    /* Cambia a la URL de tu imagen */
    background-size: cover;
    background-position: center;
    height: 500px;
    display: flex;
    justify-content: flex-start;
    align-items: center;
    /* Centra verticalmente */
    padding-right: 15%;
    padding-top: 95.4px;
    /* Añade un margen a la derecha */
}

/* Overlay oscuro sobre la imagen */
.home-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    /* Capa oscura sobre la imagen */
    z-index: 1;
    /* Mantiene el overlay detrás del contenido */
}

/* Caja de bienvenida */
.welcome-box {
    z-index: 2;
    /* En z-index es para asegurarnos de que el texto esté por encima del overlay */
    color: white;
    max-width: 100vh;
    width: 100%;
    margin: 10%;
    text-align: left;
    /* Alinear el texto a la izquierda */
}

.welcome-box h1 {
    font-size: 3rem;
    /* Tamaño más grande para el título */
    font-weight: bold;
}

.welcome-box h3 {
    font-size: 2rem;
    /* Tamaño más grande para el título */
    font-weight: bold;
}

.welcome-box p {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.content-box {
    z-index: 2;    
    color: white;
    max-width: 100vh;
    width: 100%;
    margin: 5%;
    text-align: left;
    /* Alinear el texto a la derecha */
}

/* Botones de la página de inicio */
/* Contenedor oscuro para los botones */
.buttons-container-wrapper {
    background-color: rgba(0, 0, 0, 0.1);
    /* Fondo oscuro y transparente */
    padding: 20px;
    margin-top: 1px;
    display: flex;
    justify-content: center;
}

/* Botones de la página de inicio */
.buttons-container {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
    /* Para permitir que los botones se alineen en filas en pantallas pequeñas */
}

.button-box {
    background-color: white;
    border-radius: 10px;
    padding: 20px 20px;
    color: #333;
    transition: transform 0.3s ease, background-color 0.3s ease;
    display: flex;
    flex-direction: column;
    /* Cambiar la dirección para alinear el ícono encima del texto */
    align-items: center;
    justify-content: center;
    width: 200px;
    text-align: center;
    height: 150px;
}

.button-box:hover {
    transform: scale(1.08);
    /* Animación de agrandamiento */
    background-color: #f1f1f1;
}

/* Estilo de los íconos */
.button-box i {
    font-size: 2.5rem;
    /* Aumenta el tamaño de los íconos */
    margin-bottom: 10px;
    /* Margen para separar el ícono del texto */
    color: #3AB235;
    /* Color del ícono */
}

/* Botones alineados en dos columnas en pantallas pequeñas */
@media (max-width: 920px) {
    .buttons-container {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        /* Dos columnas de botones */
        gap: 20px;
    }

    .welcome-box h1 {
        font-size: 2.1rem;
        font-weight: bold;
    }

    .welcome-box h3 {
        font-size: 1.4rem;
        font-weight: bold;
    }

    .welcome-box p {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
}

/* Botones en una sola columna para pantallas aún más pequeñas */
@media (max-width: 576px) {
    #menu-icono {
        font-size: 32px;
    }

    .buttons-container {
        grid-template-columns: 1fr;
        /* Una sola columna */
    }

    .logo h1 {
        font-size: 1.5rem;
    }

    .welcome-box h1 {
        font-size: 2rem;
        font-weight: bold;
    }

    .welcome-box h3 {
        font-size: 1.2rem;
        font-weight: bold;
    }

    .welcome-box p {
        font-size: 1rem;
        margin-bottom: 10px;
    }
}

.link-white {
    text-decoration: none;
    color: #333;
}

.link-white:hover {
    color: var(--primary-color);
}


.fa-icon {
    color: #F1FCF1;
}

a,
h1,
h2,
h3,
h4,
h5,
h6 {
    color: #ffff;
    text-decoration: none;
    background-color: transparent;
}

.nav-list a:hover {
    color: #2A9226;
    text-decoration: underline;
}

a:not([href]):not([class]) {
    color: inherit;
    text-decoration: none;
}

a:not([href]):not([class]):hover {
    color: inherit;
    text-decoration: none;
}

.content {
    flex: 1;
    margin-top: -95.3px;
    z-index: 1;

    /* Asegura que esté debajo del header */
}

.wrapper {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    /* El 100vh lo usamos para aseguarar que ocupe toda la altura de la ventana */
}

/* Estilos para el footer */
.footer {
    background: #1C4C1B;
    /* Color de fondo */
    color: white;
    padding: 20px 0;
    font-family: Arial, sans-serif;
    font-size: 14px;
    position: relative;
    z-index: 1;
    /* El z-index: 1 es para que el footer este detrás del navbar */
}

.footer-content {
    display: flex;
    justify-content: space-between;
    padding: 0 20px;
}

.footer-left {
    flex-basis: 30%;
}

.footer-logo {
    font-size: 50px;
    font-weight: bold;
    margin-bottom: 1px;
}

.footer-center {
    flex-basis: 70%;
    text-align: left;
}

.footer-center p {
    margin: 0;
    line-height: 1.6;
}

/* Estilo para la parte inferior donde se encuentra el logo */
.footer-bottom {
    text-align: center;
    margin-top: 10px;
}

.logo-mexico {
    max-height: 50px; /* Limita la altura máxima */
    max-width: 100%; 
    height: auto; 
    display: block; /* Evita que se salga del contenedor en línea */
    margin: 0 auto; /* Centra el logo dentro del contenedor */
    filter: brightness(1.8);
    opacity: 1;
    /* Aumenta ligeramente la opacidad para que se vean mejor */
    transition: transform 0.3s ease;
    /* Animación para resaltar los logos cuando el cursor pasa sobre ellos */
}

.logo-mexico:hover {
    transform: scale(1.05);
    /* Agranda los logos al pasar el cursor por encima */
}

/* Añade una línea divisoria en la parte superior del footer */
.footer::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 3px;
    background-color: #2A9226;
    /* Color de la línea superior */
}
/* Estilos responsivos para pantallas pequeñas */
@media (max-width: 768px) {
    .footer-content {
        flex-direction: column; /* Elementos en una sola columna */
        text-align: center; /* Centra el contenido */
        gap: 15px; /* Espaciado adicional entre elementos */
    }

    .footer-left {
        margin-bottom: 10px;
    }

    .footer-logo {
        font-size: 35px; /* Reducir el tamaño del logo */
    }

    .footer-center {
        text-align: center; /* Centrar el texto */
    }

    .logo-mexico {
        max-height: 60px; /* Reducir el tamaño del logo en pantallas pequeñas */
    }
}

/* ======= CLASES GLOBALES ======= */

/* Contenedor centralizado horizontal y verticalmente */
.flex-center {
    display: flex;
    justify-content: center;
    align-items: center;
}

.flex-column {
    display: flex;
    flex-direction: column;
}

.flex-row {
    display: flex;
    flex-direction: row;
}

.gap-20 {
    gap: 20px;
}

.gap-40 {
    gap: 40px;
}

/* Espaciado */
.mb-20 {
    margin-bottom: 20px;
}

.mb-40 {
    margin-bottom: 40px;
}

/* Caja con fondo transparente y borde redondeado */
.transparent-box {
    background-color: rgba(220, 220, 220, 0.1);
    border-radius: 15px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.3);
    padding: 30px;
    color: #292929;
}

/* Texto en mayúsculas */
.uppercase {
    text-transform: uppercase;
}

/* Tipografía general */
.text-center {
    text-align: center;
}

.text-white {
    color: white;
}

.text-large {
    font-size: 1.2rem;
}

.text-xlarge {
    font-size: 2.5rem;
    font-weight: bold;
}


/* Hover efecto de agrandamiento */
.hover-scale {
    transition: transform 0.3s ease;
}

.hover-scale:hover {
    transform: scale(1.05);
}

/* Agregamos estilos responsivos para pantallas móviles */
@media (max-width: 768px) {
    .flex-column-mobile {
        flex-direction: column;
    }

    .full-width-mobile {
        width: 100%;
    }
}

/* Contenedor principal de los reglamentos */
.reglamentos-container {
    max-width: 800px;
    margin: 50px auto;
    padding: 20px;
    background-color: #f7f7f7;
    border-radius: 10px;
    box-shadow: 0px 4px 10px rgba(0, 0, 0, 0.1);
}

/* Estilo para cada reglamento */
.reglamento-item {
    display: flex;
    align-items: center;
    padding: 15px;
    margin-bottom: 20px;
    background-color: white;
    border-radius: 10px;
    box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
    transition: box-shadow 0.3s ease;
}

.reglamento-item:hover {
    box-shadow: 0px 4px 12px rgba(0, 0, 0, 0.2);
}

/* Icono de cada reglamento */
.reglamento-icon {
    font-size: 2rem;
    color: #7B68EE;
    margin-right: 15px;
}

/* Información de cada reglamento */
.reglamento-info h2 {
    font-size: 1.2rem;
    color: #333;
    margin-bottom: 10px;
}

/* Botón de descarga */
.download-btn {
    padding: 10px 15px;
    background-color: #28a745;
    color: white;
    text-decoration: none;
    border-radius: 5px;
    font-size: 1rem;
    transition: background-color 0.3s ease;
}

.download-btn:hover {
    background-color: #218838;
}

/*Estilos de las listas de descarga*/

.accordion-item {
    border: 1px solid #ddd;
    border-radius: 5px;
    margin-bottom: 10px;
}

.accordion-header {
    background-color: #F5F6F9;
    color: white;
    padding: 10px;
    cursor: pointer;
    font-size: 1.2rem;
}

.accordion-body {
    padding: 15px;
    background-color: #f9f9f9;
}

.accordion-button {
    background-color: transparent;
    border: none;
    font-size: 1.2rem;
    width: 100%;
    text-align: left;
}

.accordion-button:hover {
    color: #28a745;
    cursor: pointer;
}

.collapse {
    display: none;
}

.collapse.show {
    display: block;
}

.container h5 {
    color: #004d40;
    /* Verde oscuro */
}

.container-convenios {
    margin: 50px 20px;
}

.seccion {
    background-color: #f0f4f7;
    /* Fondo claro */
    margin-bottom: 20px;
    padding: 20px;
    border-radius: 8px;
    width: 100%;
    /* Sección ocupa todo el ancho disponible */
    margin-left: auto;
    margin-right: auto;
}

.seccion .row {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    /* Distribuir campos en el espacio disponible */
    gap: 10px;
    /* Espacio entre campos */
}

.col-md-4,
.col-md-3,
.col-md-6,
.col-md-12 {
    flex: 1;
    /* Permitir que las columnas se expandan */
    min-width: 200px;
    /* Ancho mínimo para evitar que se vuelvan muy pequeñas */
    max-width: 1600px;
    /* Controla el ancho máximo de cada campo */
}

#notificacionesDropdown {
    max-width: 320px;
    max-height: 400px;
    overflow-y: auto;
}

.dropdown-item .card {
    background-color: #f9f9f9;
    border: 1px solid #ddd;
    border-radius: 8px;
}

.dropdown-item .card-body {
    padding: 10px 15px;
}

.dropdown-item .card-body p {
    margin: 0;
    font-size: 0.9rem;
}

.dropdown-item .marcarLeida {
    font-size: 0.8rem;
    color: #0d6efd;
    cursor: pointer;
}



.table {
    table-layout: auto;
    /* Asegura que las celdas de la tabla se ajusten correctamente */
    width: 100%;
    /* La tabla tomará el ancho del contenedor */
    background-color: #f9f9f9;
    border-collapse: separate;
    border-spacing: 0;
}

/* Ajusta el ancho de las celdas */
table th,
table td {
    border: 1px solid #dee2e6;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 200px;
    /* Ancho máximo inicial */
    padding: 8px;
    text-align: left;
}

.table-hover tbody tr:hover {
    background-color: #f8f9fa;
}

/* Estilos de los encabezados con sticky */
.table-success th {
    position: sticky;
    top: 0;
    z-index: 2;
    /* Mayor z-index para estar encima del contenido */
    background-color: #eafaf1;
    color: #1C4C1B;
    text-align: left;
    vertical-align: middle;
    padding: 15px;
    box-shadow: 0 2px 2px -1px rgba(8, 80, 37, 0.9);
    
}

/* Estilo para las celdas del cuerpo */
.table tbody td {
    background-color: white;
    /* Fondo blanco */
    z-index: 1;

}

/* Mantiene bordes fijos en la tabla */
.table td,
.table th {
    border: 1px solid #dee2e6;
}

.table-responsive {
    max-height: 400px;
    overflow-y: auto;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    /* Mejorar la respuesta en móviles */
    position: relative;
}

th {
    position: relative;
}

th.resizable::after {
    content: "";
    position: absolute;
    right: 0;
    top: 0;
    bottom: 0;
    width: 5px;
    cursor: col-resize;
    z-index: 1;
}

/* Estilos para el chat bot */
#chatbot-container {
        position: fixed;
        bottom: 20px;
        right: 20px;
        z-index: 1050;
    }

    #chatbot-btn {
        background-color: #198754;
        color: #fff;
        border: none;
        border-radius: 30px;
        padding: 10px 18px;
        font-size: 14px;
        display: flex;
        align-items: center;
        font-weight: 500;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.2);
        transition: all 0.3s ease;
        cursor: pointer;
    }

    #chatbot-btn i {
        font-size: 18px;
        margin-left: 10px;
    }

    #chatbot-box {
        position: fixed;
        bottom: 80px;
        right: 20px;
        width: 360px;
        max-height: 600px;
        background-color: #fff;
        border-radius: 10px;
        overflow: hidden;
        display: none;
        flex-direction: column;
        box-shadow: 0 0 12px rgba(0, 0, 0, 0.3);
        transform: translateY(20px);
        opacity: 0;
        transition: all 0.3s ease-in-out;
        z-index: 1051;
        pointer-events: none;
    }

    #chatbot-box.show {
        display: flex;
        transform: translateY(0);
        opacity: 1;
        pointer-events: auto;
    }

    /* Encabezado del chatbot */
    .chatbot-header {
        background-color: #198754;
        color: #fff;
        padding: 12px;
        font-weight: bold;
        text-align: center;
        font-size: 15px;
    }

    #chatbot-messages {
        padding: 1rem;
        background-color: #f1f3f5;
        flex: 1;
        overflow-y: auto;
    }

    .chat-msg {
        margin-bottom: 10px;
        max-width: 85%;
        padding: 10px 14px;
        border-radius: 15px;
        font-size: 14px;
        line-height: 1.4;
    }

    /* Mensaje del usuario */
    .chat-msg.user {
        background-color: #dee2e6;
        align-self: flex-end;
    }

    /* Mensaje del BOT */
    .chat-msg.bot {
        background-color: #198754;
        color: white;
        align-self: flex-start;
    }

    /* Sugerencias */
    .sugerencias {
        padding: 10px;
        background-color: #f8f9fa;
        display: flex;
        flex-wrap: wrap;
        gap: 8px;
        justify-content: center;
        border-top: 1px solid #dee2e6;
    }

    .sugerencia {
        background-color: white;
        border: 1px solid #198754;
        color: #198754;
        border-radius: 20px;
        padding: 5px 14px;
        font-size: 13px;
        cursor: pointer;
        transition: all 0.2s ease-in-out;
    }

    .sugerencia:hover {
        background-color: #d1e7dd;
        color: #155724;
        border-color: #155724;
    }

    #chatbot-form {
        display: flex;
        gap: 8px;
        padding: 10px;
        background-color: white;
        border-top: 1px solid #dee2e6;
    }

    #chatbot-input {
        flex: 1;
        padding: 8px 10px;
        font-size: 14px;
        border-radius: 6px;
        border: 1px solid #ced4da;
    }

    #chatbot-form button {
        background-color: #198754;
        border: none;
        color: white;
        padding: 0 16px;
        font-size: 14px;
        border-radius: 6px;
    }

    @keyframes pulse {
        0% {
            transform: scale(1);
        }

        50% {
            transform: scale(1.1);
        }

        100% {
            transform: scale(1);
        }
    }

    #chatbot-btn.pulsar {
        animation: pulse 1s ease-in-out infinite;
    }