:root {
    --fondo-principal: #f3efe7;
    --texto-principal: #2f2f2f;
    --acento-cafe: #6b4f3f;
    --acento-claro: #d8c7a3;
    --oscuro-header: #612B2B;
    --blanco: #ffffff;
    --primary: #741d2d;
    --primary-light: #a02838;
    --gold: #fbbf24;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: system-ui, sans-serif;
}

body {
    background: var(--fondo-principal);
    color: var(--texto-principal);
}

/* ================= HEADER PRINCIPAL ================= */

.main-header {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    transition: background-color 0.4s ease, box-shadow 0.4s ease;
}

/* Estado inicial */
.main-header.transparent {
    background: transparent;
}

/* Estado scroll */
.main-header.scrolled {
    background: rgba(0, 0, 0, 0.9);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.4);
}

/* Contenedor */
.header-container {
    max-width: 1700px;
    margin: 0 auto;
    position: relative;
    padding: 1rem 2rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

/* Logo */
.logo-btn img {
    height: 55px;
    width: auto;
    display: block;
}

/* ===== NAV DESKTOP ===== */

.nav-links {
    display: flex;
    gap: 2rem;
}

.nav-links a {
    color: #fff;
    text-decoration: none;
    font-size: 1rem;
    letter-spacing: 0.5px;
    transition: opacity 0.3s ease;
}

.nav-links a:hover {
    opacity: 0.7;
}

/* ===== BOTÓN HAMBURGUESA ===== */

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    z-index: 1000;
    flex-direction: column;
    gap: 6px;
}

.menu-toggle span {
    width: 28px;
    height: 3px;
    background: white;
    border-radius: 2px;
    transition: all 0.3s ease;
}

/* ===== MENÚ MÓVIL ===== */

.mobile-nav {
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    background: rgba(0, 0, 0, 0.95);
    display: none;
    flex-direction: column;
    padding: 1.5rem;
    gap: 1rem;
    z-index: 999;
}

.mobile-nav.active {
    display: flex;
}

/* ================= BANNER SECCIÓN ================= */

.section-banner {
    position: relative;
    width: 100%;
    height: 420px;
    overflow: hidden;
    margin-top: 0;
}

/* Imagen fondo */
.banner-bg {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Overlay oscuro */
.banner-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to right,
            rgba(0, 0, 0, 0.65),
            rgba(0, 0, 0, 0.3));
    z-index: 1;
}

/* Contenido */
.banner-content {
    position: absolute;
    z-index: 2;
    bottom: 80px;
    left: 5%;
    color: white;
}

.banner-content h1 {
    font-size: 3rem;
    margin-bottom: 0.5rem;
}

.banner-content p {
    font-size: 0.9rem;
    opacity: 0.85;
}

.banner-content span {
    margin: 0 0.3rem;
}

/* ================= CONTAINER ================= */

.container {
    max-width: 1200px;
    margin: auto;
    padding: 2rem 1rem;
}

/* ================= GRID PRINCIPAL ================= */

.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.evento-card {
    background: var(--blanco);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
    display: flex;
    flex-direction: column;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.evento-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.12);
}

.evento-card img {
    width: 100%;
    height: 180px;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.evento-card:hover img {
    transform: scale(1.05);
}

.img-placeholder {
    height: 180px;
    background: linear-gradient(135deg, var(--primary), var(--primary-light));
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    color: rgba(255, 255, 255, 0.3);
}

.evento-info {
    padding: 1.2rem;
}

.badge {
    display: inline-block;
    background: var(--acento-claro);
    color: var(--oscuro-header);
    font-size: 0.75rem;
    padding: 0.25rem 0.6rem;
    border-radius: 8px;
    margin-bottom: 0.5rem;
    font-weight: 600;
}

.badge-campamento {
    background: #10b981;
    color: white;
}

.badge-evento {
    background: #3b82f6;
    color: white;
}

.evento-info h3 {
    margin-bottom: 0.5rem;
    color: var(--oscuro-header);
    font-size: 1.1rem;
}

.evento-info p {
    color: #6b7280;
    font-size: 0.9rem;
    margin-bottom: 0.3rem;
}

.evento-info button {
    margin-top: 1rem;
    background: var(--acento-cafe);
    color: white;
    border: none;
    padding: 0.6rem 1rem;
    border-radius: 10px;
    cursor: pointer;
    width: 100%;
    font-weight: 600;
    transition: background 0.3s ease, transform 0.2s ease;
}

.evento-info button:hover {
    background: var(--oscuro-header);
    transform: translateY(-2px);
}

/* ================= DETALLE ================= */

.evento-detalle {
    background: var(--blanco);
    padding: 2rem;
    border-radius: 20px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.08);
}

