/* ==========================================================================
   IMPENETRABLE - DESIGN SYSTEM & ROOT VARIABLES
   ========================================================================== */
:root {
    /* Color Palette */
    --color-bg-black: #000000;
    --color-crimson: #800000;
    --color-blood-bright: #e60000;
    --color-blood-dark: #3a0000;
    --color-bone-white: #e2dcd5;
    --color-bone-gray: #8c837a;
    
    /* Typography */
    --font-headers: 'Bebas Neue', sans-serif;
    --font-subtitles: 'Cinzel', serif;
    --font-body: 'Cormorant Garamond', serif;
    
    /* Transitions */
    --transition-slow: 0.8s cubic-bezier(0.25, 0.8, 0.25, 1);
    --transition-medium: 0.4s ease;
    --transition-fast: 0.2s ease;
}

/* ==========================================================================
   RESET & BASE STYLES
   ========================================================================== */
* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    background-color: var(--color-bg-black);
    color: var(--color-bone-white);
    font-family: var(--font-body);
    font-size: 18px;
    line-height: 1.6;
    overflow-x: hidden;
}

body {
    background-color: var(--color-bg-black);
    min-height: 100vh;
    position: relative;
}

/* Scrollbar gótica */
::-webkit-scrollbar {
    width: 6px;
}
::-webkit-scrollbar-track {
    background: var(--color-bg-black);
}
::-webkit-scrollbar-thumb {
    background: var(--color-crimson);
    border-radius: 3px;
}
::-webkit-scrollbar-thumb:hover {
    background: var(--color-blood-bright);
}

/* Selection */
::selection {
    background-color: var(--color-crimson);
    color: var(--color-bg-black);
}

/* ==========================================================================
   ATMOSPHERIC OVERLAYS (Film Grain, Fog, Vignette)
   ========================================================================== */
#film-grain {
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    z-index: 999;
    pointer-events: none;
    opacity: 0.07;
}

.fog-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at 50% 55%, rgba(128, 0, 0, 0.22) 0%, rgba(58, 0, 0, 0.08) 50%, transparent 95%);
    pointer-events: none;
    z-index: 2;
    mix-blend-mode: screen;
    filter: blur(20px);
    animation: fog-pulse 8s ease-in-out infinite alternate;
}

.vignette-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 20%, rgba(0, 0, 0, 0.75) 70%, rgba(0, 0, 0, 0.95) 100%);
    pointer-events: none;
    z-index: 3;
}

@keyframes fog-pulse {
    0% {
        opacity: 0.8;
        transform: scale(1.02);
    }
    100% {
        opacity: 1.1;
        transform: scale(0.98);
    }
}

/* ==========================================================================
   GOTHIC FOREST PARALLAX BORDERS
   ========================================================================== */
.forest-border {
    position: fixed;
    top: 0;
    height: 100%;
    z-index: 8;
    pointer-events: none;
    width: 250px;
    opacity: 0.75;
    transition: transform 0.1s ease-out;
}

.forest-left {
    left: 0;
}

.forest-right {
    right: 0;
}

.forest-border svg {
    width: 100%;
    height: 100%;
}

/* Ocultar bosque en móviles para no entorpecer lectura */
@media (max-width: 1024px) {
    .forest-border {
        display: none;
    }
}



/* ==========================================================================
   GRUNGE BUTTONS
   ========================================================================== */
.btn-grunge {
    background: transparent;
    border: 2px solid var(--color-crimson);
    color: var(--color-bone-white);
    padding: 15px 40px;
    font-family: var(--font-headers);
    font-size: 1.5rem;
    letter-spacing: 4px;
    cursor: pointer;
    position: relative;
    overflow: hidden;
    transition: var(--transition-medium);
}

.btn-grunge::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, var(--color-blood-bright) 0%, transparent 60%);
    transform: translate(-50%, -50%) scale(0);
    transition: transform var(--transition-slow);
    z-index: -1;
    opacity: 0.6;
}

