/* ============================================
   VARIABLES CSS MODERNAS - Gimnasio Humanístico 2024
============================================ */

:root {
    /* Paleta de colores profesional y equilibrada */
    --primary-blue: #1E3A5F;
    --secondary-blue: #2C5282;
    --accent-blue: #3182CE;
    --light-blue: #E6F3FF;

    --text-primary: #1A202C;
    --text-secondary: #4A5568;
    --text-muted: #718096;
    --text-white: #FFFFFF;

    /* Paleta de colores modernizada y balanceada */
    --primary-green: #0d3f27;
    --primary-green-bottom: #065e35;
    --secondary-green: #7ddfac;

    --light-green: #4CAF50;
    --accent-gold: #F4B942;
    --dark-gold: #E6A835;
    --soft-gold: #FDF6E3;
    --dark-gold-fondo: #e7ba49;

    /* Colores neutros modernos */
    --white: #FFFFFF;
    --black: #000000;
    --light-gray: #F8FAFB;
    --medium-gray: #E5E7EB;
    --dark-gray: #374151;
    --text-dark: #1F2937;
    --text-darkk: #333333;
    --text-light: #6B7280;
    --text-muted: #9CA3AF;

    /* Nuevos colores para modernizar */
    --soft-blue: #EBF8FF;
    --accent-blue: #3B82F6;
    --success-green: #10B981;
    --warm-white: #FEFEFE;

    /* Sombras modernas y suaves */
    --shadow-xs: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-xl: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    /* Gradientes modernos */
    --gradient-primary: linear-gradient(135deg, var(--primary-green) 0%, var(--secondary-green) 100%);
    --gradient-gold: linear-gradient(135deg, var(--accent-gold) 0%, var(--dark-gold) 100%);
    --gradient-overlay: linear-gradient(135deg, rgba(27, 94, 63, 0.9) 0%, rgba(27, 94, 63, 0.7) 100%);

    /* Espaciado moderno */
    --section-padding: 6rem 0;
    --container-padding: 0 1.5rem;

    /* Bordes redondeados */
    --border-radius-sm: 8px;
    --border-radius-md: 12px;
    --border-radius-lg: 16px;
    --border-radius-xl: 24px;
    --border-radius-full: 9999px;

    /* Transiciones */
    --transition-fast: 0.15s ease-out;
    --transition-normal: 0.3s ease-out;
    --transition-slow: 0.5s ease-out;
}

/* ============================================
   NAVEGACIÓN DE TABS - OPTIMIZADA Y COMPACTA
============================================ */

