/* ============================================
   GALERÍA — 8 Tiempos
   galeria.css
   ============================================ */

/* Link activo en navbar */
.nav-active {
    color: white !important;
}
.nav-active::after {
    width: 100% !important;
}

/* ============================================
   HERO DE GALERÍA
   ============================================ */

.galeria-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    overflow: hidden;
}

/* Líneas decorativas de fondo */
.galeria-hero::before {
    content: '';
    position: absolute;
    top: 0; left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, transparent, rgba(255,47,146,0.3), transparent);
    pointer-events: none;
}

.galeria-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at center, rgba(255,47,146,0.06) 0%, transparent 65%);
    pointer-events: none;
}

.galeria-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
}

.galeria-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 4px;
    text-transform: uppercase;
    color: var(--pink-soft);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.galeria-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(3.5rem, 10vw, 8rem);
    font-weight: 300;
    color: white;
    line-height: 1.05;
    letter-spacing: -2px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.galeria-titulo em {
    color: var(--pink);
    font-style: italic;
    font-weight: 300;
}

.galeria-sub {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.9rem, 2vw, 1.1rem);
    color: rgba(255,255,255,0.5);
    max-width: 480px;
    line-height: 1.7;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

/* TABS de navegación */
.galeria-hero-nav {
    display: flex;
    gap: 12px;
    margin-top: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.8s forwards;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.15);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
}

.tab-btn:hover {
    border-color: rgba(255,47,146,0.4);
    color: white;
}

.tab-btn.active {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
    box-shadow: 0 8px 24px rgba(255,47,146,0.4);
}

/* Flecha de scroll */
.galeria-hero-scroll {
    position: absolute;
    bottom: 36px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
}

.scroll-hint {
    font-size: 20px;
    color: rgba(255,255,255,0.3);
    animation: bounce 2s ease-in-out infinite;
}

@keyframes bounce {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(8px); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}


/* ============================================
   FILTROS
   ============================================ */

.galeria-fotos-section {
    padding: 60px 5% 100px;
    position: relative;
}

.filtros-bar {
    display: flex;
    justify-content: center;
    gap: 10px;
    margin-bottom: 52px;
    flex-wrap: wrap;
}

.filtro-btn {
    padding: 8px 22px;
    border-radius: 100px;
    border: 1px solid var(--border);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    letter-spacing: 1px;
    text-transform: uppercase;
    cursor: pointer;
    transition: all 0.3s;
}

.filtro-btn:hover {
    border-color: rgba(255,47,146,0.4);
    color: white;
}

.filtro-btn.active {
    background: rgba(255,47,146,0.12);
    border-color: rgba(255,47,146,0.5);
    color: var(--pink-soft);
}

/* ============================================
   GRID MASONRY
   ============================================ */

.masonry-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 280px;
    gap: 14px;
    max-width: 1300px;
    margin: 0 auto;
}

/* Item normal */
.masonry-item {
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    cursor: pointer;
    background: rgba(255,255,255,0.04);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Item alto (ocupa 2 filas) */
.masonry-tall {
    grid-row: span 2;
}

/* Item ancho (ocupa 2 columnas) */
.masonry-wide {
    grid-column: span 2;
}

.masonry-item:hover {
    transform: scale(1.015);
    z-index: 2;
}

.masonry-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1), filter 0.4s;
}

.masonry-item:hover img {
    transform: scale(1.08);
    filter: brightness(0.7);
}

/* Overlay */
.masonry-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    padding: 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.6) 0%, transparent 50%);
    opacity: 0;
    transition: opacity 0.4s;
}

.masonry-item:hover .masonry-overlay {
    opacity: 1;
}

.masonry-cat {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.9);
    background: rgba(255,47,146,0.8);
    padding: 4px 12px;
    border-radius: 100px;
}

.masonry-zoom {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.4);
    background: rgba(0,0,0,0.4);
    backdrop-filter: blur(8px);
    color: white;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.masonry-zoom:hover {
    background: var(--pink);
    border-color: var(--pink);
    transform: scale(1.1);
}

