/* Variables CSS para temas */
:root {
    --header-height: 126px;
    --sidebar-header-gap: 0px;

    /* Tema Claro (default) - Azul primario, Dorado secundario */
    --color-tema: #004080; /* Azul */
    --color-secundario: #D2AF26; /* Dorado */
    --color-accento: #007bff;
    --color-oscuro: #2C3E50;
    --color-claro: #f8f9fa;
    --color-texto: #333333;
    --color-texto-claro: #666666;
    --color-fondo: #ffffff;
    --color-fondo-secundario: #f5f5f5;
    --color-borde: #e0e0e0;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.1);
    --transicion: all 0.3s ease;
    
    /* Header */
    --fondo-encabezado: #ffffff;
    --texto-encabezado: #333333;
    
    /* Sidebar */
    --fondo-barralateral: #ffffff;
    --texto-barralateral: #333333;
    --borde-barralateral: #e0e0e0;
    
    /* Cards */
    --fondo-tarjeta: #ffffff;
    --sombra-tarjeta: 0 2px 4px rgba(0, 0, 0, 0.1);
}

/* Tema Oscuro - Inversión de colores: Dorado primario, Azul secundario */
[data-theme="dark"] {
    /* Colores principales */
    --color-tema: #D2AF26; /* Dorado */
    --color-secundario: #004080; /* Azul */
    --color-accento: #f7a932;
    --color-oscuro: #1a1a1a;
    --color-claro: #2c2c2c;
    --color-texto: #ffffff;
    --color-texto-claro: #b0b0b0;
    --color-fondo: #121212;
    --color-fondo-secundario: #1e1e1e;
    --color-borde: #404040;
    --sombra: 0 4px 6px rgba(0, 0, 0, 0.3);
    
    /* Header */
    --fondo-encabezado: #1a1a1a;
    --texto-encabezado: #ffffff;
    
    /* Sidebar */
    --fondo-barralateral: #1a1a1a;
    --texto-barralateral: #ffffff;
    --borde-barralateral: #404040;
    
    /* Cards */
    --fondo-tarjeta: #1e1e1e;
    --sombra-tarjeta: 0 2px 4px rgba(0, 0, 0, 0.3);
}

/* Estilos Base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    background-color: var(--color-fondo);
    color: var(--color-texto);
    line-height: 1.6;
    overflow-x: hidden;
    padding-top: 80px;
}

/* Clases para colores temáticos */
.color-tema {
    color: var(--color-tema) !important;
}

.color-secundario {
    color: var(--color-secundario) !important;
}

/* Botones principales */
.boton-principal {
    background-color: var(--color-tema) !important;
    border-color: var(--color-tema) !important;
    color: #fff !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transicion);
}

.boton-principal:hover {
    background-color: var(--color-secundario) !important;
    border-color: var(--color-secundario) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.boton-secundario {
    background-color: transparent !important;
    border: 2px solid var(--color-tema) !important;
    color: var(--color-tema) !important;
    padding: 10px 25px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transicion);
}

.boton-secundario:hover {
    background-color: var(--color-tema) !important;
    color: #fff !important;
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

/* Botón Hamburguesa en Header */
.boton-hamburguesa-menu {
    background-color: var(--color-secundario) !important;
    border-color: var(--color-secundario) !important;
    color: #fff !important;
    padding: 8px 20px;
    border-radius: 5px;
    font-weight: 500;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.boton-hamburguesa-menu:hover {
    background-color: var(--color-tema) !important;
    border-color: var(--color-tema) !important;
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.boton-hamburguesa-menu i {
    font-size: 1.1rem;
}

/* Interruptor de Tema con Sol y Luna */
.interruptor-tema {
    position: fixed;
    top: max(12px, calc((var(--header-height) - 30px) / 2));
    right: 20px;
    z-index: 1100;
}

.interruptor-tema.interruptor-tema-header {
    position: static;
    flex: 0 0 auto;
    margin-left: 14px;
    z-index: auto;
}

.interruptor-check {
    display: none;
}

.interruptor-contenedor {
    display: block;
    width: 60px;
    height: 30px;
    background: var(--color-claro);
    border-radius: 50px;
    position: relative;
    cursor: pointer;
    border: 2px solid var(--color-borde);
    transition: var(--transicion);
}

.interruptor-opcion {
    position: absolute;
    top: 2px;
    left: 2px;
    width: 24px;
    height: 24px;
    background: var(--color-tema);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.3s ease;
    z-index: 2;
}

.interruptor-check:checked + .interruptor-contenedor .interruptor-opcion {
    transform: translateX(30px);
}

.icono-sol, .icono-luna {
    position: absolute;
    font-size: 12px;
    color: white;
    transition: opacity 0.3s ease;
}

.icono-sol {
    opacity: 1;
}

.icono-luna {
    opacity: 0;
}

[data-theme="dark"] .icono-sol {
    opacity: 0;
}

[data-theme="dark"] .icono-luna {
    opacity: 1;
}

/* Encabezado Fijo */
.encabezado {
    background-color: var(--fondo-encabezado);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    z-index: 999;
    transition: transform 0.3s ease;
    transform: translateY(0) !important;
}

.encabezado.fijo-arriba {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.encabezado .navbar-brand .logo {
    height: 112px;
    width: auto;
}

.encabezado .nav-link {
    color: var(--texto-encabezado);
    font-weight: 500;
    padding: 0.5rem 1rem;
    transition: var(--transicion);
}

.encabezado .nav-link:hover,
.encabezado .nav-link.active {
    color: var(--color-tema);
}

/* Barra Lateral - MANTENIENDO DISEÑO ORIGINAL */
.barralateral {
    position: fixed;
    right: 0;
    top: calc(var(--header-height) + var(--sidebar-header-gap));
    width: 280px;
    height: calc(100vh - var(--header-height) - var(--sidebar-header-gap));
    background-color: var(--fondo-barralateral);
    border-left: 1px solid var(--borde-barralateral);
    padding: 20px;
    z-index: 998;
    transition: transform 0.3s ease;
    overflow-y: auto;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
}

.barralateral.colapsada {
    transform: translateX(100%);
}

.cabecera-barralateral {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--borde-barralateral);
}

.cabecera-barralateral h3 {
    color: var(--texto-barralateral);
    margin: 0;
    font-size: 1.2rem;
}

.cerrar-barralateral {
    background: none;
    border: none;
    color: var(--texto-barralateral);
    font-size: 1.2rem;
    cursor: pointer;
    transition: var(--transicion);
    padding: 5px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.cerrar-barralateral:hover {
    background-color: var(--color-tema);
    color: white;
}

.menu-barralateral {
    display: flex;
    flex-direction: column;
}

.item-barralateral {
    display: flex;
    align-items: center;
    padding: 12px 15px;
    color: var(--texto-barralateral);
    text-decoration: none;
    border-radius: 8px;
    margin-bottom: 8px;
    transition: var(--transicion);
}

.item-barralateral:hover {
    background-color: var(--color-tema);
    color: white;
    transform: translateX(-5px);
}

.item-barralateral i {
    margin-right: 12px;
    font-size: 1.1rem;
    width: 24px;
    text-align: center;
}

/* Botón Barra Lateral */
.boton-barralateral {
    position: fixed;
    right: 20px;
    bottom: 20px;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    background-color: var(--color-tema);
    color: white;
    border: none;
    cursor: pointer;
    z-index: 997;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    box-shadow: var(--sombra);
    transition: var(--transicion);
}

.boton-barralateral:hover {
    background-color: var(--color-secundario);
    transform: scale(1.1);
}

/* Contenido Principal */
.contenido-principal {
    transition: var(--transicion);
    margin-right: 280px;
    min-height: calc(100vh - 80px);
}

.contenido-principal.barralateral-colapsada {
    margin-right: 0;
}

/* Banner Video */
.banner-video {
    position: relative;
    height: 90vh;
    min-height: 700px;
    overflow: hidden;
    margin-bottom: 40px;
}

.contenedor-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.contenedor-video video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.superposicion-video {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.4) 100%);
    display: flex;
    align-items: center;
    z-index: 2;
}

.texto-banner {
    color: white;
    max-width: 700px;
    padding: 20px;
}

.texto-banner h1 {
    font-size: 3.5rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    line-height: 1.2;
}

.texto-banner .lead {
    font-size: 1.4rem;
    margin-bottom: 2.5rem;
    opacity: 0.9;
}

/* Sección Introducción */
.seccion-introduccion {
    padding: 80px 0;
    background-color: var(--color-fondo);
}

.imagen-introduccion {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 400px;
}

.imagen-introduccion img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenido-introduccion {
    padding: 30px;
}

.icono-introduccion {
    text-align: left;
}

.texto-introduccion .lead {
    font-size: 1.2rem;
    font-weight: 500;
    margin-bottom: 25px;
}

.parrafos-introduccion p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

.texto-justificado {
    text-align: justify;
}

.botones-introduccion {
    margin-top: 30px;
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

/* Sección Interactiva */
.seccion-interactiva {
    background-color: var(--color-fondo-secundario);
    border-radius: 15px;
    margin: 40px auto;
    max-width: 1200px;
    padding: 60px 20px !important;
}

.contenedor-interactivo {
    width: 100%;
}

.navegacion-secciones {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 30px;
}

.boton-seccion {
    background: transparent;
    border: 2px solid var(--color-tema);
    color: var(--color-tema);
    padding: 12px 24px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transicion);
    display: flex;
    align-items: center;
    min-width: 200px;
    justify-content: center;
    font-size: 1rem;
}

.boton-seccion.activo {
    background: var(--color-tema);
    color: #fff;
    border-color: var(--color-tema);
}

.boton-seccion:hover:not(.activo) {
    background: var(--color-tema);
    color: white;
    transform: translateY(-2px);
    box-shadow: var(--sombra);
}

.contenido-secciones {
    background: var(--fondo-tarjeta);
    border-radius: 15px;
    padding: 40px;
    box-shadow: var(--sombra);
}

.panel-seccion {
    display: none;
    animation: aparecer 0.5s ease;
}

.panel-seccion.activo {
    display: block;
}

@keyframes aparecer {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Tarjetas de Equipo */
.tarjeta-equipo {
    background: var(--fondo-tarjeta);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-tarjeta);
    height: 100%;
    border: 1px solid var(--color-borde);
    transition: var(--transicion);
}

.tarjeta-equipo:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.imagen-equipo {
    height: 250px;
    overflow: hidden;
}

.imagen-equipo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.info-equipo {
    padding: 25px 20px;
    text-align: center;
}

.info-equipo h4 {
    margin-bottom: 8px;
    font-size: 1.2rem;
    font-weight: 600;
}

.posicion {
    font-weight: 500;
    margin-bottom: 15px;
    font-size: 0.95rem;
    color: var(--color-secundario);
}

/* Historia */
.imagen-historia {
    border-radius: 15px;
    overflow: hidden;
    height: 100%;
    min-height: 350px;
}

.imagen-historia img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.contenido-historia {
    padding: 20px;
}

.sinopsis-historia p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 20px;
}

/* Tarjetas de Misión y Visión */
.tarjeta-mision-vision {
    border: 2px solid var(--color-tema);
    border-radius: 15px;
    height: 100%;
    background: var(--fondo-tarjeta);
    transition: var(--transicion);
}

.tarjeta-mision-vision:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contenedor-icono {
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.texto-mision, .texto-vision {
    color: var(--color-texto);
    line-height: 1.7;
    font-size: 1.05rem;
}

/* Carrusel de Valores */
.carrusel-valores {
    padding: 20px 0 50px;
    width: 100%;
}

.tarjeta-valor {
    background: var(--fondo-tarjeta);
    border-radius: 15px;
    padding: 30px;
    height: 320px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-tema);
    transition: var(--transicion);
    box-shadow: var(--sombra);
    text-align: center;
}

.tarjeta-valor:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.2);
}

