/* === VARIABLES GLOBALES === */
:root {
    --primary: #7f937b;
    --primary-hover: #eabeb3;
    --bg-color: #2d3025;
    --card-bg: #FFFFFF;
    --text-main: #1F2937;
    --text-muted: #E5E7EB;
    --border: #E5E7EB;
}

/* === RESET Y BASE === */
* { margin: 0; padding: 0; box-sizing: border-box; font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif; }

body { background-color: var(--bg-color); color: var(--text-muted); line-height: 1.6; }

a { text-decoration: none; color: inherit; }

/* === NAVEGACIÓN RESPONSIVE === */
.navbar { 
    background-color: #1a1c15; padding: 15px 5%; display: flex; 
    justify-content: space-between; align-items: center; 
    position: sticky; top: 0; z-index: 100; border-bottom: 2px solid var(--primary-hover);
}
.navbar img { height: 40px; }

/* Botón hamburguesa (oculto en PC) */
.menu-toggle { display: none; font-size: 1.8rem; color: #fff; background: transparent; border: none; cursor: pointer; }

.nav-links { display: flex; gap: 20px; align-items: center; }
.nav-links a { color: #fff; font-weight: 600; font-size: 0.95rem; text-transform: uppercase; transition: color 0.3s; }
.nav-links a:hover { color: var(--primary); }

/* === ESTILOS PARA MÓVIL (Navbar) === */
@media (max-width: 850px) {
    .menu-toggle { display: block; }
    
    .nav-links { 
        display: none;
        flex-direction: column; 
        width: 100%; 
        position: absolute; 
        top: 72px;
        left: 0; 
        background-color: #1a1c15; 
        padding: 20px 0; 
        border-bottom: 2px solid var(--primary-hover);
    }
    
    .nav-links.active { display: flex; }
    
    .nav-links a { padding: 10px 0; width: 100%; text-align: center; }
}

/* === HERO (Index - Presentación) === */
.container {
    max-width: 1100px;
    margin: 0 auto;
}
.hero { 
    background: linear-gradient(rgba(45, 48, 37, 0.8), rgba(45, 48, 37, 0.9)), url('img/hero-bg.jpg') center/cover;
    padding: 100px 5%; text-align: center; border-bottom: 4px solid var(--primary-hover);
}
.hero h1 { font-size: 3.5rem; color: #fff; text-transform: uppercase; letter-spacing: 2px; margin-bottom: 15px; }
.hero p { font-size: 1.2rem; max-width: 600px; margin: 0 auto 30px; }
.hero img { max-width: 100%; }
.hero .date-location { background: var(--primary); display: inline-block; padding: 10px 25px; border-radius: 30px; color: #fff; font-weight: bold; font-size: 1.1rem; }

/* === SECCIÓN PRINCIPAL === */
.section { padding: 80px 5%; max-width: 1200px; margin: 0 auto; }
.section-title { text-align: center; font-size: 2.2rem; color: #fff; margin-bottom: 50px; text-transform: uppercase; }

.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; align-items: center; }
.map-container iframe { width: 100%; height: 400px; border-radius: 8px; border: none; }

/* === SECTION HEADER (Páginas interiores) === */
.section-header { text-align: center; padding: 60px 20px; background: linear-gradient(rgba(45, 48, 37, 0.8), rgba(45, 48, 37, 0.9)), url('img/hero-bg.jpg') center/cover; border-bottom: 2px solid #eabeb3; }
.section-header h1 { font-size: 2.5rem; text-transform: uppercase; color: #fff; }

/* === TARJETAS (Grid de tarjetas para charlas, talleres, conciertos) === */
.tarjetas-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 40px; padding: 50px 5%; max-width: 1000px; margin: 0 auto; }
.tarjeta-card { background: var(--card-bg); color: var(--text-main); border-radius: 8px; overflow: hidden; }
.tarjeta-img { width: 100%; height: 450px; object-fit: cover; }
.tarjeta-body { padding: 30px; }
.tarjeta-body h2 { font-size: 1.5rem; margin-bottom: 10px; color: var(--primary); }
.tarjeta-info { font-weight: bold; margin-bottom: 15px; color: #666; }
.btn-stripe { display: block; text-align: center; background: var(--primary); color: white; padding: 15px; border-radius: 6px; font-weight: bold; font-size: 1.1rem; margin-top: 20px; transition: background 0.3s; }
.btn-stripe:hover { background: var(--primary-hover); color: white; }

/* === EXPOSITORES (Grid de tarjetas) === */
.expositores-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 30px;
    padding: 60px 5%;
    max-width: 1200px;
    margin: 0 auto;
}

.card {
    background-color: #FFFFFF;
    color: #1F2937;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0,0,0,0.3);
    transition: transform 0.3s;
    text-align: center;
}
.card:hover { transform: translateY(-5px); }

.card-img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; background: #eee; }
.card-content { padding: 20px; }
.card-title { font-size: 1.2rem; margin-bottom: 5px; color: #1F2937; font-weight: bold; }
.card-subtitle { font-size: 0.9rem; color: #4F46E5; margin-bottom: 15px; font-weight: 600; text-transform: uppercase; }

.card-social { margin-top: 15px; display: flex; justify-content: center; gap: 15px; }
.card-social a { color: #6B7280; font-weight: bold; font-size: 0.9rem; }
.card-social a:hover { color: #4F46E5; }

.loader { text-align: center; padding: 50px; font-size: 1.2rem; grid-column: 1 / -1; }

/* === FOOTER === */
.footer { background-color: #1a1c15; padding: 50px 5% 20px; text-align: center; color: #888; border-top: 1px solid #333; }
.footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 30px; margin-bottom: 30px; text-align: left; max-width: 1200px; margin: 0 auto 40px; align-items: center; }
.footer-grid > div:last-child { text-align: right; }
.footer h4 { color: #fff; margin-bottom: 15px; text-transform: uppercase; }
.footer ul { list-style: none; }
.footer ul li { margin-bottom: 10px; }
.footer ul li a:hover { color: var(--primary); }

/* === GALERÍA DE FOTOS === */
.galeria-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

.galeria-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    transition: transform 0.3s, box-shadow 0.3s;
}

.galeria-item img:hover {
    transform: scale(1.03);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.4);
}

/* === LIGHTBOX === */
.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.92);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
    cursor: pointer;
    padding: 20px;
}

.lightbox img {
    max-width: 90%;
    max-height: 90vh;
    border-radius: 8px;
    box-shadow: 0 0 40px rgba(0, 0, 0, 0.6);
}

.lightbox-cerrar {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 3rem;
    color: #fff;
    cursor: pointer;
    line-height: 1;
}

/* === VÍDEOS === */
.videos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(450px, 1fr));
    gap: 40px;
    max-width: 1100px;
    margin: 0 auto;
}

.video-card {
    background: var(--card-bg);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.3);
}

.video-wrapper {
    position: relative;
    padding-bottom: 56.25%; /* 16:9 */
    height: 0;
    overflow: hidden;
}

.video-wrapper iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* Placeholder two-click (privacidad YouTube) */
.video-placeholder {
    cursor: pointer;
    background: #1a1a1a;
    display: flex;
    align-items: center;
    justify-content: center;
}

.video-thumb {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.7;
    transition: opacity 0.3s;
}

.video-placeholder:hover .video-thumb {
    opacity: 0.4;
}

.video-play-overlay {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -60%);
    z-index: 2;
    transition: transform 0.3s;
}

.video-placeholder:hover .video-play-overlay {
    transform: translate(-50%, -60%) scale(1.1);
}

.video-consent-text {
    position: absolute;
    bottom: 15px;
    left: 0;
    right: 0;
    text-align: center;
    color: #fff;
    font-size: 0.8rem;
    z-index: 2;
    padding: 0 15px;
    line-height: 1.4;
}

.video-info {
    padding: 25px;
    color: var(--text-main);
}

.video-info h3 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: var(--primary);
}

.video-info p {
    font-size: 0.95rem;
    color: #4B5563;
    line-height: 1.6;
}

/* === RESPONSIVE GENERAL === */
@media (max-width: 768px) {
    .grid-2 { grid-template-columns: 1fr; }
    .hero h1 { font-size: 2.5rem; }
    .videos-grid { grid-template-columns: 1fr; }
    .galeria-grid { grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); }
    .galeria-item img { height: 150px; }
}
