/* Reset & Variables */
:root {
    --bg-color: #030303; /* Aún más negro */
    --text-primary: #EDEBE6;
    --text-muted: #666666;
    --accent-color: #D67245; /* Cobre vibrante */
    
    --font-serif: 'Cormorant', serif;
    --font-sans: 'Inter', sans-serif;
    
    --transition-slow: 1.2s cubic-bezier(0.19, 1, 0.22, 1);
    --transition-medium: 0.6s cubic-bezier(0.19, 1, 0.22, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    background-color: var(--bg-color);
    color: var(--text-primary);
    font-family: var(--font-sans);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    overflow-x: hidden;
    cursor: none; /* Custom Cursor */
}

body.loading {
    overflow: hidden;
}

/* Custom Cursor */
.cursor-dot {
    position: fixed;
    top: 0; left: 0;
    width: 6px; height: 6px;
    background-color: var(--text-primary);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 10000;
    mix-blend-mode: difference;
}

.cursor-outline {
    position: fixed;
    top: 0; left: 0;
    width: 40px; height: 40px;
    border: 1px solid rgba(237, 235, 230, 0.5);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    pointer-events: none;
    z-index: 9999;
    transition: width 0.3s ease, height 0.3s ease, background-color 0.3s ease, mix-blend-mode 0.3s ease;
}

.cursor-hover {
    width: 60px;
    height: 60px;
    background-color: rgba(255,255,255,0.1);
    backdrop-filter: blur(2px);
    border-color: transparent;
}

.cursor-view::after {
    content: 'VER';
    position: absolute;
    top: 50%; left: 50%;
    transform: translate(-50%, -50%);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1px;
    color: var(--text-primary);
}

/* Preloader */
.preloader {
    position: fixed;
    top: 0; left: 0; width: 100%; height: 100vh;
    background-color: var(--bg-color);
    z-index: 9990;
    display: flex;
    justify-content: center;
    align-items: center;
}

.preloader-text-wrapper {
    position: relative;
    overflow: hidden;
}

.preloader-text {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 8vw, 8rem);
    font-weight: 800;
    letter-spacing: -0.05em;
    color: var(--text-primary);
    opacity: 0.1;
}

.preloader-progress {
    position: absolute;
    top: 0; left: 0; width: 0%; height: 100%;
    background-color: var(--text-primary);
    mix-blend-mode: color-burn; /* Cool blending text reveal effect */
}

/* Textura Grain Analógica */
.grain {
    position: fixed;
    top: 0; left: 0; width: 100vw; height: 100vh;
    z-index: 9000;
    pointer-events: none;
    background-image: url('data:image/svg+xml;utf8,%3Csvg viewBox="0 0 200 200" xmlns="http://www.w3.org/2000/svg"%3E%3Cfilter id="noiseFilter"%3E%3CfeTurbulence type="fractalNoise" baseFrequency="0.8" numOctaves="3" stitchTiles="stitch"/%3E%3C/filter%3E%3Crect width="100%25" height="100%25" filter="url(%23noiseFilter)"/%3E%3C/svg%3E');
    opacity: 0.05;
}

/* Utils */
.container {
    width: 100%;
    max-width: 1500px;
    margin: 0 auto;
    padding: 0 4vw;
}

/* SplitText Utility */
.split-text .line, .hero-split .line {
    padding-bottom: 0.2em;
    margin-bottom: -0.2em;
    padding-top: 0.1em;
    margin-top: -0.1em;
}

/* 1. HERO */
.hero {
    position: relative;
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    padding: 10vh 0;
}

.hero-bg-wrapper {
    position: absolute;
    top: -10%; left: -10%; width: 120%; height: 120%;
    z-index: 1;
}

.hero-bg {
    width: 100%; height: 100%;
    background-image: url('https://images.unsplash.com/photo-1558285552-094d2ba4bc4d?auto=format&fit=crop&q=80&w=2000');
    background-size: cover;
    background-position: center;
    filter: brightness(0.6) contrast(1.2);
}

.hero-overlay {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: radial-gradient(circle at center, rgba(3,3,3,0.3) 0%, #030303 90%);
    z-index: 2;
}

.hero-content {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 3rem;
}

.logo-wrapper {
    position: relative;
    padding: 1rem;
}

.logo-img {
    width: 50vw;
    max-width: 600px;
    height: auto;
    filter: drop-shadow(0 20px 30px rgba(0,0,0,0.8));
}

.hero-text-wrapper {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
}

.subtitle {
    font-family: var(--font-serif);
    font-size: clamp(2rem, 4vw, 3.5rem);
    font-weight: 400;
    font-style: italic;
    color: var(--text-primary);
    line-height: 1.1;
}

.cta-text {
    font-family: var(--font-sans);
    font-size: 0.85rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-color);
}

