/* ==========================================================================
   PELÍCULAS ACEITOSAS - ESTILOS BASE Y CONFIGURACIÓN (TEMA: CAMPO PETROLERO)
   ========================================================================== */

/* Fuentes y Reset Global */
@import url('https://fonts.googleapis.com/css2?family=Barakah&family=Poppins:wght@300;400;600;700&family=Rowdies:wght@400;700&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    scroll-behavior: smooth;
}

body {
    font-family: 'Poppins', sans-serif;
    background-color: #0f1015; /* Negro Crudo / Petróleo */
    color: #e2e8f0;
    line-height: 1.6;
    overflow-x: hidden;
}

/* Barras de desplazamiento personalizadas (Estilo Tubería de Aceite) */
::-webkit-scrollbar {
    width: 10px;
}
::-webkit-scrollbar-track {
    background: #151821;
}
::-webkit-scrollbar-thumb {
    background: #ffb703;
    border-radius: 5px;
}
::-webkit-scrollbar-thumb:hover {
    background: #fb8500;
}

/* Líneas divisorias de secciones (Efecto oleoducto) */
hr {
    border: none;
    height: 4px;
    background: linear-gradient(90deg, transparent, #ffb703, transparent);
    margin: 40px auto;
    width: 80%;
}

/* ==========================================================================
   HEADER & NAVEGACIÓN (Estilo Cinépolis Industrial)
   ========================================================================== */
header {
    background: linear-gradient(180deg, #000000 80%, rgba(15, 16, 21, 0.9) 100%);
    border-bottom: 3px solid #ffb703; /* Tubería dorada */
    padding: 20px 5%;
    position: sticky;
    top: 0;
    z-index: 1000;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.logo {
    text-align: center;
}

.logo h1 {
    font-family: 'Rowdies', sans-serif;
    font-size: 1.8rem;
    color: #ffb703;
    text-transform: uppercase;
    text-shadow: 0 0 10px rgba(255, 183, 3, 0.3);
    letter-spacing: 1px;
}

.logo p {
    font-size: 0.85rem;
    color: #8a99ad;
    font-style: italic;
}

nav ul {
    list-style: none;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 15px;
}

nav ul li a {
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 20px;
    transition: all 0.3s ease;
    border: 1px solid transparent;
}

nav ul li a:hover {
    color: #ffb703;
    background-color: rgba(255, 183, 3, 0.1);
    border-color: #ffb703;
}

/* ==========================================================================
   1. SLIDER / CARRUSEL DE NOVEDADES
   ========================================================================== */
.slider-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 20px;
}

.slider-container h2 {
    font-size: 1.5rem;
    margin-bottom: 15px;
    color: #ffffff;
    border-left: 5px solid #ffb703;
    padding-left: 10px;
}

.slider {
    position: relative;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.5);
    border: 1px solid #2d3748;
}

.slide img {
    width: 100%;
    height: auto;
    min-height: 200px;
    max-height: 400px;
    object-fit: cover;
    display: block;
    filter: brightness(0.6) contrast(1.1);
}

.slide-caption {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(0deg, rgba(0,0,0,0.95) 0%, rgba(0,0,0,0.6) 70%, transparent 100%);
    padding: 30px 25px;
    color: #ffffff;
}

.slide-caption h3 {
    color: #ffb703;
    font-size: 1.4rem;
    margin-bottom: 5px;
}

.slide-caption p {
    font-size: 0.95rem;
    color: #cbd5e1;
}

/* ==========================================================================
   2. CARTELERA (Estructura Inteligente para las 13 Películas)
   ========================================================================== */
.cartelera-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.cartelera-container h2 {
    font-size: 1.6rem;
    margin-bottom: 25px;
    color: #ffffff;
    border-left: 5px solid #ffb703;
    padding-left: 10px;
}

/* El motor responsivo: Grid automático */
.peliculas-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 30px;
}

/* Tarjeta de Película (Estilo Cinépolis Premium) */
.pelicula-card {
    background-color: #161922;
    border-radius: 10px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 5px 15px rgba(0,0,0,0.3);
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
    border: 1px solid #232836;
    display: flex;
    flex-direction: column;
}

.pelicula-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(255, 183, 3, 0.2);
    border-color: #ffb703;
}

