/* ===== Variables ===== */
:root {
    --bg-dark: #050508;
    --bg-card: rgba(15, 14, 20, 0.6);
    --bg-glass: rgba(255, 255, 255, 0.03);
    --accent-primary: #d4a84b;
    --accent-secondary: #b8860b;
    --accent-glow: rgba(212, 168, 75, 0.35);
    --accent-subtle: rgba(212, 168, 75, 0.15);
    --text-primary: #fafafc;
    --text-muted: rgba(250, 250, 252, 0.55);
    --text-dim: rgba(250, 250, 252, 0.35);
    --border-subtle: rgba(255, 255, 255, 0.06);
    --font-display: 'Bebas Neue', sans-serif;
    --font-body: 'Syne', sans-serif;
    --transition-smooth: 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.5s cubic-bezier(0.34, 1.56, 0.64, 1);
}

/* ===== Reset & Base ===== */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    overflow-x: hidden;
}

body {
    font-family: var(--font-body);
    background: var(--bg-dark);
    color: var(--text-primary);
    line-height: 1.6;
    overflow-x: hidden;
    min-height: 100vh;
}

.noise-overlay {
    position: fixed;
    inset: 0;
    pointer-events: none;
    z-index: 9999;
    opacity: 0.03;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)'/%3E%3C/svg%3E");
}

/* Barra de progreso de scroll */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--accent-primary), var(--accent-secondary));
    box-shadow: 0 0 20px var(--accent-glow);
    z-index: 10000;
    transform-origin: left;
    transition: transform 0.1s ease-out;
}

/* ===== Typography ===== */
h1, h2 {
    font-family: var(--font-display);
    font-weight: 400;
    letter-spacing: 0.05em;
}

/* ===== Hero ===== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    position: relative;
    padding: 2.5rem 2rem 2rem;
}

.hero-bg {
    position: absolute;
    inset: 0;
    background: 
        radial-gradient(ellipse 100% 100% at 50% 50%, rgba(20, 18, 25, 0.5) 0%, transparent 70%),
        var(--bg-dark);
}

@keyframes gradientShift {
    0%, 100% { background-position: 0% 50%; }
    50% { background-position: 100% 50%; }
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    width: 100%;
    max-width: min(400px, calc(100vw - 2rem));
    padding: 0 1rem;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.hero-logo {
    width: 100%;
    max-width: 260px;
    height: auto;
    display: block;
    margin: 0 auto 1.25rem;
    object-fit: contain;
    filter: drop-shadow(0 0 40px rgba(212, 168, 75, 0.15));
    animation: logoGlow 4s ease-in-out infinite;
}

@keyframes logoGlow {
    0%, 100% { filter: drop-shadow(0 0 40px rgba(212, 168, 75, 0.15)); }
    50% { filter: drop-shadow(0 0 60px rgba(212, 168, 75, 0.25)); }
}

@media (min-width: 768px) {
    .hero-logo {
        max-width: 320px;
        margin-bottom: 1.5rem;
    }
}

.hero-text {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
}

.hero-badge {
    display: inline-block;
    font-family: var(--font-body);
    font-size: 0.6rem;
    font-weight: 600;
    letter-spacing: 0.4em;
    text-transform: uppercase;
    color: var(--accent-primary);
    margin-bottom: 0.75rem;
}

.hero-divider {
    display: block;
    width: 24px;
    height: 1px;
    background: linear-gradient(90deg, transparent, var(--accent-primary), transparent);
    margin-bottom: 0.9rem;
    animation: expandLine 0.6s ease 0.2s both;
}

@keyframes expandLine {
    from {
        opacity: 0;
        transform: scaleX(0);
        transform-origin: center;
    }
    to {
        opacity: 1;
        transform: scaleX(1);
    }
}

.hero-tagline {
    font-family: var(--font-body);
    font-size: clamp(0.95rem, 2vw, 1.05rem);
    font-weight: 500;
    color: var(--text-primary);
    letter-spacing: 0.02em;
    margin-bottom: 0.3rem;
}

.hero-subtitle {
    font-size: clamp(0.85rem, 1.8vw, 0.95rem);
    font-weight: 400;
    color: var(--text-muted);
    margin-bottom: 1.25rem;
}

.hero-cta {
    display: inline-block;
    padding: 0.75rem 1.75rem;
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    cursor: pointer;
    transition: var(--transition-smooth);
}

.hero-cta:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px) scale(1.02);
}

.hero-cta {
    position: relative;
    animation: subtlePulse 2.5s ease-in-out infinite;
}

@keyframes subtlePulse {
    0%, 100% { box-shadow: none; }
    50% { box-shadow: 0 0 0 4px rgba(212, 168, 75, 0.2); }
}

/* Scroll indicator */
.scroll-indicator {
    position: absolute;
    bottom: 1.2rem;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    color: var(--text-muted);
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    animation: fadeInUp 1s ease 1.5s both;
}