.eventos-tabs {
    background: var(--white);
    padding: 25px 0 0;
    position: sticky;
    top: 0;
    z-index: 100;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.container {
    max-width: 1780px;
    margin: 0 auto;
    padding: 0 24px;
}

.tabs-wrapper {
    display: flex;
    gap: 0;
    overflow-x: auto;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.tabs-wrapper::-webkit-scrollbar {
    display: none;
}

.tab-btn {
    flex: 1;
    min-width: 200px;
    padding: 15px 16px 12px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
    font-family: 'Montserrat', sans-serif;
}

.tab-btn::after {
    content: '';
    position: absolute;
    bottom: -3px;
    left: 0;
    width: 100%;
    height: 3px;
    background: var(--primary-green);
    transform: scaleX(0);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
}

.tab-btn.active::after {
    transform: scaleX(1);
}

.tab-btn:hover {
    background: var(--light-gray);
}

.tab-icon {
    font-size: 20px;
    color: var(--text-light);
    display: block;
    margin-bottom: 7px;
    transition: all 0.3s ease;
    line-height: 1.1;
}

.tab-btn.active .tab-icon {
    color: var(--primary-green);
    transform: scale(1.05);
}

.tab-title {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-light);
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: color 0.3s ease;
    line-height: 1.2;
}

.tab-btn.active .tab-title {
    color: var(--black);
}

/* ============================================
   CONTENIDO PRINCIPAL - OPTIMIZADO
============================================ */

.eventos-content {
    padding: 40px 0 60px;
    min-height: 60vh;
}

.tab-panel {
    display: none;
    animation: fadeIn 0.4s ease;
}

.tab-panel.active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(15px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ============================================
   LAYOUT DE 2 COLUMNAS - BALANCEADO
============================================ */

.evento-layout {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 48px;
    align-items: start;
    max-width: 100%;
}

/* ============================================
   COLUMNA DE INFORMACIÓN - MEJORADA
============================================ */

.evento-info {
    padding: 20px 0;
}

.evento-category {
    font-family: 'Playfair Display', serif;
    display: inline-block;
    font-size: 12px;
    font-weight: 900;
    letter-spacing: 1.5px;
    text-transform: uppercase;
    color: var(--primary-green);
    margin-bottom: 16px;
    opacity: 0.9;
}

.evento-title {
    font-family: 'Playfair Display', serif;
    font-size: 42px;
    font-weight: 900;
    color: var(--primary-green);
    margin-bottom: 24px;
    line-height: 1.15;
    letter-spacing: -0.8px;
}

.evento-description {
    font-size: 16px;
    line-height: 1.75;
    color: var(--black);
    margin-bottom: 36px;
    font-weight: 400;
}

.evento-stats {
    display: flex;
    gap: 40px;
    margin-bottom: 40px;
}

.stat-box {
    flex: 1;
}

.stat-number {
    font-size: 40px;
    font-weight: 900;
    font-family: 'Playfair Display', serif;
    color: var(--primary-green);
    display: block;
    margin-bottom: 8px;
    line-height: 1;
}

.stat-label {
    font-size: 13px;
    color: black;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
    line-height: 1.3;
}

.evento-actions {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.btn-primary {
    padding: 16px 32px;
    background: var(--primary-green);
    color: var(--white);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    box-shadow: 0 2px 8px rgba(13, 63, 39, 0.2);
}

.btn-primary:hover {
    background: var(--primary-green-bottom);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(13, 63, 39, 0.3);
}

.btn-primary:active {
    transform: translateY(0);
}

.btn-secondary {
    padding: 16px 32px;
    background: transparent;
    color: var(--primary-green);
    text-decoration: none;
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    border: 2px solid var(--primary-green);
    border-radius: var(--border-radius-sm);
    transition: all 0.3s ease;
    display: inline-flex;
    align-items: center;
    gap: 10px;
}

.btn-secondary:hover {
    background: var(--primary-green);
    color: var(--white);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(13, 63, 39, 0.2);
}

.btn-secondary:active {
    transform: translateY(0);
}

/* ============================================
   GALERÍA - OPTIMIZADA Y PROFESIONAL
============================================ */

.evento-gallery {
    height: 400px;
    width: 750px;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(4, 1fr);
    gap: 10px;
    overflow: hidden;
}

.gallery-item {
    position: relative;
    overflow: hidden;
    background: var(--light-gray);
    cursor: pointer;
}

.gallery-item:nth-child(1) {
    grid-column: 1 / 3;
    grid-row: 1 / 5;
}

.gallery-item:nth-child(2) {
    grid-column: 3 / 5;
    grid-row: 1 / 3;
}

.gallery-item:nth-child(3) {
    grid-column: 3 / 5;
    grid-row: 3 / 5;
}

.gallery-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.4, 0, 0.2, 1);
    filter: brightness(0.95);
}



/* Overlay sin estilos - dejado simple para eliminar después */
.gallery-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    opacity: 0;
    transition: opacity 0.3s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-item:hover .gallery-overlay {
    opacity: 1;
}

.gallery-icon {
    color: white;
    font-size: 28px;
}





/* ============================================
   LIGHTBOX
============================================ */

.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.95);
    z-index: 10000;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.lightbox.active {
    display: flex;
    animation: fadeIn 0.3s ease;
}

.lightbox-content {
    max-width: 90%;
    max-height: 90vh;
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from {
        opacity: 0;
        transform: scale(0.9);
    }
    to {
        opacity: 1;
        transform: scale(1);
    }
}

.lightbox-image {
    max-width: 100%;
    max-height: 90vh;
    object-fit: contain;
    border-radius: var(--border-radius-md);
}

.lightbox-close {
    position: fixed;
    top: 30px;
    right: 30px;
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.95);
    color: var(--text-dark);
    border: none;
    cursor: pointer;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}




/* Botones de navegación del lightbox */
.lightbox-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    color: black;
    border: none;
    cursor: pointer;
    font-size: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    z-index: 10001;
    border-radius: 50%;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.lightbox-prev {
    left: 30px;
}

.lightbox-next {
    right: 30px;
}

.lightbox-nav:hover {
    background: var(--white);
    transform: translateY(-50%) scale(1.1);
}

