/* --- Secundaria Page Styles --- */

.secundaria-layout {
    position: relative;
    overflow-x: hidden;
    background-color: #020202;
}

.bg-decorations {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -1;
    overflow: hidden;
    pointer-events: none;
}

.blob {
    position: absolute;
    width: 50vw;
    height: 50vw;
    background: radial-gradient(circle, rgba(0, 188, 212, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    filter: blur(80px);
    animation: blobFloat 22s infinite alternate ease-in-out;
}

.blob-1 {
    top: -10%;
    left: -10%;
}

.blob-2 {
    bottom: -10%;
    right: -10%;
    animation-delay: -6s;
    background: radial-gradient(circle, rgba(180, 140, 255, 0.08) 0%, transparent 70%);
}

@keyframes blobFloat {
    0% { transform: translate(0, 0) scale(1); }
    100% { transform: translate(8%, 8%) scale(1.1); }
}

/* --- Dynamic Stage Hero --- */

.secundaria-hero {
    position: relative;
    min-height: 100vh;
    min-height: 100svh;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    background: #020202;
    padding: 100px 0 60px;
}

.hero-bg-poster {
    position: absolute;
    inset: -50px;
    z-index: 1;
    opacity: 0.15;
    filter: blur(80px) saturate(1.2);
    pointer-events: none;
}

.hero-bg-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-bg-text {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    font-family: var(--font-heading);
    font-size: 18vw;
    font-weight: 900;
    color: rgba(255, 255, 255, 0.02);
    line-height: 1;
    z-index: 2;
    pointer-events: none;
    user-select: none;
    letter-spacing: -0.05em;
}

.hero-content-wrapper {
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1400px;
    padding: 0 40px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 40px;
}

.hero-text-block {
    text-align: center;
    pointer-events: none;
}

.hero-eyebrow {
    display: block;
    font-family: var(--font-heading);
    color: var(--accent-color);
    font-size: 0.85rem;
    letter-spacing: 5px;
    text-transform: uppercase;
    margin-bottom: 20px;
    opacity: 0;
    animation: fadeInDown 1s ease forwards 0.5s;
}

/* Posters Showcase Area */
.hero-posters-showcase {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 15px;
    width: 100%;
    perspective: 1500px;
    padding: 20px 0;
}

.hero-poster-card {
    position: relative;
    width: min(160px, 15vw);
    aspect-ratio: 2 / 3;
    cursor: pointer;
    transition: transform 0.6s cubic-bezier(0.23, 1, 0.32, 1), filter 0.6s ease;
    opacity: 0;
    animation: cardEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards;
}

.hero-poster-card:nth-child(1) { animation-delay: 0.6s; --rot: 25deg; transform: rotateY(var(--rot)) translateZ(0); }
.hero-poster-card:nth-child(2) { animation-delay: 0.7s; --rot: 15deg; transform: rotateY(var(--rot)) translateZ(10px); }
.hero-poster-card:nth-child(3) { animation-delay: 0.8s; --rot: 5deg; transform: rotateY(var(--rot)) translateZ(20px); }
.hero-poster-card:nth-child(4) { animation-delay: 0.9s; --rot: -5deg; transform: rotateY(var(--rot)) translateZ(20px); }
.hero-poster-card:nth-child(5) { animation-delay: 1.0s; --rot: -15deg; transform: rotateY(var(--rot)) translateZ(10px); }
.hero-poster-card:nth-child(6) { animation-delay: 1.1s; --rot: -25deg; transform: rotateY(var(--rot)) translateZ(0); }

.card-inner {
    position: relative;
    width: 100%;
    height: 100%;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.7);
    background: #1a1a1a;
    transition: box-shadow 0.6s ease;
}

.hero-poster-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(0.8) saturate(0.8);
    transition: filter 0.6s ease, transform 0.6s ease;
}

.card-glow {
    position: absolute;
    inset: 0;
    background: radial-gradient(circle at center, var(--accent-color) 0%, transparent 70%);
    opacity: 0;
    mix-blend-mode: overlay;
    transition: opacity 0.6s ease;
}

