/* ==================================================================
   CARRUSEL DE PROYECTOS - ESTILO NETFLIX PÓSTER 3:4 (SOLO IMAGEN Y HOVER)
   ================================================================== */

.netflix-section {
    background: #f8fafc;
    padding: 45px 0 65px;
    width: 100%;
}

.netflix-container {
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 24px;
}

.netflix-title {
    font-family: 'Oswald', sans-serif;
    font-size: 1.85rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 24px;
    position: relative;
    display: inline-block;
}

    .netflix-title::after {
        content: '';
        position: absolute;
        bottom: -6px;
        left: 0;
        width: 48px;
        height: 4px;
        background: #1E4782;
        border-radius: 4px;
    }

.netflix-carousel {
    position: relative;
    padding: 10px 0 30px;
}

.netflix-track {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-behavior: smooth;
    scrollbar-width: none;
    padding: 12px 6px 24px 6px;
}

    .netflix-track::-webkit-scrollbar {
        display: none;
    }

/* Navigation Buttons */
.netflix-nav-btn {
    position: absolute;
    top: 45%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid #e2e8f0;
    color: #1E4782;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.15rem;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.15);
    transition: all 0.3s ease;
}

    .netflix-nav-btn:hover {
        background: #1E4782;
        color: #ffffff;
        transform: translateY(-50%) scale(1.1);
        box-shadow: 0 12px 28px rgba(30, 71, 130, 0.35);
    }

    .netflix-nav-btn.prev { left: -16px; }
    .netflix-nav-btn.next { right: -16px; }

/* Tarjeta Netflix Poster 3:4 */
.netflix-card.poster-card {
    flex: 0 0 calc(25% - 18px);
    min-width: 250px;
    background: #0f172a;
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    box-shadow: 0 8px 24px rgba(15, 23, 42, 0.12);
    border: 1px solid rgba(226, 232, 240, 0.8);
    position: relative;
}

    .netflix-card.poster-card:hover {
        transform: translateY(-10px) scale(1.03);
        box-shadow: 0 24px 48px -12px rgba(30, 71, 130, 0.4);
        border-color: #3a6ba5;
    }

/* Link Wrapper */
.netflix-card a.poster-link,
.netflix-card a.poster-link:hover,
.netflix-card a.poster-link:focus,
.netflix-card a.poster-link:visited {
    text-decoration: none !important;
    color: #ffffff !important;
    display: block !important;
    width: 100% !important;
    height: 100% !important;
}

/* Thumbnail 3:4 Poster (Solo Imagen) */
.poster-thumbnail {
    position: relative !important;
    width: 100% !important;
    aspect-ratio: 3 / 4 !important; /* Formato Poster Vertical Largo */
    overflow: hidden !important;
    background: #0f172a !important;
}

    .poster-thumbnail img {
        width: 100% !important;
        height: 100% !important;
        object-fit: cover !important;
        transition: transform 0.6s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    }

.netflix-card.poster-card:hover .poster-thumbnail img {
    transform: scale(1.12) !important;
}

/* Badge Tipo de Medio (Esquina Superior Derecha en Estado Normal) */
.poster-type-badge {
    position: absolute;
    top: 14px;
    right: 14px;
    background: rgba(15, 23, 42, 0.75);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    color: #ffffff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.72rem;
    font-weight: 600;
    font-family: 'Oswald', sans-serif;
    letter-spacing: 0.5px;
    display: inline-flex;
    align-items: center;
    z-index: 3;
    border: 1px solid rgba(255, 255, 255, 0.2);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.25);
}

/* Overlay Cinemático NETFLIX (Solo en Hover sobre toda la tarjeta) */
.poster-overlay {
    position: absolute !important;
    inset: 0 !important;
    background: linear-gradient(
        180deg, 
        rgba(15, 23, 42, 0.2) 0%, 
        rgba(15, 23, 42, 0.8) 45%, 
        rgba(15, 23, 42, 0.98) 100%
    ) !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    padding: 24px 20px 20px 20px !important;
    opacity: 0 !important;
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1) !important;
    backdrop-filter: blur(6px) !important;
    -webkit-backdrop-filter: blur(6px) !important;
    z-index: 4 !important;
    box-sizing: border-box !important;
}