.scroll-arrow {
    width: 24px;
    height: 24px;
    border-right: 2px solid var(--text-muted);
    border-bottom: 2px solid var(--text-muted);
    transform: rotate(45deg);
    animation: bounce 2s ease-in-out infinite;
}

.scroll-indicator:hover {
    color: var(--accent-primary);
}

.scroll-indicator:hover .scroll-arrow {
    border-color: var(--accent-primary);
}

@keyframes bounce {
    0%, 100% { transform: rotate(45deg) translateY(0); }
    50% { transform: rotate(45deg) translateY(8px); }
}

/* ===== Animations ===== */
.animate-fade-up {
    opacity: 0;
    transform: translateY(24px);
    animation: fadeUp 0.8s cubic-bezier(0.22, 1, 0.36, 1) forwards;
}

.animate-fade-up.delay-1 { animation-delay: 0.12s; }
.animate-fade-up.delay-2 { animation-delay: 0.24s; }
.animate-fade-up.delay-3 { animation-delay: 0.36s; }

@keyframes fadeUp {
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.animate-reveal {
    display: inline-block;
    opacity: 0;
    animation: reveal 1.2s ease 0.3s forwards;
}

@keyframes reveal {
    to { opacity: 1; }
}

@keyframes fadeInUp {
    from { opacity: 0; }
    to {
        opacity: 1;
        transform: translateX(-50%) translateY(0);
    }
}

@keyframes fadeInUpMobile {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== Container ===== */
.container {
    max-width: 1100px;
    margin: 0 auto;
    padding: 0 2rem;
}

/* ===== Sections ===== */
section {
    padding: 3rem 0;
    position: relative;
}

.section-title {
    font-size: clamp(1.8rem, 4.5vw, 3rem);
    text-align: center;
    margin-bottom: 1rem;
    letter-spacing: 0.08em;
}

.title-accent {
    color: var(--accent-primary);
}

/* ===== Mystery section ===== */
.mystery {
    background: linear-gradient(180deg, transparent 0%, rgba(212, 168, 75, 0.03) 30%, rgba(212, 168, 75, 0.03) 70%, transparent 100%);
}

.mystery-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.mystery-title {
    margin-bottom: 1rem;
}

.mystery-text {
    text-align: center;
    font-size: 1.05rem;
    color: var(--text-muted);
    max-width: 560px;
    margin: 0 auto 1.5rem;
    line-height: 1.85;
}

.mystery-teasers {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.75rem;
}

.mystery-chip {
    display: inline-block;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.05em;
    color: var(--accent-primary);
    padding: 0.5rem 1rem;
    border: 1px solid var(--accent-subtle);
    border-radius: 100px;
    background: var(--bg-glass);
    transition: var(--transition-smooth);
}

.mystery-chip:hover {
    border-color: var(--accent-primary);
    box-shadow: 0 0 20px var(--accent-glow);
}

/* ===== Parallax background ===== */
.parallax-bg {
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse 80% 50% at 50% 0%, rgba(212, 168, 75, 0.05) 0%, transparent 60%);
    pointer-events: none;
}

/* ===== Teaser ===== */
.teaser {
    background: linear-gradient(180deg, transparent 0%, rgba(20, 18, 30, 0.5) 50%, transparent 100%);
    position: relative;
}

.teaser-eyebrow {
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.22em;
    text-transform: uppercase;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.teaser-features {
    display: flex;
    justify-content: center;
    gap: 1.25rem;
    flex-wrap: wrap;
}

.feature {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.6rem;
    padding: 1.25rem 1.75rem;
    background: var(--bg-card);
    border: 1px solid var(--border-subtle);
    border-radius: 16px;
    backdrop-filter: blur(12px);
    transition: var(--transition-smooth);
}

.feature:hover {
    border-color: var(--accent-primary);
    transform: translateY(-5px);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.3);
}

.feature-icon {
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: var(--accent-primary);
    opacity: 0.9;
    transition: var(--transition-bounce);
}

.feature:hover .feature-icon {
    opacity: 1;
}

.feature span {
    font-weight: 500;
    letter-spacing: 0.05em;
}

/* ===== Floating particles ===== */
.floating-particles {
    position: absolute;
    inset: 0;
    overflow: hidden;
    pointer-events: none;
}

.particle {
    position: absolute;
    width: 4px;
    height: 4px;
    background: var(--accent-primary);
    border-radius: 50%;
    opacity: 0.4;
    animation: particleFloat 15s ease-in-out infinite;
}

.particle:nth-child(1) { left: 10%; top: 20%; animation-delay: 0s; }
.particle:nth-child(2) { left: 80%; top: 30%; animation-delay: -3s; }
.particle:nth-child(3) { left: 50%; top: 70%; animation-delay: -6s; }
.particle:nth-child(4) { left: 20%; top: 60%; animation-delay: -9s; }
.particle:nth-child(5) { left: 90%; top: 80%; animation-delay: -12s; }

@keyframes particleFloat {
    0%, 100% { transform: translate(0, 0) scale(1); opacity: 0.4; }
    25% { transform: translate(20px, -30px) scale(1.2); opacity: 0.6; }
    50% { transform: translate(-15px, 20px) scale(0.9); opacity: 0.3; }
    75% { transform: translate(0, 10px) scale(1.1); opacity: 0.5; }
}

/* ===== Fecha de reapertura (antes: countdown) ===== */
.countdown-section {
    background: radial-gradient(ellipse at center, rgba(212, 168, 75, 0.06) 0%, transparent 70%);
    position: relative;
}

.event-date {
    text-align: center;
    margin: 1.75rem 0 0.5rem;
    padding: 0 0.5rem;
}

.event-date__calendar {
    display: block;
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 12vw, 5.25rem);
    line-height: 1.05;
    color: var(--accent-primary);
    letter-spacing: 0.12em;
    text-shadow: 0 0 50px rgba(212, 168, 75, 0.35);
    margin: 0;
    font-style: normal;
    font-weight: 400;
}

