/* ============================================================
   ARCHIVO: styles.css
   Descripción: Estilos organizados por sección del sitio web
   Tema: Dark Mode - Compartiendo Saberes
   ============================================================ */

/* ============================================================
   VARIABLES DE COLOR - TEMA OSCURO
   ============================================================ */
:root {
    --bg-primary: #0f1419;
    --bg-secondary: #1a1d29;
    --bg-card: #252836;
    --bg-hover: #2d3142;
    --accent-primary: #4a90e2;
    --accent-secondary: #4ecdc4;
    --accent-yellow: #ffb700;
    --text-primary: #ffffff;
    --text-secondary: #b8bcc8;
    --text-muted: #6b7280;
    --border-color: #2d3142;
    --shadow-dark: rgba(0, 0, 0, 0.3);
    --shadow-glow: rgba(74, 144, 226, 0.2);
}

/* ============================================================
   ESTILOS GLOBALES
   ============================================================ */
html,
body {
    background-color: var(--bg-primary) !important;
    color: var(--text-primary) !important;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    scroll-behavior: smooth;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    margin: 0;
    padding: 0;
    width: 100%;
    height: 100%;
}

/* Mejoras para dispositivos táctiles */
@media (hover: none) and (pointer: coarse) {
    .nav-link-custom,
    .btn,
    .card-option,
    .nav-tabs .nav-link {
        min-height: 44px;
        min-width: 44px;
    }
    
    .btn-audio {
        min-height: 44px;
    }
}

/* Scrollbar personalizado */
::-webkit-scrollbar {
    width: 12px;
}

::-webkit-scrollbar-track {
    background: var(--bg-primary);
}

::-webkit-scrollbar-thumb {
    background: linear-gradient(180deg, var(--accent-yellow), var(--accent-secondary));
    border-radius: 6px;
    border: 2px solid var(--bg-primary);
}

::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(180deg, var(--accent-secondary), var(--accent-primary));
}

/* Selección de texto */
::selection {
    background-color: var(--accent-yellow);
    color: var(--bg-primary);
}

::-moz-selection {
    background-color: var(--accent-yellow);
    color: var(--bg-primary);
}

/* ============================================================
   SECCIÓN 1: HEADER / NAVEGACIÓN
   - Estilos del encabezado y barra de navegación
   - Logo y menú
   ============================================================ */
header {
    background: var(--bg-secondary);
    border-bottom: 2px solid var(--border-color);
    box-shadow: 0 4px 6px var(--shadow-dark);
    position: sticky;
    top: 0;
    z-index: 1000;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
}

header.header-transparent {
    background: transparent;
    border-bottom: 2px solid transparent;
    box-shadow: none;
}

header.header-transparent .nav-link-custom {
    color: var(--text-primary) !important;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

header.header-transparent .navbar-toggler {
    background-color: rgba(0, 0, 0, 0.3);
    border-color: rgba(255, 255, 255, 0.3);
}

.logo {
    height: 50px;
    filter: brightness(1.1);
}

/* Estilos consistentes para enlaces de navegación */
.nav-link-custom {
    font-size: 16px;
    font-weight: 500;
    color: var(--text-secondary) !important;
    padding: 8px 16px !important;
    margin: 0 4px;
    transition: all 0.3s ease;
    text-align: center;
    border-radius: 8px;
}

.nav-link-custom:hover {
    color: var(--accent-yellow) !important;
    background-color: rgba(255, 183, 0, 0.15);
    transform: translateY(-2px);
}

.navbar-nav {
    align-items: center;
}

.navbar-toggler {
    border-color: var(--border-color);
    background-color: var(--bg-card);
    padding: 4px 8px;
}

.navbar-toggler:focus {
    box-shadow: 0 0 0 0.2rem rgba(255, 183, 0, 0.25);
}

.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(255, 255, 255, 0.85)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

/* ============================================================
   SECCIÓN 2: VIDEO DE PRESENTACIÓN
   - Contenedor del video de portada
   - Texto sobre el video
   - Botón para abrir modal
   ============================================================ */
.video-container {
    position: relative;
    width: 100%;
    height: 80vh;
    overflow: hidden;
    background: linear-gradient(135deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.video-container::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    z-index: 1;
}

.video-container video {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 200%;
    height: 150%;
    transform: translate(-50%, -50%);
    object-fit: contain;
    opacity: 1;
}

/* Texto sobre el video */
.video-text {
    position: absolute;
    bottom: 20%;
    left: 5%;
    color: var(--text-primary);
    text-shadow: 0 4px 20px rgba(0, 0, 0, 0.8), 0 0 30px var(--shadow-glow);
    z-index: 2;
}

.video-text h1 {
    font-size: 3.5rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    letter-spacing: -1px;
}

/* Botón inferior para abrir modal */
.modal-btn {
    position: absolute;
    bottom: 10%;
    left: 5%;
    z-index: 2;
}

.modal-btn .btn {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6a500 100%);
    border: none;
    color: var(--bg-primary);
    font-weight: 600;
    padding: 12px 30px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.modal-btn .btn:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 183, 0, 0.6);
    background: linear-gradient(135deg, #ffc933 0%, var(--accent-yellow) 100%);
}

/* Botón de audio específico */
.btn-audio {
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(10px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    color: var(--text-primary);
    font-weight: 600;
    padding: 12px 25px;
    border-radius: 50px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 10px;
}

.btn-audio:hover {
    background: rgba(0, 0, 0, 0.7);
    border-color: var(--accent-yellow);
    color: var(--accent-yellow);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(255, 183, 0, 0.4);
}

.btn-audio.audio-active {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6a500 100%);
    border-color: var(--accent-yellow);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.5);
}