.btn-grunge:hover {
    color: #ffffff;
    border-color: var(--color-blood-bright);
    box-shadow: 0 0 20px rgba(230, 0, 0, 0.4);
    text-shadow: 0 0 8px rgba(255, 255, 255, 0.8);
}

.btn-grunge:hover::before {
    transform: translate(-50%, -50%) scale(1);
}

@keyframes warning-flicker {
    0%, 100% { opacity: 1; }
    45% { opacity: 1; }
    46% { opacity: 0.95; }
    47% { opacity: 0.97; }
    48% { opacity: 0.92; }
    49% { opacity: 1; }
    80% { opacity: 1; }
    81% { opacity: 0.94; }
    82% { opacity: 0.96; }
    83% { opacity: 1; }
}

/* ==========================================================================
   SOUND CONTROL
   ========================================================================== */
.sound-control-container {
    position: fixed;
    bottom: 30px;
    right: 30px;
    z-index: 100;
}

.btn-sound-toggle {
    background: rgba(0, 0, 0, 0.85);
    border: 1px solid rgba(128, 0, 0, 0.5);
    color: var(--color-bone-gray);
    padding: 10px 15px;
    font-family: var(--font-subtitles);
    font-size: 0.75rem;
    letter-spacing: 2px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    border-radius: 3px;
    box-shadow: 0 0 15px rgba(0, 0, 0, 0.5);
    transition: var(--transition-medium);
}

.btn-sound-toggle i {
    font-size: 0.9rem;
    color: var(--color-crimson);
    transition: var(--transition-medium);
}

.btn-sound-toggle:hover {
    border-color: var(--color-blood-bright);
    color: var(--color-bone-white);
    box-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
}

.btn-sound-toggle.playing i {
    color: var(--color-blood-bright);
    animation: scale-pulse 1.5s infinite;
}

@keyframes scale-pulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.2); }
}

@media (max-width: 768px) {
    .sound-control-container {
        bottom: 20px;
        right: 20px;
    }
    .btn-sound-toggle {
        padding: 10px;
        border-radius: 50%;
        width: 44px;
        height: 44px;
        justify-content: center;
        gap: 0;
    }
    .btn-sound-toggle .sound-text {
        display: none;
    }
}

/* ==========================================================================
   NAVIGATION
   ========================================================================== */
.nav-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 25px 60px;
    z-index: 90;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.9) 0%, transparent 100%);
    transition: transform var(--transition-medium);
}

.nav-logo {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    letter-spacing: 4px;
    color: var(--color-bone-white);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
    position: relative;
    cursor: pointer;
}

.nav-links {
    list-style: none;
    display: flex;
    gap: 35px;
}

.nav-link {
    text-decoration: none;
    font-family: var(--font-subtitles);
    font-size: 0.8rem;
    letter-spacing: 2px;
    color: var(--color-bone-gray);
    text-transform: uppercase;
    transition: var(--transition-medium);
    position: relative;
    padding-bottom: 5px;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 1px;
    background-color: var(--color-blood-bright);
    transition: var(--transition-medium);
    transform: translateX(-50%);
}

.nav-link:hover, .nav-link.active {
    color: var(--color-bone-white);
    text-shadow: 0 0 5px rgba(255,255,255,0.3);
}

.nav-link:hover::after, .nav-link.active::after {
    width: 100%;
}

