/* Configuración General */
:root {
    --negro: #000000;
    --blanco: #ffffff;
    --rojo: #E60000;
}

body {
    font-family: 'Inter', sans-serif;
    background-color: var(--negro);
    color: var(--blanco);
    overflow-x: hidden; /* Evita cualquier desbordamiento accidental */
}

.text-rojo { color: var(--rojo) !important; }

/* DISEÑO DE BARRA DE NAVEGACIÓN */
.navbar {
    padding: 1.2rem 0;
    transition: background 0.4s;
}

.nav-link {
    color: #ffffff !important;
    position: relative;
    transition: 0.3s;
    font-size: 1.25rem; 
    font-weight: 800;
    text-transform: uppercase;
}

.nav-link::after {
    content: '';
    position: absolute;
    width: 0;
    height: 3px;
    bottom: -2px;
    left: 50%;
    background-color: var(--rojo);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after { width: 80%; }
.nav-link:hover { color: var(--rojo) !important; }

@media (min-width: 992px) {
    .nav-item.dropdown:hover .dropdown-menu {
        display: block;
        margin-top: 0;
    }
}

.dropdown-menu {
    position: absolute !important;
    right: 0 !important;
    left: auto !important;
    min-width: 250px;
    border-top: 3px solid var(--rojo) !important;
    background-color: var(--negro) !important;
    z-index: 1050;
}

.dropdown-toggle::after { display: none !important; }

.dropdown-item {
    color: #ffffff !important;
    text-transform: uppercase;
    font-size: 0.95rem;
    padding: 10px 20px;
    transition: 0.3s ease;
}

.dropdown-item:hover {
    background-color: var(--rojo) !important;
    color: #fff !important;
}

/* DISEÑO DE CARRUSEL */
.carousel-item {
    height: 70vh; 
    min-height: 450px;
    background: var(--negro);
}

.overlay-image {
    position: absolute;
    top: 0; left: 0; right: 0; bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 0.6;
}

.fw-black {
    font-weight: 900 !important;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.8);
}

.carousel-caption .lead {
    font-weight: 700 !important;
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    font-size: 1.5rem;
}

.carousel-caption { bottom: 25%; z-index: 2; }
.carousel-fade .carousel-item { transition-duration: 0.8s; }

/* DISEÑO DE CARTELERA */
#carteleraSpan {
    scroll-margin-top: 70px; /* Ajusta este valor según el grosor de tu navbar */
}

#estrenosCartelera { background-color: #920000; }

.poster-img {
    width: 100%;
    height: 400px;
    object-fit: cover; 
    object-position: center; 
    border-bottom: 4px solid var(--rojo);
    display: block;
}

.movie-card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    border-radius: 10px;
    background-color: var(--negro);
}

.movie-card:hover {
    transform: scale(1.05);
    box-shadow: 0 10px 20px rgba(0,0,0,0.5);
}

.movie-card .card-title {
    font-size: 1.1rem;
    margin-bottom: 0;
    text-transform: uppercase;
    letter-spacing: 1px;
}

#carteleraTitul {
    text-shadow: 2px 2px 4px #c70000;
    letter-spacing: 2px;
}

/* DISEÑO DE BOTÓN PRINCIPAL */
#btn-funciones-principal {
    background-color: #121212 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important; 
    border-radius: 4px !important; 
    padding: 18px 60px !important;
    display: inline-block !important;
    cursor: pointer !important;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1) !important;
    font-size: 1.5rem !important;
    font-weight: 700 !important;
    text-transform: uppercase !important;
    letter-spacing: 3px !important;
    line-height: 1 !important;
    box-shadow: inset 0 0 10px rgba(255, 255, 255, 0.1), 0 5px 15px rgba(0,0,0,0.5) !important;
}

#btn-funciones-principal:hover {
    background-color: #ffffff !important;
    color: #000000 !important;
    border-color: #ffffff !important;
    transform: translateY(-5px) !important;
    box-shadow: 0 10px 25px rgba(255, 255, 255, 0.2) !important;
}


/*DISEÑO DE NOTICIAS */
/* SECCIÓN DE NOTICIAS */
#zonaNoticias {
    border-top: 1px solid #1a1a1a;
    border-bottom: 1px solid #1a1a1a;
    overflow: hidden;
}

