/* ============================================
   HERO PAGE - Cinematic Landing
   ============================================ */

.hero-page body {
    margin: 0;
    padding: 0;
    overflow: hidden;
}

/* ============================================
   CARRUSEL DE FONDO
   ============================================ */

.hero-carousel {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-carousel .carousel-images {
    width: 100%;
    height: 100%;
    position: relative;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to right,
        rgba(10, 10, 15, 0.95) 0%,
        rgba(10, 10, 15, 0.7) 30%,
        rgba(10, 10, 15, 0.3) 60%,
        rgba(10, 10, 15, 0.5) 100%
    );
    z-index: 2;
}

/* ============================================
   CONTENIDO FLOTANTE
   ============================================ */

.hero-content {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    z-index: 10;
    pointer-events: none;
}

.hero-left {
    flex: 0 0 45%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 3rem;
    pointer-events: auto;
}

.hero-right {
    flex: 0 0 55%;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
}

/* ============================================
   TÍTULO HERO
   ============================================ */

.hero-title {
    font-family: 'Cinzel', serif;
    font-size: 4rem;
    font-weight: 700;
    line-height: 1.1;
    margin: 0 0 1.5rem 0;
    text-shadow: 0 0 30px rgba(168, 85, 247, 0.5);
}

.hero-title .title-line {
    display: block;
    color: #e0d0ff;
}

.hero-title .title-line.accent {
    color: #a855f7;
    font-style: italic;
}

.hero-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 1.25rem;
    color: #a09d9a;
    max-width: 400px;
    line-height: 1.8;
    margin-bottom: 2rem;
}

.hero-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem 2rem;
    font-family: 'Cinzel', serif;
    font-size: 1rem;
    color: #0a0a0f;
    background: linear-gradient(135deg, #a855f7 0%, #c084fc 100%);
    border: none;
    border-radius: 4px;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
}

.hero-button:hover {
    transform: translateY(-2px);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.6);
}

/* ============================================
   NAVEGACIÓN DE CAPÍTULOS (Derecha)
   ============================================ */

.chapter-nav {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    width: 100%;
    max-width: 500px;
}

.chapter-arrow {
    flex: 0 0 auto;
    width: 48px;
    height: 48px;
    background: rgba(168, 85, 247, 0.2);
    border: 2px solid rgba(168, 85, 247, 0.4);
    border-radius: 50%;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: auto;
    color: #a855f7;
}

.chapter-arrow:hover:not(:disabled) {
    background: rgba(168, 85, 247, 0.4);
    border-color: #a855f7;
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.4);
    transform: scale(1.1);
}

.chapter-arrow:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

.chapter-arrow svg {
    width: 24px;
    height: 24px;
}

.chapter-frame {
    flex: 1;
    background: rgba(10, 10, 15, 0.85);
    border: 2px solid rgba(168, 85, 247, 0.3);
    border-radius: 16px;
    padding: 1.5rem;
    pointer-events: auto;
}

.chapter-title {
    font-family: 'Cinzel', serif;
    font-size: 1.1rem;
    color: #a855f7;
    margin: 0 0 0.25rem 0;
    letter-spacing: 0.1em;
}

.chapter-subtitle {
    font-family: 'Crimson Text', serif;
    font-size: 0.9rem;
    color: #a09d9a;
    margin: 0 0 1rem 0;
    font-style: italic;
}

.scenes-container {
    position: relative;
    height: 300px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* ============================================
   ETIQUETAS DE ESCENA
   ============================================ */

.chapters-stack-top,
.chapters-stack-bottom {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    overflow: hidden;
}

.chapters-stack-top {
    justify-content: flex-end;
}

.chapters-stack-bottom {
    justify-content: flex-start;
}

.chapters-center {
    flex: 0 0 auto;
    display: flex;
    justify-content: center;
    padding: 0.5rem 0;
}

.chapter-tag {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding: 0.75rem 1.5rem;
    background: rgba(10, 10, 15, 0.6);
    border: 1px solid rgba(168, 85, 247, 0.3);
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.35s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none;
}

.chapter-tag:hover:not(:disabled) {
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 20px rgba(168, 85, 247, 0.3);
}

/* Estados de las etiquetas */
.chapter-tag.in-stack {
    opacity: 0.4;
    transform: scale(0.65);
}

.chapter-tag.in-center {
    opacity: 1;
    transform: scale(1.15);
    background: rgba(168, 85, 247, 0.2);
    border-color: rgba(168, 85, 247, 0.8);
    box-shadow: 0 0 30px rgba(168, 85, 247, 0.4);
}

.scene-num {
    font-family: 'Cinzel', serif;
    font-size: 0.7rem;
    color: #a855f7;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.scene-title {
    font-family: 'Cinzel', serif;
    font-size: 0.9rem;
    color: #e0d0ff;
    text-align: center;
    margin-top: 0.25rem;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1200px) {
    .hero-title {
        font-size: 3rem;
    }
}

@media (max-width: 900px) {
    .hero-content {
        flex-direction: column;
    }
    
    .hero-left {
        flex: 0 0 auto;
        padding: 2rem;
        text-align: center;
        align-items: center;
    }
    
    .hero-right {
        flex: 1;
    }
    
    .hero-title {
        font-size: 2.5rem;
    }
    
    .hero-subtitle {
        text-align: center;
    }
}

@media (max-width: 600px) {
    .hero-left {
        padding: 1.5rem;
    }
    
    .hero-title {
        font-size: 2rem;
    }
    
    .hero-subtitle {
        font-size: 1rem;
    }
    
    .chapter-tag {
        padding: 0.5rem 1rem;
    }
    
    .chapter-tag .chapter-title {
        font-size: 0.9rem;
    }
}