@media (max-width: 768px) {
    .nav-container {
        padding: 10px 15px;
        flex-direction: column;
        gap: 6px;
        background: rgba(0, 0, 0, 0.95);
        backdrop-filter: blur(10px);
        -webkit-backdrop-filter: blur(10px);
        border-bottom: 1px solid rgba(128, 0, 0, 0.15);
    }
    .nav-logo {
        font-size: 1.4rem;
        letter-spacing: 3px;
        text-align: center;
        width: 100%;
    }
    .nav-links {
        display: flex;
        gap: 15px;
        overflow-x: auto;
        white-space: nowrap;
        width: 100%;
        justify-content: space-between;
        padding: 6px 5px;
        scrollbar-width: none;
    }
    .nav-links::-webkit-scrollbar {
        display: none;
    }
    .nav-links li {
        flex: 1;
        text-align: center;
        min-width: fit-content;
    }
    .nav-link {
        font-size: 0.75rem;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   SECTIONS LAYOUT & SHARED
   ========================================================================== */
.section-container {
    min-height: 100vh;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 100px 10%;
    position: relative;
    z-index: 5;
}

.section-header-block {
    text-align: center;
    margin-bottom: 60px;
    max-width: 800px;
}

.section-title {
    font-family: var(--font-headers);
    font-size: 4rem;
    letter-spacing: 6px;
    color: var(--color-bone-white);
    text-shadow: 3px 3px 0 rgba(74, 0, 0, 0.7);
    margin-bottom: 15px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background-color: var(--color-crimson);
    margin: 10px auto 0 auto;
    box-shadow: 0 0 5px var(--color-blood-bright);
}

.section-subtitle {
    font-family: var(--font-subtitles);
    font-size: 0.95rem;
    color: var(--color-bone-gray);
    letter-spacing: 2px;
    text-transform: uppercase;
}

@media (max-width: 768px) {
    .section-container {
        padding: 70px 16px;
    }
    .section-title {
        font-size: 2.4rem;
        letter-spacing: 4px;
    }
}

@media (max-width: 480px) {
    .section-container {
        padding: 60px 12px;
    }
    .section-title {
        font-size: 1.9rem;
        letter-spacing: 3px;
    }
}

/* ==========================================================================
   SECTION 1: HERO / POSTER STYLING
   ========================================================================== */
#hero {
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    display: flex;
    align-items: center;
    gap: 80px;
    max-width: 1200px;
    width: 100%;
}

.poster-container {
    flex-shrink: 0;
    width: 380px;
    height: 560px;
    position: relative;
    border: 1px solid rgba(128, 0, 0, 0.3);
    box-shadow: 0 0 50px rgba(0, 0, 0, 0.8), 0 0 30px rgba(128, 0, 0, 0.15);
    overflow: hidden;
    background-color: #111;
    transform: scale(1);
    transition: transform var(--transition-slow);
}

.poster-container:hover {
    transform: scale(1.02);
    border-color: rgba(230, 0, 0, 0.5);
    box-shadow: 0 0 60px rgba(0, 0, 0, 0.9), 0 0 40px rgba(230, 0, 0, 0.25);
}

.movie-poster {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(85%) contrast(105%);
    transition: filter var(--transition-medium);
}

.poster-container:hover .movie-poster {
    filter: brightness(100%) contrast(105%);
}

.poster-glint {
    position: absolute;
    top: 0;
    left: -150%;
    width: 100%;
    height: 100%;
    background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
    transform: skewX(-20deg);
    transition: left 0.75s ease;
}

.poster-container:hover .poster-glint {
    left: 150%;
}

.hero-text-block {
    flex-grow: 1;
}

.movie-title {
    font-family: var(--font-headers);
    font-size: 6.5rem;
    line-height: 0.95;
    letter-spacing: 8px;
    margin-bottom: 20px;
    color: var(--color-bone-white);
    position: relative;
}

/* Original CRT Digital Glitch Title Effect */
.glitched {
    position: relative;
    text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    animation: title-glitch 500ms infinite;
}

.glitched::before,
.glitched::after {
    content: attr(data-text);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

.glitched::before {
    animation: glitch-anim 650ms infinite linear alternate-reverse;
    clip-path: polygon(0 0, 100% 0, 100% 45%, 0 45%);
    transform: translate(-0.025em, -0.0125em);
    opacity: 0.8;
}

.glitched::after {
    animation: glitch-anim2 375ms infinite linear alternate-reverse;
    clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
    transform: translate(0.0125em, 0.025em);
    opacity: 0.8;
}

@keyframes title-glitch {
    0% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    14% {
        text-shadow: 0.05em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 255, 0, 0.75),
                    0.025em 0.05em 0 rgba(0, 0, 255, 0.75);
    }
    15% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    49% {
        text-shadow: -0.05em -0.025em 0 rgba(255, 0, 0, 0.75),
                    0.025em 0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.05em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    50% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    99% {
        text-shadow: 0.025em 0.05em 0 rgba(255, 0, 0, 0.75),
                    0.05em 0 0 rgba(0, 255, 0, 0.75),
                    0 -0.05em 0 rgba(0, 0, 255, 0.75);
    }
    100% {
        text-shadow: -0.025em 0 0 rgba(255, 0, 0, 0.75),
                    -0.025em -0.025em 0 rgba(0, 255, 0, 0.75),
                    -0.025em -0.05em 0 rgba(0, 0, 255, 0.75);
    }
}

@keyframes glitch-anim {
    0% {
        clip-path: polygon(0 2%, 100% 2%, 100% 5%, 0 5%);
    }
    10% {
        clip-path: polygon(0 15%, 100% 15%, 100% 15%, 0 15%);
    }
    20% {
        clip-path: polygon(0 10%, 100% 10%, 100% 20%, 0 20%);
    }
    30% {
        clip-path: polygon(0 1%, 100% 1%, 100% 2%, 0 2%);
    }
    40% {
        clip-path: polygon(0 33%, 100% 33%, 100% 33%, 0 33%);
    }
    50% {
        clip-path: polygon(0 44%, 100% 44%, 100% 44%, 0 44%);
    }
    60% {
        clip-path: polygon(0 50%, 100% 50%, 100% 60%, 0 60%);
    }
    70% {
        clip-path: polygon(0 70%, 100% 70%, 100% 70%, 0 70%);
    }
    80% {
        clip-path: polygon(0 80%, 100% 80%, 100% 90%, 0 90%);
    }
    90% {
        clip-path: polygon(0 12%, 100% 12%, 100% 12%, 0 12%);
    }
    100% {
        clip-path: polygon(0 40%, 100% 40%, 100% 43%, 0 43%);
    }
}

@keyframes glitch-anim2 {
    0% {
        clip-path: polygon(0 80%, 100% 80%, 100% 100%, 0 100%);
    }
    50% {
        clip-path: polygon(0 50%, 100% 50%, 100% 55%, 0 55%);
    }
    100% {
        clip-path: polygon(0 70%, 100% 70%, 100% 72%, 0 72%);
    }
}

.movie-tagline {
    font-family: var(--font-subtitles);
    font-size: 1.5rem;
    font-style: italic;
    color: var(--color-blood-bright);
    letter-spacing: 2px;
    margin-bottom: 30px;
    text-shadow: 0 0 10px rgba(128, 0, 0, 0.3);
}

.movie-synopsis {
    font-family: var(--font-body);
    font-size: 1.25rem;
    color: var(--color-bone-gray);
    max-width: 600px;
    margin-bottom: 45px;
    text-align: justify;
}

.scroll-prompt {
    display: inline-flex;
    flex-direction: column;
    align-items: flex-start;
    cursor: pointer;
    opacity: 0.6;
    transition: opacity var(--transition-medium);
}

.scroll-prompt:hover {
    opacity: 1;
}

.scroll-prompt-text {
    font-family: var(--font-subtitles);
    font-size: 0.75rem;
    letter-spacing: 3px;
    text-transform: uppercase;
    margin-bottom: 10px;
}

.scroll-arrow {
    color: var(--color-crimson);
    font-size: 1.2rem;
    animation: bounce 2s infinite;
}

@keyframes bounce {
    0%, 20%, 50%, 80%, 100% { transform: translateY(0); }
    40% { transform: translateY(-8px); }
    60% { transform: translateY(-4px); }
}

@media (max-width: 1024px) {
    .hero-content {
        flex-direction: column;
        gap: 40px;
        text-align: center;
        align-items: center;
    }
    .poster-container {
        width: 280px;
        height: 410px;
    }
    .movie-title {
        font-size: 4rem;
    }
    .movie-synopsis {
        margin: 0 auto 30px auto;
    }
    .scroll-prompt {
        align-items: center;
    }
}

@media (max-width: 768px) {
    .movie-title {
        font-size: 3.2rem;
        letter-spacing: 5px;
    }
    .movie-tagline {
        font-size: 1.2rem;
        margin-bottom: 20px;
    }
    .movie-synopsis {
        font-size: 1.1rem;
        line-height: 1.5;
        text-align: justify;
    }
}

@media (max-width: 480px) {
    .poster-container {
        width: 220px;
        height: 320px;
    }
    .movie-title {
        font-size: 2.4rem;
        letter-spacing: 3px;
    }
    .movie-tagline {
        font-size: 1rem;
        margin-bottom: 15px;
    }
    .movie-synopsis {
        font-size: 1rem;
        text-align: left;
        line-height: 1.45;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   SECTION 2: STORYBOARD CAROUSEL
   ========================================================================== */
.carousel-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 1100px;
    margin: 0 auto;
}

.carousel-container {
    width: 100%;
    height: 680px;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(128, 0, 0, 0.2);
    background-color: rgba(5, 5, 5, 0.95);
    box-shadow: inset 0 0 50px rgba(0,0,0,0.9);
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    visibility: hidden;
    transform: scale(0.98);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0s 0.5s;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.carousel-slide.active {
    opacity: 1;
    visibility: visible;
    transform: scale(1);
    transition: opacity 0.5s ease-in-out, transform 0.5s ease-in-out, visibility 0s 0s;
}

.slide-card {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.slide-img {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border: 1px solid rgba(255,255,255,0.05);
    filter: brightness(80%) sepia(20%) contrast(110%);
    box-shadow: 0 10px 30px rgba(0,0,0,0.8);
    transition: filter var(--transition-medium);
}

.slide-card:hover .slide-img {
    filter: brightness(95%) sepia(0%) contrast(110%);
}

.carousel-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(128, 0, 0, 0.4);
    color: var(--color-bone-white);
    width: 50px;
    height: 50px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    z-index: 10;
    transition: var(--transition-medium);
}

.carousel-btn:hover {
    background: var(--color-crimson);
    border-color: var(--color-blood-bright);
    box-shadow: 0 0 15px rgba(230, 0, 0, 0.4);
}

.prev-btn {
    left: -70px;
}

.next-btn {
    right: -70px;
}

/* Progreso del carrusel */
.carousel-progress-bar {
    width: 100%;
    max-width: 900px;
    margin-top: 30px;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
}

.carousel-indicator-text {
    font-family: var(--font-subtitles);
    font-size: 0.8rem;
    color: var(--color-bone-gray);
    letter-spacing: 2px;
}

.progress-track {
    width: 100%;
    height: 2px;
    background-color: rgba(128, 0, 0, 0.15);
    position: relative;
}

.progress-fill {
    height: 100%;
    background-color: var(--color-blood-bright);
    box-shadow: 0 0 8px var(--color-blood-bright);
    transition: width 0.4s ease;
}

@media (max-width: 1200px) {
    .prev-btn {
        left: 15px;
    }
    .next-btn {
        right: 15px;
    }
}

@media (max-width: 1024px) {
    .carousel-container {
        height: 480px;
    }
    .carousel-btn {
        top: 50%;
        bottom: auto;
        transform: translateY(-50%);
        width: 44px;
        height: 44px;
    }
    .prev-btn {
        left: 10px;
    }
    .next-btn {
        right: 10px;
    }
    .carousel-progress-bar {
        margin-top: 25px;
    }
}

@media (max-width: 768px) {
    .carousel-container {
        height: auto;
        aspect-ratio: 16/10;
        min-height: 220px;
    }
    .carousel-btn {
        width: 40px;
        height: 40px;
    }
    .prev-btn {
        left: 5px;
    }
    .next-btn {
        right: 5px;
    }
}

/* ==========================================================================
   SECTION 3: CAST (REPARTO)
   ========================================================================== */
.cast-grid {
    display: flex;
    justify-content: center;
    gap: 60px;
    width: 100%;
    max-width: 1000px;
}

.cast-card {
    flex: 1;
    max-width: 420px;
    background: radial-gradient(circle at center, rgba(30, 0, 0, 0.15) 0%, rgba(0, 0, 0, 0.8) 100%);
    border: 1px solid rgba(128, 0, 0, 0.15);
    padding: 25px;
    position: relative;
    transition: var(--transition-slow);
    display: flex;
    flex-direction: column;
}

.cast-card:hover {
    border-color: rgba(230, 0, 0, 0.4);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.9), 0 0 20px rgba(128, 0, 0, 0.2);
    transform: translateY(-5px);
}

.cast-image-wrapper {
    width: 100%;
    aspect-ratio: 4/5;
    overflow: hidden;
    position: relative;
    border: 1px solid rgba(0,0,0,0.8);
    background-color: #111;
}

.cast-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: grayscale(100%) brightness(75%) contrast(110%);
    transition: filter var(--transition-slow), transform var(--transition-slow);
}

.cast-overlay-blood {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(230, 0, 0, 0.15);
    mix-blend-mode: color;
    opacity: 0;
    transition: opacity var(--transition-medium);
    pointer-events: none;
}

.cast-card:hover .cast-img {
    filter: grayscale(20%) brightness(85%) contrast(105%);
    transform: scale(1.03);
}

.cast-card:hover .cast-overlay-blood {
    opacity: 1;
}

.cast-info {
    margin-top: 25px;
    text-align: center;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.cast-name {
    font-family: var(--font-headers);
    font-size: 2.2rem;
    letter-spacing: 3px;
    color: var(--color-bone-white);
    margin-bottom: 5px;
    transition: color var(--transition-medium);
}

.cast-card:hover .cast-name {
    color: var(--color-blood-bright);
    text-shadow: 0 0 10px rgba(230, 0, 0, 0.3);
}

.cast-role {
    font-family: var(--font-subtitles);
    font-size: 0.85rem;
    color: var(--color-crimson);
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 15px;
}

.cast-bio {
    font-family: var(--font-body);
    font-size: 1.15rem;
    color: var(--color-bone-gray);
    margin-bottom: 25px;
    line-height: 1.5;
}

.cast-social-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    text-decoration: none;
    font-family: var(--font-subtitles);
    font-size: 0.75rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: var(--color-bone-white);
    border: 1px solid rgba(255, 255, 255, 0.1);
    padding: 8px 20px;
    margin: 0 auto;
    transition: var(--transition-medium);
}

.cast-social-link:hover {
    background-color: var(--color-crimson);
    border-color: var(--color-blood-bright);
    box-shadow: 0 0 10px rgba(230,0,0,0.3);
}

@media (max-width: 960px) {
    .cast-grid {
        flex-direction: column;
        align-items: center;
        gap: 40px;
    }
    .cast-card {
        width: 100%;
        max-width: 420px;
    }
}

@media (max-width: 480px) {
    .cast-card {
        padding: 15px;
    }
    .cast-name {
        font-size: 1.8rem;
    }
    .cast-role {
        font-size: 0.75rem;
    }
    .cast-bio {
        font-size: 1rem;
        margin-bottom: 20px;
    }
}

/* ==========================================================================
   SECTION 4: BEHIND THE SCENES (BTS)
   ========================================================================== */
.bts-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-auto-rows: 240px;
    gap: 20px;
    width: 100%;
    max-width: 1200px;
}

.bts-item {
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(128, 0, 0, 0.15);
    background-color: #050505;
    cursor: pointer;
    transition: var(--transition-medium);
}

.bts-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    filter: brightness(65%) grayscale(60%);
    transition: filter var(--transition-medium), transform var(--transition-medium);
}