.event-date__at {
    margin: 1rem 0 0;
    font-family: var(--font-body);
    font-size: clamp(1.2rem, 4vw, 1.75rem);
    font-weight: 600;
    letter-spacing: 0.18em;
    text-transform: lowercase;
    color: var(--text-primary);
}

.countdown-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.countdown-note {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-dim);
}

/* ===== Subscribe ===== */
.subscribe {
    position: relative;
    background: linear-gradient(180deg, transparent 0%, rgba(212, 168, 75, 0.04) 50%, transparent 100%);
}

.subscribe-glow {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 600px;
    height: 400px;
    transform: translate(-50%, -50%);
    background: radial-gradient(ellipse, rgba(212, 168, 75, 0.08) 0%, transparent 70%);
    pointer-events: none;
}

.subscribe-eyebrow {
    font-family: var(--font-body);
    font-size: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    color: var(--accent-primary);
    text-align: center;
    margin-bottom: 0.5rem;
}

.subscribe-text {
    text-align: center;
    font-size: 0.95rem;
    color: var(--text-muted);
    max-width: 440px;
    margin: 0 auto 1.25rem;
    line-height: 1.75;
}

.subscribe-btn-wrap {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem;
    width: 100%;
}

.subscribe-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 1rem 2.5rem;
    font-family: var(--font-body);
    font-size: 0.9rem;
    font-weight: 600;
    letter-spacing: 0.25em;
    text-transform: uppercase;
    text-decoration: none;
    border: 1.5px solid var(--accent-primary);
    background: transparent;
    color: var(--accent-primary);
    border-radius: 4px;
    transition: var(--transition-smooth);
}

.subscribe-btn:hover {
    background: var(--accent-primary);
    color: var(--bg-dark);
    box-shadow: 0 0 40px var(--accent-glow);
    transform: translateY(-2px);
}

