:root {
    --bg-color: #333333;      
    --text-color: #f1f1f1;    
    --accent-color: #ffffff;
    --brand-yellow: #ffcc00; /* Tu amarillo oficial */
    --font-main: 'Montserrat', sans-serif;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body {
    background-color: var(--bg-color);
    color: var(--text-color);
    font-family: var(--font-main);
    overflow-x: hidden;
}

/* --- LOADER --- */
.loader-container {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #000; z-index: 2000;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
}
.spinner {
    width: 40px; height: 40px;
    border: 4px solid rgba(255,255,255,0.3); border-top: 4px solid #fff;
    border-radius: 50%; animation: spin 1s linear infinite; margin-bottom: 15px;
}
@keyframes spin { 100% { transform: rotate(360deg); } }

/* --- HERO SECTION (CON EFECTO KEN BURNS) --- */
@keyframes kenburns {
    0% { transform: scale(1); }
    100% { transform: scale(1.1); }
}

.hero-section {
    height: 100vh;
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    position: relative;
    overflow: hidden;
}

/* Pseudo-elemento para la imagen de fondo animada */
.hero-section::before {
    content: "";
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background-color: #111;
    background-image: inherit; /* Hereda la imagen que pone JS */
    background-size: cover; 
    background-position: center 30%;
    z-index: 0;
    animation: kenburns 20s ease-in-out infinite alternate; /* Zoom lento y elegante */
}

.hero-overlay {
    position: absolute; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 1;
}

.hero-content { 
    position: relative; z-index: 2; 
    animation: fadeInUp 1s ease-out;
    padding: 20px;
    width: 100%;
}

.hero-logo { 
    width: 350px;       
    max-width: 90%;    
    margin-bottom: 10px;
    display: block;
    margin-left: auto;
    margin-right: auto;
}

#event-title {
    font-weight: 800; font-size: 3rem; 
    line-height: 1.1; text-transform: capitalize; margin-bottom: 5px;
}

/* SUBTÍTULO EN AMARILLO */
.event-subtitle { 
    font-weight: 300; 
    font-size: 1.2rem; 
    color: var(--brand-yellow); 
    margin-bottom: 30px; 
    letter-spacing: 1px;
}

.hero-buttons {
    display: flex; gap: 15px; justify-content: center; flex-wrap: wrap;
}

.btn-enter {
    padding: 12px 35px; background: transparent; color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.5); border-radius: 30px;
    font-family: var(--font-main); font-weight: 400; cursor: pointer;
    transition: all 0.3s ease;
}
.btn-enter:hover { background: white; color: black; transform: translateY(-3px); }

.btn-share {
    padding: 12px 35px; background: rgba(255,255,255,0.1); color: var(--text-color);
    border: 1px solid rgba(255,255,255,0.2); border-radius: 30px;
    font-family: var(--font-main); font-weight: 400; cursor: pointer;
    transition: all 0.3s ease;
}
.btn-share:hover { background: rgba(255,255,255,0.3); transform: translateY(-3px); }


/* --- HEADER --- */
.sticky-header {
    position: sticky; top: 0; z-index: 100;
    background: rgba(51, 51, 51, 0.95); backdrop-filter: blur(10px);
    padding: 10px 20px;
    display: flex; justify-content: space-between; align-items: center;
    border-bottom: 1px solid #444;
}

.logo-container {
    display: flex; align-items: center; gap: 15px;
}

.header-logo { height: 35px; width: auto; }

.expiration-header {
    font-size: 0.85rem; color: var(--brand-yellow);
    font-weight: 500; letter-spacing: 0.5px;
    white-space: nowrap;
}

.btn-primary {
    background: var(--text-color); color: #333;
    padding: 8px 15px; border-radius: 5px; text-decoration: none;
    font-weight: 800; font-size: 0.8rem; transition: background 0.3s;
}

/* --- MENSAJE CALIDAD --- */
.quality-banner {
    background: #222; border: 1px solid #444;
    color: #ccc; text-align: center; padding: 15px;
    margin: 20px; border-radius: 8px; font-size: 0.9rem;
    line-height: 1.5;
}

/* --- MASONRY GRID (CON FADE IN) --- */
.masonry-grid {
    padding: 10px;
    column-count: 4; column-gap: 10px;
}

