/* ============================================
   GALERÍA PRUEBA - ESTILOS ESPECÍFICOS
   Este archivo NO modifica los estilos existentes
============================================= */

/* ============================================
   HERO V2 CON VIDEO DE FONDO
============================================= */
.gallery-hero-v2 {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-hero-v2__video-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gallery-hero-v2__video {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-hero-v2__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(14, 36, 66, 0.85) 0%, rgba(9, 26, 51, 0.9) 100%);
    z-index: 1;
}

.gallery-hero-v2__content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: var(--spacing-4xl) 0;
}

.gallery-hero-v2__content .page-header__breadcrumb {
    margin-bottom: var(--spacing-lg);
}

.gallery-hero-v2__title {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--color-bg);
    margin-bottom: var(--spacing-md);
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.2s forwards;
}

.gallery-hero-v2__subtitle {
    font-size: var(--font-size-lg);
    color: rgba(255, 255, 255, 0.8);
    margin-bottom: var(--spacing-2xl);
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.4s forwards;
}

.gallery-hero-v2__btn {
    opacity: 0;
    animation: fadeInUp 0.8s ease 0.6s forwards;
}

.gallery-hero-v2__btn svg {
    animation: float 2s ease-in-out infinite;
}

/* ============================================
   SECCIÓN GALERÍA GRID
============================================= */
.gallery-grid-section {
    padding: var(--spacing-4xl) 0;
    background-color: var(--color-bg);
}

/* ============================================
   FILTROS
============================================= */
.gallery-filters {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: var(--spacing-sm);
    margin-bottom: var(--spacing-xl);
}

.gallery-filter {
    padding: var(--spacing-sm) var(--spacing-xl);
    font-family: var(--font-family);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--color-text);
    background-color: var(--color-bg-alt);
    border: 2px solid transparent;
    border-radius: var(--border-radius-md);
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-filter:hover {
    background-color: var(--color-primary);
    color: var(--color-bg);
}

.gallery-filter.active {
    background-color: var(--color-primary);
    color: var(--color-bg);
    border-color: var(--color-primary);
}

/* ============================================
   CONTADOR
============================================= */
.gallery-counter {
    text-align: center;
    font-size: var(--font-size-sm);
    color: var(--color-text-muted);
    margin-bottom: var(--spacing-xl);
}

.gallery-counter span {
    font-weight: 700;
    color: var(--color-primary);
}

/* ============================================
   GRID DE IMÁGENES
============================================= */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.gallery-item {
    position: relative;
    aspect-ratio: 1;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    cursor: pointer;
    transition: all var(--transition-base);
}

.gallery-item:hover {
    transform: scale(1.02);
    box-shadow: var(--shadow-xl);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Overlay en hover */
.gallery-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(14, 36, 66, 0.7) 0%, transparent 50%);
    opacity: 0;
    transition: opacity var(--transition-base);
    z-index: 1;
}

.gallery-item:hover::before {
    opacity: 1;
}

/* Ícono de zoom en hover */
.gallery-item::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 50px;
    height: 50px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'%3E%3C/circle%3E%3Cline x1='21' y1='21' x2='16.65' y2='16.65'%3E%3C/line%3E%3Cline x1='11' y1='8' x2='11' y2='14'%3E%3C/line%3E%3Cline x1='8' y1='11' x2='14' y2='11'%3E%3C/line%3E%3C/svg%3E");
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center;
    transform: translate(-50%, -50%) scale(0);
    opacity: 0;
    transition: all var(--transition-base);
    z-index: 2;
}

.gallery-item:hover::after {
    transform: translate(-50%, -50%) scale(1);
    opacity: 1;
}

/* Placeholder temporal */
.gallery-item__placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-secondary) 100%);
    color: var(--color-text-muted);
    font-size: var(--font-size-sm);
    font-weight: 500;
}

/* Estado oculto para filtros */
.gallery-item.hidden {
    display: none;
}

/* Animación al mostrar */
.gallery-item.show {
    animation: scaleIn 0.4s ease forwards;
}

/* ============================================
   RESPONSIVE
============================================= */
@media screen and (max-width: 1200px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media screen and (max-width: 992px) {
    .gallery-hero-v2 {
        min-height: 60vh;
    }
    
    .gallery-hero-v2__title {
        font-size: var(--font-size-4xl);
    }
}

@media screen and (max-width: 768px) {
    .gallery-hero-v2 {
        min-height: 50vh;
    }
    
    .gallery-hero-v2__title {
        font-size: var(--font-size-3xl);
    }
    
    .gallery-hero-v2__subtitle {
        font-size: var(--font-size-base);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: var(--spacing-sm);
    }
    
    .gallery-filters {
        gap: var(--spacing-xs);
    }
    
    .gallery-filter {
        padding: var(--spacing-xs) var(--spacing-md);
        font-size: var(--font-size-xs);
    }
}

@media screen and (max-width: 480px) {
    .gallery-hero-v2__title {
        font-size: var(--font-size-2xl);
    }
    
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .gallery-filter {
        flex: 1 1 calc(33.333% - var(--spacing-xs));
        text-align: center;
    }
}

/* ============================================
   HERO IMAGEN (reemplazo de video)
============================================= */
.gallery-hero {
    padding: var(--spacing-3xl) 0;
    background-color: var(--color-bg-alt);
}

.gallery-hero__image {
    max-width: 900px;
    margin: 0 auto;
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-xl);
}

.gallery-hero__image img {
    width: 100%;
    height: auto;
    display: block;
}

/* Hero con imagen de fondo */
.gallery-hero-v2__image-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 0;
}

.gallery-hero-v2__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video en galería */
.gallery-item video {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item--video:hover video {
    transform: scale(1.1);
}