/* Item oculto por filtro */
.masonry-item.hidden {
    display: none;
}

/* Responsive masonry */
@media (max-width: 1024px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 260px;
    }
    .masonry-wide { grid-column: span 2; }
}

@media (max-width: 640px) {
    .masonry-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 180px;
        gap: 8px;
    }
    .masonry-tall  { grid-row: span 2; }
    .masonry-wide  { grid-column: span 2; }
}


/* ============================================
   CTA GALERÍA
   ============================================ */

.galeria-cta-block {
    text-align: center;
    margin-top: 80px;
    padding: 60px 20px;
    border-top: 1px solid var(--border);
}

.galeria-cta-block p {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    color: white;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 28px;
}


/* ============================================
   SECCIÓN REELS
   ============================================ */

.galeria-reels-section {
    padding: 60px 5% 100px;
}

.reels-header {
    text-align: center;
    margin-bottom: 56px;
}

.reels-header h2 {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 300;
    color: white;
    margin: 10px 0 14px;
}

.reels-header p {
    font-family: 'Poppins', sans-serif;
    font-size: 14px;
    color: var(--text-muted);
}

.reels-header a {
    color: var(--pink-soft);
    text-decoration: none;
}

.reels-header a:hover { text-decoration: underline; }

/* Grid de reels */
.reels-masonry {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 400px));
    gap: 20px;
    justify-content: center;
    max-width: 1260px;
    margin: 0 auto;
}

.reel-item {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    height: 520px;
    background: rgba(255,255,255,0.04);
}

.reel-item iframe {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 1000px !important;
}

@media (max-width: 1024px) {
    .reels-masonry { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 640px) {
    .reels-masonry { grid-template-columns: 1fr; }
    .reel-item { height: 560px; }
}


/* ============================================
   LIGHTBOX
   ============================================ */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.97);
    z-index: 99999;
    display: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    backdrop-filter: blur(20px);
}

.lightbox.active {
    display: flex;
    animation: lightboxIn 0.3s ease forwards;
}

@keyframes lightboxIn {
    from { opacity: 0; }
    to   { opacity: 1; }
}

.lightbox-img-wrap {
    position: relative;
    max-width: 90vw;
    max-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.lightbox-img-wrap img {
    max-width: 90vw;
    max-height: 80vh;
    object-fit: contain;
    border-radius: 12px;
    animation: zoomIn 0.3s ease forwards;
}

@keyframes zoomIn {
    from { transform: scale(0.9); opacity: 0; }
    to   { transform: scale(1); opacity: 1; }
}

.lightbox-close {
    position: absolute;
    top: 20px; right: 24px;
    width: 44px; height: 44px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(255,255,255,0.08);
    color: white;
    font-size: 18px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-close:hover {
    background: var(--pink);
    border-color: var(--pink);
}

.lightbox-prev,
.lightbox-next {
    position: absolute;
    top: 50%; 
    transform: translateY(-50%);
    width: 50px; height: 50px;
    border-radius: 50%;
    border: 1px solid rgba(255,255,255,0.2);
    background: rgba(0,0,0,0.5);
    backdrop-filter: blur(10px);
    color: white;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
    z-index: 10;
}

.lightbox-prev { left: 16px; }
.lightbox-next { right: 16px; }

.lightbox-prev:hover,
.lightbox-next:hover {
    background: var(--pink);
    border-color: var(--pink);
}

.lightbox-info {
    display: flex;
    align-items: center;
    gap: 16px;
    margin-top: 16px;
}

.lightbox-cat {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--pink-soft);
    background: rgba(255,47,146,0.12);
    border: 1px solid rgba(255,47,146,0.3);
    padding: 4px 14px;
    border-radius: 100px;
}

.lightbox-counter {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    color: rgba(255,255,255,0.4);
}

/* Swipe en mobile */
@media (max-width: 640px) {
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
}

/* ============================================
   HERO GALERÍA — minimalista
   ============================================ */

.galeria-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 120px 5% 80px;
    overflow: hidden;
}