.bts-hover-effect {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, rgba(128, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0.95) 100%);
    opacity: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    transition: opacity var(--transition-medium);
}

.bts-hover-effect span {
    font-family: var(--font-headers);
    font-size: 1.8rem;
    letter-spacing: 4px;
    color: var(--color-bone-white);
    transform: scale(0.9);
    transition: transform var(--transition-medium);
    text-shadow: 0 0 8px rgba(255,255,255,0.8);
}

/* Hover States */
.bts-item:hover {
    border-color: var(--color-blood-bright);
    box-shadow: 0 0 30px rgba(128, 0, 0, 0.4);
    z-index: 10;
}

.bts-item:hover .bts-img {
    filter: brightness(80%) grayscale(0%);
    transform: scale(1.05);
}

.bts-item:hover .bts-hover-effect {
    opacity: 1;
}

.bts-item:hover .bts-hover-effect span {
    transform: scale(1);
}

/* Asymmetric Grid Layout Rules for Desktop */
@media (min-width: 1024px) {
    /* Hacer el grid asimétrico y dinámico */
    .bts-item:nth-child(1) { grid-column: span 2; grid-row: span 2; } /* Grande */
    .bts-item:nth-child(2) { grid-column: span 1; grid-row: span 1; }
    .bts-item:nth-child(5) { grid-column: span 1; grid-row: span 2; } /* Alto */
    .bts-item:nth-child(8) { grid-column: span 2; grid-row: span 1; } /* Ancho */
    .bts-item:nth-child(11) { grid-column: span 2; grid-row: span 2; } /* Grande */
    .bts-item:nth-child(14) { grid-column: span 1; grid-row: span 1; }
}