.lightbox-nav:active {
    transform: translateY(-50%) scale(0.95);
}

/* Contador de imágenes */
.lightbox-counter {
    position: fixed;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.95);
    color: black;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10001;
}









/* ============================================
   NAVEGACIÓN STICKY CON SCROLL HORIZONTAL
   ✨ Posición fija + scroll horizontal + ocultar iconos al scrollear
============================================ */

/* Navegación sticky para todas las pantallas */
.eventos-tabs {
    position: sticky;
    top: 0;
    z-index: 100;
    background: #ffffff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
}

/* Contenedor de tabs con scroll horizontal */
.tabs-wrapper {
    display: flex;
    overflow-x: auto;
    overflow-y: hidden;
    background: #ffffff;
    scroll-behavior: smooth;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: thin;
    flex-wrap: nowrap;
}

/* Ocultar scrollbar en móviles para diseño más limpio */
@media screen and (max-width: 768px) {
    .tabs-wrapper::-webkit-scrollbar {
        height: 4px;
    }
    
    .tabs-wrapper::-webkit-scrollbar-track {
        background: transparent;
    }
    
    .tabs-wrapper::-webkit-scrollbar-thumb {
        background: rgba(0, 0, 0, 0.2);
        border-radius: 4px;
    }
}

/* Tabs con flex para evitar wrap */
.tab-btn {
    flex-shrink: 0;
    white-space: nowrap;
}

/* Clase para cuando se hace scroll - ocultar iconos */
.eventos-tabs.scrolled .tab-icon {
    display: none;
}

/* Ajustar padding de tabs cuando no hay icono */
.eventos-tabs.scrolled .tab-btn {
    padding-top: 16px;
    padding-bottom: 16px;
}

/* Centrar texto cuando no hay icono */
.eventos-tabs.scrolled .tab-title {
    margin-bottom: 0;
}

/* Transición suave para iconos */
.tab-icon {
    transition: opacity 0.2s ease, transform 0.2s ease;
}

.eventos-tabs.scrolled .tab-icon {
    opacity: 0;
    transform: scale(0.8);
}

/* Opcional: Efecto de sombra más pronunciada al hacer scroll */
.eventos-tabs.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

















/* ============================================
   FLECHAS DE NAVEGACIÓN - VERSIÓN FINAL
   SOLO 1 TAB VISIBLE A LA VEZ
============================================ */

@media (max-width: 1023px) {
    /* Contenedor para las flechas */
    .tabs-wrapper-container {
        position: relative;
        width: 100%;
    }
    
    /* Asegurar que el wrapper tenga scroll horizontal */
    .eventos-tabs .tabs-wrapper {
        overflow-x: auto;
        overflow-y: hidden;
        scroll-behavior: smooth;
        scrollbar-width: none;
        -webkit-overflow-scrolling: touch;
        padding: 0.5rem 3.5rem; /* Aumentado el padding lateral para los controles */
        scroll-snap-type: x mandatory;
        display: flex;
        gap: 1rem;
    }
    
    .eventos-tabs .tabs-wrapper::-webkit-scrollbar {
        display: none;
    }
    
    /* TAB - SOLO 1 VISIBLE A LA VEZ */
    .tab-btn {
        min-width: calc(100% - 7rem); /* Resta el padding lateral total */
        max-width: calc(100% - 7rem);
        flex-shrink: 0;
        scroll-snap-align: center;
        border-right: none; /* Sin separadores cuando solo se ve 1 */
        position: relative;
        transition: all 0.3s ease;
    }
    
    /* FLECHAS - MÁS ANCHAS Y FÁCILES DE TOCAR */
    .tabs-nav-arrow {
        position: absolute;
        top: 0;
        bottom: 0;
        width: 55px; /* Aumentado de 35px a 55px */
        height: 100%;
        background: rgba(0, 0, 0, 0.75);
        display: flex;
        align-items: center;
        justify-content: center;
        z-index: 10;
        cursor: pointer;
        transition: all 0.3s ease;
        margin: 0;
        padding: 0;
    }
    
    .tabs-nav-arrow:hover {
        background: rgba(0, 0, 0, 0.85);
    }
    
    .tabs-nav-arrow svg {
        width: 28px; /* Aumentado de 20px a 28px */
        height: 28px;
        color: white;
        filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.3));
    }
    
    /* Flecha izquierda */
    .tabs-arrow-left {
        left: 0;
        opacity: 0;
        pointer-events: none;
    }
    
    .tabs-arrow-left.visible {
        opacity: 1;
        pointer-events: all;
    }
    
    /* Flecha derecha */
    .tabs-arrow-right {
        right: 0;
        opacity: 1;
        pointer-events: all;
    }
    
    .tabs-arrow-right.hidden {
        opacity: 0;
        pointer-events: none;
    }

    /* Asegurar que el contenedor no tenga padding extra */
    .eventos-tabs .container {
        padding: 0;
        margin: 0;
        max-width: 100%;
    }
    
    /* Efecto de hover más suave */
    .tab-btn:hover {
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }
    
    /* Card activa con mejor sombra */
    .tab-btn.active {
        box-shadow: 0 4px 16px rgba(13, 63, 39, 0.15);
        transform: translateY(-2px);
    }
}

