/* Reset básico */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* VARIABLES CON FONDO OSCURO + BLANCO Y NARANJA */
:root {
    /* Base oscura */
    --color-fondo: #1a1a1a;
    --color-surface: #2a2a2a;
    --color-surface-hover: #3a3a3a;
    
    /* Colores Plex - Naranja característico */
    --color-primario: #e5a00d;
    --color-primario-hover: #f8b015;
    --color-primario-light: #ffb300;
    
    /* TEXTOS - Combinación blanco/naranja */
    --color-texto: #ffffff;
    --color-texto-secundario: #e0e0e0;
    --color-texto-terciario: #b0b0b0;
    --color-texto-destacado: #e5a00d;
    
    /* Bordes */
    --color-bordes: #404040;
    
    /* Acentos adicionales */
    --color-acento-verde: #28a745;
    --color-acento-rojo: #dc3545;
    --color-acento-azul: #007bff;
}

body {
    font-family: Arial, sans-serif;
    line-height: 1.6;
    color: var(--color-texto);
    background-color: var(--color-fondo);
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ============================================ */
/* NUEVA ACTION BAR - ESTILOS UNIFICADOS */
/* ============================================ */

.action-bar {
    background: var(--color-surface);
    border-bottom: 1px solid var(--color-bordes);
    padding: 0.8rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
    transition: all 0.3s ease;
}

.action-bar .container {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    flex-wrap: wrap;
}

/* ESTILO UNIFICADO PARA TODOS LOS BOTONES */
.action-bar-btn {
    background: transparent;
    color: var(--color-texto);
    border: 2px solid var(--color-primario);
    padding: 0.6rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    white-space: nowrap;
    text-decoration: none;
}

/* ESTADO HOVER UNIFICADO */
.action-bar-btn:hover {
    background: var(--color-primario);
    color: var(--color-fondo);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(229, 160, 13, 0.3);
}

/* WhatsApp button - MANTIENE COLOR ESPECIAL SOLO EN HOVER */
.whatsapp-btn {
    border-color: #25D366;
}

.whatsapp-btn:hover {
    background: #25D366;
    border-color: #25D366;
    color: white;
}

/* ============================================ */
/* RESPONSIVE PARA ACTION BAR */
/* ============================================ */

@media (max-width: 768px) {
    .action-bar .container {
        gap: 1rem;
        padding: 0 15px;
    }
    
    .action-bar-btn {
        padding: 0.5rem 1.2rem;
        font-size: 0.8rem;
        flex: 1;
        min-width: 140px;
        justify-content: center;
    }
}

/* ============================================ */
/* CATÁLOGO HEADER STYLES - NUEVO */
/* ============================================ */

.catalogo-header {
    text-align: center;
    margin-bottom: 2.5rem;
    padding: 0 1rem;
}

.catalogo-badge {
    display: inline-block;
    background: var(--color-primario);
    color: var(--color-fondo);
    padding: 0.4rem 1.2rem;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    margin-bottom: 1rem;
}

.catalogo-title {
    font-size: 2.2rem;
    color: var(--color-texto);
    margin-bottom: 1.2rem;
    font-weight: 700;
}

.catalogo-text {
    max-width: 600px;
    margin: 0 auto;
}

.catalogo-desc {
    font-size: 1.1rem;
    color: var(--color-texto-secundario);
    line-height: 1.6;
    margin-bottom: 1rem;
}

.catalogo-desc strong {
    color: var(--color-texto-destacado);
}

.catalogo-highlight {
    font-size: 1.2rem;
    color: var(--color-texto-destacado);
    font-weight: 600;
    font-style: italic;
}

/* ============================================ */
/* RESPONSIVE PARA CATÁLOGO HEADER */
/* ============================================ */

@media (max-width: 768px) {
    .catalogo-header {
        margin-bottom: 2rem;
        padding: 0 0.5rem;
    }
    
    .catalogo-badge {
        font-size: 0.75rem;
        padding: 0.3rem 1rem;
    }
    
    .catalogo-title {
        font-size: 1.8rem;
    }
    
    .catalogo-desc {
        font-size: 1rem;
    }
    
    .catalogo-highlight {
        font-size: 1.1rem;
    }
}

/* Header NORMAL (se mueve con el scroll) */
.header {
    background: linear-gradient(135deg, var(--color-surface) 0%, var(--color-fondo) 100%);
    padding: 1rem 0;
    width: 100%;
    border-bottom: 1px solid var(--color-bordes);
}

.header .container {
    display: grid;
    grid-template-columns: 1fr 2fr 1fr;
    align-items: center;
    gap: 1.5rem;
}

/* Logo */
.logo {
    display: flex;
    justify-content: flex-start;
}

.logo-image {
    height: 45px;
    width: auto;
}

/* Texto centrado */
.header-center {
    text-align: center;
}

.header-center h1 {
    font-size: 2.6rem;
    margin-bottom: 0.3rem;
    color: var(--color-texto);
}

.header-center p {
    font-size: 0.9rem;
    color: var(--color-texto-secundario);
    margin: 0;
}

/* Header Actions - ELIMINADO */

/* Secciones generales */
.section {
    padding: 2rem 0;
    background: var(--color-fondo);
}

.section h2 {
    text-align: center;
    margin-bottom: 2rem;
    font-size: 2rem;
    color: var(--color-texto);
}

/* Placeholders */
.content-placeholder {
    background: var(--color-surface);
    padding: 3rem;
    text-align: center;
    border-radius: 12px;
    border: 2px dashed var(--color-bordes);
    color: var(--color-texto-secundario);
}

/* Testimonios */
.testimonios {
    background: var(--color-surface);
}

.testimonios-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
}