@media (max-width: 1024px) and (min-width: 768px) {
    .bts-grid {
        grid-template-columns: repeat(3, 1fr);
        grid-auto-rows: 200px;
    }
    .bts-item:nth-child(1) { grid-column: span 2; grid-row: span 2; }
    .bts-item:nth-child(8) { grid-column: span 2; }
}

@media (max-width: 768px) {
    .bts-grid {
        grid-template-columns: repeat(2, 1fr);
        grid-auto-rows: 160px;
        gap: 10px;
    }
}

/* ==========================================================================
   FOOTER (MOVIE CREDIT BLOCK STYLE)
   ========================================================================== */
.movie-footer {
    background-color: var(--color-bg-black);
    padding: 80px 20px 40px 20px;
    width: 100%;
    border-top: 1px solid rgba(128, 0, 0, 0.1);
    position: relative;
    z-index: 5;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.billing-block {
    text-align: center;
    max-width: 900px;
    width: 100%;
    margin-bottom: 40px;
}

.billing-block h3 {
    font-family: var(--font-headers);
    font-size: 1.6rem;
    letter-spacing: 5px;
    color: var(--color-crimson);
    margin-bottom: 30px;
}

.credits-line {
    font-family: var(--font-headers);
    font-size: 0.85rem;
    letter-spacing: 2px;
    line-height: 2.2;
    color: var(--color-bone-gray);
    text-transform: uppercase;
}

.credits-line-sub {
    font-family: var(--font-headers);
    font-size: 1.1rem;
    letter-spacing: 3px;
    line-height: 2;
    color: var(--color-bone-white);
    margin-top: 15px;
    text-transform: uppercase;
}

.credit-name {
    color: var(--color-bone-white);
    margin-left: 2px;
    margin-right: 10px;
}

.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.05);
    padding-top: 30px;
    width: 100%;
    max-width: 1200px;
    text-align: center;
}