.btn-audio.audio-active:hover {
    background: linear-gradient(135deg, #ffc933 0%, var(--accent-yellow) 100%);
    box-shadow: 0 6px 20px rgba(255, 183, 0, 0.6);
}

.btn-audio i {
    font-size: 18px;
}

.audio-text {
    font-size: 14px;
}

@media (max-width: 768px) {
    .btn-audio {
        padding: 10px 20px;
    }
    
    .audio-text {
        font-size: 12px;
    }
    
    .btn-audio i {
        font-size: 16px;
    }
}

/* ============================================================
   SECCIÓN 3: SIDEBAR / MENÚ HAMBURGUESA
   - Estilo del sidebar tipo Teams
   ============================================================ */
.sidebar-offcanvas {
    background: var(--bg-secondary);
    width: 260px;
    max-width: 85vw;
    border-right: 2px solid var(--border-color);
    color: var(--text-primary);
}

.sidebar-offcanvas .offcanvas-header {
    border-bottom: 1px solid var(--border-color);
}

.sidebar-offcanvas .offcanvas-title {
    color: var(--text-primary);
    font-weight: 600;
}

.sidebar-offcanvas .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.sidebar-offcanvas .btn-close:hover {
    opacity: 1;
}

/* ============================================================
   SECCIÓN 4: CARRUSEL DE COLABORACIONES
   - Slider infinito de logos de colaboradores
   - Animación de desplazamiento continuo
   - Alineación y posición mejoradas
   ============================================================ */
.colaboraciones-section {
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
    padding: 80px 0;
    overflow: hidden;
    position: relative;
}

.colaboraciones-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.colaboraciones-section .container {
    padding: 0;
    max-width: 100%;
}

.section-title {
    font-size: 2.5rem;
    font-weight: 800;
    color: var(--text-primary);
    margin-bottom: 3rem;
    text-align: center;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    position: relative;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -10px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-secondary));
    border-radius: 2px;
}

@keyframes scroll {
    0% {
        transform: translateX(0);
    }

    100% {
        transform: translateX(calc(-250px * 12));
    }
}

.slider {
    background: transparent;
    height: 120px;
    margin: 0;
    overflow: hidden;
    position: relative;
    width: 100%;
    padding: 20px 0;
}

.slider::before,
.slider::after {
    background: linear-gradient(to right, var(--bg-secondary) 0%, transparent 100%);
    content: "";
    height: 120px;
    position: absolute;
    width: 150px;
    z-index: 2;
    top: 20px;
}

.slider::after {
    right: 0;
    top: 20px;
    transform: rotateZ(180deg);
}

.slider::before {
    left: 0;
    top: 20px;
}

.slide-track {
    animation: scroll 40s linear infinite;
    display: flex;
    width: calc(250px * 24);
    gap: 0;
}

.slide {
    height: 120px;
    width: 250px;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0 20px;
    flex-shrink: 0;
}

.slide img {
    max-width: 100%;
    max-height: 80px;
    object-fit: contain;
    filter: grayscale(40%) brightness(0.9);
    transition: all 0.3s ease;
    opacity: 0.7;
}

.slide:hover img {
    filter: grayscale(0%) brightness(1.2);
    opacity: 1;
    transform: scale(1.05);
}

@media (max-width: 992px) {
    .slider::before,
    .slider::after {
        width: 80px;
    }
}

@media (max-width: 768px) {
    .colaboraciones-section {
        padding: 50px 0;
    }
    
    .slider {
        height: 100px;
        padding: 15px 0;
    }
    
    .slide {
        width: 200px;
        height: 100px;
        padding: 0 15px;
    }
    
    .slide img {
        max-height: 60px;
    }
    
    .slider::before,
    .slider::after {
        width: 60px;
        height: 100px;
        top: 15px;
    }
}

@media (max-width: 576px) {
    .colaboraciones-section {
        padding: 40px 0;
    }
    
    .slider {
        height: 80px;
        padding: 10px 0;
    }
    
    .slide {
        width: 150px;
        height: 80px;
        padding: 0 10px;
    }
    
    .slide img {
        max-height: 50px;
    }
    
    .slider::before,
    .slider::after {
        width: 40px;
        height: 80px;
        top: 10px;
    }
    
    .slide-track {
        width: calc(150px * 24);
    }
}

/* ============================================================
   SECCIÓN 5: MÉTRICAS CON CONTEO ANIMADO
   - Estilo básico para números y textos
   - Números grandes con animación
   ============================================================ */