.photo-card {
    display: inline-block; width: 100%; margin-bottom: 10px;
    border-radius: 4px; overflow: hidden;
    cursor: zoom-in; transition: transform 0.2s;
    
    /* Animación de aparición suave */
    animation: fadeInUp 0.8s ease-out;
    animation-fill-mode: both; 
}
.photo-card img { width: 100%; height: auto; display: block; background: #222; }

/* --- FOOTER & FLOATING --- */
footer { text-align: center; padding: 50px 20px; color: #666; font-size: 0.8rem; }
.footer-logo { height: 25px; margin-bottom: 15px; opacity: 0.6; }

.whatsapp-float {
    position: fixed; bottom: 20px; right: 20px; width: 50px; height: 50px;
    z-index: 999; transition: transform 0.3s;
}
.whatsapp-float:hover { transform: scale(1.1); }
.whatsapp-float img { width: 100%; height: 100%; }

.help-float {
    position: fixed; bottom: 20px; left: 20px; width: 40px; height: 40px;
    z-index: 999; border-radius: 50%; background: #444; color: #fff;
    border: 1px solid #666; font-weight: bold; font-size: 1.2rem;
    cursor: pointer; box-shadow: 0 4px 10px rgba(0,0,0,0.3);
}
.help-float:hover { background: #666; }

/* --- MODALS --- */
.modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.85); 
    z-index: 9999999 !important; 
    display: flex; align-items: center; justify-content: center;
}
.modal-box {
    background: #333; padding: 30px; border-radius: 10px;
    text-align: center; width: 90%; max-width: 400px;
    border: 1px solid #555;
    box-shadow: 0 10px 25px rgba(0,0,0,0.5);
}
.modal-box h3 { margin-bottom: 10px; font-weight: 800; }
.tag-us { color: #fff; font-weight: bold; margin-bottom: 10px; font-size: 1.1rem; }
.modal-buttons { display: flex; gap: 10px; justify-content: center; }
.btn-secondary { background: transparent; border: 1px solid #666; color: #fff; padding: 10px 20px; border-radius: 5px; cursor: pointer; }
.btn-primary-modal { background: #fff; border: none; color: #000; padding: 10px 20px; border-radius: 5px; font-weight: 800; cursor: pointer; }

.help-list { 
    text-align: left; margin: 20px 0; padding-left: 20px; color: #ccc; font-size: 0.9rem; 
}
.help-list li { margin-bottom: 10px; }
.help-box { max-width: 350px; }


/* --- ADMIN PANEL --- */
#admin-panel {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: #333333;
    color: var(--text-color); z-index: 9999;
    display: flex; align-items: center; justify-content: center;
}
.admin-box { text-align: center; padding: 20px; width: 100%; max-width: 500px;}
.admin-logo { width: 80px; margin-bottom: 20px; opacity: 0.9; }
.admin-box h1 { margin-bottom: 10px; font-size: 1.5rem; }
.admin-box p { color: #aaa; margin-bottom: 20px; }

.admin-box input {
    padding: 12px; width: 100%; margin-bottom: 15px;
    background: #222; border: 1px solid #555; color: white; text-align: center; border-radius: 5px;
}
.admin-box button {
    padding: 12px 25px; background: #fff; color: #000; border: none; cursor: pointer; font-weight: 800; border-radius: 5px; width: 100%;
}
.admin-actions { margin-top: 20px; display: flex; gap: 10px; justify-content: center; }

.btn-test-style {
    display: inline-block; padding: 10px 20px; background: transparent;
    border: 1px solid #666; color: #fff; text-decoration: none;
    border-radius: 5px; font-size: 0.9rem; transition: all 0.3s;
}
.btn-test-style:hover { border-color: #fff; background: #444; }

/* --- RESPONSIVE --- */
@media (max-width: 1024px) { .masonry-grid { column-count: 3; } }
@media (max-width: 768px) { .masonry-grid { column-count: 2; } #event-title { font-size: 2.2rem; } }
@media (max-width: 480px) { 
    .masonry-grid { column-count: 2; } 
    .hero-logo { width: 220px; }
    .expiration-header { font-size: 0.7rem; gap: 10px; }
    .header-logo { height: 30px; }
}
@keyframes fadeInUp { from { opacity: 0; transform: translateY(30px); } to { opacity: 1; transform: translateY(0); } }