@media (max-width: 768px) {
    .movie-footer {
        padding: 50px 15px 30px 15px;
    }
    .billing-block h3 {
        font-size: 1.2rem;
        letter-spacing: 3px;
        margin-bottom: 20px;
    }
    .credits-line {
        font-size: 0.75rem;
        line-height: 1.8;
        letter-spacing: 1px;
    }
    .footer-bottom {
        padding-top: 20px;
    }
    .footer-bottom p {
        font-size: 0.55rem;
        letter-spacing: 1px;
    }
}

/* ==========================================================================
   LIGHTBOX SYSTEM (OLD HUNTING PHOTO THEME)
   ========================================================================== */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(3, 2, 2, 0.97); /* Casi negro, muy denso */
    z-index: 100000;
    display: none;
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.5s ease;
    overflow: hidden;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    color: var(--color-bone-gray);
    font-size: 3rem;
    cursor: pointer;
    transition: var(--transition-medium);
    z-index: 100005;
}

.lightbox-close:hover {
    color: var(--color-blood-bright);
    text-shadow: 0 0 10px var(--color-blood-bright);
}

/* Flashlight Beam focusing on the photo */
.flashlight-beam {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at var(--mouse-x, 50%) var(--mouse-y, 50%), rgba(255, 252, 220, 0.12) 0%, rgba(200, 30, 30, 0.03) 30%, transparent 70%);
    pointer-events: none;
    z-index: 100001;
}