/* Hover Effects */
.hero-poster-card:hover {
    transform: rotateY(0deg) translateZ(120px) translateY(-15px) scale(1.15) !important;
    z-index: 50;
    filter: brightness(1.1);
}

.hero-poster-card:hover img {
    filter: brightness(1) saturate(1.1);
}

.hero-poster-card:hover .card-inner {
    box-shadow: 0 30px 70px rgba(0, 188, 212, 0.4);
}

.hero-poster-card:hover .card-glow {
    opacity: 0.4;
}

/* Animations */
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes fadeInDown {
    from { opacity: 0; transform: translateY(-20px); }
    to { opacity: 1; transform: translateY(0); }
}

@keyframes cardEntrance {
    from { opacity: 0; transform: translateY(100px) rotateX(-20deg); }
    to { opacity: 1; transform: translateY(0) rotateX(0); }
}

.hero-poster-card {
    animation: cardEntrance 1.2s cubic-bezier(0.23, 1, 0.32, 1) forwards,
               cardFloat 6s ease-in-out infinite alternate 1.5s;
}

@keyframes cardFloat {
    from { transform: translateY(0) rotateY(var(--rot, 0deg)); }
    to { transform: translateY(-15px) rotateY(var(--rot, 0deg)); }
}

/* --- Show Cards --- */

.shows-section {
    padding: 80px 0 100px;
}

.show-card {
    display: flex;
    align-items: center;
    gap: 80px;
    padding: 80px 0;
    border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.show-card:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.show-card.reverse {
    flex-direction: row-reverse;
}

.show-poster {
    flex: 0 0 38%;
    aspect-ratio: 2 / 3;
    overflow: hidden;
    border-radius: 6px;
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

.show-poster img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s ease;
}

.show-card:hover .show-poster img {
    transform: scale(1.04);
}

.show-info {
    flex: 1;
}

.show-title {
    font-family: var(--font-heading);
    font-size: clamp(1.8rem, 3vw, 2.8rem);
    color: var(--text-color);
    line-height: 1.2;
    margin-bottom: 25px;
}

.show-description {
    color: var(--text-muted);
    font-size: 1.05rem;
    line-height: 1.85;
    margin-bottom: 40px;
    max-width: 520px;
}

/* Scroll hint */
.hero-scroll-hint {
    position: absolute;
    bottom: 28px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    color: rgba(255, 255, 255, 0.45);
    font-size: 1.1rem;
    text-decoration: none;
    animation: bounceDown 2s ease-in-out infinite;
}

@keyframes bounceDown {
    0%, 100% { transform: translateX(-50%) translateY(0); }
    50% { transform: translateX(-50%) translateY(8px); }
}

/* --- Responsive --- */

@media (max-width: 900px) {
    .show-card,
    .show-card.reverse {
        flex-direction: column;
        gap: 35px;
        padding: 50px 0;
        text-align: center;
    }

    .show-poster {
        flex: none;
        width: min(280px, 70%);
        align-self: center;
    }

    .show-description {
        max-width: 100%;
    }
}

@media (max-width: 768px) {
    .secundaria-hero {
        padding: 120px 0 80px;
        height: auto;
    }

    .hero-content-wrapper {
        gap: 30px;
    }
    
    .hero-posters-showcase {
        gap: 12px;
        flex-wrap: wrap;
        padding: 0 10px;
        row-gap: 20px;
    }

    .hero-poster-card {
        width: calc((100% - 24px) / 3);
        max-width: 130px;
    }

    .hero-poster-card:nth-child(1) { --rot: 10deg; }
    .hero-poster-card:nth-child(2) { --rot: 0deg; }
    .hero-poster-card:nth-child(3) { --rot: -10deg; }
    .hero-poster-card:nth-child(4) { --rot: 10deg; }
    .hero-poster-card:nth-child(5) { --rot: 0deg; }
    .hero-poster-card:nth-child(6) { --rot: -10deg; }

    .hero-bg-text {
        font-size: 35vw;
    }
}