.scroll-indicator {
    position: absolute;
    bottom: 0;
    z-index: 3;
    display: flex;
    justify-content: center;
    height: 120px;
}

.scroll-indicator .line {
    width: 1px;
    height: 100%;
    background: linear-gradient(to bottom, rgba(237,235,230,0) 0%, rgba(237,235,230,0.5) 50%, rgba(237,235,230,0) 100%);
    animation: scroll-wave 2.5s infinite ease-in-out;
}

@keyframes scroll-wave {
    0% { transform: scaleY(0); transform-origin: top; }
    50% { transform: scaleY(1); transform-origin: top; }
    50.1% { transform: scaleY(1); transform-origin: bottom; }
    100% { transform: scaleY(0); transform-origin: bottom; }
}

/* 2. MANIFIESTO */
.manifesto {
    padding: 20vh 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 80vh;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.manifesto-text {
    font-family: var(--font-sans);
    font-size: clamp(3rem, 7vw, 7rem);
    font-weight: 800;
    line-height: 0.95;
    text-align: center;
    color: var(--text-primary);
    text-transform: uppercase;
    letter-spacing: -0.04em;
}

/* El plugin SplitType envuelve las líneas. Queremos que la segunda línea sea naranja. */
.manifesto-text .line:last-child {
    color: var(--accent-color);
}

/* 3. MARQUEE / MOVIMIENTO */
.marquee-section {
    padding: 5vh 0;
    background-color: var(--accent-color);
    color: var(--bg-color);
    transform: rotate(-2deg) scale(1.05); /* Skew effect */
    position: relative;
    z-index: 11;
    overflow: hidden;
}

.marquee {
    display: flex;
    overflow: hidden;
    user-select: none;
    white-space: nowrap;
}

.marquee-inner {
    display: flex;
    flex-shrink: 0;
    align-items: center;
    padding: 0;
}

.marquee-inner span {
    font-family: var(--font-sans);
    font-size: clamp(4rem, 8vw, 8rem);
    font-weight: 800;
    text-transform: uppercase;
    padding: 0 2rem;
    letter-spacing: -0.02em;
    line-height: 1;
}

/* 4. GALERÍA MOSAICO */
.gallery {
    padding: 15vh 0 25vh;
    background-color: var(--bg-color);
    position: relative;
    z-index: 10;
}

.gallery-wrapper {
    width: 100%;
    max-width: 1800px;
    margin: 0 auto;
    padding: 0 4vw;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 2vw;
}

.grid-item {
    position: relative;
    cursor: none;
    overflow: hidden;
    border-radius: 4px;
    height: 70vh; /* Altura uniforme para todos */
}

.img-inner {
    position: absolute;
    top: 0; left: 0;
    width: 100%; height: 100%;
    z-index: 0;
    overflow: hidden;
    transition: transform 3s cubic-bezier(0.19, 1, 0.22, 1);
}

.grid-item img {
    width: 100%;
    height: 120%; /* Extra height for parallax */
    object-fit: cover;
    filter: grayscale(100%) contrast(1.1) brightness(0.6);
    transition: filter 1s ease;
    transform-origin: center;
}

.grid-item:hover .img-inner {
    transform: scale(1.08); /* Zoom para adentro lento */
}

.grid-item:hover img {
    filter: grayscale(0%) contrast(1.05) brightness(0.9);
}

.dj-content {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    padding: 2rem;
    z-index: 2;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.dj-name {
    font-family: var(--font-sans);
    font-size: clamp(2rem, 3vw, 4rem);
    font-weight: 800;
    line-height: 1;
    letter-spacing: -0.04em;
    text-transform: uppercase;
    color: var(--text-primary);
    pointer-events: none;
    text-shadow: 0 10px 20px rgba(0,0,0,0.9), 0 2px 5px rgba(0,0,0,0.8);
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.6s cubic-bezier(0.25, 1, 0.5, 1), transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.dj-bio {
    font-family: var(--font-sans);
    font-size: 0.95rem;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    text-shadow: 0 5px 15px rgba(0,0,0,0.9), 0 2px 4px rgba(0,0,0,0.8);
    pointer-events: none;
    opacity: 0;
    max-height: 0;
    margin-top: 0;
    overflow: hidden;
    transition: max-height 0.6s cubic-bezier(0.25, 1, 0.5, 1), opacity 0.4s cubic-bezier(0.25, 1, 0.5, 1) 0.1s, margin-top 0.4s ease;
}

.grid-item::before {
    content: '';
    position: absolute;
    bottom: 0; left: 0; width: 100%; height: 75%;
    background: linear-gradient(to top, rgba(0,0,0,0.9) 0%, rgba(0,0,0,0.5) 40%, transparent 100%);
    z-index: 1;
    opacity: 0;
    transition: opacity 0.6s ease;
    pointer-events: none;
}

.grid-item:hover::before {
    opacity: 1;
}

.grid-item:hover .dj-name {
    opacity: 1;
    transform: translateY(0);
}

.grid-item:hover .dj-bio {
    opacity: 1;
    max-height: 15rem;
    margin-top: 1rem;
}

@media (max-width: 1024px) {
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 4vw; }
    .grid-item { height: 60vh; }
}

@media (max-width: 600px) {
    .gallery-grid { grid-template-columns: 1fr; }
    .grid-item { margin-bottom: 5vh; height: 60vh !important; }
}

/* 5. PRÓXIMAMENTE */
.coming-soon {
    padding: 15vh 0;
    background-color: #050505;
    position: relative;
    z-index: 10;
    border-top: 1px solid rgba(255,255,255,0.03);
}

.coming-soon .container {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
}

.closing-title {
    font-family: var(--font-serif);
    font-size: clamp(3rem, 6vw, 6rem);
    font-weight: 400;
    margin-bottom: 1rem;
    line-height: 1;
}

.closing-subtitle {
    font-family: var(--font-sans);
    font-size: clamp(1rem, 1.5vw, 1.5rem);
    color: var(--text-muted);
    margin-bottom: 6rem;
    font-weight: 300;
    letter-spacing: 0.02em;
}

.notify-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    width: 100%;
    max-width: 600px;
    gap: 3rem;
}

.email-input {
    width: 100%;
    background: transparent;
    border: none;
    border-bottom: 1px solid rgba(255,255,255,0.2);
    color: var(--text-primary);
    font-family: var(--font-sans);
    font-size: 1.5rem;
    padding: 1rem 0;
    text-align: center;
    outline: none;
    transition: border-color 0.4s ease;
}

.email-input:focus {
    border-color: var(--accent-color);
}

.email-input::placeholder {
    color: rgba(255,255,255,0.2);
}

.submit-btn {
    position: relative;
    background: var(--text-primary);
    color: var(--bg-color);
    border: none;
    border-radius: 50vw; /* Pill shape */
    padding: 1.5rem 3rem;
    font-size: 1rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    cursor: none;
    overflow: hidden;
}

.submit-btn::before {
    content: '';
    position: absolute;
    top: 100%; left: 0;
    width: 100%; height: 100%;
    background: var(--accent-color);
    transition: top 0.4s cubic-bezier(0.25, 1, 0.5, 1);
    z-index: 1;
}

.submit-btn:hover::before {
    top: 0;
}

.btn-text {
    position: relative;
    z-index: 2;
    transition: color 0.4s ease;
}

/* 6. FOOTER */
.footer {
    padding: 4rem 0 2rem;
    background-color: #050505;
    position: relative;
    z-index: 10;
    font-family: var(--font-sans);
    font-size: 0.85rem;
    text-transform: uppercase;
    letter-spacing: 0.15em;
    color: var(--text-muted);
}

.footer-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo-text {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--text-primary);
    letter-spacing: 0.2em;
}

.socials a {
    color: var(--text-primary);
    text-decoration: none;
    display: inline-block;
    padding: 0.5rem;
}

.separator {
    margin: 0 0.5rem;
    opacity: 0.2;
}

@media (max-width: 768px) {
    .hero-content {
        gap: 1.5rem; /* Menos espacio entre logo y texto en móvil */
    }
    
    .footer-content {
        flex-direction: column;
        gap: 3rem;
        text-align: center;
    }
    
    .cursor-dot, .cursor-outline {
        display: none; /* Disable custom cursor on mobile */
    }
    
    body {
        cursor: auto;
    }
}