.metricas-section {
    background: var(--bg-secondary);
    padding: 80px 20px;
    border-radius: 20px;
    margin: 60px auto;
    max-width: 1200px;
    box-shadow: 0 10px 40px var(--shadow-dark);
}

.metricas-section h3 {
    font-weight: 700;
}

.metrica-num {
    font-size: 4rem;
    font-weight: 800;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
    text-shadow: 0 0 30px var(--shadow-glow);
    margin-bottom: 10px;
}

.metricas-section p {
    color: var(--text-secondary);
    font-size: 1.1rem;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* ============================================================
   SECCIÓN 6: QUIÉNES SOMOS Y CARRUSEL DE INFORMACIÓN
   - Sección "Quiénes Somos" con texto descriptivo
   - Carrusel expandible con tarjetas (Misión, Visión, Filosofía)
   - Efecto de expansión al hacer clic
   ============================================================ */
.quienes-somos-section {
    padding: 80px 0;
    transition: background-color 0.5s ease;
    width: 100%;
    margin: 0;
    position: relative;
    overflow: hidden;
}

.quienes-somos-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.quienes-somos-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

/* Colores de fondo suaves para la sección según la tarjeta activa */
.quienes-somos-section[data-section-color="mision"] {
    background: linear-gradient(135deg, rgba(74, 144, 226, 0.1) 0%, var(--bg-primary) 100%);
}

.quienes-somos-section[data-section-color="vision"] {
    background: linear-gradient(135deg, rgba(78, 205, 196, 0.1) 0%, var(--bg-primary) 100%);
}

.quienes-somos-content {
    max-width: 800px;
    margin: 0 auto;
}

.quienes-somos-content .lead {
    font-size: 1.2rem;
    line-height: 1.9;
    color: var(--text-secondary);
    font-weight: 400;
}

.flex-options-container {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
    margin-top: 40px;
    padding: 0;
}

.flex-options {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    overflow: hidden;
    min-width: 600px;
    max-width: 1000px;
    width: 100%;
    height: 450px;
    margin: 0 auto;
}

.card-option {
    background: linear-gradient(135deg, var(--bg-card) 0%, var(--bg-hover) 100%);
    border-radius: 15px;
    transform: scale(1);
    background-size: cover;
    position: relative;
    min-width: 60px;
    margin: 10px;
    overflow: hidden;
    cursor: pointer;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-dark);
}

.card-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.card-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.4) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    opacity: 1;
    transition: opacity 0.3s ease;
}

.card-option.active::before {
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0.6) 100%);
}

.card-option:not(.active) {
    flex-grow: 1;
    border-radius: 30px;
}

.card-option.active {
    flex-grow: 10000;
    transform: scale(1);
    max-width: 600px;
    background-size: auto 100%;
    border-radius: 40px;
}

.card-option .card-label {
    display: flex;
    position: absolute;
    bottom: 20px;
    left: 20px;
    height: 40px;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    z-index: 2;
}

.card-option:not(.active) .card-label {
    bottom: 10px;
    left: 10px;
}

.card-option .icon {
    display: flex;
    flex-direction: row;
    justify-content: center;
    align-items: center;
    min-width: 40px;
    max-width: 40px;
    height: 40px;
    border-radius: 100%;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    color: var(--bg-primary);
    box-shadow: 0 4px 15px var(--shadow-glow);
    z-index: 2;
}

.card-option .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
    margin-left: 10px;
    color: var(--text-primary);
    white-space: pre;
    z-index: 2;
    text-shadow: 0 2px 10px rgba(0, 0, 0, 0.5);
}

.card-option .info > * {
    position: relative;
    transition: 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95), opacity 0.5s ease-out;
}

.card-option .info h4 {
    font-weight: bold;
    font-size: 18px;
    margin: 0;
}

.card-option.active .info > * {
    left: 0;
    opacity: 1;
}

.card-option .info p {
    margin: 0;
}

.card-content {
    position: absolute;
    bottom: 80px;
    left: 20px;
    right: 20px;
    color: var(--text-primary);
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.5s cubic-bezier(0.05, 0.61, 0.41, 0.95);
    font-size: 15px;
    line-height: 1.7;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.7);
    z-index: 2;
}

.card-option.active .card-content {
    opacity: 1;
    transform: translateY(0);
}

/* ============================================================
   SECCIÓN 6.5: UNIDADES CON DISEÑO REDONDO
   - Sección de unidades con iconos circulares
   - Diseño similar a tarjetas con círculos
   ============================================================ */
.unidades-section {
    padding: 80px 0;
    background: var(--bg-primary);
    position: relative;
    overflow: hidden;
}

.unidades-section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
}

.unidad-card {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 30px 25px;
    text-align: center;
    transition: all 0.3s ease;
    border: 2px solid var(--border-color);
    box-shadow: 0 4px 15px var(--shadow-dark);
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.unidad-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 8px 25px rgba(74, 144, 226, 0.3);
    border-color: var(--accent-primary);
}

