/* ==========================================================================
   ESTILOS ESPECÍFICOS: MEDIA Y VIDEOS
   ========================================================================== */

/* --- Hero Interno Premium (Estilo estandarizado) --- */
.page-hero {
    position: relative;
    min-height: 55vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding-top: 80px;
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
}
.page-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, rgba(5,5,5,0.4) 0%, rgba(5,5,5,0.95) 100%);
}

.media-hero {
    /* Sugerencia: Foto de un set de filmación oscuro, luces de video, o silueta de cámara */
    background: url('/assets/img/backgrounds/hero-media.jpg') center/cover no-repeat;
}

.hero-content {
    position: relative;
    z-index: 10;
    max-width: 900px;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-content h1 {
    font-size: clamp(3rem, 8vw, 5rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    margin-bottom: 1.5rem;
    text-shadow: 0 10px 30px rgba(0,0,0,0.8);
}

.hero-content p {
    font-size: clamp(1.1rem, 2vw, 1.25rem);
    color: var(--text-secondary);
    max-width: 700px;
    line-height: 1.8;
}

/* Línea decorativa dorada brillante */
.hero-content::after {
    content: '';
    display: block;
    width: 80px;
    height: 3px;
    background-color: var(--accent);
    margin-top: 2.5rem;
    box-shadow: 0 0 15px rgba(197, 160, 89, 0.6);
}

.accent-label {
    color: var(--accent);
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 2px;
    font-weight: 600;
    display: flex;
    margin-bottom: 1rem;
}

/* Nuevo Título Destacado (Reemplaza al texto anterior) */
.destacado-title {
    color: var(--accent);
    font-size: clamp(2.5rem, 5vw, 4rem);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-weight: 700;
    margin-bottom: 2rem;
    text-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

/* --- Video Destacado Estilo Cine --- */
.featured-video-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 21/9; /* Formato ultra panorámico de cine */
    border-radius: var(--radius-md);
    overflow: hidden;
    box-shadow: 0 20px 50px rgba(0,0,0,0.6);
    background-color: #000;
}

/* Soporte para el iframe de YouTube inyectado por JS */
.featured-video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 20;
}

/* Efecto hover asegurado para la imagen inyectada */
.featured-video-wrapper img {
    transition: transform 6s ease, opacity 0.5s ease;
}

.featured-video-wrapper:hover img {
    transform: scale(1.05);
    opacity: 0.4 !important;
}

/* Estilo del botón Play inyectado dinámicamente por JS */
.featured-video-wrapper .play-btn {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg-base);
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    z-index: 10;
}

.featured-video-wrapper .play-btn i {
    width: 40px;
    height: 40px;
    margin-left: 5px; /* Compensa visualmente el centro del icono play */
}

.featured-video-wrapper .play-btn:hover {
    transform: translate(-50%, -50%) scale(1.15);
    background-color: var(--accent-hover);
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.8);
}

.featured-video-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
    transition: transform 6s ease, opacity 0.5s ease;
}

.featured-video-wrapper:hover .featured-video-img {
    transform: scale(1.05);
    opacity: 0.4;
}

.featured-video-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: radial-gradient(circle, transparent 20%, rgba(0,0,0,0.8) 100%);
}

.btn-play-massive {
    width: 90px;
    height: 90px;
    border-radius: 50%;
    background-color: var(--accent);
    color: var(--bg-base);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    box-shadow: 0 0 30px rgba(197, 160, 89, 0.5);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.btn-play-massive i {
    width: 40px;
    height: 40px;
    margin-left: 5px; /* Compensa visualmente el centro del icono play */
}

.featured-video-wrapper:hover .btn-play-massive {
    transform: scale(1.15);
    background-color: var(--accent-hover);
    box-shadow: 0 0 50px rgba(197, 160, 89, 0.8);
}

.featured-video-info {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2.5rem;
    background: linear-gradient(to top, rgba(0,0,0,0.9), transparent);
    transform: translateY(20px);
    opacity: 0;
    transition: var(--transition-smooth);
}

.featured-video-wrapper:hover .featured-video-info {
    transform: translateY(0);
    opacity: 1;
}

.featured-video-info h3 {
    font-size: 2rem;
    margin-bottom: 0.2rem;
    text-shadow: 0 2px 4px rgba(0,0,0,0.8);
}

.featured-video-info span {
    color: var(--accent);
    font-size: 0.9rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

/* --- Grilla de Videoclips --- */
.video-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2.5rem;
}

.video-card {
    display: flex;
    flex-direction: column;
}

.video-thumbnail {
    position: relative;
    aspect-ratio: 16/9;
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.2rem;
    cursor: pointer;
    box-shadow: 0 10px 20px rgba(0,0,0,0.3);
}

.video-thumbnail img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.video-play-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: var(--transition-smooth);
}