.icono-valor {
    width: 70px;
    height: 70px;
    background: var(--color-tema);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
    color: white;
    font-size: 1.8rem;
}

.titulo-valor {
    color: var(--color-tema);
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 15px;
}

.descripcion-valor {
    color: var(--color-texto);
    line-height: 1.6;
    font-size: 0.95rem;
    flex-grow: 1;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 5;
    -webkit-box-orient: vertical;
}

/* Navegación del carrusel */
.swiper-button-next,
.swiper-button-prev {
    color: var(--color-tema) !important;
    background: var(--fondo-tarjeta);
    width: 45px;
    height: 45px;
    border-radius: 50%;
    box-shadow: var(--sombra);
    border: 1px solid var(--color-borde);
}

.swiper-button-next:after,
.swiper-button-prev:after {
    font-size: 18px !important;
}

.swiper-button-next:hover,
.swiper-button-prev:hover {
    background: var(--color-tema);
    color: white !important;
}

.swiper-pagination-bullet {
    background: var(--color-borde);
    opacity: 0.7;
    width: 10px;
    height: 10px;
}

.swiper-pagination-bullet-active {
    background: var(--color-tema);
    opacity: 1;
}

/* Tarjetas de Video */
.tarjeta-video {
    background: var(--fondo-tarjeta);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--sombra-tarjeta);
    height: 100%;
    border: 1px solid var(--color-borde);
    transition: var(--transicion);
}

.tarjeta-video:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
}

.contenedor-video {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
    overflow: hidden;
}

.contenedor-video iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    border: none;
}

.info-video {
    padding: 20px;
    text-align: center;
}