/* Línea vertical central decorativa */
.galeria-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 1px;
    height: 100%;
    background: linear-gradient(
        to bottom,
        transparent 0%,
        rgba(255,47,146,0.4) 30%,
        rgba(255,47,146,0.4) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* Glow central sutil */
.galeria-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(
        ellipse 60% 50% at 50% 50%,
        rgba(255,47,146,0.07) 0%,
        transparent 70%
    );
    pointer-events: none;
}

.galeria-hero-content {
    position: relative;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 24px;
}

.galeria-eyebrow {
    font-family: 'Poppins', sans-serif;
    font-size: 11px;
    letter-spacing: 5px;
    text-transform: uppercase;
    color: var(--pink-soft);
    opacity: 0;
    animation: fadeUp 0.8s ease 0.2s forwards;
}

.galeria-titulo {
    font-family: 'Cormorant Garamond', serif;
    font-size: clamp(4rem, 12vw, 10rem);
    font-weight: 300;
    color: white;
    line-height: 1;
    letter-spacing: -3px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.4s forwards;
}

.galeria-titulo em {
    color: var(--pink);
    font-style: italic;
    font-weight: 300;
}

.galeria-sub {
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.85rem, 1.8vw, 1rem);
    color: rgba(255,255,255,0.45);
    max-width: 380px;
    line-height: 1.8;
    letter-spacing: 0.3px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.6s forwards;
}

/* Número de fotos — detalle editorial */
.galeria-count {
    display: flex;
    align-items: center;
    gap: 12px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.7s forwards;
}

.galeria-count span {
    font-family: 'Cormorant Garamond', serif;
    font-size: 1.1rem;
    color: rgba(255,255,255,0.3);
    letter-spacing: 1px;
}

.galeria-count::before,
.galeria-count::after {
    content: '';
    width: 40px;
    height: 1px;
    background: rgba(255,47,146,0.3);
}

/* Tabs */
.galeria-hero-nav {
    display: flex;
    gap: 12px;
    margin-top: 8px;
    opacity: 0;
    animation: fadeUp 0.8s ease 0.9s forwards;
}

.tab-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 28px;
    border-radius: 100px;
    border: 1px solid rgba(255,255,255,0.12);
    background: transparent;
    color: var(--text-muted);
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    cursor: pointer;
    transition: all 0.3s;
    letter-spacing: 0.3px;
}

.tab-btn:hover {
    border-color: rgba(255,47,146,0.4);
    color: white;
}

.tab-btn.active {
    background: var(--pink);
    border-color: var(--pink);
    color: white;
    box-shadow: 0 8px 24px rgba(255,47,146,0.35);
}

/* Flecha de scroll */
.galeria-hero-scroll {
    position: absolute;
    bottom: 40px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    opacity: 0;
    animation: fadeUp 0.8s ease 1.1s forwards;
}

.galeria-hero-scroll span {
    font-family: 'Poppins', sans-serif;
    font-size: 10px;
    letter-spacing: 3px;
    text-transform: uppercase;
    color: rgba(255,255,255,0.25);
}

.scroll-hint {
    width: 1px;
    height: 48px;
    background: linear-gradient(to bottom, rgba(255,47,146,0.5), transparent);
    animation: scrollLine 2s ease-in-out infinite;
}

@keyframes scrollLine {
    0%,100% { opacity: 0.4; transform: scaleY(1); }
    50%      { opacity: 1;   transform: scaleY(1.15); }
}

@keyframes fadeUp {
    from { opacity: 0; transform: translateY(20px); }
    to   { opacity: 1; transform: translateY(0); }
}

@media (max-width: 480px) {
    .galeria-titulo { letter-spacing: -1px; }
    .galeria-hero-nav { flex-direction: column; align-items: center; }
}

#auroraCanvas {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
    pointer-events: none;
}