/* ============================================
   TABLET HORIZONTAL (768px - 1023px)
============================================ */
@media (max-width: 1023px) and (min-width: 768px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 3.5rem;
        gap: 1rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 7rem);
        max-width: calc(100% - 7rem);
    }
    
    .tabs-nav-arrow {
        width: 55px;
    }
    
    .tabs-nav-arrow svg {
        width: 28px;
        height: 28px;
    }
}

/* ============================================
   TABLET VERTICAL (576px - 767px)
============================================ */
@media (max-width: 767px) and (min-width: 576px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 3.25rem;
        gap: 0.875rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 6.5rem);
        max-width: calc(100% - 6.5rem);
    }
    
    .tabs-nav-arrow {
        width: 50px; /* Aumentado de 32px a 50px */
    }
    
    .tabs-nav-arrow svg {
        width: 26px; /* Aumentado de 18px a 26px */
        height: 26px;
    }
}

/* ============================================
   MÓVIL GRANDE (480px - 575px)
============================================ */
@media (max-width: 575px) and (min-width: 480px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 3rem;
        gap: 0.75rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 6rem);
        max-width: calc(100% - 6rem);
    }
    
    .tabs-nav-arrow {
        width: 48px; /* Aumentado de 30px a 48px */
    }
    
    .tabs-nav-arrow svg {
        width: 24px; /* Aumentado de 16px a 24px */
        height: 24px;
    }
}

/* ============================================
   MÓVIL MEDIANO (375px - 479px)
============================================ */
@media (max-width: 479px) and (min-width: 375px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 2.75rem;
        gap: 0.625rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 5.5rem);
        max-width: calc(100% - 5.5rem);
    }
    
    .tabs-nav-arrow {
        width: 45px; /* Aumentado de 28px a 45px */
    }
    
    .tabs-nav-arrow svg {
        width: 22px; /* Aumentado de 15px a 22px */
        height: 22px;
    }
}

/* ============================================
   MÓVIL PEQUEÑO (320px - 374px)
============================================ */
@media (max-width: 374px) and (min-width: 320px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 2.5rem;
        gap: 0.5rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 5rem);
        max-width: calc(100% - 5rem);
    }
    
    .tabs-nav-arrow {
        width: 42px; /* Aumentado de 26px a 42px */
    }
    
    .tabs-nav-arrow svg {
        width: 20px; /* Aumentado de 14px a 20px */
        height: 20px;
    }
}

/* ============================================
   MÓVIL EXTRA PEQUEÑO (250px - 319px)
============================================ */
@media (max-width: 319px) and (min-width: 250px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 2.25rem;
        gap: 0.5rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 4.5rem);
        max-width: calc(100% - 4.5rem);
    }
    
    .tabs-nav-arrow {
        width: 38px; /* Aumentado de 24px a 38px */
    }
    
    .tabs-nav-arrow svg {
        width: 18px; /* Aumentado de 13px a 18px */
        height: 18px;
    }
}

/* ============================================
   MÓVIL ULTRA PEQUEÑO (menos de 250px)
============================================ */
@media (max-width: 249px) {
    .eventos-tabs .tabs-wrapper {
        padding: 0.5rem 2rem;
        gap: 0.5rem;
    }
    
    .tab-btn {
        min-width: calc(100% - 4rem);
        max-width: calc(100% - 4rem);
    }
    
    .tabs-nav-arrow {
        width: 35px;
    }
    
    .tabs-nav-arrow svg {
        width: 16px;
        height: 16px;
    }
}