.pelicula-card img {
    width: 100%;
    height: 320px;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.pelicula-card:hover img {
    transform: scale(1.03);
}

/* Etiquetas dinámicas (Preventa y Estreno) */
.badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 4px 12px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 10;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
}

.preventa .badge {
    background-color: #ffb703;
    color: #000000;
}

.estreno .badge {
    background-color: #00b4d8;
    color: #ffffff;
}

/* Información de la Película */
.pelicula-info {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* Hace que todas las tarjetas midan lo mismo de alto */
    justify-content: space-between;
}

.pelicula-info h3 {
    font-size: 1.1rem;
    color: #ffffff;
    margin-bottom: 8px;
    font-weight: 600;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.pelicula-info p {
    font-size: 0.85rem;
    color: #94a3b8;
    margin-bottom: 15px;
    flex-grow: 1;
}

/* Botón interactivo "Ver" */
.btn-ver {
    display: block;
    text-align: center;
    background-color: transparent;
    color: #ffb703;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    padding: 10px;
    border: 2px solid #ffb703;
    border-radius: 6px;
    transition: all 0.3s ease;
}

.btn-ver:hover {
    background-color: #ffb703;
    color: #000000;
    box-shadow: 0 0 10px rgba(255, 183, 3, 0.4);
}


/* ==========================================================================
   3. SECCIÓN DE PROMOCIONES
   ========================================================================== */
.promos-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.promos-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    border-left: 5px solid #ffb703;
    padding-left: 10px;
}

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 20px;
}