.netflix-card.poster-card:hover .poster-overlay {
    opacity: 1 !important;
}

/* Botón central Play/Ver */
.poster-play-action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: auto;
    margin-bottom: auto;
}

.poster-play-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: #1E4782;
    color: #ffffff;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    box-shadow: 0 8px 24px rgba(30, 71, 130, 0.6);
    transform: scale(0.75);
    transition: transform 0.35s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.netflix-card.poster-card:hover .poster-play-icon {
    transform: scale(1);
}

/* Contenido del Overlay (Título, Sinopsis, Tags) */
.poster-content {
    color: #ffffff !important;
    width: 100% !important;
}

.poster-titulo {
    font-size: 1.2rem !important;
    font-weight: 700 !important;
    font-family: 'Oswald', sans-serif !important;
    margin: 0 0 8px 0 !important;
    line-height: 1.35 !important;
    color: #ffffff !important;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.7) !important;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.poster-sinopsis {
    font-size: 0.82rem !important;
    font-family: 'Inter', sans-serif !important;
    line-height: 1.45 !important;
    margin: 0 0 14px 0 !important;
    color: rgba(241, 245, 249, 0.92) !important;
    display: -webkit-box;
    -webkit-line-clamp: 4; /* Espacio para descripción más larga */
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Tags de Materias / Etiquetas */
.poster-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

    .poster-tags .tag {
        font-size: 0.68rem !important;
        padding: 4px 10px !important;
        border-radius: 14px !important;
        font-family: 'Oswald', sans-serif !important;
        letter-spacing: 0.3px !important;
    }

    .poster-tags .tag.genero {
        background: rgba(255, 255, 255, 0.22) !important;
        backdrop-filter: blur(4px) !important;
        color: #ffffff !important;
        border: 1px solid rgba(255, 255, 255, 0.2) !important;
    }

    .poster-tags .tag.etiqueta {
        background: rgba(30, 71, 130, 0.75) !important;
        backdrop-filter: blur(4px) !important;
        color: #ffffff !important;
        border: 1px solid rgba(58, 107, 165, 0.5) !important;
    }

/* Indicators */
.netflix-indicators {
    display: flex;
    justify-content: center;
    gap: 8px;
    margin-top: 24px;
}

.netflix-indicator {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: #1E4782;
    opacity: 0.25;
    cursor: pointer;
    transition: all 0.3s ease;
}

    .netflix-indicator.active {
        opacity: 1;
        width: 26px;
        border-radius: 6px;
    }

/* Botón Ver Más */
.netflix-ver-mas {
    text-align: center;
    margin-top: 24px;
}

.netflix-btn-mas {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    background: #1E4782;
    color: #ffffff;
    padding: 11px 30px;
    border-radius: 40px;
    font-family: 'Oswald', sans-serif;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.3s ease;
    box-shadow: 0 4px 14px rgba(30, 71, 130, 0.25);
}

    .netflix-btn-mas:hover {
        background: #15325c;
        transform: translateY(-2px);
        color: #ffffff;
        box-shadow: 0 8px 20px rgba(30, 71, 130, 0.38);
    }

/* Responsive */
@media (max-width: 1200px) {
    .netflix-card.poster-card { flex: 0 0 calc(33.333% - 16px); min-width: 230px; }
}

@media (max-width: 992px) {
    .netflix-nav-btn { display: none; }
    .netflix-card.poster-card { flex: 0 0 calc(50% - 12px); min-width: 200px; }
}

@media (max-width: 600px) {
    .netflix-container { padding: 0 16px; }
    .netflix-card.poster-card { flex: 0 0 78%; min-width: 240px; }
}