.evento-detalle img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    border-radius: 16px;
    margin: 1rem 0;
}

.detalle-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.9rem;
    color: var(--acento-cafe);
    margin: 1rem 0;
}

.detalle-meta i {
    color: var(--gold);
}

/* ================= GALERÍA RESPONSIVA ================= */

.galeria {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: 0.6rem;
    margin-top: 1.2rem;
}

/* Miniaturas */
.galeria img {
    width: 100%;
    aspect-ratio: 4 / 3;
    object-fit: cover;
    border-radius: 8px;
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.galeria img:hover {
    transform: scale(1.05);
}

/* ================= FAQ ================= */

.faq {
    margin-top: 2rem;
}

.faq h3 {
    color: var(--oscuro-header);
    margin-bottom: 1rem;
}

.faq details {
    margin-bottom: 0.8rem;
    background: var(--fondo-principal);
    padding: 1rem;
    border-radius: 8px;
    cursor: pointer;
}

.faq summary {
    font-weight: 600;
    color: var(--acento-cafe);
    list-style: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.faq summary::after {
    content: '+';
    font-size: 1.5rem;
    color: var(--acento-cafe);
}

.faq details[open] summary::after {
    content: '−';
}

.faq p {
    margin-top: 0.8rem;
    color: var(--texto-principal);
    line-height: 1.6;
}

/* ================= BOTONES ================= */

.volver {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--acento-claro);
    color: var(--oscuro-header);
    border: none;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    font-size: 0.85rem;
    cursor: pointer;
    margin-bottom: 1.2rem;
    transition: background 0.3s ease, transform 0.2s ease;
}

.volver:hover {
    background: var(--acento-cafe);
    color: white;
    transform: translateX(-3px);
}

/* ================= LIGHTBOX ================= */

.lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
}

.lightbox:not(.hidden) {
    opacity: 1;
    visibility: visible;
}

.lightbox-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    max-width: 90%;
    max-height: 90%;
}

.lightbox img {
    max-width: 100%;
    max-height: 80vh;
    border-radius: 12px;
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.6);
}

/* Botón cerrar */
.lightbox-close {
    position: absolute;
    top: 30px;
    right: 40px;
    font-size: 2.5rem;
    color: white;
    cursor: pointer;
    user-select: none;
    transition: transform 0.2s ease;
}

.lightbox-close:hover {
    transform: scale(1.1);
}

.ver-mas-btn {
    background: var(--acento-cafe);
    color: white;
    border: none;
    padding: 0.6rem 1.4rem;
    border-radius: 999px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: background 0.3s ease, transform 0.2s ease;
}

.ver-mas-btn:hover {
    background: var(--oscuro-header);
    transform: translateY(-2px);
}

/* ================= UTILIDADES ================= */

.hidden {
    display: none !important;
}

/* ================= RESPONSIVE ================= */

@media (max-width: 768px) {

    /* Header móvil */
    .nav-links {
        display: none;
    }

    .menu-toggle {
        display: flex;
    }

    /* Banner */
    .section-banner {
        height: 300px;
    }

    .banner-content h1 {
        font-size: 2.2rem;
    }

    /* Detalle */
    .evento-detalle {
        padding: 1rem;
    }

    /* Galería: scroll horizontal */
    .galeria {
        grid-auto-flow: column;
        grid-auto-columns: 80px;
        overflow-x: auto;
        padding-bottom: 0.5rem;
        scroll-snap-type: x mandatory;
    }

    .galeria img {
        scroll-snap-align: start;
    }

    .galeria::-webkit-scrollbar {
        height: 6px;
    }

    .galeria::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.3);
        border-radius: 4px;
    }

    /* Lightbox */
    .lightbox-close {
        top: 15px;
        right: 15px;
        font-size: 2rem;
    }
}