.promo-card {
    background: linear-gradient(135deg, #1e2230 0%, #11141d 100%);
    padding: 25px;
    border-radius: 8px;
    border-left: 4px solid #ffb703;
    box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

.promo-card h3 {
    color: #ffb703;
    font-size: 1.2rem;
    margin-bottom: 8px;
}

.promo-card p {
    font-size: 0.9rem;
    color: #cbd5e1;
}


/* ==========================================================================
   4. DULCERÍA "UTOPÍA DE CARAMELOS" (Estilo Neón Dulce Retro)
   ========================================================================== */
.dulceria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    text-align: center;
}

.dulceria-container h2 {
    font-family: 'Rowdies', sans-serif;
    font-size: 1.8rem;
    color: #ff4d6d; /* Rosa neón dulce */
    text-shadow: 0 0 10px rgba(255, 77, 109, 0.3);
    margin-bottom: 5px;
}

.dulceria-container > p {
    color: #a0aec0;
    font-style: italic;
    margin-bottom: 25px;
    font-size: 0.95rem;
}

.dulces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.dulce-item {
    background-color: #1a121e; /* Tono oscuro con un toque púrpura candy */
    padding: 20px;
    border-radius: 12px;
    border: 1px dashed #ff758f;
    transition: all 0.3s ease;
}

.dulce-item:hover {
    transform: scale(1.02);
    border-style: solid;
    box-shadow: 0 5px 15px rgba(255, 117, 143, 0.2);
}

.dulce-item h4 {
    color: #ff758f;
    font-size: 1.15rem;
    margin-bottom: 6px;
}

.dulce-item p {
    font-size: 0.85rem;
    color: #cbd5e1;
}


/* ==========================================================================
   5. CLUB ACEITOSO (Puntos y Beneficios)
   ========================================================================== */
.club-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.club-container h2 {
    font-size: 1.5rem;
    margin-bottom: 20px;
    color: #ffffff;
    border-left: 5px solid #ffb703;
    padding-left: 10px;
}

.club-info {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    background: radial-gradient(circle at top left, #1e2538, #11141d);
    padding: 30px;
    border-radius: 12px;
    border: 1px solid #2d3748;
}

.club-feature h3 {
    color: #ffb703;
    font-size: 1.25rem;
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.club-feature p {
    font-size: 0.9rem;
    color: #94a3b8;
}


/* ==========================================================================
   FOOTER (Pie de página)
   ========================================================================== */
footer {
    background-color: #07080a;
    text-align: center;
    padding: 25px;
    margin-top: 60px;
    border-top: 1px solid #1a1e29;
    font-size: 0.85rem;
    color: #64748b;
}


/* ==========================================================================
   MEDIA QUERIES (Ajustes finos para la adaptabilidad responsiva)
   ========================================================================== */

/* Dispositivos Medianos (Tablets y Laptops chicas) */
@media (min-width: 768px) {
    header {
        flex-direction: row;
        justify-content: space-between;
        padding: 15px 5%;
    }
    
    .logo {
        text-align: left;
    }
    
    .logo h1 {
        font-size: 2rem;
    }
    
    .slider-container h2, 
    .cartelera-container h2, 
    .promos-container h2, 
    .club-container h2 {
        font-size: 1.8rem;
    }
}

/* Pantallas Grandes (Efectos visuales extra opcionales) */
@media (min-width: 1200px) {
    .peliculas-grid {
        grid-template-columns: repeat(4, 1fr); /* Forzar un orden excelente si sobra pantalla */
    }
}

/* ==========================================================================
   AJUSTES DEL LOGO Y NUEVO BOTÓN "DEJAR CINE" (EFECTO LÍQUIDO)
   ========================================================================== */

/* Contenedor para alinear logo y botón horizontalmente */
.logo-container {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap; /* Para que en celulares se acomode abajo si no cabe */
}

/* Estilo Base del Botón "Dejar Cine" */
.btn-dejar-cine {
    position: relative;
    display: inline-block;
    padding: 10px 20px;
    color: #e2e8f0;
    text-decoration: none;
    font-family: 'Rowdies', sans-serif;
    font-size: 0.95rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    border: 2px solid #ffb703;
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.4);
    overflow: hidden;
    transition: all 0.3s ease;
    z-index: 1;
}

/* Efecto de Brillo y Distorsión Líquida al pasar el cursor (Hover) */
.btn-dejar-cine:hover {
    color: #000000; /* El texto cambia a negro para resaltar sobre el fondo brillante */
    box-shadow: 0 0 20px #ffb703, 0 0 40px #ffb703; /* Brillo intenso amarillo */
    border-color: #fb8500;
    animation: liquid-wave 0.5s ease-in-out infinite alternate;
}

/* El truco del fondo líquido usando un pseudoelemento */
.btn-dejar-cine::before {
    content: '';
    position: absolute;
    top: 100%;
    left: -10%;
    width: 120%;
    height: 120%;
    background: #ffb703;
    border-radius: 40%; /* Esto crea las esquinas curvas que simularán el líquido */
    transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    z-index: -1;
}

/* Al hacer hover, el fondo de aceite amarillo sube e inunda el botón */
.btn-dejar-cine:hover::before {
    top: -10%;
    animation: liquid-spin 3s linear infinite;
}

/* ==========================================================================
   ANIMACIONES (Keyframes para el oleaje y fluidez)
   ========================================================================== */

/* Hace que el "aceite" gire creando el efecto de oleaje líquido de fondo */
@keyframes liquid-spin {
    0% {
        transform: rotate(0deg);
    }
    100% {
        transform: rotate(360deg);
    }
}

/* Hace que el texto y el cuerpo del botón tengan una ligera vibración fluida */
@keyframes liquid-wave {
    0% {
        transform: scale(1) skewX(0deg);
    }
    50% {
        transform: scale(1.03) skewX(-2deg);
    }
    100% {
        transform: scale(1) skewX(2deg);
    }
}

/* Ajuste responsivo para pantallas medianas/grandes */
@media (min-width: 768px) {
    .logo-container {
        justify-content: flex-start; /* Alinea a la izquierda al lado del título */
    }
}

/* ==========================================================================
   NUEVOS ESTILOS PARA PROMOCIONES CON IMÁGENES Y PRECIOS
   ========================================================================== */

.promos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
    gap: 30px;
    margin-top: 20px;
}

.promo-card {
    background: #161922;
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid #232836;
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column; /* Cambia a fila en pantallas grandes si lo deseas */
    transition: transform 0.3s ease, border-color 0.3s ease;
}

.promo-card:hover {
    transform: translateY(-5px);
    border-color: #ffb703;
}

/* Contenedor de la imagen de la promoción */
.promo-image-container {
    width: 100%;
    height: 180px;
    background-color: #0b0c10;
    overflow: hidden;
    border-bottom: 2px solid #ffb703; /* Línea divisoria estilo tubería */
}

.promo-image-container img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.promo-card:hover .promo-image-container img {
    transform: scale(1.05);
}

/* Contenido de la tarjeta */
.promo-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.promo-content h3 {
    color: #ffb703;
    font-size: 1.3rem;
    margin-bottom: 10px;
    font-family: 'Poppins', sans-serif;
    font-weight: 600;
}

.promo-content p {
    color: #cbd5e1;
    font-size: 0.9rem;
    margin-bottom: 20px;
    line-height: 1.5;
}

/* Fila inferior: Precios y etiquetas */
.promo-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #232836;
    padding-top: 15px;
    margin-top: auto;
}