.lightbox-content-wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    max-width: 90%;
    max-height: 85%;
    position: relative;
    z-index: 100002;
}

/* Old Polaroid-like Hunting Photo Frame */
.hunting-photo-frame {
    position: relative;
    background-color: #d8cfc0; /* Crema papel viejo */
    padding: 18px 18px 65px 18px; /* Borde inferior más ancho para el texto */
    box-shadow: 0 25px 60px rgba(0, 0, 0, 0.95), 0 0 40px rgba(128, 0, 0, 0.15);
    border-radius: 2px;
    transform: rotate(-1.5deg);
    max-width: 650px;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.2);
    transition: transform 0.3s ease;
}

.hunting-photo-frame:hover {
    transform: rotate(0deg) scale(1.02);
}

/* Textura del papel viejo */
.photo-paper-texture {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle, transparent 50%, rgba(90, 70, 50, 0.15) 100%),
                repeating-linear-gradient(45deg, rgba(0, 0, 0, 0.02) 0px, rgba(0, 0, 0, 0.02) 2px, transparent 2px, transparent 4px);
    pointer-events: none;
    z-index: 2;
}

/* Manchas de barro y humedad en los bordes de la foto */
.photo-border-mud {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 10px 10px, rgba(89, 74, 60, 0.6) 0%, transparent 40px),
        radial-gradient(circle at 95% 85%, rgba(128, 0, 0, 0.4) 0%, transparent 60px),
        radial-gradient(circle at 5% 95%, rgba(60, 48, 36, 0.7) 0%, transparent 80px);
    pointer-events: none;
    z-index: 3;
    mix-blend-mode: multiply;
}