/* ============================================
   MEJORAS DE ACCESIBILIDAD Y RENDIMIENTO
============================================ */
@media (max-width: 1023px) {
    /* Mejorar área de toque */
    .tabs-nav-arrow {
        -webkit-tap-highlight-color: transparent;
        user-select: none;
        -webkit-user-select: none;
    }
    
    /* Feedback visual al tocar */
    .tabs-nav-arrow:active {
        background: rgba(0, 0, 0, 0.9);
        transform: scale(0.97);
    }
    
    /* Transición suave del scroll */
    .tabs-wrapper {
        -webkit-overflow-scrolling: touch;
    }
    
    /* Mejorar rendimiento */
    .tab-btn {
        will-change: transform;
        backface-visibility: hidden;
        -webkit-backface-visibility: hidden;
    }
}

/* ============================================
   ORIENTACIÓN LANDSCAPE EN MÓVILES
============================================ */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .tabs-nav-arrow {
        width: 45px;
    }
    
    .tabs-nav-arrow svg {
        width: 22px;
        height: 22px;
    }
}

/* ============================================
   OPTIMIZACIÓN PARA PANTALLAS TOUCH
============================================ */
@media (max-width: 1023px) and (hover: none) and (pointer: coarse) {
    /* Dispositivos táctiles */
    .tabs-nav-arrow {
        width: 55px; /* Asegurar que sea ancho en touch */
        min-width: 55px;
    }
    
    .tabs-nav-arrow:active {
        background: rgba(0, 0, 0, 0.95);
    }
}

/* ============================================
   SMOOTH SCROLL BEHAVIOR
============================================ */
@media (prefers-reduced-motion: no-preference) {
    .tabs-wrapper {
        scroll-behavior: smooth;
    }
}

@media (prefers-reduced-motion: reduce) {
    .tabs-wrapper {
        scroll-behavior: auto;
    }
    
    .tab-btn,
    .tabs-nav-arrow {
        transition: none;
    }
}


















/* ============================================
   PANTALLAS GRANDES - Desktop (min-width: 1280px)
============================================ */
@media screen and (min-width: 1280px) {
    .container {
        max-width: 1400px;
    }

    .evento-layout {
        gap: 60px;
    }

    .evento-gallery {
        width: 800px;
        height: 450px;
    }
}

/* ============================================
   LAPTOP Y DESKTOP PEQUEÑO (max-width: 1200px)
============================================ */
@media screen and (max-width: 1200px) {
    .evento-layout {
        grid-template-columns: 1fr 0.9fr;
        gap: 40px;
    }

    .evento-gallery {
        width: 100%;
        height: 380px;
    }

    .evento-title {
        font-size: 38px;
    }
}

/* ============================================
   TABLETS Y IPAD (max-width: 1024px)
============================================ */
@media screen and (max-width: 1024px) {
    .evento-layout {
        grid-template-columns: 1fr;
        gap: 40px;
        max-width: 800px;
        margin: 0 auto;
    }

    .evento-info {
        order: 1;
    }

    .evento-gallery {
        order: 2;
        width: 100%;
        max-width: 100%;
        height: 420px;
        margin: 0 auto;
    }

    .evento-title {
        font-size: 36px;
        text-align: center;
        margin-bottom: 16px;
    }

    .evento-description {
        text-align: center;
        font-size: 15px;
    }

    .evento-category {
        display: block;
        text-align: center;
        font-size: 12px;
        margin-bottom: 12px;
    }

    .evento-fecha {
        margin: 0 auto 24px;
    }

    .evento-stats {
        justify-content: center;
        max-width: 600px;
        margin: 0 auto 32px;
    }

    .evento-actions {
        justify-content: center;
    }
}

/* ============================================
   TABLETS MEDIANOS (max-width: 820px)
============================================ */
@media screen and (max-width: 820px) {
    .container {
        padding: 0 20px;
    }

    .evento-category {
        font-size: 11px;
        font-weight: 600;
        letter-spacing: 0.8px;
        margin-bottom: 10px;
    }

    .evento-title {
        font-size: 32px;
        font-weight: 700;
        line-height: 1.2;
        margin-bottom: 14px;
    }

    .evento-description {
        font-size: 15px;
        line-height: 1.6;
        margin-bottom: 20px;
    }

    .evento-fecha {
        font-size: 13px;
        padding: 10px 18px;
        margin-bottom: 20px;
    }

    .evento-fecha-icon {
        font-size: 16px;
    }

    .evento-gallery {
        height: 380px;
    }

    .evento-stats {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
        margin-bottom: 28px;
    }

    .stat-box {
        text-align: center;
        padding: 18px;
        background: var(--light-gray);
        border-radius: var(--border-radius-md);
    }

    .stat-number {
        font-size: 32px;
        font-weight: 700;
    }

    .stat-label {
        font-size: 13px;
        font-weight: 500;
    }
}