.info-video h5 {
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 600;
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Botón YouTube (siempre rojo) */
.boton-youtube {
    background-color: #FF0000 !important;
    border-color: #FF0000 !important;
    color: #ffffff !important;
    transition: var(--transicion);
    font-weight: 500;
}

.boton-youtube:hover {
    background-color: #CC0000 !important;
    border-color: #CC0000 !important;
    color: #ffffff !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(255, 0, 0, 0.3);
}


.footer {
    background: linear-gradient(to bottom, #d1c28a, #b8860b);
    color: #fff;
    padding: 40px 0 20px;
    margin-top: 60px;
    width: 100%;
    transition: background 0.8s ease, width 0.3s ease, margin-right 0.3s ease;
}

.footer .container-fluid {
    max-width: 1200px;
    margin: 0 auto;
}

.footer-section {
    padding: 15px;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.footer-title {
    font-size: 1.3rem;
    font-weight: 600;
    margin-bottom: 25px;
    color: #fff;
    text-align: center;
    width: 100%;
}

/* CONTENEDOR DE LOGOS - LOS 3 EN UNA SOLA FILA */
.footer-images {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 30px !important;
    width: 100% !important;
    max-width: 800px;
    margin: 0 auto !important;
}

.footer-logo {
    width: 205px;
    height: 155px;
    padding: 10px;
    border-radius: 8px;
    display: block;
    flex-shrink: 0;
    object-fit: contain;
}

/* IMAGEN */
.footer-logo img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* No se deforma */
    display: block;
}

/* SOCIAL ICONS */
.footer-social-icons {
    display: flex !important;
    justify-content: center !important;
    gap: 25px !important;
    margin-top: 10px !important;
    width: 100%;
}

.social-icon {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 50px !important;
    height: 50px !important;
    background: rgba(255, 255, 255, 0.15) !important;
    border-radius: 50% !important;
    color: #fff !important;
    font-size: 1.4rem !important;
    text-decoration: none !important;
    transition: all 0.3s ease !important;
    border: 2px solid rgba(255, 255, 255, 0.3) !important;
}

.social-icon:hover {
    background: #fff !important;
    color: #b8860b !important;
    transform: translateY(-5px) scale(1.1) !important;
    border-color: #fff !important;
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2) !important;
}

/* Facebook */
.social-icon:nth-child(1):hover {
    color: #1877F2 !important;
}

/* YouTube */
.social-icon:nth-child(2):hover {
    color: #FF0000 !important;
}

/* Instagram */
.social-icon:nth-child(3):hover {
    background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fdf497 5%, #fd5949 45%, #d6249f 60%, #285AEB 90%) !important;
    -webkit-background-clip: text !important;
    -webkit-text-fill-color: transparent !important;
    border-color: transparent !important;
}

/* TEXTO DERECHOS RESERVADOS */
.footer-copyright {
    margin-top: 30px !important;
    padding-top: 20px !important;
    border-top: 2px solid rgba(255, 255, 255, 0.3) !important;
    font-size: 0.9rem !important;
    color: rgba(255, 255, 255, 0.9) !important;
    font-weight: 500 !important;
    letter-spacing: 0.5px !important;
    text-align: center !important;
    width: 100%;
}

/* =========================================== */
/* RESPONSIVE DESIGN - PC, TABLET, TELEFONO */
/* =========================================== */

/* 1. PARA PC (Desktop - 992px en adelante) */
@media (min-width: 992px) {
    body {
        padding-top: 80px;
    }
    
    .encabezado .navbar-brand .logo {
        height: 112px;
    }
    
    .boton-hamburguesa-menu {
        display: none;
    }
    
    .banner-video {
        height: 90vh;
        min-height: 700px;
    }
    
    .texto-banner h1 {
        font-size: 3.5rem;
    }
    
    .texto-banner .lead {
        font-size: 1.4rem;
    }
    
    .seccion-introduccion,
    .seccion-interactiva,
    .seccion-videos {
        padding: 80px 0;
    }
    
    .navegacion-secciones {
        flex-wrap: nowrap;
    }
    
    .boton-seccion {
        min-width: 200px;
    }
    
    .barralateral {
        width: 280px;
    }
    
    .contenido-principal {
        margin-right: 280px;
    }

    .footer.footer-con-barralateral {
        width: calc(100% - 280px);
        margin-right: 280px;
    }

    .footer.footer-con-barralateral.barralateral-colapsada {
        width: 100%;
        margin-right: 0;
    }
    
    /* FOOTER PC */
    .footer-images {
        gap: 40px !important;
    }
    
    .footer-logo {
        width: 160px !important;
        height: 130px !important;
    }
    
    .footer-section {
        align-items: center;
    }
}

/* 2. PARA TABLET (768px - 991px) */
@media (max-width: 991px) {
    body {
        padding-top: 75px;
    }
    
    .encabezado .navbar-brand .logo {
        height: 62px;
    }
    
    .boton-hamburguesa-menu {
        display: flex;
        padding: 6px 15px;
        font-size: 0.9rem;
    }
    
    .boton-hamburguesa-menu span {
        display: inline;
    }
    
    .banner-video {
        height: 70vh;
        min-height: 500px;
    }
    
    .texto-banner h1 {
        font-size: 2.8rem;
    }
    
    .texto-banner .lead {
        font-size: 1.2rem;
    }
    
    .seccion-introduccion,
    .seccion-interactiva,
    .seccion-videos {
        padding: 60px 0;
    }
    
    .navegacion-secciones {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-seccion {
        width: 100%;
        max-width: 300px;
        margin-bottom: 10px;
    }
    
    .contenido-secciones {
        padding: 30px;
    }
    
    .barralateral {
        width: 300px;
        transform: translateX(100%);
    }
    
    .barralateral:not(.colapsada) {
        transform: translateX(0);
    }
    
    .contenido-principal {
        margin-right: 0;
    }
    
    .contenido-principal.barralateral-colapsada {
        margin-right: 0;
    }
    
    .tarjeta-equipo {
        margin-bottom: 20px;
    }
    
    .tarjeta-valor {
        height: 300px;
    }
    
    /* FOOTER TABLET */
    .footer {
        padding: 30px 0 15px !important;
    }
    
    .footer-images {
        gap: 25px !important;
        flex-wrap: nowrap !important;
    }
    
    .footer-logo {
        width: 135px !important;
        height: 112px !important;
        padding: 8px !important;
    }
    
    .social-icon {
        width: 45px !important;
        height: 45px !important;
        font-size: 1.3rem !important;
    }
    
    .footer-copyright {
        font-size: 0.85rem !important;
        margin-top: 25px !important;
        padding-top: 15px !important;
    }
}

/* 3. PARA TELEFONO (hasta 767px) */
@media (max-width: 767px) {
    body {
        padding-top: 70px;
    }
    
    .encabezado .navbar-brand .logo {
        height: 56px;
    }
    
    .boton-hamburguesa-menu {
        display: flex;
        padding: 5px 12px;
        font-size: 0.85rem;
    }
    
    .boton-hamburguesa-menu span {
        display: none;
    }
    
    .interruptor-tema {
        top: 12px;
        right: 12px;
    }
    
    .interruptor-contenedor {
        width: 55px;
        height: 28px;
    }
    
    .interruptor-opcion {
        width: 22px;
        height: 22px;
    }
    
    .interruptor-check:checked + .interruptor-contenedor .interruptor-opcion {
        transform: translateX(27px);
    }
    
    .icono-sol, .icono-luna {
        font-size: 11px;
    }
    
    .banner-video {
        height: 60vh;
        min-height: 400px;
    }
    
    .texto-banner h1 {
        font-size: 2.2rem;
        margin-bottom: 1rem;
    }
    
    .texto-banner .lead {
        font-size: 1.1rem;
        margin-bottom: 1.5rem;
    }
    
    .seccion-introduccion,
    .seccion-interactiva,
    .seccion-videos {
        padding: 40px 0;
    }
    
    .imagen-introduccion {
        min-height: 300px;
        margin-bottom: 30px;
    }
    
    .contenido-introduccion {
        padding: 15px;
    }
    
    .botones-introduccion {
        flex-direction: column;
    }
    
    .botones-introduccion .btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .navegacion-secciones {
        flex-direction: column;
        align-items: center;
    }
    
    .boton-seccion {
        width: 100%;
        max-width: 280px;
        padding: 10px 20px;
        font-size: 0.95rem;
        margin-bottom: 8px;
    }
    
    .contenido-secciones {
        padding: 20px;
    }
    
    .panel-seccion {
        padding: 10px;
    }
    
    .barralateral {
        width: 100%;
        transform: translateX(100%);
    }
    
    .barralateral:not(.colapsada) {
        transform: translateX(0);
    }
    
    .contenido-principal {
        margin-right: 0;
    }
    
    .boton-barralateral {
        right: 15px;
        bottom: 15px;
        width: 45px;
        height: 45px;
        font-size: 1.1rem;
    }
    
    .tarjeta-equipo {
        margin-bottom: 20px;
    }
    
    .imagen-equipo {
        height: 200px;
    }
    
    .info-equipo {
        padding: 20px 15px;
    }
    
    .tarjeta-valor {
        height: 280px;
        padding: 20px;
    }
    
    .icono-valor {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
        margin-bottom: 15px;
    }
    
    .titulo-valor {
        font-size: 1.1rem;
        margin-bottom: 10px;
    }
    
    .descripcion-valor {
        font-size: 0.9rem;
        -webkit-line-clamp: 4;
    }
    
    .swiper-button-next,
    .swiper-button-prev {
        display: none !important;
    }
    
    .contenedor-video {
        margin-bottom: 15px;
    }
    
    .info-video h5 {
        font-size: 1rem;
        min-height: auto;
        margin-bottom: 10px;
    }
    
    /* FOOTER MÓVIL */
    .footer {
        padding: 30px 0 15px !important;
    }
    
    .footer-images {
        gap: 15px !important;
        flex-wrap: nowrap !important;
        justify-content: center !important;
        overflow-x: auto !important;
        padding: 10px 5px !important;
        -webkit-overflow-scrolling: touch !important;
    }
    
    .footer-logo {
        width: 112px !important;
        height: 95px !important;
        padding: 6px !important;
        flex-shrink: 0 !important;
    }
    
    .footer-title {
        font-size: 1.2rem !important;
        margin-bottom: 15px !important;
    }
    
    .footer-social-icons {
        gap: 20px !important;
    }
    
    .social-icon {
        width: 40px !important;
        height: 40px !important;
        font-size: 1.2rem !important;
    }
    
    .footer-copyright {
        font-size: 0.85rem !important;
        margin-top: 25px !important;
        padding-top: 15px !important;
    }
}

/* 4. TELEFONOS PEQUEÑOS (hasta 480px) */
@media (max-width: 480px) {
    body {
        padding-top: 65px;
    }
    
    .encabezado .navbar-brand .logo {
        height: 50px;
    }
    
    .navbar-toggler {
        padding: 4px 8px;
        font-size: 0.9rem;
    }
    
    .boton-hamburguesa-menu {
        padding: 4px 10px;
        font-size: 0.8rem;
    }
    
    .banner-video {
        height: 50vh;
        min-height: 350px;
    }
    
    .texto-banner {
        padding: 15px;
        text-align: center;
    }
    
    .texto-banner h1 {
        font-size: 1.8rem;
        margin-bottom: 0.8rem;
    }
    
    .texto-banner .lead {
        font-size: 1rem;
        margin-bottom: 1.2rem;
    }
    
    .boton-principal.btn-lg {
        padding: 8px 20px;
        font-size: 1rem;
    }
    
    .seccion-introduccion,
    .seccion-interactiva,
    .seccion-videos {
        padding: 30px 0;
    }
    
    .imagen-introduccion {
        min-height: 250px;
    }
    
    .contenido-introduccion h2 {
        font-size: 1.5rem;
    }
    
    .icono-introduccion i {
        font-size: 2.5rem;
    }
    
    .parrafos-introduccion p {
        font-size: 0.95rem;
    }
    
    .boton-seccion {
        max-width: 100%;
        padding: 8px 15px;
        font-size: 0.9rem;
    }
    
    .contenido-secciones {
        padding: 15px;
    }
    
    .cabecera-barralateral {
        padding: 15px;
    }
    
    .cabecera-barralateral h3 {
        font-size: 1.1rem;
    }
    
    .cerrar-barralateral {
        width: 35px;
        height: 35px;
        font-size: 1.1rem;
    }
    
    .item-barralateral {
        padding: 10px 12px;
        font-size: 0.9rem;
    }
    
    .item-barralateral i {
        font-size: 1rem;
        margin-right: 10px;
        width: 20px;
    }
    
    .boton-barralateral {
        right: 12px;
        bottom: 12px;
        width: 40px;
        height: 40px;
        font-size: 1rem;
    }
    
    .tarjeta-equipo {
        margin-bottom: 15px;
    }
    
    .imagen-equipo {
        height: 180px;
    }
    
    .info-equipo h4 {
        font-size: 1.1rem;
    }
    
    .posicion {
        font-size: 0.85rem;
    }
    
    .tarjeta-valor {
        height: 260px;
        padding: 15px;
    }
    
    .icono-valor {
        width: 50px;
        height: 50px;
        font-size: 1.3rem;
        margin-bottom: 12px;
    }
    
    .titulo-valor {
        font-size: 1rem;
    }
    
    .descripcion-valor {
        font-size: 0.85rem;
        -webkit-line-clamp: 3;
    }
    
    .info-video h5 {
        font-size: 0.95rem;
    }
    
    .boton-youtube {
        font-size: 0.85rem;
        padding: 5px 10px;
    }
    
    /* FOOTER MÓVIL PEQUEÑO */
    .footer {
        padding: 25px 0 15px !important;
    }
    
    .footer-images {
        gap: 10px !important;
        justify-content: flex-start !important;
        padding-left: 10px !important;
        padding-right: 10px !important;
    }
    
    .footer-logo {
        width: 96px !important;
        height: 84px !important;
        padding: 5px !important;
    }
    
    .footer-social-icons {
        gap: 15px !important;
    }
    
    .social-icon {
        width: 35px !important;
        height: 35px !important;
        font-size: 1.1rem !important;
    }
    
    .footer-copyright {
        font-size: 0.8rem !important;
        margin-top: 20px !important;
        padding-top: 12px !important;
    }
}

/* 5. AJUSTES ESPECÍFICOS PARA LANDSCAPE (horizontal) */
@media (max-height: 600px) and (orientation: landscape) {
    .banner-video {
        height: 100vh;
        min-height: 400px;
    }
    
    .barralateral {
        top: calc(var(--header-height) + var(--sidebar-header-gap));
        height: calc(100vh - var(--header-height) - var(--sidebar-header-gap));
    }
    
    .cabecera-barralateral {
        min-height: 50px;
    }
    
    .item-barralateral {
        padding: 10px;
        margin-bottom: 6px;
    }
}

/* 6. AJUSTES PARA PANTALLAS MUY GRANDES (4K y superiores) */
@media (min-width: 1600px) {
    .container {
        max-width: 1400px;
    }
    
    .banner-video {
        min-height: 800px;
    }
    
    .texto-banner h1 {
        font-size: 4.5rem;
    }
    
    .texto-banner .lead {
        font-size: 1.8rem;
    }
    
    .seccion-introduccion,
    .seccion-interactiva,
    .seccion-videos {
        padding: 100px 0;
    }
    
    .barralateral {
        width: 320px;
    }
    
    .contenido-principal {
        margin-right: 320px;
    }

    .footer.footer-con-barralateral {
        width: calc(100% - 320px);
        margin-right: 320px;
    }
    
    /* FOOTER 4K */
    .footer-logo {
        width: 180px !important;
        height: 145px !important;
        padding: 12px !important;
    }
    
    .social-icon {
        width: 60px !important;
        height: 60px !important;
        font-size: 1.6rem !important;
    }
    
    .footer-copyright {
        font-size: 1rem !important;
    }
}

/* Clases de utilidad */
.bg-light {
    background-color: var(--color-claro) !important;
}

/* Ajustes para VideoJS en modo oscuro */
[data-theme="dark"] .video-js {
    color: white;
}

[data-theme="dark"] .vjs-poster {
    background-color: var(--color-oscuro);
}

/* Asegurar que las imágenes sean responsive */
img {
    max-width: 100%;
    height: auto;
}

/* Mejoras de accesibilidad */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Quitar subrayado de todos los enlaces y botones al hacer hover */
a:hover, 
button:hover,
[class*="btn"]:hover,
[class*="boton"]:hover,
[class*="nav-link"]:hover,
[class*="item-"]:hover,
[class*="card"] button:hover,
[class*="social"]:hover,
.navbar-nav .nav-link:hover,
.item-barralateral:hover,
.news-card button:hover,
.main-news button:hover,
.card_libro1 button:hover,
.card_libro2 button:hover,
.boton-principal:hover,
.boton-secundario:hover,
.boton-servicios:hover,
.social-icon:hover,
.boton-youtube:hover,
.dropdown-item:hover,
.btn-cotizacion:hover,
.login-btn:hover,
.btn-volver:hover,
.btn-capacitacion:hover,
.hexagono1:hover,
.boton-hamburguesa-menu:hover,
.boton-barralateral:hover,
.cerrar-barralateral:hover {
    text-decoration: none !important;
}

/* ============================================
   SECCIÓN DE SERVICIOS – GRID 3x5 COMPACTO
============================================ */

/* Variables */
:root {
    --servicios-grid-gap: 14px; /* MENOS ESPACIO */
    --servicios-btn-height: 155px;
    --servicios-btn-border-radius: 12px;
    --servicios-btn-font-size: 1rem;
    --servicios-btn-padding: 20px 12px;
}

/* Título */
h2 {
    text-align: center;
    font-size: 2.6rem;
    font-weight: 700;
    margin: 35px 0 40px;
    color: var(--color-tema);
    position: relative;
    padding-bottom: 12px;
}

h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 90px;
    height: 4px;
    background: var(--color-secundario);
    border-radius: 2px;
}

/* Contenedor */
.container_servicios {
    max-width: 1300px;
    margin: 0 auto;
    padding: 25px 15px;
}

/* GRID FIJO 3 COLUMNAS x 5 FILAS */
.hexagonbereich {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(3, auto);
    gap: var(--servicios-grid-gap);
}

/* Botones */
.hexagono1 {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: var(--servicios-btn-height);
    padding: var(--servicios-btn-padding);
    text-decoration: none;
    background: var(--fondo-tarjeta);
    border: 2px solid var(--color-tema);
    border-radius: var(--servicios-btn-border-radius);
    box-shadow: var(--sombra);
    cursor: pointer;
    transition: all 0.3s ease;
    opacity: 0;
    animation: fadeIn 0.45s ease-out forwards;
}

/* Hover */
.hexagono1:hover {
    background: var(--color-tema);
    transform: translateY(-4px);
}

/* Icono */
.hexagono1 i {
    font-size: 2.2rem;
    color: var(--color-tema);
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.hexagono1 .service-inline-icon {
    width: 2.35rem;
    height: 2.35rem;
    color: var(--color-tema);
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-bottom: 10px;
    transition: all 0.3s ease;
}

.hexagono1:hover i {
    color: #ffffff !important;
    transform: scale(1.1);
}

.hexagono1:hover .service-inline-icon {
    color: #ffffff !important;
    transform: scale(1.1);
}

/* Texto */
.hexagono1 h3 {
    font-size: var(--servicios-btn-font-size);
    font-weight: 600;
    color: var(--color-texto);
    text-align: center;
    margin: 0;
    transition: color 0.3s ease;
}

.hexagono1:hover h3 {
    color: #ffffff !important;
}

/* Animación escalonada */
.hexagono1:nth-child(1) { animation-delay: 0.05s; }
.hexagono1:nth-child(2) { animation-delay: 0.1s; }
.hexagono1:nth-child(3) { animation-delay: 0.15s; }
.hexagono1:nth-child(4) { animation-delay: 0.2s; }
.hexagono1:nth-child(5) { animation-delay: 0.25s; }
.hexagono1:nth-child(6) { animation-delay: 0.3s; }
.hexagono1:nth-child(7) { animation-delay: 0.35s; }
.hexagono1:nth-child(8) { animation-delay: 0.4s; }
.hexagono1:nth-child(9) { animation-delay: 0.45s; }
.hexagono1:nth-child(10){ animation-delay: 0.5s; }
.hexagono1:nth-child(11){ animation-delay: 0.55s; }
.hexagono1:nth-child(12){ animation-delay: 0.6s; }
.hexagono1:nth-child(13){ animation-delay: 0.65s; }
.hexagono1:nth-child(14){ animation-delay: 0.7s; }
.hexagono1:nth-child(15){ animation-delay: 0.75s; }

/* Animación */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Accesibilidad */
.hexagono1:focus-visible {
    outline: 3px solid var(--color-secundario);
    outline-offset: 4px;
}

/* Botón invisible */
.hexagono1[style*="visibility: hidden"] {
    opacity: 0.25;
    border-style: dashed;
    pointer-events: none;
}


/*Industria estilos css */
.contenido-industria {
    width: 100%;
    max-width: 1140px; /* Mismo ancho que el contenedor Bootstrap */
    margin: 30px auto;
    padding: 0 15px; /* Mismo padding que el contenedor superior */
}

main.contenido-industria.contenido-principal.barralateral-colapsada {
    margin-right: auto;
}

.contenido-industria > .industria-introduccion {
    margin-top: 0;
    padding-top: 12px;
}

.parrafos-contenido {
    padding: 0; /* Sin padding adicional */
    background-color: transparent; /* Fondo transparente para que coincida */
}

.parrafos-contenido p {
    font-size: 1.05rem; /* Mismo tamaño que .parrafos-introduccion p */
    line-height: 1.7; /* Misma altura de línea */
    margin-bottom: 15px;
    color: var(--color-texto);
}

/* Asegurar que el texto superior e inferior tengan el mismo estilo */
.parrafos-introduccion p {
    font-size: 1.05rem;
    line-height: 1.7;
    margin-bottom: 15px;
}

/* Botones centrados en fila - CORREGIDO */
.botones-contenedor {
    display: flex;
    justify-content: center !important; /* Forzar centrado */
    align-items: center;
    gap: 20px;
    margin: 40px auto !important; /* Centrar el contenedor */
    flex-wrap: wrap;
    width: 100%;
    text-align: center;
}

.botones-contenedor a {
    text-decoration: none;
    min-width: 250px;
    text-align: center;
    padding: 12px 25px;
    border-radius: 8px;
    font-weight: 500;
    transition: var(--transicion);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    box-shadow: var(--sombra);
}

/* Botón principal - usa color tema */
.boton-principal {
    background-color: var(--color-tema) !important;
    border: 2px solid var(--color-tema) !important;
    color: #ffffff !important;
}

.boton-principal:hover {
    background-color: var(--color-secundario) !important;
    border-color: var(--color-secundario) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Botón servicios - usa color secundario */
.boton-servicios {
    background-color: var(--color-secundario) !important;
    border: 2px solid var(--color-secundario) !important;
    color: #ffffff !important;
}

.boton-servicios:hover {
    background-color: var(--color-tema) !important;
    border-color: var(--color-tema) !important;
    transform: translateY(-3px);
    box-shadow: 0 8px 15px rgba(0, 0, 0, 0.2);
}

/* Modo oscuro - ajustes adicionales */
[data-theme="dark"] .boton-principal {
    background-color: var(--color-tema) !important; /* Dorado en modo oscuro */
    border-color: var(--color-tema) !important;
}

[data-theme="dark"] .boton-principal:hover {
    background-color: var(--color-secundario) !important; /* Azul en hover */
    border-color: var(--color-secundario) !important;
}

[data-theme="dark"] .boton-servicios {
    background-color: var(--color-secundario) !important; /* Azul en modo oscuro */
    border-color: var(--color-secundario) !important;
}

[data-theme="dark"] .boton-servicios:hover {
    background-color: var(--color-tema) !important; /* Dorado en hover */
    border-color: var(--color-tema) !important;
}

/* Responsive para botones */
@media (max-width: 768px) {
    .botones-contenedor {
        flex-direction: column;
        gap: 15px;
        justify-content: center;
        align-items: center;
    }
    
    .botones-contenedor a {
        width: 100%;
        max-width: 280px;
        margin: 0 auto; /* Centrar cada botón */
    }
}

@media (max-width: 480px) {
    .contenido-industria {
        padding: 0 10px;
        margin: 20px auto;
    }
    
    .parrafos-contenido p,
    .parrafos-introduccion p {
        font-size: 0.95rem;
        line-height: 1.6;
    }
    
    .botones-contenedor a {
        min-width: auto;
        width: 100%;
        max-width: 260px;
        padding: 10px 20px;
        font-size: 0.95rem;
    }
}

.carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 20px 0;
    gap: 20px;
}

.carousel::-webkit-scrollbar {
    height: 8px;
}

.carousel::-webkit-scrollbar-track {
    background: var(--color-fondo-secundario);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb {
    background-color: var(--color-tema);
    border-radius: 10px;
}

.carousel::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-secundario);
}

.card {
    flex: 0 0 auto;
    width: 300px;
    background-color: var(--fondo-tarjeta);
    border: 1px solid var(--color-borde);
    border-radius: 15px;
    padding: 20px;
    scroll-snap-align: start;
    box-shadow: var(--sombra);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: var(--transicion);
}

.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
    border-color: var(--color-tema);
}