.video-play-overlay i {
    color: #fff;
    background: rgba(197, 160, 89, 0.8);
    padding: 15px;
    border-radius: 50%;
    transform: scale(0.8);
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.video-thumbnail:hover img {
    transform: scale(1.05);
}

.video-thumbnail:hover .video-play-overlay {
    opacity: 1;
}

.video-thumbnail:hover .video-play-overlay i {
    transform: scale(1);
    background: var(--accent);
}

.video-badge {
    color: var(--bg-base);
    background-color: var(--accent);
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 3px 8px;
    border-radius: 3px;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 0.8rem;
}

.video-info h4 {
    font-size: 1.15rem;
    line-height: 1.4;
    color: var(--text-primary);
}

/* --- Galería de Fotos (Backstage) --- */
.photo-gallery {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 250px;
    gap: 1.5rem;
}

.photo-item {
    border-radius: var(--radius-md);
    overflow: hidden;
    position: relative;
}

.photo-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(80%);
    transition: transform 0.6s ease, filter 0.6s ease;
}

.photo-item:hover img {
    filter: grayscale(0%);
    transform: scale(1.05);
}

.photo-wide {
    grid-column: span 2;
}

/* ==========================================================================
   RESPONSIVE (MÓVILES Y TABLETS)
   ========================================================================== */
@media (max-width: 1024px) {
    .video-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    .photo-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    /* Ajustes Hero Premium en Móvil */
    .hero-content h1 {
        font-size: 1.8rem;
        letter-spacing: 2px;
    }
    .page-hero {
        min-height: 40vh;
        padding: 80px 20px 0;
    }

    /* Video Destacado Móvil */
    .featured-video-wrapper {
        aspect-ratio: 16/9; /* Volvemos a un formato más cuadrado para celular */
    }
    
    /* Escalar el botón inyectado en celulares */
    .featured-video-wrapper .play-btn {
        width: 60px;
        height: 60px;
    }
    .featured-video-wrapper .play-btn i {
        width: 25px;
        height: 25px;
    }
    
    .btn-play-massive {
        width: 60px;
        height: 60px;
    }
    .btn-play-massive i {
        width: 25px;
        height: 25px;
    }
    .featured-video-info {
        opacity: 1; /* Siempre visible en móvil */
        transform: translateY(0);
        padding: 1.5rem;
        background: linear-gradient(to top, rgba(0,0,0,0.9) 20%, transparent);
    }
    .featured-video-info h3 {
        font-size: 1.2rem;
    }

    /* Resto de grillas en móvil */
    .video-grid {
        grid-template-columns: 1fr;
        gap: 3rem;
    }
    .photo-gallery {
        grid-template-columns: 1fr;
        grid-auto-rows: 200px;
    }
    .photo-wide {
        grid-column: span 1;
    }
    
    /* Mostrar Play siempre en móvil */
    .video-play-overlay {
        opacity: 1;
        background: rgba(0,0,0,0.2);
    }
    .video-play-overlay i {
        transform: scale(1);
    }
}

/* ==========================================================================
   LIGHTBOX DE IMÁGENES (GALERÍA PROTEGIDA)
   ========================================================================== */
.photo-item img {
    cursor: zoom-in;
    user-select: none;
    -webkit-user-drag: none;
}

.lightbox-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.95); z-index: 3000;
    display: flex; align-items: center; justify-content: center;
    opacity: 0; visibility: hidden; transition: all 0.4s ease;
    backdrop-filter: blur(8px);
    cursor: zoom-out;
}

.lightbox-overlay.active { 
    opacity: 1; 
    visibility: visible; 
}

.lightbox-img-container {
    position: relative;
    max-width: 90%; 
    max-height: 90vh;
}

#lightbox-img {
    max-width: 100%; 
    max-height: 90vh;
    border-radius: var(--radius-md);
    box-shadow: 0 20px 50px rgba(0,0,0,0.8);
    transform: scale(0.95); 
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    /* TRUCO ANTI-COPIA: Desactiva interacciones en la imagen, obligando al clic a caer en el contenedor padre */
    pointer-events: none; 
    user-select: none;
}

.lightbox-overlay.active #lightbox-img { 
    transform: scale(1); 
}

.lightbox-close {
    position: absolute; top: 30px; right: 30px;
    background: rgba(255,255,255,0.1); border: none;
    color: #FFFFFF; cursor: pointer; transition: all 0.3s ease;
    width: 50px; height: 50px; border-radius: 50%;
    display: flex; align-items: center; justify-content: center;
    z-index: 3010;
}

.lightbox-close:hover { 
    background: var(--accent); 
    color: #000; 
    transform: scale(1.1); 
}

@media (max-width: 768px) {
    .lightbox-close {
        top: 15px; right: 15px;
        width: 40px; height: 40px;
    }
}