.testimonio-card {
    background: var(--color-fondo);
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    border: 1px solid var(--color-bordes);
}

.testimonio-card p {
    font-style: italic;
    margin-bottom: 1rem;
    color: var(--color-texto-secundario);
}

.testimonio-card span {
    color: var(--color-texto-terciario);
    font-weight: 600;
}

/* FAQ - NUEVO ESTILO */
.faq {
    background: var(--color-surface);
}

.faq-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 1.5rem;
    max-width: 1000px;
    margin: 0 auto;
}

.faq-item {
    background: var(--color-fondo);
    padding: 1.5rem;
    border-radius: 8px;
    border: 1px solid var(--color-bordes);
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.faq-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
}

.faq-item h4 {
    color: var(--color-texto-destacado);
    margin-bottom: 0.8rem;
    font-size: 1.1rem;
}

.faq-item p {
    color: var(--color-texto-secundario);
    line-height: 1.5;
}

/* Footer */
.footer {
    background: var(--color-surface);
    color: var(--color-texto);
    text-align: center;
    padding: 2rem 0;
    border-top: 1px solid var(--color-bordes);
}

/* ============================================ */
/* RESPONSIVE PARA MÓVILES */
/* ============================================ */

@media (max-width: 768px) {
    .container {
        padding: 0 15px;
    }
    
    .header .container {
        grid-template-columns: 1fr;
        gap: 1rem;
        text-align: center;
    }
    
    .logo {
        justify-content: center;
    }
    
    .header-center h1 {
        font-size: 2rem;
    }
    
    .header-center p {
        font-size: 0.8rem;
    }
    
    .section {
        padding: 1.5rem 0;
    }
    
    .section h2 {
        font-size: 1.5rem;
        padding: 0 10px;
    }
    
    .faq-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .content-placeholder {
        padding: 2rem;
    }
    
    .testimonios-grid {
        grid-template-columns: 1fr;
    }
    
    .logo-image {
        height: 60px;
    }
}

/* ============================================ */
/* MODAL STYLES */
/* ============================================ */

.modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    z-index: 1000;
    animation: fadeIn 0.3s ease;
}

.modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: var(--color-surface);
    border-radius: 12px;
    width: 90%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 10px 30px rgba(0,0,0,0.3);
    border: 1px solid var(--color-bordes);
}

.modal-body {
    display: flex;
    flex-direction: column;
    padding: 2rem;
}

.close-modal {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 2rem;
    color: var(--color-texto);
    cursor: pointer;
    z-index: 10;
}

.close-modal:hover {
    color: var(--color-primario);
}

.modal-image img {
    width: 100%;
    max-height: 500px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 1.5rem;
}

.modal-info h2 {
    color: var(--color-texto);
    margin-bottom: 1rem;
    font-size: 1.8rem;
}

.movie-details p {
    margin-bottom: 0.8rem;
    color: var(--color-texto-secundario);
    line-height: 1.5;
}

.movie-details strong {
    color: var(--color-texto);
}

/* Responsive Modal */
@media (min-width: 768px) {
    .modal-body {
        flex-direction: row;
        gap: 2rem;
    }
    
    .modal-image {
        flex: 0 0 300px;
    }
    
    .modal-image img {
        margin-bottom: 0;
    }
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* Hacer imágenes clickeables */
.carousel-item img {
    cursor: pointer;
}

/* OCULTAR BOTÓN X DEL MODAL SOLO EN MÓVIL */
@media (max-width: 768px) {
    .close-modal {
        display: none !important;
    }
    
    /* Hacer que el modal ocupe casi toda la pantalla en móvil */
    .modal-content {
        width: 95% !important;
        height: 95% !important;
    }
    
    /* Hacer la imagen del modal clickeable para cerrar en móvil */
    .modal-image img {
        cursor: pointer;
    }
}

/* ============================================ */
/* ESTILOS PARA TARJETAS DE CONTENIDO */
/* ============================================ */

.movie-title {
    color: var(--color-texto-destacado);
    font-weight: 600;
    font-size: 0.9rem;
}

.movie-platform {
    color: var(--color-texto-terciario);
    font-size: 0.8rem;
}

.release-date {
    color: var(--color-texto-destacado);
    font-weight: 600;
}

/* Badges de estado */
.badge-confirmed {
    background: rgba(229, 160, 13, 0.15);
    color: var(--color-texto-destacado);
    border: 1px solid var(--color-primario);
}

.badge-rumored {
    background: rgba(255, 193, 7, 0.15);
    color: #ffc107;
    border: 1px solid #ffc107;
}

.badge-production {
    background: rgba(13, 110, 253, 0.15);
    color: #0d6efd;
    border: 1px solid #0d6efd;
}