/* --- CONFIGURACIÓN GENERAL --- */
:root {
    --accent-red: #fc4400;
    --bg-dark: #0e0e0e;
}

body {
    background-color: var(--bg-dark);
}

.directors-main {
    width: 100%;
    min-height: calc(100vh - 80px);
    margin-top: 80px;
    display: flex;
    flex-direction: column;
}

/* --- TÍTULO DE PÁGINA --- */
.section-header {
    text-align: left;
    padding: 50px 20px;
}

.tiny-label {
    font-size: 1.2rem;
    color: white;
    font-weight: 700;
    letter-spacing: 3px;
    font-family: 'Syne', sans-serif;
    display: block;
    margin-bottom: 15px;
}

.page-title {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    color: #fff;
    margin: 0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    line-height: 1;
	letter-spacing: -7px;
}

.filled-red {
    color: var(--accent-red);
    text-shadow: 0 0 30px rgba(230, 0, 0, 0.3);
}

/* --- GALERÍA EXPANDIBLE --- */
.directors-gallery {
    display: flex;
    width: 100%;
    height: 75vh; 
    overflow: hidden;
    background: #000;
    border-top: 1px solid rgba(255,255,255,0.1);
    border-bottom: 1px solid rgba(255,255,255,0.1);
}

/* --- TARJETA DEL DIRECTOR --- */
.director-card {
    position: relative;
    flex: 1; 
    min-width: 0; 
    height: 100%;
    transition: flex 0.8s cubic-bezier(0.25, 1, 0.5, 1);
    overflow: hidden;
    cursor: pointer;
    border-right: 1px solid rgba(255,255,255,0.1);
}

.director-card:last-child {
    border-right: none;
}

/* IMAGEN DE FONDO */
.card-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.8s ease, filter 0.8s ease;
    filter: grayscale(100%) brightness(0.8);
    z-index: 1;
}

/* OVERLAY OSCURO */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.95), rgba(0,0,0,0.2) 60%, rgba(0,0,0,0.1));
    z-index: 2;
    transition: opacity 0.5s ease;
}

/* --- NOMBRE VERTICAL (A LA IZQUIERDA) --- */
.name-vertical {
    position: absolute;
    bottom: 50px;
    
    /* CAMBIO: En lugar de 'left: 50%', lo fijamos a 30px del borde izquierdo */
    left: 30px; 
    
    writing-mode: vertical-lr; 
    transform: rotate(180deg);
    /* Eliminamos el translateX(-50%) porque ya no centramos */
    
    font-family: 'Syne', sans-serif;
    font-size: 1.4rem;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.7);
    letter-spacing: 4px;
    white-space: nowrap;
    z-index: 4; 
    pointer-events: none; 
    
    transition: opacity 0.4s ease, transform 0.4s ease;
}

/* --- CONTENIDO EXTENDIDO (Abierto) --- */
.card-content {
    position: relative;
    z-index: 3;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 40px;
    box-sizing: border-box;
    min-width: 450px; 
    
    opacity: 0; 
    transform: translateY(20px);
    transition: opacity 0.4s ease 0s, transform 0.4s ease 0s;
}

.director-role {
    font-size: 0.8rem;
    color: var(--accent-red);
    letter-spacing: 2px;
    font-weight: 700;
    margin-bottom: 10px;
}

.director-name {
    font-size: 3.5rem;
    line-height: 0.9;
    color: #fff;
    margin: 0 0 20px 0;
    font-family: 'Syne', sans-serif;
    font-weight: 800;
    text-transform: uppercase;
}

.director-bio {
    font-size: 1rem;
    color: #ccc;
    line-height: 1.5;
    max-width: 400px;
    margin-bottom: 30px;
}

.reel-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: #fff;
    text-decoration: none;
    font-weight: 700;
    text-transform: uppercase;
    font-size: 0.9rem;
    transition: color 0.3s ease;
}

.reel-btn:hover {
    color: var(--accent-red);
}

.reel-btn .arrow {
    transition: transform 0.3s ease;
}
.reel-btn:hover .arrow {
    transform: translateX(5px);
}

/* --- INTERACCIÓN (HOVER) --- */
.director-card:hover {
    flex: 4; 
}

.director-card:hover .card-bg {
    transform: scale(1.05);
    filter: grayscale(0%) brightness(1);
}

/* Al hacer hover, el nombre vertical desaparece moviéndose ligeramente */
.director-card:hover .name-vertical {
    opacity: 0;
    /* Se mueve un poco hacia abajo mientras desaparece */
    transform: rotate(180deg) translateY(20px); 
}

.director-card:hover .card-content {
    opacity: 1;
    transform: translateY(0);
    transition-delay: 0.2s; 
}


/* --- RESPONSIVE MOBILE --- */
@media (max-width: 1024px) {
    .directors-gallery {
        flex-direction: column;
        height: auto; 
    }

    .director-card {
        width: 100%;
        height: 550px;
        flex: none;
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
    }
    
    .name-vertical {
        display: none; 
    }

    .card-bg {
        filter: grayscale(0%) brightness(0.7); 
    }

    .card-content {
        min-width: auto;
        opacity: 1; 
        transform: translateY(0);
        justify-content: flex-end;
        padding: 30px 20px;
    }

    .director-name {
        font-size: 2.8rem;
    }

    .director-bio {
        font-size: 1rem;
        margin-bottom: 25px;
    }
    
    .reel-btn {
        background: #fff;
        color: #000;
        padding: 15px 25px;
        width: fit-content;
    }

    .director-card:hover {
        flex: none;
    }
}