/* ========================================
   HERO.CSS — Pantalla de entrada
   ======================================== */

.hero {
    position: relative;
    width: 100%;
    height: 100vh;
    min-height: 600px;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: var(--color-noche);
}

/* ── Fondo video / imagen ── */
.hero__bg {
    position: absolute;
    inset: 0;
    z-index: 0;
}

.hero__video,
.hero__image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero__image {
    display: none;
}

/* Fallback cuando el video no se renderiza */
.hero__bg--fallback .hero__video {
    display: none;
}

.hero__bg--fallback .hero__image {
    display: block;
}

/* ── Overlay gradiente ── */
.hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        rgba(26, 26, 20, 0.55) 0%,
        rgba(26, 26, 20, 0.35) 40%,
        rgba(26, 26, 20, 0.65) 100%
    );
}

/* ── Partículas globales ── */
.global-particles {
    position: fixed;
    inset: 0;
    z-index: 50;
    pointer-events: none;
}

.global-particles canvas {
    pointer-events: none !important;
    background: transparent !important;
}

/* ── Contenido central ── */
.hero__content {
    position: relative;
    z-index: 3;
    text-align: center;
    max-width: 800px;
    padding: 2rem;
}

/* Logo SVG animado */
.hero__logo {
    width: 180px;
    height: 180px;
    margin: 0 auto 2rem;
}

.hero__logo svg {
    width: 100%;
    height: 100%;
}

.hero__logo-circle {
    stroke-dasharray: 502;
    stroke-dashoffset: 502;
    animation: heroLogoDraw 2s 0.5s ease forwards;
}

.hero__logo-text {
    opacity: 0;
    animation: heroFadeIn 1s 1.5s ease forwards;
}

.hero__logo-edition {
    opacity: 0;
    animation: heroFadeIn 1s 1.8s ease forwards;
}

/* Edición */
.hero__edition {
    font-family: var(--font-titulo);
    font-size: clamp(3rem, 8vw, 7rem);
    color: var(--color-ocre);
    line-height: 1;
    margin-bottom: 0.5rem;
    opacity: 0;
    transform: translateY(30px);
}

/* Nombre del festival */
.hero__title {
    font-family: var(--font-titulo);
    font-size: clamp(1.5rem, 4vw, 3rem);
    color: var(--color-crema);
    letter-spacing: 0.12em;
    margin-bottom: 1rem;
    opacity: 0;
    transform: translateY(30px);
}

/* Fechas */
.hero__dates {
    font-family: var(--font-subtitulo);
    font-size: clamp(1rem, 2.5vw, 1.6rem);
    color: var(--color-humo);
    letter-spacing: 0.2em;
    margin-bottom: 0.75rem;
    opacity: 0;
    transform: translateY(20px);
}

.hero__dates .hero__dash {
    display: inline-block;
    width: 40px;
    height: 2px;
    background: var(--color-ocre);
    vertical-align: middle;
    margin: 0 0.75rem;
    border-radius: 1px;
}

/* Tagline */
.hero__tagline {
    font-family: var(--font-cuerpo);
    font-size: clamp(0.95rem, 1.8vw, 1.2rem);
    color: var(--color-humo);
    opacity: 0.85;
    margin-bottom: 2.5rem;
    opacity: 0;
    transform: translateY(20px);
}

/* CTA Buttons */
.hero__cta {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
    opacity: 0;
    transform: translateY(20px);
}

/* ── Scroll indicator ── */
.hero__scroll {
    position: absolute;
    bottom: 2rem;
    left: 50%;
    transform: translateX(-50%);
    z-index: 3;
    text-align: center;
    opacity: 0;
    animation: heroFadeIn 1s 2.5s ease forwards;
}

.hero__scroll-text {
    font-family: var(--font-cuerpo);
    font-size: 0.75rem;
    color: var(--color-humo);
    letter-spacing: 0.15em;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.hero__scroll-arrow {
    display: block;
    width: 24px;
    height: 24px;
    margin: 0 auto;
    animation: scrollBounce 2s ease infinite;
}

.hero__scroll-arrow svg {
    width: 100%;
    height: 100%;
}

/* ── Keyframes ── */
@keyframes heroLogoDraw {
    to { stroke-dashoffset: 0; }
}

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

@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(8px); }
}

/* ── Responsive ── */
@media (max-width: 768px) {
    .hero {
        min-height: 100svh;
    }

    .hero__logo {
        width: 130px;
        height: 130px;
        margin-bottom: 1.5rem;
    }

    .hero__content {
        padding: 1.5rem;
    }

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

    .hero__cta .btn {
        width: 100%;
        max-width: 280px;
    }

    .hero__scroll {
        bottom: 1.5rem;
    }
}
