/* Estilos Generales Compartidos */
.texcoco-section { padding: 80px 20px; font-family: sans-serif; background-color: #ffffff; }
.texcoco-bg-tema-claro { background-color: #B3D1C5; } /* Tono verde claro aplicado al fondo */
.texcoco-container { max-width: 1200px; margin: 0 auto; }

.texcoco-titulo { font-size: 2.5rem; color: #1D3634; font-weight: 300; text-align: center; margin-bottom: 20px; }
.texcoco-acento { font-weight: 600; color: #408B6E; } /* Acento verde INAH */
.texcoco-divisor { width: 80px; height: 3px; background-color: #408B6E; margin: 0 auto 30px auto; }

.texcoco-descripcion { font-size: 1.1rem; line-height: 1.8; color: #333; max-width: 800px; margin: 0 auto 40px auto; }
.texcoco-center-text { text-align: center; }

/* Galería de Videos */
.texcoco-video-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.texcoco-video-card {
    background: #fff;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 5px 15px rgba(29, 54, 52, 0.1); /* Sombra basada en el tono oscuro */
    cursor: pointer;
    transition: transform 0.3s ease;
}

.texcoco-video-card:hover { transform: translateY(-5px); }

.texcoco-thumbnail-container { position: relative; aspect-ratio: 16 / 9; background: #000; }
.texcoco-thumbnail-container img { width: 100%; height: 100%; object-fit: cover; opacity: 0.8; transition: opacity 0.3s; }
.texcoco-video-card:hover .texcoco-thumbnail-container img { opacity: 0.5; }

.texcoco-play-btn {
    position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
    width: 60px; height: 60px; background-color: #408B6E; color: #fff;
    border-radius: 50%; display: flex; justify-content: center; align-items: center;
    font-size: 24px; box-shadow: 0 4px 10px rgba(0,0,0,0.3); transition: transform 0.3s, background-color 0.3s;
}
.texcoco-video-card:hover .texcoco-play-btn { 
    transform: translate(-50%, -50%) scale(1.1); 
    background-color: #1D3634; /* Cambia a verde oscuro en hover */
}

.texcoco-video-titulo { padding: 20px; font-size: 1.1rem; color: #1D3634; margin: 0; text-align: center; font-weight: 600; }

/* Estilos del Modal */
.texcoco-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(29, 54, 52, 0.95); /* Tono oscuro con opacidad para cubrir pantalla */
    z-index: 9999;
    display: flex; justify-content: center; align-items: center;
    opacity: 0; visibility: hidden; transition: opacity 0.3s ease, visibility 0.3s ease;
}
.texcoco-modal-overlay.active { opacity: 1; visibility: visible; }

.texcoco-modal-content {
    position: relative; width: 90%; max-width: 1000px;
    background: #000; border-radius: 8px; box-shadow: 0 20px 50px rgba(0,0,0,0.5);
}

.texcoco-close-modal {
    position: absolute; top: -40px; right: 0;
    background: none; border: none; color: #B3D1C5; font-size: 40px; cursor: pointer; line-height: 1; transition: color 0.3s;
}

.texcoco-close-modal:hover { color: #fff; }

.texcoco-iframe-wrapper { width: 100%; aspect-ratio: 16 / 9; }
.texcoco-iframe-wrapper iframe { width: 100%; height: 100%; border-radius: 8px; }

/* Sección Colaboraciones (Clases actualizadas por si las integras después) */
.texcoco-colab-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px; justify-items: center; align-items: center;
}

.texcoco-colab-card {
    background: #fff; border-radius: 10px; width: 100%; height: 150px;
    display: flex; justify-content: center; align-items: center;
    box-shadow: 0 4px 10px rgba(29, 54, 52, 0.08); padding: 20px; border: 1px solid rgba(64, 139, 110, 0.2);
}

.texcoco-placeholder-colab { 
    border: 2px dashed #408B6E; 
    background: transparent; 
    box-shadow: none; 
}

/* Responsivo Móvil */
@media (max-width: 768px) {
    .texcoco-titulo { font-size: 2rem; }
    .texcoco-close-modal { top: -35px; right: 10px; font-size: 30px; }
    .texcoco-colab-card { height: 120px; }
}