.unidad-circle {
    width: 120px;
    height: 120px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--accent-primary) 0%, var(--accent-secondary) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 25px;
    box-shadow: 0 8px 20px var(--shadow-glow);
    transition: all 0.3s ease;
}

.unidad-card:hover .unidad-circle {
    transform: scale(1.1);
    box-shadow: 0 12px 30px rgba(74, 144, 226, 0.5);
}

.unidad-circle i {
    font-size: 3rem;
    color: var(--text-primary);
}

.unidad-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 15px;
    line-height: 1.4;
    flex-grow: 1;
}

.unidad-desc {
    font-size: 0.95rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.unidad-puntos {
    list-style: none;
    padding: 0;
    margin: 0;
    text-align: left;
    flex-grow: 1;
}

.unidad-puntos li {
    font-size: 0.9rem;
    color: var(--text-secondary);
    line-height: 1.8;
    margin-bottom: 8px;
    padding-left: 20px;
    position: relative;
}

.unidad-puntos li::before {
    content: '•';
    position: absolute;
    left: 0;
    color: var(--accent-yellow);
    font-weight: bold;
    font-size: 1.2rem;
}

@media (max-width: 992px) {
    .unidad-circle {
        width: 100px;
        height: 100px;
    }
    
    .unidad-circle i {
        font-size: 2.5rem;
    }
    
    .unidad-title {
        font-size: 1rem;
    }
    
    .unidad-desc {
        font-size: 0.9rem;
    }
    
    .unidad-puntos li {
        font-size: 0.85rem;
        line-height: 1.6;
        margin-bottom: 6px;
    }
}

@media (max-width: 768px) {
    .unidades-section {
        padding: 50px 0;
    }
    
    .unidad-card {
        padding: 25px 20px;
    }
    
    .unidad-circle {
        width: 90px;
        height: 90px;
        margin-bottom: 20px;
    }
    
    .unidad-circle i {
        font-size: 2rem;
    }
    
    .unidad-title {
        font-size: 0.95rem;
        margin-bottom: 12px;
    }
    
    .unidad-desc {
        font-size: 0.85rem;
    }
    
    .unidad-puntos li {
        font-size: 0.8rem;
        line-height: 1.5;
        margin-bottom: 5px;
        padding-left: 18px;
    }
}

/* ============================================================
   SECCIÓN 7: SHORTS POR ÁREA
   - Cards con pestañas para diferentes áreas
   - Shorts con iframe, título, descripción y botón
   - Buscador de shorts
   ============================================================ */
.shorts-section {
    padding: 0px 0;
    background: var(--bg-primary);
}

.shorts-search-container {
    margin-bottom: 40px;
}

.shorts-search-container .input-group-text {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6a500 100%);
    color: var(--bg-primary);
    border: none;
    font-weight: 600;
}

.shorts-search-container .form-control {
    border-left: none;
    background-color: var(--bg-card);
    color: var(--text-primary);
    border-color: var(--border-color);
}

.shorts-search-container .form-control::placeholder {
    color: var(--text-muted);
}

.shorts-search-container .form-control:focus {
    border-color: var(--accent-yellow);
    box-shadow: 0 0 0 0.2rem rgba(255, 183, 0, 0.25);
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.shorts-card {
    background: var(--bg-card);
    border-radius: 15px;
    box-shadow: 0 8px 25px var(--shadow-dark);
    padding: 20px;
    margin-bottom: 25px;
    text-align: center;
    transition: all 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    border: 1px solid var(--border-color);
    position: relative;
    overflow: hidden;
}

.shorts-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-secondary));
    transform: scaleX(0);
    transition: transform 0.3s ease;
}

.shorts-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 35px rgba(74, 144, 226, 0.3);
    border-color: var(--accent-primary);
}

.shorts-card:hover::before {
    transform: scaleX(1);
}

.shorts-preview {
    width: 100%;
    height: 280px;
    overflow: hidden;
    border-radius: 8px;
    margin-bottom: 12px;
    position: relative;
    cursor: pointer;
    flex-shrink: 0;
}

.shorts-preview iframe {
    width: 100%;
    height: 100%;
    border: none;
    object-fit: cover;
}


.shorts-card h5 {
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text-primary);
    font-size: 1.1rem;
    height: 3.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.6rem;
    flex-shrink: 0;
}

.shorts-card p {
    font-size: 14px;
    color: var(--text-secondary);
    margin-bottom: 15px;
    height: 4.2rem;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    line-height: 1.4rem;
    flex-shrink: 0;
}

.shorts-card .btn {
    font-size: 13px;
    padding: 8px 20px;
    background: linear-gradient(135deg, var(--accent-yellow) 0%, #e6a500 100%);
    border: none;
    color: var(--bg-primary);
    border-radius: 25px;
    transition: all 0.3s ease;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.3);
    margin-top: auto;
    flex-shrink: 0;
    width: 100%;
}

.shorts-card .btn:hover {
    background: linear-gradient(135deg, #ffc933 0%, var(--accent-yellow) 100%);
    color: var(--bg-primary);
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(255, 183, 0, 0.5);
}

/* Alineación mejorada de las cards */
#shortsContainer {
    margin: 0;
}