.noticias-track {
    display: flex;
    width: calc(350px * 12 + 2rem * 12);
    animation: scrollNoticias 35s linear infinite;
}

.noticias-track:hover {
    animation-play-state: paused;
}

.noticia-card {
    width: 350px;
    margin: 0 1rem;
    flex-shrink: 0;
    background-color: #111111;
    border: 1px solid #222222;
    border-radius: 12px;
    transition: transform 0.3s ease, border-color 0.3s ease, box-shadow 0.3s ease;
    cursor: pointer;
}

.noticia-card:hover {
    transform: translateY(-5px);
    border-color: var(--rojo);
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.15);
}

.noticia-body {
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
}

.noticia-tag {
    color: var(--rojo);
    font-size: 0.75rem;
    font-weight: 800;
    letter-spacing: 2px;
    text-transform: uppercase;
    margin-bottom: 0.5rem;
}

.noticia-titulo {
    color: #ffffff;
    font-size: 1.15rem;
    font-weight: 700;
    line-height: 1.4;
    margin-bottom: 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 75px;
}

#noticiasTitul, #trailersTitul {
    text-shadow: 2px 2px 4px #c70000;
    letter-spacing: 2px;
}

@keyframes scrollNoticias {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(calc(-350px * 6 - 2rem * 6));
    }
}

@media (max-width: 576px) {
    .noticia-card {
        width: 280px;
    }
    .noticias-track {
        width: calc(280px * 12 + 2rem * 12);
    }
    @keyframes scrollNoticias {
        0% {
            transform: translateX(0);
        }
        100% {
            transform: translateX(calc(-280px * 6 - 2rem * 6));
        }
    }
}

/* DISEÑO DE TRAILERS */
.trailer-list .nav-item { margin-bottom: 1.5rem; }

.trailer-link {
    color: #ffffff !important;
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    position: relative;
    padding: 0.5rem 0;
    transition: 0.3s;
    display: inline-block;
}

.trailer-link::after {
    content: '';
    position: absolute;
    width: 0; height: 3px;
    bottom: 0; left: 0;
    background-color: var(--rojo);
    transition: all 0.3s ease;
}

.trailer-link:hover::after, 
.trailer-link.active::after { width: 60%; }
.trailer-link.active {
    color: var(--rojo) !important;
}
.trailer-link:hover {
    color: var(--rojo) !important;  
}

.border-rojo-video {
    border: 2px solid #222;
    border-radius: 8px;
    overflow: hidden;
}

.border-rojo-video:hover {
    border-color: var(--rojo);
    transition: 0.5s;
}

/* DISEÑO DE CONTACTOS Y REDES */
.contact-card {
    transition: transform 0.3s ease;
}

.contact-card:hover {
    transform: translateY(-5px);
}

.contact-icon-wrapper {
    background: rgba(230, 0, 0, 0.05);
    width: 60px;
    height: 60px;
    line-height: 60px;
    margin: 0 auto;
    border-radius: 50%;
    border: 1px solid rgba(230, 0, 0, 0.2);
}

.contact-card h5 {
    letter-spacing: 2px;
    font-family: 'Inter', sans-serif;
}

.contact-card p {
    font-size: 1rem;
    color: #ccc;
    font-family: 'Inter', sans-serif;
}

.tracking-wider {
    letter-spacing: 3px;
}



.social-icon {
    color: var(--rojo);
    font-size: 3rem;
    transition: transform 0.3s ease, color 0.3s ease;
    text-decoration: none;
}

.social-icon:hover {
    color: #ff3333;
    transform: scale(1.2);
}

/* RESPONSIVE */
@media (max-width: 991.98px) {
    .navbar-collapse {
        background-color: var(--negro);
        border-top: 1px solid #333;
        margin-top: 10px;
    }
    .nav-item { padding: 15px 0; }
}

@media (max-width: 768px) {
    .poster-img { height: 250px; }
    .movie-card .card-title { font-size: 0.9rem; }
    #btn-funciones-principal {
        font-size: 1.2rem !important;
        padding: 14px 40px !important;
        width: 85% !important;
    }
}

@media (max-width: 576px) {
    .social-icon { font-size: 2rem; }
}