@media (max-width: 768px) {
    .subscribe-btn-wrap {
        margin-top: 1.25rem;
    }

    .subscribe-btn {
        padding: 0.9rem 1.75rem;
        font-size: 0.8rem;
        letter-spacing: 0.2em;
    }
}

.subscribe-disclaimer {
    text-align: center;
    font-size: 0.8rem;
    color: var(--text-muted);
    opacity: 0.8;
}

/* ===== Social ===== */
.social {
    padding: 2rem 0;
}

.social-text {
    text-align: center;
    margin-bottom: 1rem;
    color: var(--text-muted);
}

.social-links {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
}

.social-link {
    position: relative;
    color: var(--text-primary);
    text-decoration: none;
    font-weight: 500;
    letter-spacing: 0.1em;
    transition: var(--transition-smooth);
}

.social-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: var(--accent-primary);
    transition: width 0.4s ease;
}

.social-link:hover {
    color: var(--accent-primary);
    transform: translateY(-2px);
}

.social-link:hover::after {
    width: 100%;
}

/* ===== Footer ===== */
.footer {
    padding: 1.5rem 2rem;
    border-top: 1px solid var(--border-subtle);
}

.footer-logo {
    font-family: var(--font-display);
    font-size: 1.2rem;
    letter-spacing: 0.2em;
    text-align: center;
    margin-bottom: 0.5rem;
}

.footer-copy {
    text-align: center;
    font-size: 0.85rem;
    color: var(--text-muted);
}


.footer-link {
    color: var(--text-muted);
    text-decoration: none;
    transition: var(--transition-smooth);
}

.footer-link:hover {
    color: var(--accent-primary);
}

/* ===== Scroll animations ===== */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.8s cubic-bezier(0.4, 0, 0.2, 1), transform 0.8s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Variantes de animación según data-animate */
.animate-on-scroll[data-animate="up"] {
    transform: translateY(50px);
}

.animate-on-scroll[data-animate="left"] {
    transform: translateX(-80px);
}

.animate-on-scroll[data-animate="right"] {
    transform: translateX(80px);
}

@media (max-width: 768px) {
    .animate-on-scroll[data-animate="left"] {
        transform: translateY(50px);
    }
    .animate-on-scroll[data-animate="right"] {
        transform: translateY(50px);
    }
}

.animate-on-scroll[data-animate="scale"] {
    transform: scale(0.9);
}

.animate-on-scroll.visible {
    opacity: 1;
    transform: translateY(0) translateX(0) scale(1);
}

@media (max-width: 768px) {
    .animate-on-scroll.visible[data-animate="left"],
    .animate-on-scroll.visible[data-animate="right"] {
        transform: translateY(0) scale(1);
    }
}

/* Delays escalonados para efecto cascada */
.animate-on-scroll[data-delay="1"] { transition-delay: 0.15s; }
.animate-on-scroll[data-delay="2"] { transition-delay: 0.3s; }
.animate-on-scroll[data-delay="3"] { transition-delay: 0.45s; }
.animate-on-scroll[data-delay="4"] { transition-delay: 0.6s; }
.animate-on-scroll[data-delay="5"] { transition-delay: 0.75s; }

/* ===== Responsive ===== */
@media (max-width: 768px) {
    .hero {
        padding: 1.5rem 1rem 1.5rem;
        min-height: auto;
    }

    .hero-content {
        padding: 0 0.5rem;
    }

    .scroll-indicator {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        margin-top: 1rem;
        width: 100%;
        justify-content: center;
        animation: fadeInUpMobile 1s ease 1.5s both;
    }

    .teaser-features {
        flex-direction: column;
        gap: 1rem;
    }

    .event-date {
        margin: 1.25rem 0 0.35rem;
    }

    .event-date__calendar {
        font-size: clamp(2.25rem, 11vw, 3.5rem);
    }

    .event-date__at {
        font-size: 1.05rem;
        letter-spacing: 0.12em;
    }

    section {
        padding: 2.5rem 0;
    }
}

@media (max-width: 480px) {
    .container {
        padding: 0 1rem;
    }

    .hero-badge {
        letter-spacing: 0.25em;
        font-size: 0.7rem;
        padding: 0.4rem 0.9rem;
    }

    .social-links {
        flex-direction: column;
        align-items: center;
    }
}