#shortsContainer .col-12,
#shortsContainer .col-md-6,
#shortsContainer .col-lg-4 {
    display: flex;
    align-items: stretch;
}

#shortsContainer > div {
    display: flex;
    align-items: stretch;
}

/* Estilos para pestañas (nav-tabs) */
.nav-tabs {
    border-bottom: 2px solid var(--border-color);
}

.nav-tabs .nav-link {
    color: var(--text-secondary);
    background-color: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    padding: 12px 24px;
    margin: 0 5px;
    border-radius: 8px 8px 0 0;
    transition: all 0.3s ease;
    font-weight: 500;
}

.nav-tabs .nav-link:hover {
    color: var(--accent-yellow);
    background-color: rgba(255, 183, 0, 0.1);
    border-bottom-color: var(--accent-yellow);
}

.nav-tabs .nav-link.active {
    color: var(--accent-yellow);
    background-color: rgba(255, 183, 0, 0.15);
    border-bottom-color: var(--accent-yellow);
    font-weight: 600;
}

/* Estilos para el modal */
.modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
    color: var(--text-primary);
}

.modal-header {
    border-bottom: 1px solid var(--border-color);
    padding: 20px 25px;
}

.modal-title {
    color: var(--text-primary);
    font-weight: 600;
}

.modal-header .btn-close {
    filter: invert(1);
    opacity: 0.8;
}

.modal-header .btn-close:hover {
    opacity: 1;
}

.modal-body {
    padding: 25px;
}

.modal-body video {
    border-radius: 10px;
    box-shadow: 0 4px 15px var(--shadow-dark);
}

/* Modal para shorts verticales */
.modal-short {
    max-width: 400px;
    width: 90%;
}

.modal-short .modal-content {
    background-color: var(--bg-card);
    border: 1px solid var(--border-color);
    border-radius: 15px;
}

.modal-short .modal-body {
    padding: 0;
    background-color: #000;
    border-radius: 0 0 15px 15px;
}

.short-iframe-modal {
    width: 100%;
    aspect-ratio: 9 / 16;
    border: none;
    display: block;
    border-radius: 0 0 15px 15px;
}

/* ============================================================
   SECCIÓN 8: FOOTER
   - Pie de página con información de contacto
   - Enlaces y redes sociales
   ============================================================ */
#contacto,
#footer {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    background: linear-gradient(180deg, var(--bg-primary) 0%, #0a0d12 100%);
    padding: 40px 0 20px;
    backdrop-filter: blur(3px);
    border-top: 1px solid var(--border-color);
}

.container__footer {
    max-width: 1170px;
    margin: auto;
}

.Foterxd {
    display: flex;
    flex-wrap: wrap;
    margin: 0;
}

.title__utb {
    color: #fff;
    margin: 0;
    margin-left: 15px;
}

.footer__ul {
    list-style: none;
    padding: 0 !important;
}

.li__footer {
    list-style-type: none !important;
}

.footer-col {
    width: 21%;
    padding: 0 15px;
}

.footer-col h4 {
    font-size: 18px;
    color: #ffffff;
    text-transform: capitalize;
    margin-bottom: 35px;
    font-weight: 500;
    position: relative;
}

.footer-col h4::before {
    content: '';
    position: absolute;
    left: 0;
    bottom: -10px;
    background: linear-gradient(90deg, var(--accent-yellow), var(--accent-secondary));
    height: 3px;
    box-sizing: border-box;
    width: 50px;
    border-radius: 2px;
}

.footer-col .footer__ul .li:not(:last-child) {
    margin-bottom: 10px;
}

.footer-col .footer__ul .li__footer .a__footer {
    font-size: 16px;
    text-transform: capitalize;
    color: var(--text-secondary);
    text-decoration: none;
    font-weight: 300;
    display: block;
    transition: all 0.3s ease;
}

.footer-col .footer__ul .li__footer .a__footer:hover {
    color: var(--accent-yellow);
    padding-left: 8px;
    transform: translateX(3px);
}

.footer-col .social-links .a__footer {
    display: inline-block;
    height: 45px;
    width: 45px;
    background: linear-gradient(135deg, rgba(255, 183, 0, 0.2), rgba(78, 205, 196, 0.2));
    margin: 0 10px 10px 0;
    text-align: center;
    line-height: 45px;
    border-radius: 50%;
    color: var(--text-primary);
    transition: all 0.3s ease;
    border: 1px solid var(--border-color);
}

.footer-col .social-links .a__footer:hover {
    color: var(--bg-primary);
    background: linear-gradient(135deg, var(--accent-yellow), var(--accent-secondary));
    transform: translateY(-3px) scale(1.1);
    box-shadow: 0 4px 15px rgba(255, 183, 0, 0.4);
}

.fas {
    margin: 7px;
    font-weight: 600;
}