/* ============================================
   MÓVILES GRANDES Y TABLETS PEQUEÑAS (max-width: 640px)
============================================ */
@media screen and (max-width: 640px) {
    .container {
        padding: 0 16px;
    }

    .evento-category {
        font-size: 10.5px;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 1px;
        margin-bottom: 8px;
    }

    .evento-title {
        font-size: 26px;
        font-weight: 700;
        line-height: 1.15;
        margin-bottom: 12px;
        letter-spacing: -0.3px;
    }

    .evento-fecha {
        font-size: 12px;
        font-weight: 600;
        padding: 8px 14px;
        margin-bottom: 14px;
    }

    .evento-fecha-icon {
        font-size: 14px;
    }

    .evento-description {
        font-size: 13.5px;
        line-height: 1.65;
        margin-bottom: 18px;
        text-align: left;
    }

    .evento-stats {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-bottom: 18px;
    }

    .stat-box {
        display: flex;
        align-items: center;
        justify-content: space-between;
        padding: 12px 16px;
        text-align: left;
        box-shadow: var(--shadow-sm);
    }

    .stat-number {
        font-size: 30px;
        font-weight: 700;
        line-height: 1;
    }

    .stat-label {
        font-size: 11.5px;
        font-weight: 500;
        margin-top: 2px;
    }

    .evento-actions {
        flex-direction: column;
        gap: 10px;
    }

    .btn-primary,
    .btn-secondary {
        width: 100%;
        text-align: center;
        justify-content: center;
        padding: 12px 24px;
        font-size: 13px;
        font-weight: 600;
        letter-spacing: 0.5px;
    }

    .evento-gallery {
        height: 280px;
        gap: 8px;
        grid-template-columns: repeat(2, 1fr);
        grid-template-rows: repeat(2, 1fr);
    }

    .gallery-item:nth-child(1) {
        grid-column: 1 / 3;
        grid-row: 1 / 2;
    }

    .gallery-item:nth-child(2) {
        grid-column: 1 / 2;
        grid-row: 2 / 3;
    }

    .gallery-item:nth-child(3) {
        grid-column: 2 / 3;
        grid-row: 2 / 3;
    }

    .lightbox-content {
        max-width: 92%;
        max-height: 80vh;
    }

    .lightbox-close {
        top: 16px;
        right: 16px;
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .lightbox-nav {
        width: 44px;
        height: 44px;
        font-size: 20px;
    }

    .lightbox-prev {
        left: 16px;
    }

    .lightbox-next {
        right: 16px;
    }

    .lightbox-counter {
        bottom: 20px;
        font-size: 12px;
        padding: 7px 16px;
    }
}

/* ============================================
   MÓVILES MEDIANOS (max-width: 480px)
============================================ */
@media screen and (max-width: 480px) {
    .container {
        padding: 0 14px;
    }

    .evento-category {
        font-size: 10px;
        font-weight: 700;
        letter-spacing: 0.9px;
        margin-bottom: 7px;
    }

    .evento-title {
        font-size: 23px;
        font-weight: 700;
        line-height: 1.15;
        letter-spacing: -0.4px;
        margin-bottom: 10px;
    }

    .evento-fecha {
        font-size: 11.5px;
        font-weight: 600;
        padding: 7px 12px;
        margin-bottom: 12px;
    }

    .evento-fecha-icon {
        font-size: 13px;
    }

    .evento-description {
        font-size: 13px;
        line-height: 1.6;
        margin-bottom: 16px;
    }

    .stat-box {
        padding: 11px 14px;
    }

    .stat-number {
        font-size: 28px;
        font-weight: 700;
    }

    .stat-label {
        font-size: 11px;
        font-weight: 500;
    }

    .btn-primary,
    .btn-secondary {
        padding: 11px 20px;
        font-size: 12.5px;
        font-weight: 600;
    }

    .evento-gallery {
        height: 260px;
        gap: 6px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 38px;
        height: 38px;
    }

    .lightbox-close {
        top: 14px;
        right: 14px;
        font-size: 17px;
    }

    .lightbox-nav {
        font-size: 19px;
    }

    .lightbox-prev {
        left: 14px;
    }

    .lightbox-next {
        right: 14px;
    }

    .lightbox-counter {
        bottom: 18px;
        font-size: 11.5px;
        padding: 6px 14px;
    }
}

/* ============================================
   MÓVILES PEQUEÑOS (max-width: 375px)
============================================ */
@media screen and (max-width: 375px) {
    .container {
        padding: 0 12px;
    }

    .evento-category {
        font-size: 9.5px;
        font-weight: 700;
        letter-spacing: 0.8px;
        margin-bottom: 6px;
    }

    .evento-title {
        font-size: 21px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.3px;
        margin-bottom: 9px;
    }

    .evento-fecha {
        font-size: 11px;
        font-weight: 600;
        padding: 6px 11px;
        margin-bottom: 11px;
    }

    .evento-fecha-icon {
        font-size: 12px;
    }

    .evento-description {
        font-size: 12.5px;
        line-height: 1.55;
        margin-bottom: 14px;
    }

    .evento-stats {
        gap: 10px;
        margin-bottom: 16px;
    }

    .stat-box {
        padding: 10px 13px;
    }

    .stat-number {
        font-size: 26px;
        font-weight: 700;
    }

    .stat-label {
        font-size: 10.5px;
        font-weight: 500;
    }

    .evento-actions {
        gap: 9px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 10px 18px;
        font-size: 12px;
        font-weight: 600;
    }

    .evento-gallery {
        height: 240px;
        gap: 5px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 36px;
        height: 36px;
    }

    .lightbox-close {
        top: 12px;
        right: 12px;
        font-size: 16px;
    }

    .lightbox-nav {
        font-size: 18px;
    }

    .lightbox-prev {
        left: 12px;
    }

    .lightbox-next {
        right: 12px;
    }

    .lightbox-counter {
        bottom: 16px;
        font-size: 11px;
        padding: 6px 13px;
    }
}

/* ============================================
   MÓVILES MUY PEQUEÑOS (max-width: 320px)
============================================ */
@media screen and (max-width: 320px) {
    .container {
        padding: 0 10px;
    }

    .evento-category {
        font-size: 9px;
        font-weight: 700;
        letter-spacing: 0.7px;
        margin-bottom: 6px;
    }

    .evento-title {
        font-size: 19px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.2px;
        margin-bottom: 8px;
    }

    .evento-fecha {
        font-size: 10.5px;
        font-weight: 600;
        padding: 6px 10px;
        margin-bottom: 10px;
    }

    .evento-fecha-icon {
        font-size: 11px;
    }

    .evento-description {
        font-size: 12px;
        line-height: 1.5;
        margin-bottom: 13px;
    }

    .evento-stats {
        gap: 9px;
        margin-bottom: 14px;
    }

    .stat-box {
        padding: 9px 12px;
    }

    .stat-number {
        font-size: 24px;
        font-weight: 700;
    }

    .stat-label {
        font-size: 10px;
        font-weight: 500;
    }

    .evento-actions {
        gap: 8px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 9px 16px;
        font-size: 11.5px;
        font-weight: 600;
    }

    .evento-gallery {
        height: 220px;
        gap: 4px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 34px;
        height: 34px;
    }

    .lightbox-close {
        top: 10px;
        right: 10px;
        font-size: 15px;
    }

    .lightbox-nav {
        font-size: 17px;
    }

    .lightbox-prev {
        left: 10px;
    }

    .lightbox-next {
        right: 10px;
    }

    .lightbox-counter {
        bottom: 14px;
        font-size: 10.5px;
        padding: 5px 12px;
    }
}

/* ============================================
   MÓVILES EXTRA PEQUEÑOS (max-width: 280px)
============================================ */
@media screen and (max-width: 280px) {
    .container {
        padding: 0 8px;
    }

    .evento-category {
        font-size: 8.5px;
        font-weight: 700;
        letter-spacing: 0.6px;
        margin-bottom: 5px;
    }

    .evento-title {
        font-size: 17px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.2px;
        margin-bottom: 7px;
    }

    .evento-fecha {
        font-size: 10px;
        font-weight: 600;
        padding: 5px 9px;
        margin-bottom: 9px;
    }

    .evento-fecha-icon {
        font-size: 10px;
    }

    .evento-description {
        font-size: 11.5px;
        line-height: 1.5;
        margin-bottom: 12px;
    }

    .evento-stats {
        gap: 8px;
        margin-bottom: 13px;
    }

    .stat-box {
        padding: 8px 11px;
    }

    .stat-number {
        font-size: 22px;
        font-weight: 700;
    }

    .stat-label {
        font-size: 9.5px;
        font-weight: 500;
    }

    .evento-actions {
        gap: 7px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 8px 14px;
        font-size: 11px;
        font-weight: 600;
    }

    .evento-gallery {
        height: 200px;
        gap: 4px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 32px;
        height: 32px;
    }

    .lightbox-close {
        top: 8px;
        right: 8px;
        font-size: 14px;
    }

    .lightbox-nav {
        font-size: 16px;
    }

    .lightbox-prev {
        left: 8px;
    }

    .lightbox-next {
        right: 8px;
    }

    .lightbox-counter {
        bottom: 12px;
        font-size: 10px;
        padding: 5px 11px;
    }
}

/* ============================================
   MÓVILES ULTRA PEQUEÑOS (max-width: 250px)
============================================ */
@media screen and (max-width: 250px) {
    .container {
        padding: 0 6px;
    }

    .evento-category {
        font-size: 8px;
        font-weight: 700;
        letter-spacing: 0.5px;
        margin-bottom: 4px;
    }

    .evento-title {
        font-size: 15px;
        font-weight: 700;
        line-height: 1.1;
        letter-spacing: -0.1px;
        margin-bottom: 6px;
    }

    .evento-fecha {
        font-size: 9.5px;
        font-weight: 600;
        padding: 5px 8px;
        margin-bottom: 8px;
    }

    .evento-fecha-icon {
        font-size: 9px;
    }

    .evento-description {
        font-size: 11px;
        line-height: 1.45;
        margin-bottom: 11px;
    }

    .evento-stats {
        gap: 7px;
        margin-bottom: 12px;
    }

    .stat-box {
        padding: 7px 10px;
    }

    .stat-number {
        font-size: 20px;
        font-weight: 700;
    }

    .stat-label {
        font-size: 9px;
        font-weight: 500;
    }

    .evento-actions {
        gap: 6px;
    }

    .btn-primary,
    .btn-secondary {
        padding: 7px 12px;
        font-size: 10.5px;
        font-weight: 600;
    }

    .evento-gallery {
        height: 180px;
        gap: 3px;
    }

    .lightbox-close,
    .lightbox-nav {
        width: 30px;
        height: 30px;
    }

    .lightbox-close {
        top: 6px;
        right: 6px;
        font-size: 13px;
    }

    .lightbox-nav {
        font-size: 15px;
    }

    .lightbox-prev {
        left: 6px;
    }

    .lightbox-next {
        right: 6px;
    }

    .lightbox-counter {
        bottom: 10px;
        font-size: 9.5px;
        padding: 4px 10px;
    }
}

/* ============================================
   ORIENTACIÓN LANDSCAPE EN MÓVILES
============================================ */
@media screen and (max-height: 500px) and (orientation: landscape) {
    .evento-title {
        font-size: 20px;
        margin-bottom: 8px;
    }

    .evento-fecha {
        font-size: 10.5px;
        padding: 6px 11px;
        margin-bottom: 10px;
    }

    .evento-description {
        font-size: 12px;
        margin-bottom: 16px;
    }

    .evento-gallery {
        height: 220px;
    }

    .evento-stats {
        margin-bottom: 20px;
    }

    .lightbox-nav {
        top: 50%;
        transform: translateY(-50%);
    }
}

/* ============================================
   MEJORAS DE RENDIMIENTO Y UX
============================================ */
@media screen and (max-width: 768px) {
    * {
        -webkit-tap-highlight-color: transparent;
    }

    html {
        scroll-behavior: smooth;
        -webkit-font-smoothing: antialiased;
        -moz-osx-font-smoothing: grayscale;
    }

    .btn-primary,
    .btn-secondary,
    .gallery-item {
        touch-action: manipulation;
        user-select: none;
        -webkit-user-select: none;
    }

    .btn-primary:active,
    .btn-secondary:active {
        transform: scale(0.97);
    }

    button, a {
        touch-action: manipulation;
    }
}