.promo-precio {
    font-size: 1.5rem;
    font-weight: 700;
    color: #ffffff;
    text-shadow: 0 0 10px rgba(255, 255, 255, 0.2);
    font-family: 'Rowdies', sans-serif;
}

/* Etiquetas dinámicas dentro de las promociones */
.promo-badge {
    background-color: rgba(255, 183, 3, 0.1);
    color: #ffb703;
    border: 1px solid #ffb703;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
}

.promo-badge-ahorro {
    background-color: #00b4d8;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.75rem;
    font-weight: bold;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 0 8px rgba(0, 180, 216, 0.3);
}

/* Ajuste para pantallas medianas/grandes: Las tarjetas se vuelven horizontales */
@media (min-width: 768px) {
    .promo-card {
        flex-direction: row;
        height: 220px;
    }
    
    .promo-image-container {
        width: 40%;
        height: 100%;
        border-bottom: none;
        border-right: 2px solid #ffb703;
    }
    
    .promo-content {
        width: 60%;
    }
}

/* ==========================================================================
   DULCERÍA MEJORADA: GRID DE PRODUCTOS, PRECIOS Y DESCUENTOS
   ========================================================================== */

.dulceria-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.dulces-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 25px;
    margin-top: 30px;
}

/* Tarjeta individual de Dulces */
.dulce-item {
    background-color: #1a121e; /* Fondo oscuro morado/candy */
    border: 1px solid #ff758f; /* Borde rosa neón */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    display: flex;
    flex-direction: column;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.4);
    transition: transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275), box-shadow 0.3s ease;
}

.dulce-item:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 20px rgba(255, 117, 143, 0.3);
    border-style: solid;
    border-color: #ff4d6d;
}

/* Variante especial para el combo estrella */
.combo-destacado {
    border: 2px solid #ffb703; /* Resalta en amarillo petróleo */
    background: linear-gradient(180deg, #1a121e 70%, rgba(255, 183, 3, 0.05) 100%);
}
.combo-destacado:hover {
    box-shadow: 0 8px 20px rgba(255, 183, 3, 0.3);
    border-color: #fb8500;
}

/* Etiquetas de Descuento flotantes */
.dulce-badge-descuento {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: #ff4d6d;
    color: #ffffff;
    padding: 4px 10px;
    font-size: 0.8rem;
    font-weight: bold;
    border-radius: 20px;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(255, 77, 109, 0.4);
}

.dulce-badge-descuento.hot {
    background-color: #ffb703;
    color: #000000;
    box-shadow: 0 2px 8px rgba(255, 183, 3, 0.4);
}

/* Contenedor de la Imagen del dulce */
.dulce-img-wrapper {
    width: 100%;
    height: 160px;
    background-color: #0d0812;
    overflow: hidden;
}

.dulce-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.dulce-item:hover .dulce-img-wrapper img {
    transform: scale(1.06);
}

/* Contenido e información */
.dulce-info-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex-grow: 1;
}

.dulce-info-content h4 {
    font-size: 1.1rem;
    color: #ff758f;
    margin-bottom: 6px;
    font-weight: 600;
}

.combo-destacado h4 {
    color: #ffb703; /* Título amarillo para el combo especial */
}

.dulce-info-content p {
    font-size: 0.82rem;
    color: #cbd5e1;
    margin-bottom: 15px;
    line-height: 1.4;
}

/* Sección de Precios (Original tachado y actual) */
.dulce-precios {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: auto;
    border-top: 1px solid rgba(255, 117, 143, 0.1);
    padding-top: 10px;
}

.precio-original {
    font-size: 0.85rem;
    color: #8a99ad;
    text-decoration: line-through;
}

.precio-actual {
    font-size: 1.25rem;
    font-weight: bold;
    color: #ffffff;
    font-family: 'Rowdies', sans-serif;
    text-shadow: 0 0 5px rgba(255, 255, 255, 0.1);
}