.card img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 10px;
    margin-bottom: 15px;
}

.card h4 {
    color: var(--color-tema);
    font-size: 1.1rem;
    font-weight: 600;
    margin: 0;
    text-align: center;
    transition: var(--transicion);
}

.card:hover h4 {
    color: var(--color-secundario);
}

.industria-card-description {
    color: var(--texto-secundario, #495057);
    font-size: 0.9rem;
    line-height: 1.45;
    margin: 8px 14px 0;
    text-align: center;
}

.industria-servicios-relacionados {
    display: grid;
    gap: 4px;
    margin: 10px 16px 0;
    padding: 0;
    color: var(--texto-secundario, #495057);
    font-size: 0.82rem;
    list-style: none;
}

.industria-servicios-relacionados li::before {
    color: var(--color-tema);
    content: "•";
    font-weight: 700;
    margin-right: 5px;
}

/*Contacto css estilos */
.contacto .main-container {
    margin: 20px auto;
    max-width: 1200px;
    padding: 20px;
}

.contacto .contact-layout-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: start;
}

/* FORMULARIO - Sección izquierda */
.contacto .contact-form-section {
    padding: 0px;
}

.contacto .form-inner-container {
    background-color: var(--fondo-tarjeta, #f8f8f8);
    border-radius: 10px;
    padding: 25px;
    box-shadow: var(--sombra, 0 2px 5px rgba(0,0,0,0.05));
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--color-borde, transparent);
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-form-section h4 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--color-tema, #333);
    text-align: center;
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-form-section p {
    margin-bottom: 25px;
    line-height: 1.7;
    color: var(--color-texto, #555);
    transition: var(--transicion, all 0.3s ease);
}

/* Estilos para las etiquetas del formulario */
.contacto .contact-form-section form label {
    display: block;
    margin-bottom: 5px;
    font-weight: bold;
    margin-top: 15px;
    color: var(--color-texto, #444);
    transition: var(--transicion, all 0.3s ease);
}

/* Estilos para los campos de entrada */
.contacto .contact-form-section form input[type="text"],
.contacto .contact-form-section form input[type="email"],
.contacto .contact-form-section form input[type="tel"],
.contacto .contact-form-section form textarea {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid var(--color-borde, #ced4da);
    border-radius: .25rem;
    margin-bottom: 15px;
    box-sizing: border-box;
    font-size: 1em;
    background-color: var(--color-fondo, #ffffff);
    color: var(--color-texto, #333);
    transition: var(--transicion, all 0.3s ease);
}

/* Estilo específico para el textarea */
.contacto .contact-form-section form textarea {
    resize: vertical;
    min-height: 100px;
}

/* Estilo para el placeholder del teléfono */
.contacto .contact-form-section form input::placeholder,
.contacto .contact-form-section form textarea::placeholder {
    color: var(--color-texto-claro, #999);
    font-size: 0.9em;
}

/* Estilo para el botón de enviar */
.contacto .contact-form-section form button {
    display: block;           
    margin-left: auto;        
    margin-right: auto;       
    margin: 20px auto 0;      
    padding: 10px 35px;
    background-color: var(--color-tema, #007bff);
    border: none;
    color: white;
    border-radius: .25rem;
    cursor: pointer;
    font-size: 1.2em;
    font-weight: 600;
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-form-section form button:hover {
    background-color: var(--color-secundario, #0056b3);
    transform: translateY(-2px);
    box-shadow: var(--sombra, 0 4px 8px rgba(0,0,0,0.1));
}

/* INFORMACIÓN Y MAPA - Sección derecha */
.contacto .contact-details-and-map {
    display: flex;
    flex-direction: column;
    gap: 30px;
    padding: 0px;
}

.contacto .contact-info-box {
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--sombra, 0 2px 5px rgba(0,0,0,0.05));
    background-color: var(--fondo-tarjeta, #ffffff);
    border: 1px solid var(--color-borde, transparent);
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-map-box {
    padding: 25px;
    border-radius: 10px;
    box-shadow: var(--sombra, 0 2px 5px rgba(0,0,0,0.05));
    background-color: var(--fondo-tarjeta, #ffffff);
    border: 1px solid var(--color-borde, transparent);
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-info-box h4,
.contacto .contact-map-box h4 {
    font-size: 1.6em;
    margin-bottom: 20px;
    color: var(--color-tema, #333);
    text-align: center;
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-info-box strong {
    display: block;
    margin-top: 15px;
    margin-bottom: 5px;
    color: var(--color-tema, #444);
    font-weight: 600;
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-info-box p {
    margin-bottom: 10px;
    line-height: 1.6;
    color: var(--color-texto, #666);
    transition: var(--transicion, all 0.3s ease);
}

.contacto .contact-info-entry {
    padding: 6px 0 4px;
}

.contacto .contact-info-entry a {
    color: inherit;
    text-decoration: none;
}

.contacto .contact-info-entry a:hover {
    color: var(--color-tema, #004080);
    text-decoration: underline;
}

.contacto .contact-map-box iframe {
    width: 100%;
    height: 350px;
    border: 0;
    border-radius: .25rem;
    filter: var(--mapa-filtro, none);
    transition: filter 0.3s ease;
}

.contacto .main-container h2 {
    text-align: center;
    margin-bottom: 40px;
    color: var(--color-tema, #333);
    font-size: 2.8em;
    transition: var(--transicion, all 0.3s ease);
}

/* Media Queries de Contacto */
@media (max-width: 992px) {
    .contacto .contact-layout-grid {
        grid-template-columns: 1fr;
    }
    .contacto .contact-details-and-map {
        margin-top: 20px;
    }
}

/* Responsive para tablets */
@media screen and (max-width: 768px) {
    .contacto .contact-map-box iframe {
        height: 250px;
    }
    
    .contacto .contact-info-box,
    .contacto .contact-map-box,
    .contacto .form-inner-container {
        padding: 20px;
    }
}

/* Responsive para móviles */
@media screen and (max-width: 480px) {
    .contacto .main-container {
        padding: 15px;
    }
    
    .contacto .main-container h2 {
        font-size: 2em;
        margin-bottom: 30px;
    }
    
    .contacto .contact-form-section h4,
    .contacto .contact-info-box h4,
    .contacto .contact-map-box h4 {
        font-size: 1.3em;
    }
    
    .contacto .contact-form-section form button {
        padding: 10px;
        width: 100%;
    }
    
    .contacto .contact-map-box iframe {
        height: 200px;
    }
    
    .contacto .contact-info-box,
    .contacto .contact-map-box,
    .contacto .form-inner-container {
        padding: 15px;
    }
}


[data-theme="dark"] .contacto .form-inner-container,
[data-theme="dark"] .contacto .contact-info-box,
[data-theme="dark"] .contacto .contact-map-box {
    background-color: var(--fondo-tarjeta, #1e1e1e);
    border-color: var(--color-borde, #404040);
}

[data-theme="dark"] .contacto .contact-form-section form input[type="text"],
[data-theme="dark"] .contacto .contact-form-section form input[type="email"],
[data-theme="dark"] .contacto .contact-form-section form input[type="tel"],
[data-theme="dark"] .contacto .contact-form-section form textarea {
    background-color: var(--color-fondo, #2d2d2d);
    border-color: var(--color-borde, #555);
    color: var(--color-texto, #ffffff);
}

[data-theme="dark"] .contacto .contact-form-section form input::placeholder,
[data-theme="dark"] .contacto .contact-form-section form textarea::placeholder {
    color: #aaa;
}

[data-theme="dark"] .contacto .contact-map-box iframe {
    filter: brightness(0.9) contrast(1.1);
}

[data-theme="dark"] .contacto .contact-form-section h4,
[data-theme="dark"] .contacto .contact-info-box h4,
[themedark] .contacto .contact-map-box h4,
[data-theme="dark"] .contacto .main-container h2 {
    color: var(--color-tema, #D2AF26);
}

[data-theme="dark"] .contacto .contact-info-box strong {
    color: var(--color-secundario, #D2AF26);
}

[data-theme="dark"] .contacto .contact-form-section form button {
    background-color: var(--color-tema, #D2AF26);
}

[data-theme="dark"] .contacto .contact-form-section form button:hover {
    background-color: var(--color-secundario, #004080);
}

/*Historia css estilos */
       
.carrusel-historia {
    max-width: 1100px;
    margin: 80px auto;
    padding: 0 20px;
}

.carrusel-historia .carousel {
    border-radius: 25px;
    overflow: hidden;
    box-shadow: 0 30px 70px rgba(0, 0, 0, 0.25);
    background: #000;
}

.carrusel-historia .carousel-item {
    height: 700px;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    background-color: rgba(0, 0, 0, 0.6);
    padding: 20px;
    border-radius: 50%;
}

.carrusel-grid {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    padding: 60px 0;
    gap: 40px;
    justify-content: center;
}

.carrusel-grid::-webkit-scrollbar {
    height: 10px;
}

.carrusel-grid::-webkit-scrollbar-track {
    background: var(--color-fondo-secundario);
    border-radius: 10px;
}

.carrusel-grid::-webkit-scrollbar-thumb {
    background-color: var(--color-tema);
    border-radius: 10px;
}

.carrusel-grid::-webkit-scrollbar-thumb:hover {
    background-color: var(--color-secundario);
}

/* Cards verticales grandes */
.carrusel-grid .card {
    flex: 0 0 auto;
    width: 340px;
    height: 450px;
    background-color: var(--fondo-tarjeta);
    border-radius: 25px;
    padding: 15px;
    scroll-snap-align: center;
    box-shadow: 0 25px 50px rgba(0, 0, 0, 0.25);
    transition: 0.4s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carrusel-grid .card:hover {
    transform: translateY(-12px);
}

.carrusel-grid .card img {
    width: 100%;
    height: 100%;
    object-fit: contain; /* Muestra completa la imagen vertical */
    border-radius: 20px;
}


.certificados-imagen {
    display: flex;
    justify-content: center;
    gap: 30px;
    margin: 40px 0;
    flex-wrap: wrap;
}

.certificados-imagen img {
    width: 500px;
    height: auto;
    border-radius: 15px;
    box-shadow: var(--sombra);
    transition: 0.4s ease;
}


@media (max-width: 992px) {

    .carrusel-historia .carousel-item {
        height: 450px;
    }

    .carrusel-grid .card {
        width: 260px;
        height: 520px;
    }

}

@media (max-width: 576px) {

    .carrusel-historia .carousel-item {
        height: 320px;
    }

    .carrusel-grid {
        gap: 20px;
    }

    .carrusel-grid .card {
        width: 220px;
        height: 450px;
    }

}

/* Equipo css estilos */
.miembro1 {
    min-height: calc(100vh - 80px - 300px); 
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.container2 {
    display: flex;
    max-width: 1300px;
    width: 100%;
    background: var(--fondo-tarjeta);
    border-radius: 20px;
    box-shadow: var(--sombra);
    overflow: hidden;
    border: 1px solid var(--color-borde);
    transition: var(--transicion);
}

/* Estilos de la barra lateral (izquierda) */
.container2 .sidebar {
    flex: 0 0 400px; /* Ancho fijo de 300px */
    background: var(--color-tema);
    padding: 30px 20px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset -2px 0 10px rgba(0, 0, 0, 0.1);
}

.container2 .sidebar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}


.container2 .sidebar h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.container2 .contacto_equipo {
    width: 100%;
    margin-top: 10px;
}

.container2 .contacto_equipo > div {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transicion);
    text-align: left;
}

.container2 .contacto_equipo i {
    font-size: 1.2rem;
    min-width: 20px;
    color: #ffffff;
}

.container2 .contacto_equipo span {
    font-size: 0.95rem;
    color: #ffffff;
    word-break: break-word;
    flex: 1;
}

/* Estilos de la tarjeta principal (derecha) */
.container2 .card2 {
    flex: 1;
    padding: 40px;
    background: var(--fondo-tarjeta);
    transition: var(--transicion);
}

.container2 .card2 h1 {
    color: var(--color-tema);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-secundario);
    display: inline-block;
}

.container2 .card2 p {
    color: var(--color-texto);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
    transition: var(--transicion);
}

.container2 .card2 p::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-tema);
    font-weight: bold;
}

/* Estilos para los botones de opciones */
.container2 .opciones {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.container2 .opciones a {
    text-decoration: none;
    flex: 1;
    min-width: 200px;
}

.container2 .opciones button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transicion);
    background: var(--color-tema);
    color: #ffffff;
    border: 2px solid var(--color-tema);
}

.container2 .opciones a:last-child button {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
}

.container2 .opciones button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.container2 .opciones a:first-child button:hover {
    background: transparent;
    color: var(--color-tema);
}

.container2 .opciones a:last-child button:hover {
    background: transparent;
    color: var(--color-secundario);
}

@media (max-width: 992px) {
    .container2 {
        flex-direction: column;
        max-width: 700px;
    }
    
    .container2 .sidebar {
        flex: auto;
        width: 100%;
        padding: 40px 20px;
    }
    
    .container2 .sidebar img {
        width: 150px;
        height: 150px;
    }
    
    .container2 .contacto_equipo > div {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .miembro1 {
        padding: 40px 15px;
    }
    
    .container2 .card2 {
        padding: 30px 20px;
    }
    
    .container2 .card2 h1 {
        font-size: 1.8rem;
    }
    
    .container2 .opciones {
        flex-direction: column;
        gap: 15px;
    }
    
    .container2 .opciones a {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .container2 .sidebar img {
        width: 130px;
        height: 130px;
    }
    
    .container2 .sidebar h6 {
        font-size: 1.1rem;
    }
    
    .container2 .contacto_equipo > div {
        padding: 10px 15px;
    }
    
    .container2 .contacto_equipo span {
        font-size: 0.85rem;
    }
    
    .container2 .card2 h1 {
        font-size: 1.5rem;
    }
    
    .container2 .card2 p {
        font-size: 0.95rem;
        padding-left: 12px;
    }
    
    .container2 .opciones button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

[data-theme="dark"] .container2 .sidebar {
    background: linear-gradient(145deg, var(--color-tema), #b38f1f); /* Dorado más intenso */
}

[data-theme="dark"] .container2 .sidebar h6,
[data-theme="dark"] .container2 .contacto_equipo i,
[data-theme="dark"] .container2 .contacto_equipo span {
    color: #ffffff;
}

[data-theme="dark"] .container2 .contacto_equipo > div {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   ESTILOS PARA MIEMBRO 2 (JUAN CARLOS HERNÁNDEZ)
   ============================================ */
.miembro2 {
    min-height: calc(100vh - 80px - 300px); /* Ajusta la altura mínima */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.miembro2 .container2 {
    display: flex;
    max-width: 1300px;
    width: 100%;
    background: var(--fondo-tarjeta);
    border-radius: 20px;
    box-shadow: var(--sombra);
    overflow: hidden;
    border: 1px solid var(--color-borde);
    transition: var(--transicion);
}

/* Estilos de la barra lateral (izquierda) */
.miembro2 .container2 .sidebar {
    flex: 0 0 400px; /* Ancho fijo de 400px */
    background: var(--color-tema);
    padding: 30px 20px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset -2px 0 10px rgba(0, 0, 0, 0.1);
}

.miembro2 .container2 .sidebar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.miembro2 .container2 .sidebar h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.miembro2 .container2 .contacto_equipo {
    width: 100%;
    margin-top: 10px;
}

.miembro2 .container2 .contacto_equipo > div {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transicion);
    text-align: left;
}

.miembro2 .container2 .contacto_equipo i {
    font-size: 1.2rem;
    min-width: 20px;
    color: #ffffff;
}

.miembro2 .container2 .contacto_equipo span {
    font-size: 0.95rem;
    color: #ffffff;
    word-break: break-word;
    flex: 1;
}

/* Estilos de la tarjeta principal (derecha) */
.miembro2 .container2 .card2 {
    flex: 1;
    padding: 40px;
    background: var(--fondo-tarjeta);
    transition: var(--transicion);
}

.miembro2 .container2 .card2 h1 {
    color: var(--color-tema);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-secundario);
    display: inline-block;
}

.miembro2 .container2 .card2 p {
    color: var(--color-texto);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
    transition: var(--transicion);
}

.miembro2 .container2 .card2 p::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-tema);
    font-weight: bold;
}

/* Estilos para los botones de opciones */
.miembro2 .container2 .opciones {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.miembro2 .container2 .opciones a {
    text-decoration: none;
    flex: 1;
    min-width: 200px;
}

.miembro2 .container2 .opciones button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transicion);
    background: var(--color-tema);
    color: #ffffff;
    border: 2px solid var(--color-tema);
}

.miembro2 .container2 .opciones a:last-child button {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
}

.miembro2 .container2 .opciones button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.miembro2 .container2 .opciones a:first-child button:hover {
    background: transparent;
    color: var(--color-tema);
}

.miembro2 .container2 .opciones a:last-child button:hover {
    background: transparent;
    color: var(--color-secundario);
}

/* Responsive */
@media (max-width: 992px) {
    .miembro2 .container2 {
        flex-direction: column;
        max-width: 700px;
    }
    
    .miembro2 .container2 .sidebar {
        flex: auto;
        width: 100%;
        padding: 40px 20px;
    }
    
    .miembro2 .container2 .sidebar img {
        width: 150px;
        height: 150px;
    }
    
    .miembro2 .container2 .contacto_equipo > div {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .miembro2 {
        padding: 40px 15px;
    }
    
    .miembro2 .container2 .card2 {
        padding: 30px 20px;
    }
    
    .miembro2 .container2 .card2 h1 {
        font-size: 1.8rem;
    }
    
    .miembro2 .container2 .opciones {
        flex-direction: column;
        gap: 15px;
    }
    
    .miembro2 .container2 .opciones a {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .miembro2 .container2 .sidebar img {
        width: 130px;
        height: 130px;
    }
    
    .miembro2 .container2 .sidebar h6 {
        font-size: 1.1rem;
    }
    
    .miembro2 .container2 .contacto_equipo > div {
        padding: 10px 15px;
    }
    
    .miembro2 .container2 .contacto_equipo span {
        font-size: 0.85rem;
    }
    
    .miembro2 .container2 .card2 h1 {
        font-size: 1.5rem;
    }
    
    .miembro2 .container2 .card2 p {
        font-size: 0.95rem;
        padding-left: 12px;
    }
    
    .miembro2 .container2 .opciones button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Ajustes para tema oscuro */
[data-theme="dark"] .miembro2 .container2 .sidebar {
    background: linear-gradient(145deg, var(--color-tema), #b38f1f); /* Dorado más intenso */
}

[data-theme="dark"] .miembro2 .container2 .sidebar h6,
[data-theme="dark"] .miembro2 .container2 .contacto_equipo i,
[data-theme="dark"] .miembro2 .container2 .contacto_equipo span {
    color: #ffffff;
}

[data-theme="dark"] .miembro2 .container2 .contacto_equipo > div {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* ============================================
   ESTILOS PARA MIEMBRO 3
   ============================================ */
.miembro3 {
    min-height: calc(100vh - 80px - 300px); /* Ajusta la altura mínima */
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
}

.miembro3 .container2 {
    display: flex;
    max-width: 1300px;
    width: 100%;
    background: var(--fondo-tarjeta);
    border-radius: 20px;
    box-shadow: var(--sombra);
    overflow: hidden;
    border: 1px solid var(--color-borde);
    transition: var(--transicion);
}

/* Estilos de la barra lateral (izquierda) */
.miembro3 .container2 .sidebar {
    flex: 0 0 400px; /* Ancho fijo de 400px */
    background: var(--color-tema);
    padding: 30px 20px;
    color: #ffffff;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    box-shadow: inset -2px 0 10px rgba(0, 0, 0, 0.1);
}

.miembro3 .container2 .sidebar img {
    width: 180px;
    height: 180px;
    border-radius: 50%;
    object-fit: cover;
    border: 5px solid rgba(255, 255, 255, 0.3);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.miembro3 .container2 .sidebar h6 {
    font-size: 1.2rem;
    font-weight: 600;
    margin: 15px 0;
    color: #ffffff;
    line-height: 1.4;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.2);
}

.miembro3 .container2 .contacto_equipo {
    width: 100%;
    margin-top: 10px;
}

.miembro3 .container2 .contacto_equipo > div {
    display: flex;
    align-items: center;
    gap: 12px;
    background: rgba(255, 255, 255, 0.15);
    padding: 12px 18px;
    border-radius: 50px;
    margin-bottom: 15px;
    backdrop-filter: blur(5px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    transition: var(--transicion);
    text-align: left;
}

.miembro3 .container2 .contacto_equipo i {
    font-size: 1.2rem;
    min-width: 20px;
    color: #ffffff;
}

.miembro3 .container2 .contacto_equipo span {
    font-size: 0.95rem;
    color: #ffffff;
    word-break: break-word;
    flex: 1;
}

/* Estilos de la tarjeta principal (derecha) */
.miembro3 .container2 .card2 {
    flex: 1;
    padding: 40px;
    background: var(--fondo-tarjeta);
    transition: var(--transicion);
}

.miembro3 .container2 .card2 h1 {
    color: var(--color-tema);
    font-size: 2.2rem;
    font-weight: 700;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 3px solid var(--color-secundario);
    display: inline-block;
}

.miembro3 .container2 .card2 p {
    color: var(--color-texto);
    font-size: 1rem;
    line-height: 1.7;
    margin-bottom: 15px;
    padding-left: 15px;
    position: relative;
    transition: var(--transicion);
}

.miembro3 .container2 .card2 p::before {
    content: "▹";
    position: absolute;
    left: 0;
    color: var(--color-tema);
    font-weight: bold;
}

/* Estilos para los botones de opciones */
.miembro3 .container2 .opciones {
    display: flex;
    gap: 20px;
    margin-top: 30px;
    flex-wrap: wrap;
}

.miembro3 .container2 .opciones a {
    text-decoration: none;
    flex: 1;
    min-width: 200px;
}

.miembro3 .container2 .opciones button {
    width: 100%;
    padding: 14px 20px;
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: var(--transicion);
    background: var(--color-tema);
    color: #ffffff;
    border: 2px solid var(--color-tema);
}

.miembro3 .container2 .opciones a:last-child button {
    background: var(--color-secundario);
    border-color: var(--color-secundario);
}

.miembro3 .container2 .opciones button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.miembro3 .container2 .opciones a:first-child button:hover {
    background: transparent;
    color: var(--color-tema);
}

.miembro3 .container2 .opciones a:last-child button:hover {
    background: transparent;
    color: var(--color-secundario);
}

/* Responsive */
@media (max-width: 992px) {
    .miembro3 .container2 {
        flex-direction: column;
        max-width: 700px;
    }
    
    .miembro3 .container2 .sidebar {
        flex: auto;
        width: 100%;
        padding: 40px 20px;
    }
    
    .miembro3 .container2 .sidebar img {
        width: 150px;
        height: 150px;
    }
    
    .miembro3 .container2 .contacto_equipo > div {
        max-width: 400px;
        margin-left: auto;
        margin-right: auto;
    }
}

@media (max-width: 768px) {
    .miembro3 {
        padding: 40px 15px;
    }
    
    .miembro3 .container2 .card2 {
        padding: 30px 20px;
    }
    
    .miembro3 .container2 .card2 h1 {
        font-size: 1.8rem;
    }
    
    .miembro3 .container2 .opciones {
        flex-direction: column;
        gap: 15px;
    }
    
    .miembro3 .container2 .opciones a {
        min-width: auto;
    }
}

@media (max-width: 480px) {
    .miembro3 .container2 .sidebar img {
        width: 130px;
        height: 130px;
    }
    
    .miembro3 .container2 .sidebar h6 {
        font-size: 1.1rem;
    }
    
    .miembro3 .container2 .contacto_equipo > div {
        padding: 10px 15px;
    }
    
    .miembro3 .container2 .contacto_equipo span {
        font-size: 0.85rem;
    }
    
    .miembro3 .container2 .card2 h1 {
        font-size: 1.5rem;
    }
    
    .miembro3 .container2 .card2 p {
        font-size: 0.95rem;
        padding-left: 12px;
    }
    
    .miembro3 .container2 .opciones button {
        padding: 12px 15px;
        font-size: 0.95rem;
    }
}

/* Ajustes para tema oscuro */
[data-theme="dark"] .miembro3 .container2 .sidebar {
    background: linear-gradient(145deg, var(--color-tema), #b38f1f); /* Dorado más intenso */
}

[data-theme="dark"] .miembro3 .container2 .sidebar h6,
[data-theme="dark"] .miembro3 .container2 .contacto_equipo i,
[data-theme="dark"] .miembro3 .container2 .contacto_equipo span {
    color: #ffffff;
}

[data-theme="dark"] .miembro3 .container2 .contacto_equipo > div {
    background: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.15);
}

/* Servicios detallados css estilos */
/* ============================= */
/* VARIABLES DE TEMA */
/* ============================= */

:root {
    --color-tema: #004080;
    --color-secundario: #D2AF26;

    --color-tema-rgb: 0, 64, 128;
    --color-secundario-rgb: 210, 175, 38;

    /* Fondo y textos modo claro */
    --bg-contenido: #ffffff;
    --bg-card: #f8f9fa;
    --bg-tabla-head: var(--color-tema);
    --texto-principal: #212529;
    --texto-secundario: #495057;
    --borde-suave: rgba(0, 0, 0, 0.08);
    --borde-tabla: #dee2e6;
    --texto-descripcion: #495057; /* Color para descripciones en modo claro */
}

/* ============================= */
/* MODO OSCURO */
/* ============================= */

[data-theme="dark"] {
    --color-tema: #D2AF26;
    --color-secundario: #004080;

    --color-tema-rgb: 210, 175, 38;
    --color-secundario-rgb: 0, 64, 128;

    --bg-contenido: #121212;
    --bg-card: #1e1e1e;
    --bg-tabla-head: var(--color-tema);
    --texto-principal: #f1f1f1;
    --texto-secundario: #cccccc;
    --borde-suave: rgba(255, 255, 255, 0.08);
    --borde-tabla: #444444;
    --texto-descripcion: #ffffff; /* Color blanco para descripciones en modo oscuro */
}

/* ============================= */
/* CONTENIDO SERVICIO */
/* ============================= */

.contenido-servicio {
    width: 100%;
    max-width: 1140px;
    margin: 30px auto;
    padding: 40px 20px;
    background-color: var(--bg-contenido);
    color: var(--texto-principal);
    border-radius: 20px;
    transition: all 0.4s ease;
}

/* Títulos */
.contenido-servicio h1,
.contenido-servicio h2,
.contenido-servicio h3,
.contenido-servicio h4,
.contenido-servicio h5,
.contenido-servicio h6 {
    color: var(--color-tema);
}

/* Párrafos - Heredan el color de la variable */
.contenido-servicio p {
    color: var(--texto-secundario);
    line-height: 1.7;
}

/* ============================= */
/* TABLA */
/* ============================= */

.contenido-servicio table {
    width: 100%;
    border-collapse: collapse;
    margin: 25px 0;
    font-size: 1rem;
    background-color: var(--bg-card);
    color: var(--texto-principal);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.contenido-servicio table thead {
    background-color: var(--color-tema);
    color: #ffffff;
}

.contenido-servicio table th,
.contenido-servicio table td {
    padding: 15px 20px;
    border: 1px solid var(--borde-tabla);
    text-align: left;
    vertical-align: top;
}

.contenido-servicio table th {
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-size: 0.95rem;
    text-align: center;
    background-color: var(--color-tema);
    color: #ffffff;
}

.contenido-servicio table td {
    background-color: var(--bg-card);
}

/* Estilo específico para la columna de descripción (segunda columna) */
.contenido-servicio table td:last-child {
    color: var(--texto-descripcion);
}

/* Estilo para TODAS las celdas de descripción en la tabla, por si hay más de dos columnas */
.contenido-servicio table td:not(:first-child) {
    color: var(--texto-descripcion);
}

.contenido-servicio table tbody tr {
    transition: background-color 0.3s ease;
}

.contenido-servicio table tbody tr:hover {
    background-color: rgba(var(--color-tema-rgb), 0.08);
}

.contenido-servicio table tbody tr:hover td {
    background-color: transparent;
}

/* Estilo específico para la primera columna (Servicio) */
.contenido-servicio table td:first-child {
    font-weight: 500;
    color: var(--color-tema);
    white-space: nowrap;
}

/* ============================= */
/* CARDS BENEFICIOS */
/* ============================= */

.beneficio-card {
    background-color: var(--bg-card);
    border-radius: 16px;
    border: 1px solid var(--borde-suave);
    transition: all 0.3s ease;
}

.beneficio-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 10px 25px rgba(var(--color-tema-rgb), 0.15);
}

/* ============================= */
/* MENSAJE FINAL */
/* ============================= */

.mensaje-final {
    background: linear-gradient(
        135deg,
        rgba(var(--color-tema-rgb), 0.1),
        rgba(var(--color-secundario-rgb), 0.1)
    );
    border-radius: 20px;
    border: 1px solid var(--borde-suave);
    color: var(--texto-principal);
    transition: all 0.4s ease;
}

/* ============================= */
/* BOTONES */
/* ============================= */

.boton-principal {
    background-color: var(--color-tema);
    color: #fff;
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.boton-principal:hover {
    background-color: var(--color-secundario);
    transform: scale(1.05);
}

.boton-servicios {
    background-color: transparent;
    border: 2px solid var(--color-tema);
    color: var(--color-tema);
    padding: 12px 25px;
    border-radius: 30px;
    text-decoration: none;
    transition: all 0.3s ease;
}

.boton-servicios:hover {
    background-color: var(--color-tema);
    color: #fff;
}

/* ============================= */
/* RESPONSIVE TABLA */
/* ============================= */

/* Tablet */
@media screen and (max-width: 768px) {
    .contenido-servicio table {
        font-size: 0.95rem;
    }
    
    .contenido-servicio table th,
    .contenido-servicio table td {
        padding: 12px 15px;
    }
}

/* Móvil */
@media screen and (max-width: 576px) {
    .contenido-servicio table {
        font-size: 0.9rem;
        display: block;
        overflow-x: auto;
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }
    
    .contenido-servicio table th,
    .contenido-servicio table td {
        padding: 10px 12px;
        min-width: 200px; /* Ancho mínimo para evitar que se compriman demasiado */
    }
    
    .contenido-servicio table td:first-child {
        white-space: normal; /* Permite que el texto del servicio se ajuste */
        min-width: 150px;
    }
    
    /* Sombra indicadora de scroll en móvil */
    .contenido-servicio table {
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08),
                    inset 0 0 0 1px rgba(0,0,0,0.05);
    }
}

/* Teléfonos muy pequeños */
@media screen and (max-width: 400px) {
    .contenido-servicio table th,
    .contenido-servicio table td {
        padding: 8px 10px;
        font-size: 0.85rem;
    }
}

/* ============================= */
/* TRANSICIÓN GLOBAL SUAVE */
/* ============================= */

body,
.contenido-servicio,
.contenido-servicio table,
.contenido-servicio table th,
.contenido-servicio table td,
.beneficio-card,
.mensaje-final,
.boton-principal,
.boton-servicios {
    transition: background-color 0.4s ease,
                color 0.4s ease,
                border 0.4s ease,
                box-shadow 0.4s ease;
}


/* Noticias css estilos */
/* ============================= */
/* ESTILOS DE NOTICIAS - MODO CLARO/OSCURO */
/* ============================= */

:root {
    /* Modo Claro (por defecto) */
    --noticias-bg-container: #ffffff;
    --noticias-bg-card: #f9f9f9;
    --noticias-bg-main: #ffffff;
    --noticias-text-primary: #333333;
    --noticias-text-secondary: #666666;
    --noticias-text-muted: #6c757d;
    --noticias-border: rgba(0, 0, 0, 0.1);
    --noticias-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    --noticias-btn-bg: #007bff;
    --noticias-btn-bg-hover: #0056b3;
    --noticias-btn-text: #ffffff;
    --noticias-link: #007bff;
}

[data-theme="dark"] {
    /* Modo Oscuro */
    --noticias-bg-container: #1a1a1a;
    --noticias-bg-card: #2d2d2d;
    --noticias-bg-main: #2d2d2d;
    --noticias-text-primary: #f0f0f0;
    --noticias-text-secondary: #cccccc;
    --noticias-text-muted: #a0a0a0;
    --noticias-border: rgba(255, 255, 255, 0.1);
    --noticias-shadow: 0 2px 6px rgba(0, 0, 0, 0.3);
    --noticias-btn-bg: #D2AF26;
    --noticias-btn-bg-hover: #b8860b;
    --noticias-btn-text: #000000;
    --noticias-link: #D2AF26;
}

/* Contenedor principal */
.container {
    display: flex;
    flex-wrap: wrap;
    max-width: 1200px;
    margin: 20px auto;
    gap: 20px;
    padding: 0 20px;
    background-color: transparent;
}

.noticias-admin-main {
    width: auto;
    max-width: none;
    margin: 30px 0;
    box-sizing: border-box;
}

.noticias-admin-main.barralateral-colapsada {
    margin-right: 0;
}

.noticias-admin-main > .container {
    width: 100%;
    max-width: none;
    margin: 20px 0;
    padding-left: clamp(20px, 3vw, 52px);
    padding-right: clamp(20px, 3vw, 52px);
}

.noticias-admin-main .noticia-contenido {
    width: 100%;
    max-width: none;
}

/* Barra lateral */
.sidebar1 {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Tarjetas de noticias */
.news-card {
    background-color: var(--noticias-bg-card);
    padding: 15px;
    border-radius: 8px;
    box-shadow: var(--noticias-shadow);
    text-align: center;
    transition: transform 0.3s ease, background-color 0.3s ease, box-shadow 0.3s ease;
    border: 1px solid var(--noticias-border);
}

.news-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.news-card h6 {
    font-size: 12px;
    color: var(--noticias-text-muted);
    margin-bottom: 10px;
}

.news-card img {
    width: 100%;
    border-radius: 8px;
    margin-bottom: 10px;
}

.news-card h5 {
    font-size: 18px;
    color: var(--noticias-text-primary);
    margin-bottom: 10px;
}

.news-card p {
    font-size: 14px;
    color: var(--noticias-text-secondary);
    margin-bottom: 15px;
    line-height: 1.5;
}

.news-card button {
    background-color: var(--noticias-btn-bg);
    color: var(--noticias-btn-text);
    border: none;
    padding: 8px 16px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.news-card button:hover {
    background-color: var(--noticias-btn-bg-hover);
    transform: scale(1.05);
}

/* Noticia principal */
.main-news {
    flex: 3;
    background-color: var(--noticias-bg-main);
    padding: 20px;
    border-radius: 8px;
    box-shadow: var(--noticias-shadow);
    text-align: center;
    border: 1px solid var(--noticias-border);
    transition: background-color 0.3s ease, box-shadow 0.3s ease;
}

.main-news img {
    width: 100%;
    border-radius: 8px;
    margin: 20px 0;
}

.main-news h5 {
    font-size: 24px;
    color: var(--noticias-text-primary);
    margin-bottom: 15px;
}

.main-news p {
    font-size: 16px;
    color: var(--noticias-text-secondary);
    margin-bottom: 20px;
    line-height: 1.6;
}

.main-news button {
    background-color: var(--noticias-btn-bg);
    color: var(--noticias-btn-text);
    border: none;
    padding: 10px 20px;
    font-size: 14px;
    border-radius: 5px;
    cursor: pointer;
    transition: background-color 0.3s ease, transform 0.2s ease;
}

.main-news button:hover {
    background-color: var(--noticias-btn-bg-hover);
    transform: scale(1.05);
}

/* Noticias adicionales en grid */
.additional-news {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
    margin-top: 30px;
}

/* Estilos de enlaces */
a {
    color: var(--noticias-link);
    text-decoration: none;
    transition: color 0.3s ease;
}

a:hover {
    text-decoration: underline;
    color: var(--noticias-btn-bg-hover);
}

/* Estilos responsivos para móviles */
@media (max-width: 768px) {
    .container {
        flex-direction: column;
        gap: 30px;
    }

    .main-news {
        order: 1;
    }

    .sidebar1 {
        order: 2;
    }

    .additional-news {
        grid-template-columns: 1fr;
    }
    
    .news-card h5 {
        font-size: 16px;
    }
    
    .main-news h5 {
        font-size: 20px;
    }
}

/* Estilos para tablets */
@media (min-width: 769px) and (max-width: 1024px) {
    .container {
        padding: 0 15px;
    }
    
    .news-card h5 {
        font-size: 16px;
    }
    
    .news-card p {
        font-size: 13px;
    }
}

/* Transiciones suaves para cambio de tema */
.news-card,
.main-news,
.news-card button,
.main-news button,
a {
    transition: background-color 0.3s ease,
                color 0.3s ease,
                border-color 0.3s ease,
                box-shadow 0.3s ease,
                transform 0.2s ease;
}

.noticia-contenido {
            max-width: 900px;
            margin: 0 auto;
            background-color: var(--bg-contenido);
            border-radius: 20px;
            padding: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
        }
        
        .noticia-titulo {
            color: var(--color-tema);
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 30px;
            text-align: center;
            position: relative;
            padding-bottom: 20px;
        }
        
        .noticia-titulo:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--color-tema), var(--color-secundario));
            border-radius: 2px;
        }
        
        .noticia-imagen-principal {
            width: 100%;
            max-height: 500px;
            object-fit: cover;
            border-radius: 15px;
            margin-bottom: 30px;
            box-shadow: 0 5px 20px rgba(0, 0, 0, 0.2);
        }
        
        .noticia-seccion {
            margin-bottom: 40px;
            padding: 20px;
            background-color: var(--bg-card);
            border-radius: 15px;
            border-left: 5px solid var(--color-tema);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
        }
        
        .noticia-seccion:hover {
            transform: translateY(-5px);
            box-shadow: 0 10px 25px rgba(var(--color-tema-rgb), 0.15);
        }
        
        .noticia-seccion h4 {
            color: var(--color-tema);
            font-size: 1.5rem;
            font-weight: 600;
            margin-bottom: 20px;
            display: flex;
            align-items: center;
            gap: 10px;
        }
        
        .noticia-seccion h4 i {
            font-size: 1.8rem;
            color: var(--color-secundario);
        }
        
        .noticia-parrafo {
            color: var(--texto-secundario);
            line-height: 1.8;
            margin-bottom: 20px;
            font-size: 1.1rem;
        }
        
        .noticia-destacado {
            background: linear-gradient(135deg, rgba(var(--color-tema-rgb), 0.1), rgba(var(--color-secundario-rgb), 0.1));
            padding: 25px;
            border-radius: 15px;
            margin: 30px 0;
            border: 1px solid var(--borde-suave);
        }
        
        .noticia-lista {
            list-style: none;
            padding: 0;
        }
        
        .noticia-lista li {
            margin-bottom: 15px;
            padding-left: 30px;
            position: relative;
            color: var(--texto-secundario);
        }
        
        .noticia-lista li:before {
            content: '\f00c';
            font-family: 'Font Awesome 6 Free';
            font-weight: 900;
            position: absolute;
            left: 0;
            color: var(--color-tema);
            font-size: 1.2rem;
        }
        
        .noticia-item {
            background-color: var(--bg-card);
            padding: 20px;
            border-radius: 12px;
            margin-bottom: 20px;
            border: 1px solid var(--borde-suave);
        }
        
        .noticia-item strong {
            color: var(--color-tema);
            font-size: 1.2rem;
            display: block;
            margin-bottom: 10px;
        }
        
        .noticia-item p {
            margin: 0;
            color: var(--texto-secundario);
        }
        
        .noticia-conclusion {
            background: linear-gradient(135deg, var(--color-tema), var(--color-secundario));
            color: white;
            padding: 30px;
            border-radius: 15px;
            margin: 40px 0;
        }
        
        .noticia-conclusion p {
            color: white !important;
            margin-bottom: 15px;
            font-size: 1.1rem;
        }
        
        .noticia-autor {
            text-align: right;
            font-style: italic;
            color: var(--texto-secundario);
            margin-top: 30px;
            padding-top: 20px;
            border-top: 2px dashed var(--borde-suave);
        }
        
        .noticia-badge {
            display: inline-block;
            background-color: var(--color-tema);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.9rem;
            margin-right: 10px;
            margin-bottom: 10px;
        }
        
        @media (max-width: 768px) {
            .noticia-contenido {
                padding: 20px;
            }
            
            .noticia-titulo {
                font-size: 2rem;
            }
            
            .noticia-seccion {
                padding: 15px;
            }
            
            .noticia-seccion h4 {
                font-size: 1.3rem;
            }
        }

/* Capacitaciones estilo css */
/* ============================= */

/* Estilos mejorados para capacitaciones */
        .capacitaciones-container {
            max-width: 1200px;
            margin: 0 auto;
            padding: 20px;
        }

        .capacitaciones-admin-main {
            width: auto;
            max-width: none;
            margin: 30px 0;
            box-sizing: border-box;
        }

        .capacitaciones-admin-main.barralateral-colapsada {
            margin-right: 0;
        }

        .capacitaciones-admin-main .capacitaciones-container {
            width: 100%;
            max-width: none;
            margin: 0;
            padding-left: clamp(20px, 3vw, 52px);
            padding-right: clamp(20px, 3vw, 52px);
        }

        .capacitaciones-admin-main .capacitacion-card {
            width: min(1200px, 100%);
            margin-left: auto;
            margin-right: auto;
        }
        
        .capacitaciones-titulo {
            color: var(--color-tema);
            font-size: 2.5rem;
            font-weight: 700;
            margin-bottom: 40px;
            text-align: center;
            position: relative;
            padding-bottom: 20px;
        }
        
        .capacitaciones-titulo:after {
            content: '';
            position: absolute;
            bottom: 0;
            left: 50%;
            transform: translateX(-50%);
            width: 80px;
            height: 4px;
            background: linear-gradient(90deg, var(--color-tema), var(--color-secundario));
            border-radius: 2px;
        }
        
        .capacitacion-card {
            background-color: var(--bg-card);
            border-radius: 20px;
            overflow: hidden;
            margin-bottom: 40px;
            box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            border: 1px solid var(--borde-suave);
        }
        
        .capacitacion-card:hover {
            transform: translateY(-5px);
            box-shadow: 0 15px 40px rgba(var(--color-tema-rgb), 0.15);
        }
        
        .capacitacion-row {
            display: flex;
            flex-wrap: wrap;
            align-items: stretch;
        }
        
        .capacitacion-imagen-col {
            flex: 0 0 clamp(420px, 40%, 560px);
            padding: 8px;
            background: transparent;
            display: flex;
            align-items: center;
            justify-content: center;
            min-height: 420px;
        }
        
        .capacitacion-imagen {
            width: 100%;
            height: auto;
            max-height: 560px;
            object-fit: contain;
            object-position: center;
            background-color: transparent;
            border-radius: 10px;
            transition: transform 0.5s ease;
        }
        
        .capacitacion-card:hover .capacitacion-imagen {
            transform: none;
        }
        
        .capacitacion-contenido-col {
            flex: 1;
            padding: 30px;
            background-color: var(--bg-contenido);
        }
        
        .capacitacion-titulo-card {
            color: var(--color-tema);
            font-size: 1.8rem;
            font-weight: 600;
            margin-bottom: 20px;
            line-height: 1.3;
        }
        
        .capacitacion-titulo-card i {
            color: var(--color-secundario);
            margin-right: 10px;
            font-size: 2rem;
        }
        
        .capacitacion-descripcion {
            color: var(--texto-secundario);
            line-height: 1.8;
            margin-bottom: 15px;
            font-size: 1rem;
        }
        
        .capacitacion-destacado {
            background: linear-gradient(135deg, rgba(var(--color-tema-rgb), 0.05), rgba(var(--color-secundario-rgb), 0.05));
            padding: 20px;
            border-radius: 15px;
            margin: 20px 0;
            border-left: 4px solid var(--color-tema);
        }
        
        .capacitacion-destacado p {
            margin-bottom: 0;
            color: var(--texto-principal);
            font-style: italic;
        }
        
        .btn-capacitacion {
            background-color: var(--color-tema);
            color: white;
            border: none;
            padding: 12px 30px;
            font-size: 1rem;
            border-radius: 50px;
            cursor: pointer;
            transition: all 0.3s ease;
            display: inline-flex;
            align-items: center;
            gap: 10px;
            font-weight: 500;
            box-shadow: 0 4px 15px rgba(var(--color-tema-rgb), 0.3);
        }
        
        .btn-capacitacion:hover {
            background-color: var(--color-secundario);
            transform: translateY(-2px);
            box-shadow: 0 6px 20px rgba(var(--color-secundario-rgb), 0.4);
            color: white;
        }
        
        .btn-capacitacion i {
            font-size: 1.1rem;
        }
        
        .capacitacion-badge {
            display: inline-block;
            background-color: var(--color-secundario);
            color: white;
            padding: 5px 15px;
            border-radius: 20px;
            font-size: 0.8rem;
            font-weight: 500;
            margin-bottom: 15px;
            letter-spacing: 0.5px;
        }
        
        @media (max-width: 768px) {
            .capacitacion-imagen-col {
                flex: 0 0 100%;
                height: auto;
                min-height: 220px;
            }
            
            .capacitacion-titulo-card {
                font-size: 1.5rem;
            }
            
            .capacitacion-contenido-col {
                padding: 20px;
            }
            
            .capacitaciones-titulo {
                font-size: 2rem;
            }
        }

/* Biblioteca admin layout */
.biblioteca-admin-main {
    width: auto;
    max-width: none;
    margin: 30px 0;
    box-sizing: border-box;
}

.biblioteca-admin-main.barralateral-colapsada {
    margin-right: 0;
}

/* Sitio Interes estilo css */
:root {
    --sitios-bg-card1: #f4f4f4;
    --sitios-bg-card2: #f4f4f4;
    --sitios-border: #ccc;
    --sitios-text: #333;
    --sitios-btn-internacional: #007BFF;
    --sitios-btn-internacional-hover: #0056b3;
    --sitios-btn-nacional: #d8860b;
    --sitios-btn-nacional-hover: #f7a932;
    --sitios-btn-text: #fff;
}

[data-theme="dark"] {
    --sitios-bg-card1: #2d2d2d;
    --sitios-bg-card2: #2d2d2d;
    --sitios-border: #444;
    --sitios-text: #f0f0f0;
    --sitios-btn-internacional: #D2AF26;
    --sitios-btn-internacional-hover: #b8860b;
    --sitios-btn-nacional: #D2AF26;
    --sitios-btn-nacional-hover: #b8860b;
    --sitios-btn-text: #000;
}

.anexo {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    padding: 20px;
}

.sitios-interes-admin-main {
    width: auto;
    max-width: none;
    margin: 30px 0;
    box-sizing: border-box;
}

.sitios-interes-admin-main.barralateral-colapsada {
    margin-right: 0;
}

.sitios-interes-admin-main .sitios-interes-container {
    width: 100%;
    max-width: none;
    margin: 0;
    padding-left: clamp(20px, 3vw, 52px);
    padding-right: clamp(20px, 3vw, 52px);
}

.sitios-interes-section {
    width: min(1280px, 100%);
    margin-left: auto;
    margin-right: auto;
}

.card_libro1, .card_libro2 {
    background-color: var(--sitios-bg-card1);
    border: 1px solid var(--sitios-border);
    padding: 20px;
    text-align: center;
    border-radius: 8px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    min-height: 170px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 10px;
}

.card_libro1:hover, .card_libro2:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
}

.card_libro1 h4, .card_libro2 h4 {
    font-size: 16px;
    margin-bottom: 10px;
    color: var(--sitios-text);
    line-height: 1.4;
}

.card_libro1 p, .card_libro2 p {
    color: var(--sitios-text);
    font-size: 0.92rem;
    line-height: 1.55;
    margin: 0 0 8px;
}

.sitio-interes-icono {
    color: var(--color-tema);
    font-size: 1.65rem;
    margin-bottom: 4px;
}

.card_libro1 button {
    padding: 8px 16px;
    background-color: var(--sitios-btn-internacional);
    color: var(--sitios-btn-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card_libro1 button:hover {
    background-color: var(--sitios-btn-internacional-hover);
}

.card_libro2 button {
    padding: 8px 16px;
    background-color: var(--sitios-btn-nacional);
    color: var(--sitios-btn-text);
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.card_libro2 button:hover {
    background-color: var(--sitios-btn-nacional-hover);
}

@media screen and (max-width: 768px) {
    .anexo {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media screen and (max-width: 480px) {
    .anexo {
        grid-template-columns: 1fr;
    }
}


/*Login admin css estilos */
/* Estilos para el menú desplegable de usuario */
.dropdown-menu {
    background-color: var(--bg-contenido);
    border: 1px solid var(--color-borde);
    border-radius: 12px;
    box-shadow: var(--sombra);
    padding: 8px;
    margin-top: 10px;
    animation: dropdownFade 0.2s ease;
}

@keyframes dropdownFade {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.dropdown-item {
    color: var(--texto-principal);
    padding: 10px 15px;
    border-radius: 8px;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
}

.dropdown-item i {
    color: var(--color-tema);
    font-size: 1rem;
    width: 20px;
    transition: color 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--color-tema);
    color: white;
}

.dropdown-item:hover i {
    color: white;
}

.dropdown-divider {
    border-top: 1px solid var(--color-borde);
    margin: 8px 0;
}

/* Estilo para el nombre de usuario en el nav */
.nav-item.dropdown .nav-link {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0.5rem 1rem;
}

.nav-item.dropdown .nav-link i {
    color: var(--color-tema);
}

[data-theme="dark"] .nav-item.dropdown .nav-link i {
    color: var(--color-tema);
}

/* Responsive */
@media (max-width: 991px) {
    .dropdown-menu {
        background-color: transparent;
        box-shadow: none;
        border: none;
        padding-left: 20px;
    }
    
    .dropdown-item {
        color: var(--texto-principal);
    }
}
