:root {
    --bg-color: #0f172a;
    --text-color: #f8fafc;
    --accent: #ec4899;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body, html {
    width: 100%;
    height: 100%;
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: 'Outfit', sans-serif;
    overflow-x: hidden;
    scroll-behavior: smooth;
}

/* Intro Overlay */
#intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(15,23,42,1) 0%, rgba(30,41,59,1) 100%);
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 100;
    transition: opacity 1s ease-out, visibility 1s ease-out;
    cursor: pointer;
}

#intro-overlay.hidden {
    opacity: 0;
    visibility: hidden;
}

.intro-content {
    text-align: center;
    animation: pulse 2s infinite;
}

.icon-volume {
    width: 64px;
    height: 64px;
    margin: 0 auto 20px;
    color: var(--accent);
}

.intro-content h1 {
    font-size: 2rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.intro-content p {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.8;
}

@keyframes pulse {
    0% { transform: scale(0.95); opacity: 0.8; }
    50% { transform: scale(1.05); opacity: 1; }
    100% { transform: scale(0.95); opacity: 0.8; }
}

/* Main Content */
#main-content {
    opacity: 0;
    transition: opacity 1.5s ease-in 0.5s;
    padding-top: 10px; /* Gap from the top reduced */
    padding-bottom: 100px;
    display: flex;
    flex-direction: column;
    gap: 1vh; /* Tighter gap */
}

#main-content.visible {
    opacity: 1;
}

.hidden {
    display: none !important;
}

/* Hero Title at the top */
.hero-title {
    font-size: 3.5rem;
    font-weight: 600;
    text-align: center;
    margin-top: 20px;
    margin-bottom: 2vh; /* Removed negative pull to avoid overlapping */
    background: linear-gradient(45deg, #ec4899 0%, #a855f7 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    text-shadow: 0 0 40px rgba(236, 72, 153, 0.4);
    z-index: 10;
}

#gallery-container {
    display: flex;
    flex-direction: column;
    gap: 10vh; /* Controlled space between blocks */
    align-items: center;
    overflow-x: hidden;
    padding-top: 10px; /* Adjusted from 40px */
}

/* Text Block */
.block-text {
    text-align: center;
    font-size: 2.5rem;
    font-weight: 300;
    color: var(--accent);
    padding: 20px;
    text-shadow: 0 0 20px rgba(236, 72, 153, 0.5);
    opacity: 0;
    transform: translateY(20px);
    transition: all 1s ease-out;
    z-index: 10;
    width: 100%;
}

.block-text.active {
    opacity: 1;
    transform: translateY(0);
}

/* Horizontal Video Carousel */
.video-carousel {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    gap: 4vw;
    padding: 20px 8vw; /* Centered with smaller width so next item peaks */
    width: 100vw;
    scroll-behavior: smooth;
    position: relative;
    z-index: 50; /* Garantiza que ningún contenedor inclinado con z-index alto lo tape impidiendo hacer clic */
}

.video-carousel::-webkit-scrollbar {
    display: none;
}

.video-carousel-item {
    scroll-snap-align: center;
    flex: 0 0 75vw; /* Make it 75% width so the 2nd one is visually peeking in */
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 40px rgba(0,0,0,0.6);
    background-color: #000;
}

.video-carousel-item video {
    width: 100%;
    display: block;
    object-fit: cover;
    max-height: 70vh;
}

/* Special Cards unified layout */
.special-card {
    width: 85vw;
    margin: 0 auto 6vh auto;
    background: rgba(30, 41, 59, 0.5);
    border: 1px solid rgba(236, 72, 153, 0.4);
    border-radius: 24px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0,0,0,0.6);
    backdrop-filter: blur(10px);
    display: flex;
    flex-direction: column;
}

.special-card img {
    width: 100%;
    aspect-ratio: 4/5;
    object-fit: cover;
    display: block;
    border-bottom: 2px solid rgba(236, 72, 153, 0.2);
}

.special-card-text {
    padding: 24px 20px;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 400;
    line-height: 1.3;
    color: var(--text-color);
    background: linear-gradient(180deg, rgba(15,23,42,0) 0%, rgba(15,23,42,0.6) 100%);
    text-shadow: 0 2px 10px rgba(0,0,0,0.8);
}

/* Tilted Grid Container */
.tilted-container {
    width: 150vw;
    height: 70vh;
    display: flex;
    justify-content: center;
    gap: 16px;
    transform: rotate(-10deg) scale(1.15); 
    overflow: hidden;
    position: relative;
    pointer-events: none; /* Previene que intercepten el scroll de la página */
}

/* Individual Film Strip */
.film-strip {
    width: 32vw;
    max-width: 280px; 
    height: 200%; 
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Marquee Animations */
.marquee-up { animation: scroll-up linear infinite; }
.marquee-down { animation: scroll-down linear infinite; }

@keyframes scroll-up {
    0% { transform: translateY(0); }
    100% { transform: translateY(-50%); } 
}

@keyframes scroll-down {
    0% { transform: translateY(-50%); }
    100% { transform: translateY(0); } 
}

/* Image / Video Items within strip */
.media-item {
    width: 100%;
    aspect-ratio: 9/16;
    border-radius: 12px;
    overflow: hidden;
    background-color: #1e293b;
    box-shadow: 0 4px 15px rgba(0,0,0,0.5);
    flex-shrink: 0; 
}

.media-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Floating Audio Toggle Button */
#audio-toggle-btn {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background: rgba(15, 23, 42, 0.9);
    backdrop-filter: blur(10px);
    border: 2px solid var(--accent);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--accent);
    z-index: 999;
    cursor: pointer;
    box-shadow: 0 4px 15px rgba(236, 72, 153, 0.4);
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

#audio-toggle-btn:active {
    transform: scale(0.9);
}

#audio-toggle-btn svg {
    width: 28px;
    height: 28px;
}

/* User Experience Hints */
.scroll-indicator-down {
    text-align: center;
    color: var(--accent);
    margin: 2vh auto;
    width: 40px;
    height: 40px;
    animation: bounce 2s infinite;
    opacity: 0.8;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-15px); }
    60% { transform: translateY(-7px); }
}

.carousel-hint {
    text-align: right;
    width: 100%;
    padding-right: 12vw;
    color: var(--text-color);
    font-weight: 300;
    font-size: 1.1rem;
    opacity: 0.7;
    margin-bottom: -10px;
}