.contador-visitas-footer {
    text-align: center;
    padding: 15px 0;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.visitas-text {
    margin: 0;
    color: var(--text-secondary);
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.visitas-text i {
    color: var(--accent-yellow);
    font-size: 16px;
}

.visitas-text strong {
    color: var(--accent-yellow);
    font-size: 16px;
    font-weight: 700;
}

.dr_utb {
    margin: 0;
    margin-right: 20px;
    color: var(--text-muted);
    font-size: 12px;
    text-align: end;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
    margin-top: 20px;
}

.hefo {
    display: flex;
    flex-direction: row;
    align-items: center;
}

.hefo img {
    height: 30px;
    padding-left: 15px;
}

/* Media queries para footer */
@media (max-width: 767px) {
    .Foterxd {
        justify-content: space-between;
    }
    
    .footer-col {
        width: 48%;
        margin-bottom: 30px;
    }
    
    .footer-col:last-child {
        width: 100%;
    }
}

@media (max-width: 574px) {
    .Foterxd {
        flex-direction: column;
    }
    
    .footer-col {
        width: 100%;
        margin-bottom: 25px;
        padding: 0 10px;
    }
    
    .social-links {
        justify-content: center;
    }
}

/* ============================================================
   ESTILOS RESPONSIVOS ADICIONALES
   ============================================================ */

/* Tablets y pantallas medianas */
@media (max-width: 992px) {
    .video-container {
        height: 60vh;
    }
    
    .video-text h1 {
        font-size: 2.5rem;
    }
    
    .section-title {
        font-size: 2.2rem;
    }
    
    .quienes-somos-content .lead {
        font-size: 1.1rem;
        padding: 0 20px;
    }
    
    .flex-options {
        min-width: 90%;
        height: 400px;
    }
}

/* Móviles grandes y tablets pequeñas */
@media (max-width: 768px) {
    /* Header y navegación */
    header {
        padding: 10px 0;
    }
    
    .logo {
        height: 40px;
    }
    
    .nav-link-custom {
        font-size: 14px;
        padding: 6px 12px !important;
    }
    
    /* Video de presentación */
    .video-container {
        height: 50vh;
    }
    
    .video-text {
        bottom: 15%;
        left: 5%;
        right: 5%;
    }
    
    .video-text h1 {
        font-size: 2rem;
        line-height: 1.2;
    }
    
    .modal-btn {
        bottom: 8%;
        left: 5%;
        right: 5%;
    }
    
    .modal-btn .btn,
    .btn-audio {
        width: 100%;
        max-width: 300px;
        padding: 12px 20px;
        font-size: 14px;
    }
    
    /* Secciones generales */
    .section-title {
        font-size: 1.8rem;
        margin-bottom: 2rem;
    }
    
    .colaboraciones-section,
    .quienes-somos-section,
    .shorts-section {
        padding: 50px 0;
    }
    
    /* Métricas */
    .metricas-section {
        padding: 50px 15px;
        margin: 40px 10px;
    }
    
    .metrica-num {
        font-size: 3rem;
    }
    
    .metricas-section p {
        font-size: 1rem;
    }
    
    /* Quiénes Somos */
    .quienes-somos-content {
        padding: 0 15px;
    }
    
    .quienes-somos-content .lead {
        font-size: 1rem;
        line-height: 1.7;
    }
    
    .flex-options-container {
        padding: 0 10px;
    }
    
    .flex-options {
        min-width: 100%;
        height: 380px;
        margin: 0;
    }
    
    .card-option {
        margin: 5px;
        min-width: 50px;
    }
    
    .card-option .info h4 {
        font-size: 16px;
    }
    
    .card-option .info p {
        font-size: 12px;
    }
    
    .card-content {
        font-size: 13px;
        bottom: 70px;
        left: 15px;
        right: 15px;
    }
    
    /* Shorts */
    .shorts-section {
        padding: 0px 15px;
    }
    
    .shorts-search-container {
        margin-bottom: 30px;
    }
    
    .shorts-search-container .form-control {
        font-size: 14px;
    }
    
    .nav-tabs {
        flex-wrap: wrap;
        justify-content: center;
    }
    
    .nav-tabs .nav-link {
        padding: 8px 12px;
        font-size: 12px;
        margin: 2px;
    }
    
    .shorts-card {
        padding: 20px;
        margin-bottom: 20px;
    }
    
    .shorts-card h5 {
        font-size: 1.1rem;
        height: 3.3rem;
        line-height: 1.65rem;
    }
    
    .shorts-card p {
        font-size: 14px;
        height: 4.2rem;
        line-height: 1.4rem;
    }
    
    .shorts-preview {
        height: 250px;
    }
    
    .modal-short {
        max-width: 90%;
        width: 90%;
    }
}

/* Móviles pequeños */
@media (max-width: 576px) {
    /* Header */
    .logo {
        height: 35px;
    }
    
    .nav-link-custom {
        font-size: 13px;
        padding: 5px 10px !important;
    }
    
    /* Video */
    .video-container {
        height: 45vh;
    }
    
    .video-text {
        bottom: 12%;
        left: 5%;
        right: 5%;
    }
    
    .video-text h1 {
        font-size: 1.5rem;
        line-height: 1.3;
    }
    
    .modal-btn {
        bottom: 5%;
        left: 5%;
        right: 5%;
    }
    
    .btn-audio {
        padding: 10px 18px;
        font-size: 13px;
    }
    
    .btn-audio i {
        font-size: 16px;
    }
    
    .audio-text {
        font-size: 12px;
    }
    
    /* Títulos */
    .section-title {
        font-size: 1.5rem;
        margin-bottom: 1.5rem;
    }
    
    .section-title::after {
        width: 60px;
        height: 3px;
    }
    
    /* Secciones */
    .colaboraciones-section,
    .quienes-somos-section,
    .shorts-section {
        padding: 40px 0;
    }
    
    /* Métricas */
    .metricas-section {
        padding: 40px 10px;
        margin: 30px 5px;
        border-radius: 15px;
    }
    
    .metrica-num {
        font-size: 2.5rem;
    }
    
    .metricas-section p {
        font-size: 0.9rem;
    }
    
    /* Quiénes Somos */
    .quienes-somos-content .lead {
        font-size: 0.95rem;
        padding: 0 10px;
    }
    
    .flex-options {
        height: 350px;
    }
    
    .card-option {
        margin: 3px;
        min-width: 40px;
    }
    
    .card-option .icon {
        min-width: 35px;
        max-width: 35px;
        height: 35px;
    }
    
    .card-option .info h4 {
        font-size: 14px;
    }
    
    .card-option .info p {
        font-size: 11px;
    }
    
    .card-content {
        font-size: 12px;
        bottom: 60px;
        left: 10px;
        right: 10px;
    }
    
    /* Shorts */
    .shorts-section {
        padding: 0px 10px;
    }
    
    .shorts-search-container .col-12 {
        padding: 0 5px;
    }
    
    .nav-tabs .nav-link {
        padding: 6px 10px;
        font-size: 11px;
        margin: 2px 1px;
    }
    
    .shorts-card {
        padding: 15px;
    }
    
    .shorts-card h5 {
        font-size: 1rem;
        height: 3rem;
        line-height: 1.5rem;
    }
    
    .shorts-card p {
        font-size: 13px;
        height: 3.9rem;
        line-height: 1.3rem;
    }
    
    .shorts-preview {
        height: 220px;
    }
    
    .shorts-card .btn {
        padding: 8px 20px;
        font-size: 13px;
    }
    
    /* Footer */
    .container__footer {
        padding: 0 15px;
    }
    
    .hefo {
        flex-direction: column;
        text-align: center;
        margin-bottom: 20px;
    }
    
    .hefo img {
        padding-left: 0;
        margin-bottom: 10px;
    }
    
    .title__utb {
        margin-left: 0;
        font-size: 1.2rem;
    }
    
    .footer-col h4 {
        font-size: 16px;
        margin-bottom: 20px;
    }
    
    .footer-col .footer__ul .li__footer .a__footer {
        font-size: 14px;
    }
    
    .contador-visitas-footer {
        padding: 12px 0;
    }
    
    .visitas-text {
        font-size: 12px;
    }
    
    .visitas-text i {
        font-size: 14px;
    }
    
    .visitas-text strong {
        font-size: 14px;
    }
    
    .dr_utb {
        font-size: 10px;
        text-align: center;
        margin-right: 0;
        padding: 15px 10px 0;
    }
}

/* Móviles muy pequeños */
@media (max-width: 400px) {
    .video-text h1 {
        font-size: 1.3rem;
    }
    
    .section-title {
        font-size: 1.3rem;
    }
    
    .metrica-num {
        font-size: 2rem;
    }
    
    .flex-options {
        height: 320px;
    }
    
    .nav-tabs .nav-link {
        padding: 5px 8px;
        font-size: 10px;
        min-height: 40px;
    }
    
    .shorts-preview {
        aspect-ratio: 3 / 4;
    }
    
    .btn-audio {
        padding: 8px 15px;
        font-size: 12px;
    }
}

/* Ajustes para orientación horizontal en móviles */
@media (max-width: 768px) and (orientation: landscape) {
    .video-container {
        height: 70vh;
    }
    
    .video-text h1 {
        font-size: 1.8rem;
    }
    
    .flex-options {
        height: 300px;
    }
}

/* ============================================================
   SECCIÓN 9: PÁGINA DE CONTACTO / FORMULARIO
   - Estilos para la página de contacto
   - Botón de formulario destacado
   ============================================================ */
.contacto-main {
    min-height: 70vh;
    padding: 100px 0;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, var(--bg-primary) 0%, var(--bg-secondary) 100%);
}

.contacto-container {
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px;
}

.formulario-registro-container {
    background: var(--bg-card);
    border-radius: 20px;
    padding: 40px;
    box-shadow: 0 8px 30px var(--shadow-dark);
    border: 2px solid var(--border-color);
}

.formulario-registro {
    width: 100%;
}

.form-label {
    color: var(--text-primary);
    font-weight: 600;
    margin-bottom: 8px;
    display: block;
}

.form-control-custom,
.form-select.form-control-custom {
    background-color: var(--bg-secondary);
    border: 2px solid var(--border-color);
    border-radius: 10px;
    color: var(--text-primary);
    padding: 12px 15px;
    font-size: 1rem;
    transition: all 0.3s ease;
    width: 100%;
}

.form-control-custom:focus,
.form-select.form-control-custom:focus {
    background-color: var(--bg-secondary);
    border-color: var(--accent-yellow);
    color: var(--text-primary);
    box-shadow: 0 0 0 0.2rem rgba(255, 183, 0, 0.25);
    outline: none;
}

.form-control-custom::placeholder {
    color: var(--text-muted);
}

.form-select.form-control-custom option {
    background-color: var(--bg-card);
    color: var(--text-primary);
}

.btn-formulario {
    width: 100%;
    justify-content: center;
}

.btn-formulario:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.formulario-registro .alert {
    border-radius: 10px;
    padding: 15px;
    margin-bottom: 20px;
}

.formulario-registro .alert-success {
    background-color: rgba(40, 167, 69, 0.2);
    border: 2px solid #28a745;
    color: #d4edda;
}

.formulario-registro .alert-danger {
    background-color: rgba(220, 53, 69, 0.2);
    border: 2px solid #dc3545;
    color: #f8d7da;
}

.alert-info-custom {
    background: rgba(74, 144, 226, 0.1);
    border: 2px solid var(--accent-primary);
    border-radius: 15px;
    color: var(--text-primary);
    padding: 25px;
    margin-top: 30px;
}

.alert-info-custom i {
    font-size: 2rem;
    color: var(--accent-primary);
    display: block;
    margin-bottom: 15px;
}

.alert-info-custom p {
    margin-bottom: 10px;
    line-height: 1.6;
}

.alert-info-custom a {
    color: var(--accent-yellow);
    text-decoration: none;
    transition: color 0.3s ease;
}

.alert-info-custom a:hover {
    color: var(--accent-secondary);
    text-decoration: underline;
}

.contacto-subtitle {
    color: var(--text-secondary);
    font-size: 1.1rem;
    line-height: 1.7;
}

.btn-formulario {
    background: linear-gradient(135deg, var(--accent-yellow) 0%, var(--accent-secondary) 100%);
    border: none;
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 1.2rem;
    padding: 20px 50px;
    border-radius: 50px;
    box-shadow: 0 8px 30px rgba(255, 183, 0, 0.4);
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 15px;
    min-height: 60px;
    position: relative;
    overflow: hidden;
}

.btn-formulario::before {
    content: '';
    position: absolute;
    top: 0;
    left: -100%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.3), transparent);
    transition: left 0.5s ease;
}