#lightbox-img {
    max-width: 100%;
    max-height: 55vh;
    object-fit: contain;
    border: 1px solid rgba(0, 0, 0, 0.4);
    filter: sepia(35%) contrast(110%) brightness(85%) saturate(85%);
    transition: opacity 0.15s ease;
    z-index: 1;
}

.lightbox-info {
    position: absolute;
    bottom: 12px;
    width: 100%;
    display: flex;
    justify-content: center;
    z-index: 5;
}

/* Texto manuscrito rústico de foto de caza */
.handwritten-caption {
    font-family: var(--font-body);
    font-size: 1.45rem;
    font-weight: 700;
    font-style: italic;
    color: #2b2621; /* Color lápiz carbón / tinta vieja */
    letter-spacing: 0.5px;
    text-shadow: 0.5px 0.5px 0px rgba(255, 255, 255, 0.5);
    text-align: center;
    max-width: 90%;
    opacity: 0.9;
}

.lightbox-controls {
    display: flex;
    gap: 30px;
    margin-top: 25px;
}

.lightbox-nav-btn {
    background: rgba(0, 0, 0, 0.7);
    border: 1px solid rgba(128, 0, 0, 0.3);
    color: var(--color-bone-white);
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    font-size: 1.1rem;
    transition: var(--transition-medium);
}

.lightbox-nav-btn:hover {
    background: var(--color-crimson);
    border-color: var(--color-blood-bright);
    box-shadow: 0 0 15px var(--color-blood-bright);
}

@media (max-width: 768px) {
    .hunting-photo-frame {
        padding: 10px 10px 50px 10px;
        transform: rotate(-0.5deg);
        max-width: 95%;
    }
    .handwritten-caption {
        font-size: 1.05rem;
    }
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2.2rem;
    }
    .lightbox-controls {
        gap: 20px;
        margin-top: 15px;
    }
    .lightbox-nav-btn {
        width: 44px;
        height: 44px;
    }
}
