/* css/cartelera.css */

:root { 
    --gold: #d4af37; 
    --dark: #0a0a0a; 
    --footer-bg: #330505;
    --card: #1a1a1a; 
    --gray: #888;
    --success: #25d366;
    --danger: #ff4444;
}

body { 
    font-family: 'Poppins', sans-serif; 
    background: var(--dark); 
    color: white; 
    margin: 0; 
    line-height: 1.6;
    overflow-x: hidden;
}

/* --- NAVEGACIÓN --- */
.nav-desktop {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 5%;
    background: rgba(150, 19, 19, 0.95);
    border-bottom: 2px solid var(--gold);
    position: sticky;
    top: 0;
    z-index: 1000;
    height: 80px;
}

.logo-link {
    display: flex;
    align-items: center;
    height: 100%;
}

.logo-link img {
    height: 60px;
    width: auto;
    display: block;
    object-fit: contain;
}

.menu-links { 
    display: flex; 
    gap: 30px; 
    align-items: center; 
}

.menu-links a { 
    color: white; 
    text-decoration: none; 
    font-size: 0.9rem; 
    transition: 0.3s; 
}

.menu-links a:hover { 
    color: var(--gold); 
}

.menu-toggle {
    display: none;
    color: var(--gold);
    font-size: 1.8rem;
    cursor: pointer;
}

.btn-admin {
    border: 1px solid var(--gold);
    padding: 8px 15px;
    border-radius: 20px;
    color: var(--gold) !important;
    font-weight: 600;
}

/* --- HEADER CARTELERA --- */
header.cartelera-header {
    padding: 80px 20px;
    text-align: center;
    background: linear-gradient(rgba(0,0,0,0.8), rgba(0,0,0,0.8)), url('https://www.entradafacil.pe/img/slider6.jpg');
    background-size: cover;
    background-position: center;
    border-bottom: 3px solid var(--gold);
}

header.cartelera-header h1 { 
    font-size: 3rem; 
    color: var(--gold); 
    margin: 0; 
    text-transform: uppercase; 
    font-weight: 700; 
}

header.cartelera-header p { 
    font-size: 1.2rem; 
    opacity: 0.9; 
    margin-top: 10px; 
}

/* --- GRID DE EVENTOS --- */
.container { 
    max-width: 1100px; 
    margin: 0 auto; 
    padding: 50px 20px; 
}

.grid-eventos { 
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(320px, 1fr)); 
    gap: 30px; 
}

.event-card { 
    background: var(--card); 
    border-radius: 20px; 
    overflow: hidden; 
    border: 1px solid #333;
    transition: transform 0.3s, border-color 0.3s;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.event-card:hover { 
    transform: translateY(-10px); 
    border-color: var(--gold); 
}

.event-img { 
    height: 220px; 
    background-size: cover; 
    background-position: center; 
    position: relative; 
}

.status-tag { 
    position: absolute; 
    top: 15px; 
    left: 15px; 
    background: var(--success); 
    color: white; 
    padding: 5px 15px; 
    font-size: 0.7rem; 
    font-weight: 700; 
    border-radius: 50px;
}

.event-info { 
    padding: 25px; 
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    justify-content: space-between;
}

.event-info h2 { 
    color: var(--gold); 
    font-size: 1.4rem; 
    margin-bottom: 15px; 
    font-weight: 700; 
}

.event-info p { 
    font-size: 0.9rem; 
    opacity: 0.8; 
    margin-bottom: 20px; 
    height: 65px; 
    overflow: hidden; 
}

.btn-entrar {
    display: block; 
    text-align: center; 
    background: var(--gold); 
    color: black; 
    padding: 15px; 
    border-radius: 10px; 
    text-decoration: none; 
    font-weight: 700; 
    transition: 0.3s;
}

.btn-entrar:hover { 
    background: white; 
}

/* --- FOOTER --- */
footer { 
    background: var(--footer-bg); 
    padding: 60px 5% 40px; 
    border-top: 2px solid #222; 
    margin-top: 80px; 
}

.footer-grid { 
    display: grid; 
    grid-template-columns: 1.5fr 1fr 1fr; 
    gap: 40px; 
    max-width: 1100px; 
    margin: 0 auto; 
}

.footer-brand img { 
    height: 70px; 
    width: auto; 
    display: block; 
    margin-bottom: 15px; 
}

.footer-bottom { 
    text-align: center; 
    margin-top: 50px; 
    padding-top: 20px; 
    border-top: 1px solid #222; 
    font-size: 0.8rem; 
    color: #fff; 
    opacity: 0.6; 
}

/* --- RESPONSIVE --- */
@media (max-width: 992px) {
    .nav-desktop { height: 70px; }
    .logo-link img { height: 50px; }
    .menu-toggle { display: block; position: absolute; right: 20px; }
    
    .menu-links {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 70px;
        left: 0;
        width: 100%;
        background: rgba(150, 19, 19, 0.98);
        padding: 30px 0;
        gap: 20px;
        border-bottom: 3px solid var(--gold);
        text-align: center;
    }
    
    .menu-links.active { display: flex; }
    .footer-grid { grid-template-columns: 1fr; text-align: center; }
    .footer-brand img { margin: 0 auto 15px; }
    header.cartelera-header h1 { font-size: 2.2rem; }
}