.btn-formulario:hover::before {
    left: 100%;
}

.btn-formulario:hover {
    transform: translateY(-5px);
    box-shadow: 0 12px 40px rgba(255, 183, 0, 0.6);
    background: linear-gradient(135deg, #ffc933 0%, var(--accent-yellow) 100%);
}

.btn-formulario:active {
    transform: translateY(-2px);
    box-shadow: 0 6px 25px rgba(255, 183, 0, 0.5);
}

.btn-formulario i {
    font-size: 1.5rem;
    transition: transform 0.3s ease;
}

.btn-formulario:hover i {
    transform: scale(1.1) rotate(5deg);
}

.btn-formulario span {
    font-size: 1.2rem;
    letter-spacing: 0.5px;
}

.btn-formulario {
    text-decoration: none;
    display: inline-flex;
}

/* Responsive para botón de formulario */
@media (max-width: 768px) {
    .contacto-main {
        padding: 60px 0;
    }
    
    .contacto-subtitle {
        font-size: 1rem;
        padding: 0 10px;
    }
    
    .formulario-registro-container {
        padding: 30px 25px;
    }
    
    .btn-formulario {
        font-size: 1rem;
        padding: 18px 40px;
        min-height: 56px;
    }
    
    .btn-formulario i {
        font-size: 1.3rem;
    }
    
    .btn-formulario span {
        font-size: 1rem;
    }
}

@media (max-width: 576px) {
    .contacto-main {
        padding: 50px 0;
    }
    
    .contacto-subtitle {
        font-size: 0.95rem;
        margin-bottom: 40px;
    }
    
    .formulario-registro-container {
        padding: 25px 20px;
    }
    
    .form-label {
        font-size: 0.95rem;
    }
    
    .form-control-custom,
    .form-select.form-control-custom {
        padding: 10px 12px;
        font-size: 0.95rem;
    }
    
    .alert-info-custom {
        padding: 20px;
        font-size: 0.9rem;
    }
    
    .alert-info-custom i {
        font-size: 1.5rem;
    }
    
    .btn-formulario {
        width: 100%;
        max-width: 300px;
        font-size: 0.95rem;
        padding: 16px 35px;
        min-height: 52px;
        flex-direction: column;
        gap: 8px;
    }
    
    .btn-formulario i {
        font-size: 1.2rem;
    }
    
    .btn-formulario span {
        font-size: 0.95rem;
    }
}

