/* 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;
}

.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; }

/* DISEÑO DROPDOWN */
.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 FOOTER, CONTACTO Y MODAL */
.footer-link { text-decoration: none; color: white; transition: all 0.3s ease; display: block; padding: 8px 0; font-size: 1.15rem; font-weight: 600; text-transform: uppercase; letter-spacing: 1.5px; position: relative; }
.footer-link:hover { color: var(--rojo); }
.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); }
.btn-rojo-intenso { background-color: #E60000 !important; color: white !important; border: none !important; }

/* --- ESTRUCTURA HORIZONTAL DEFINITIVA --- */
.tarjeta-container-horizontal {
    background-color: var(--negro);
    border: 3px solid var(--rojo);
    border-radius: 20px;
    padding: 30px;
    display: flex;
    align-items: center;
    gap: 40px;
    margin: 0 auto 30px auto;
    max-width: 1000px;
    transition: all 0.4s ease;
    box-shadow: 0 10px 20px rgba(230, 0, 0, 0.3);
}

.tarjeta-container-horizontal:hover {
    transform: scale(1.02);
    box-shadow: 0 20px 40px var(--rojo);
}

.poster-horizontal {
    width: 300px;
    height: auto;
    border-radius: 15px;
}

/* Contenedor derecho: Título/Botón arriba, espacio, Horas/Salas abajo */
.contenido-derecha {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.header-tarjeta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: auto; /* Empuja el resto hacia abajo */
}

.titulo-card-horiz {
    font-size: 3.5rem !important;
    font-weight: 900 !important;
    text-transform: uppercase;
    text-shadow: 3px 3px 6px var(--rojo);
    color: #ffffff !important;
    margin: 0;
}

.btn-cartelera-estilo {
    background-color: #000000 !important;
    color: #ffffff !important;
    border: 2px solid #ffffff !important;
    padding: 10px 30px !important;
    text-transform: uppercase;
    font-weight: 900;
    text-decoration: none !important;
    border-radius: 4px;
    transition: all 0.3s ease !important;
}

.btn-cartelera-estilo:hover { background-color: #ffffff !important; color: #000000 !important; }

/* CAJAS HORA Y SALA */
.grid-funciones { display: flex; gap: 20px; margin-top: 25px; }
.caja-hora-sala {
    background-color: #1a1a1a;
    color: var(--blanco);
    border: 1px solid #555555;
    padding: 15px 25px;
    text-align: center;
    font-weight: 900;
    font-size: 1.2rem;
    border-radius: 8px;
}

@media (max-width: 768px) {
    .tarjeta-container-horizontal {
        flex-direction: column; /* Cambia a columna en móvil */
        text-align: center;
        padding: 20px;
    }

    .poster-horizontal {
        width: 100%; /* La imagen ocupa todo el ancho */
        max-width: 400px;
        margin-bottom: 20px;
    }

    .header-tarjeta {
        flex-direction: column; /* Título y botón se apilan */
        gap: 15px;
    }

    .titulo-card-horiz {
        font-size: 2.2rem !important; /* Título más pequeño para que no se corte */
    }

    .grid-funciones {
        justify-content: center; /* Centra las cajas de hora */
        margin: 20px 0;
    }

    .btn-cartelera-estilo {
        width: 100% !important; /* Botón ancho para ser fácil de tocar */
        margin-top: 10px;
    }
}

/* --- CONTENEDOR DE FECHAS CENTRADO --- */
.contenedor-fechas {
    width: 100%;
    max-width: 1000px;
    margin: 40px auto;
    padding: 15px;
    background-color: #920000;
    border-radius: 15px;
    overflow: visible;
    display: flex;         /* Asegura el centrado */
    justify-content: center;
}

.scroll-fechas {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding: 10px 5px;
    scrollbar-width: none;
    justify-content: center; /* Centrado en computadora */
    -webkit-overflow-scrolling: touch;
}

/* Caja de fecha estándar */
.caja-fecha-roja {
    background-color: var(--negro);
    color: var(--blanco);
    min-width: 90px;
    padding: 15px 10px;
    text-align: center;
    border-radius: 8px;
    font-weight: 900;
    cursor: pointer;
    transition: all 0.3s ease;
    flex-shrink: 0;
    border: 1px solid #920000;
    text-shadow: 2px 2px 4px #920000;
}

/* ESTILO "HOY": Fondo blanco, letras rojas, sombra negra */
.caja-fecha-roja.hoy {
    background-color: var(--blanco) !important;
    color: #920000 !important;
    border: 1px solid var(--blanco);
    text-shadow: 1px 1px 2px var(--negro); /* Sombreado negro */
}

.caja-fecha-roja:hover {
    transform: scale(1.05);
    border-color: var(--blanco);
}

/* Ajuste móvil para asegurar alineación */
@media (max-width: 768px) {
    .scroll-fechas {
        justify-content: flex-start; /* Permite scroll natural en móvil */
    }
}