/* ==========================================================================
   EVENTOS - ESTILO PREMIUM
   ========================================================================== */

/* Variables premium */
:root {
    /* Colores premium */
    --eventos-primary: #0056b3;
    --eventos-primary-dark: #003d82;
    --eventos-secondary: #4d94ff;
    --eventos-accent: #28a745;
    --eventos-accent-light: #20c997;
    --eventos-light: #f8f9fa;
    --eventos-dark: #1a1a1a;
    --eventos-gray: #6c757d;
    --eventos-white: #ffffff;
    
    /* Colores de tipos de eventos */
    --evento-webinar: #667eea;
    --evento-congress: #43e97b;
    --evento-workshop: #4facfe;
    --evento-international: #f093fb;
    
    /* Gradientes premium */
    --eventos-gradient: linear-gradient(135deg, #0056b3 0%, #003d82 100%);
    --eventos-gradient-light: linear-gradient(135deg, #4d94ff 0%, #1a75ff 100%);
    --eventos-gradient-accent: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    
    /* Sombras premium */
    --eventos-shadow: 0 15px 35px rgba(0, 86, 179, 0.15);
    --eventos-shadow-hover: 0 25px 50px rgba(0, 86, 179, 0.25);
    --eventos-shadow-card: 0 10px 30px rgba(0, 0, 0, 0.08);
    
    /* Tipografía premium */
    --font-primary: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* Reset y estilos base */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    font-size: 62.5%;
    scroll-behavior: smooth;
}

body {
    font-family: var(--font-primary);
    font-size: 1.6rem;
    line-height: 1.6;
    color: var(--eventos-dark);
    background: #fff;
    overflow-x: hidden;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    padding-top: 80px;
}

/* ==========================================================================
   NAVBAR FLOTANTE PREMIUM
   ========================================================================== */
.floating-navbar {
    position: fixed;
    top: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(25px);
    -webkit-backdrop-filter: blur(25px);
    border-radius: 20px;
    padding: 12px 30px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.18);
    border: 1px solid rgba(255, 255, 255, 0.4);
    z-index: 1000;
    transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
    width: 95%;
    max-width: 1200px;
    min-width: 300px;
}

.floating-navbar.hidden {
    transform: translateX(-50%) translateY(-120px);
    opacity: 0;
}

.floating-navbar.scrolled {
    background: rgba(255, 255, 255, 0.99);
    box-shadow: 0 20px 50px rgba(0, 0, 0, 0.25);
    padding: 10px 30px;
}

.nav-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    width: 100%;
}

.nav-logo {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 1.2rem;
    color: var(--eventos-dark);
    text-decoration: none;
    white-space: nowrap;
    flex-shrink: 0;
}

.logo-img {
    height: 35px;
    width: auto;
    border-radius: 8px;
}

.nav-menu {
    display: flex;
    list-style: none;
    gap: 20px;
    margin: 0;
    padding: 0;
    flex: 1;
    justify-content: center;
    align-items: center;
}

.nav-menu a {
    text-decoration: none;
    color: var(--eventos-dark);
    font-weight: 600;
    font-size: 0.9rem;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
    position: relative;
    padding: 8px 0;
    white-space: nowrap;
}

.nav-menu a:hover,
.nav-menu a.active {
    color: var(--eventos-primary);
}

.nav-menu a::after {
    content: '';
    position: absolute;
    width: 0;
    height: 2px;
    bottom: 4px;
    left: 0;
    background: var(--eventos-gradient);
    transition: width 0.3s ease;
    border-radius: 2px;
}

.nav-menu a:hover::after,
.nav-menu a.active::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
    white-space: nowrap;
    flex-shrink: 0;
}

.btn-login {
    background: var(--eventos-gradient);
    color: white;
    padding: 10px 20px;
    border-radius: 20px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.4);
    border: none;
    cursor: pointer;
}

.btn-login:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(0, 86, 179, 0.5);
    background: var(--eventos-gradient-light);
}

.hamburger-btn {
    display: none;
    flex-direction: column;
    justify-content: space-between;
    width: 24px;
    height: 18px;
    background: transparent;
    border: none;
    cursor: pointer;
    padding: 0;
}

.hamburger-btn span {
    display: block;
    height: 2px;
    width: 100%;
    background-color: var(--eventos-dark);
    transition: all 0.3s ease;
    border-radius: 2px;
}

.nav-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
    z-index: 998;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
}

/* ==========================================================================
   HERO EVENTOS PREMIUM
   ========================================================================== */
.eventos-hero {
    position: relative;
    height: 85vh;
    min-height: 700px;
    margin-top: -80px;
    padding-top: 80px;
}

.hero-background {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

.hero-container {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 2;
    width: 100%;
    max-width: 2000px;
    padding: 0 2rem;
}

.hero-bg-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    filter: brightness(0.7);
}

.hero-content {
    max-width: 800px;
    color: white;
    position: relative;
    z-index: 2;
    padding: 4rem 0;
    margin-left: 19%;
    margin-top: 5%;
}

.hero-title {
    font-size: 6.5rem;
    font-weight: 900;
    margin-bottom: 2rem;
    line-height: 1.1;
    text-transform: uppercase;
    letter-spacing: -1px;
    text-shadow: 3px 3px 6px rgba(0, 0, 0, 0.5);
    animation: fadeInUp 1s ease 0.2s both;
}

.hero-subtitle {
    font-size: 2.8rem;
    font-weight: 600;
    margin-bottom: 3rem;
    color: rgba(255, 255, 255, 0.95);
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.4);
    animation: fadeInUp 1s ease 0.4s both;
}

.hero-description {
    font-size: 1.8rem;
    line-height: 1.7;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 4rem;
    max-width: 700px;
    text-shadow: 1px 1px 2px rgba(0, 0, 0, 0.3);
    animation: fadeInUp 1s ease 0.6s both;
}

.hero-stats {
    display: flex;
    gap: 4rem;
    margin: 5rem 0;
    animation: fadeInUp 1s ease 0.8s both;
}

.stat-item {
    display: flex;
    align-items: center;
    gap: 2rem;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
    padding: 2rem;
    border-radius: 15px;
    transition: all 0.3s ease;
    min-width: 250px;
}

.stat-item:hover {
    background: rgba(255, 255, 255, 0.2);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 3.5rem;
    color: var(--eventos-secondary);
    opacity: 0.9;
}

.stat-content {
    display: flex;
    flex-direction: column;
}

.stat-number {
    font-size: 4rem;
    font-weight: 900;
    line-height: 1;
    margin-bottom: 0.5rem;
    background: linear-gradient(135deg, #fff, #f0f0f0);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

.stat-label {
    font-size: 1.4rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    opacity: 0.9;
}

.hero-buttons {
    display: flex;
    gap: 2.5rem;
    justify-content: flex-start;
    animation: fadeInUp 1s ease 1s both;
}

/* ==========================================================================
   CONTENEDORES POR SECCIÓN
   ========================================================================== */
.section-container {
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 0 2rem;
}
/* ==========================================================================
   FILTROS GLOBALES Y ESTILOS ADICIONALES
   ========================================================================== */

/* Filtros globales */
.eventos-filtros-compact.global-filters {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

/* Controles de vista para eventos pasados */
.past-view-controls {
    display: flex;
    justify-content: center;
    margin: 2rem 0 3rem 0;
}

/* Contador para eventos pasados */
.past-results-count {
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--eventos-primary);
    padding: 1.5rem;
    background: white;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.1);
    min-width: 250px;
}

.past-results-count span {
    font-size: 2.2rem;
    font-weight: 900;
    color: var(--eventos-primary);
}

/* Vista de lista para eventos pasados */
.eventos-archivo-lista {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 4rem;
}

.evento-pasado-lista-item {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    box-shadow: var(--eventos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.evento-pasado-lista-item.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.evento-pasado-lista-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--eventos-shadow);
    border-color: var(--eventos-primary);
}

.evento-pasado-lista-item.hidden {
    display: none !important;
}

.pasado-lista-imagen {
    width: 180px;
    height: 140px;
    border-radius: 12px;
    overflow: hidden;
    flex-shrink: 0;
}

.pasado-lista-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-pasado-lista-item:hover .pasado-lista-imagen img {
    transform: scale(1.05);
}

.pasado-lista-contenido {
    flex: 1;
}

.pasado-lista-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.pasado-lista-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    display: inline-block;
}

.pasado-lista-badge.webinar {
    background: linear-gradient(135deg, var(--evento-webinar), #764ba2);
}

.pasado-lista-badge.workshop {
    background: linear-gradient(135deg, var(--evento-workshop), #00f2fe);
}

.pasado-lista-badge.congress {
    background: linear-gradient(135deg, var(--evento-congress), #38f9d7);
}

.pasado-lista-fecha {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--eventos-gray);
}

.pasado-lista-titulo {
    font-size: 1.8rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--eventos-dark);
    line-height: 1.3;
}

.pasado-lista-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.pasado-lista-descripcion {
    font-size: 1.4rem;
    color: var(--eventos-gray);
    line-height: 1.6;
    margin-bottom: 2rem;
}

/* Mensaje cuando no hay eventos */
.no-events-message {
    grid-column: 1 / -1;
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border-radius: 16px;
    border: 2px dashed #dee2e6;
    margin: 2rem 0;
}

.no-events-message i {
    font-size: 3rem;
    color: #95a5a6;
    margin-bottom: 1.5rem;
}

.no-events-message h3 {
    color: var(--eventos-dark);
    margin-bottom: 0.5rem;
    font-size: 1.5rem;
}

.no-events-message p {
    color: var(--eventos-gray);
    font-size: 1rem;
}

/* Asegurar que los filtros sean responsivos */
@media (max-width: 768px) {
    .eventos-filtros-compact.global-filters {
        padding: 2.5rem 0;
    }
    
    .past-view-controls {
        margin: 1.5rem 0 2.5rem;
    }
    
    .past-results-count {
        padding: 1rem;
        font-size: 1.4rem;
        min-width: 200px;
    }
    
    .past-results-count span {
        font-size: 2rem;
    }
    
    /* Vista de lista responsive para eventos pasados */
    .evento-pasado-lista-item {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .pasado-lista-imagen {
        width: 100%;
        height: 180px;
    }
    
    .pasado-lista-header {
        text-align: center;
        justify-content: center;
    }
    
    .pasado-lista-titulo {
        text-align: center;
    }
    
    .pasado-lista-meta {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .no-events-message {
        padding: 3rem 1.5rem;
        margin: 1rem 0;
    }
    
    .no-events-message i {
        font-size: 2.5rem;
    }
    
    .no-events-message h3 {
        font-size: 1.3rem;
    }
    
    .evento-pasado-lista-item {
        padding: 1.5rem;
    }
    
    .pasado-lista-imagen {
        height: 150px;
    }
    
    .pasado-lista-header {
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .pasado-lista-titulo {
        font-size: 1.6rem;
    }
}

/* Mejoras para eventos pasados con filtros */
.evento-pasado-card.hidden,
.evento-pasado-lista-item.hidden {
    display: none;
}

/* Mejorar la transición de los filtros */
.evento-card,
.evento-lista-item,
.evento-pasado-card,
.evento-pasado-lista-item {
    transition: all 0.3s ease;
}

/* Animación suave para cambios de vista */
.eventos-grid,
.eventos-lista,
.eventos-archivo,
.eventos-archivo-lista {
    transition: opacity 0.3s ease;
}

/* Animaciones específicas para vista de lista de eventos pasados */
.evento-pasado-lista-item:nth-child(1) { animation-delay: 0.1s; }
.evento-pasado-lista-item:nth-child(2) { animation-delay: 0.2s; }
.evento-pasado-lista-item:nth-child(3) { animation-delay: 0.3s; }
.evento-pasado-lista-item:nth-child(4) { animation-delay: 0.4s; }
.evento-pasado-lista-item:nth-child(5) { animation-delay: 0.5s; }
/* ==========================================================================
   FILTROS COMPACTOS
   ========================================================================== */
.eventos-filtros-compact {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    padding: 4rem 0;
    border-bottom: 1px solid rgba(0, 86, 179, 0.1);
}

.filtros-header-compact {
    text-align: center;
    margin-bottom: 3rem;
}

.filtros-title-compact {
    font-size: 2.8rem;
    font-weight: 900;
    color: var(--eventos-dark);
    margin-bottom: 0.8rem;
    letter-spacing: -0.5px;
}

.filtros-subtitle-compact {
    font-size: 1.6rem;
    color: var(--eventos-gray);
    max-width: 500px;
    margin: 0 auto;
}

.filtros-grid-compact {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 2rem;
    max-width: 1000px;
    margin: 0 auto;
}

.filtro-section-compact {
    background: white;
    padding: 2rem;
    border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
    border: 1px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
}

.filtro-section-compact:hover {
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.08);
    border-color: var(--eventos-primary);
    transform: translateY(-2px);
}

.filtro-header-compact {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1.5rem;
}

.filtro-icon-compact {
    font-size: 1.8rem;
    color: var(--eventos-primary);
    width: 24px;
    text-align: center;
}

.filtro-title-compact {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--eventos-dark);
    margin: 0;
}

.filtro-select-compact {
    width: 100%;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 86, 179, 0.2);
    border-radius: 8px;
    font-size: 1.4rem;
    font-family: var(--font-primary);
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: var(--eventos-dark);
}

.filtro-select-compact:focus {
    outline: none;
    border-color: var(--eventos-primary);
    box-shadow: 0 0 0 2px rgba(0, 86, 179, 0.1);
}

.search-box-compact {
    display: flex;
    gap: 0;
    height: 42px;
}

.search-input-compact {
    flex: 1;
    padding: 1rem 1.2rem;
    border: 1px solid rgba(0, 86, 179, 0.2);
    border-right: none;
    border-radius: 8px 0 0 8px;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    color: var(--eventos-dark);
}

.search-input-compact:focus {
    outline: none;
    border-color: var(--eventos-primary);
}

.search-btn-compact {
    background: var(--eventos-gradient);
    color: white;
    border: none;
    padding: 1rem 1.5rem;
    border-radius: 0 8px 8px 0;
    cursor: pointer;
    font-size: 1.4rem;
    transition: all 0.3s ease;
    min-width: 45px;
}

.search-btn-compact:hover {
    background: var(--eventos-gradient-light);
}

.view-toggle-compact {
    display: flex;
    gap: 0.5rem;
    background: #f8f9fa;
    padding: 0.4rem;
    border-radius: 8px;
    height: 42px;
}

.view-btn-compact {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    padding: 0.8rem;
    border: none;
    background: transparent;
    border-radius: 6px;
    font-size: 1.3rem;
    font-weight: 600;
    color: var(--eventos-gray);
    cursor: pointer;
    transition: all 0.3s ease;
    white-space: nowrap;
}

.view-btn-compact.active {
    background: white;
    color: var(--eventos-primary);
    box-shadow: 0 2px 8px rgba(0, 86, 179, 0.1);
}

.view-btn-compact i {
    font-size: 1.4rem;
}

/* ==========================================================================
   RESPONSIVE PARA FILTROS COMPACTOS
   ========================================================================== */
@media (max-width: 992px) {
    .eventos-filtros-compact {
        padding: 3rem 0;
    }
    
    .filtros-title-compact {
        font-size: 2.4rem;
    }
    
    .filtros-subtitle-compact {
        font-size: 1.5rem;
    }
    
    .filtros-grid-compact {
        gap: 1.5rem;
    }
    
    .filtro-section-compact {
        padding: 1.5rem;
    }
}

@media (max-width: 768px) {
    .filtros-grid-compact {
        grid-template-columns: 1fr;
        max-width: 500px;
    }
    
    .filtros-title-compact {
        font-size: 2.2rem;
    }
    
    .filtro-header-compact {
        margin-bottom: 1.2rem;
    }
}

@media (max-width: 480px) {
    .eventos-filtros-compact {
        padding: 2.5rem 0;
    }
    
    .filtros-title-compact {
        font-size: 2rem;
    }
    
    .filtros-subtitle-compact {
        font-size: 1.4rem;
        padding: 0 1rem;
    }
    
    .filtro-section-compact {
        padding: 1.5rem;
    }
    
    .view-btn-compact span {
        display: none;
    }
    
    .view-btn-compact i {
        margin: 0;
    }
}

/* ==========================================================================
   SECCIONES COMUNES
   ========================================================================== */
.eventos-proximos,
.eventos-anteriores {
    padding: 10rem 0;
}

.section-header {
    text-align: center;
    margin-bottom: 6rem;
}

.section-title {
    font-size: 4.5rem;
    font-weight: 900;
    color: var(--eventos-dark);
    margin-bottom: 2rem;
    text-transform: uppercase;
    letter-spacing: -1px;
    position: relative;
    display: inline-block;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: -1rem;
    left: 50%;
    transform: translateX(-50%);
    width: 120px;
    height: 6px;
    background: var(--eventos-gradient);
    border-radius: 3px;
}

.section-subtitle {
    font-size: 2.2rem;
    color: var(--eventos-primary);
    font-weight: 600;
    max-width: 700px;
    margin: 0 auto 3rem;
    line-height: 1.5;
}

.section-decoration {
    width: 80px;
    height: 3px;
    background: rgba(0, 86, 179, 0.2);
    margin: 0 auto;
    border-radius: 2px;
}

/* ==========================================================================
   CONTROLES DE VISTA
   ========================================================================== */
.view-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 4rem;
    padding-bottom: 2rem;
    border-bottom: 2px solid rgba(0, 86, 179, 0.1);
}

.results-count {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--eventos-primary);
}

.results-count span {
    font-size: 2.2rem;
    font-weight: 900;
}

/* ==========================================================================
   EVENTOS EN GRID
   ========================================================================== */
.eventos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
    margin-bottom: 6rem;
}

.evento-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--eventos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.evento-card.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.evento-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--eventos-shadow);
    border-color: var(--eventos-primary);
}

.evento-card.hidden {
    display: none;
}

.evento-imagen {
    height: 220px;
    position: relative;
    overflow: hidden;
}

.evento-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-card:hover .evento-imagen img {
    transform: scale(1.05);
}

.evento-fecha {
    position: absolute;
    top: 2rem;
    right: 2rem;
    background: var(--eventos-gradient);
    color: white;
    padding: 1rem;
    border-radius: 12px;
    text-align: center;
    width: 70px;
    box-shadow: 0 4px 15px rgba(0, 86, 179, 0.3);
    z-index: 2;
}

.fecha-dia {
    font-size: 2.2rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.fecha-mes {
    font-size: 1.2rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    display: block;
    margin-top: 0.3rem;
}

.evento-badge {
    position: absolute;
    top: 2rem;
    left: 2rem;
    padding: 0.6rem 1.5rem;
    border-radius: 20px;
    font-size: 1.2rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    z-index: 2;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.2);
}

.evento-badge.webinar {
    background: linear-gradient(135deg, var(--evento-webinar), #764ba2);
}

.evento-badge.internacional {
    background: linear-gradient(135deg, var(--evento-international), #f5576c);
}

.evento-badge.workshop {
    background: linear-gradient(135deg, var(--evento-workshop), #00f2fe);
}

.evento-badge.congress {
    background: linear-gradient(135deg, var(--evento-congress), #38f9d7);
}

.evento-contenido {
    padding: 2.5rem;
}

.evento-titulo {
    font-size: 2.2rem;
    font-weight: 800;
    margin-bottom: 2rem;
    color: var(--eventos-dark);
    line-height: 1.3;
}

.evento-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--eventos-gray);
}

.meta-item i {
    color: var(--eventos-primary);
}

.evento-descripcion {
    font-size: 1.4rem;
    color: var(--eventos-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

.evento-estado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
    border-top: 1px solid rgba(0, 86, 179, 0.1);
}

.estado-badge {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.estado-badge.cerrado {
    background: rgba(108, 117, 125, 0.1);
    color: var(--eventos-gray);
}

.estado-badge.abierto {
    background: var(--eventos-gradient-accent);
    color: white;
}

/* ==========================================================================
   EVENTOS EN LISTA
   ========================================================================== */
.eventos-lista {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 6rem;
}

/* ==========================================================================
   MEJORAS PARA VISTA DE LISTA
   ========================================================================== */

.evento-lista-item {
    background: white;
    border-radius: 15px;
    padding: 2.5rem;
    display: flex;
    align-items: flex-start;
    gap: 2.5rem;
    box-shadow: var(--eventos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    margin-bottom: 1.5rem;
    opacity: 0;
    transform: translateY(20px);
}

.evento-lista-item:last-child {
    margin-bottom: 0;
}

.evento-lista-item.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.evento-lista-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--eventos-shadow);
    border-color: var(--eventos-primary);
}

.evento-lista-item.hidden {
    display: none !important;
}

.lista-fecha {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 90px;
    background: var(--eventos-gradient);
    color: white;
    padding: 1.5rem;
    border-radius: 12px;
    flex-shrink: 0;
}

.lista-dia {
    font-size: 2.8rem;
    font-weight: 900;
    line-height: 1;
    display: block;
}

.lista-mes {
    font-size: 1.4rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-top: 0.5rem;
    display: block;
}

.lista-contenido {
    flex: 1;
}

.lista-header {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lista-badge {
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
    display: inline-block;
    white-space: nowrap;
}

.lista-badge.webinar {
    background: linear-gradient(135deg, var(--evento-webinar), #764ba2);
}

.lista-badge.internacional {
    background: linear-gradient(135deg, var(--evento-international), #f5576c);
}

.lista-badge.workshop {
    background: linear-gradient(135deg, var(--evento-workshop), #00f2fe);
}

.lista-badge.congress {
    background: linear-gradient(135deg, var(--evento-congress), #38f9d7);
}

.lista-titulo {
    font-size: 2rem;
    font-weight: 800;
    color: var(--eventos-dark);
    line-height: 1.3;
    margin: 0;
    flex: 1;
    min-width: 200px;
}

.lista-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.lista-meta .meta-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 1.3rem;
    color: var(--eventos-gray);
}

.lista-meta .meta-item i {
    color: var(--eventos-primary);
    min-width: 16px;
}

.lista-descripcion {
    font-size: 1.4rem;
    color: var(--eventos-gray);
    line-height: 1.6;
    margin-bottom: 1.5rem;
}

.lista-estado {
    display: flex;
    gap: 2rem;
    align-items: center;
    flex-wrap: wrap;
}

.lista-estado .estado-badge {
    padding: 0.8rem 1.5rem;
    border-radius: 8px;
    font-size: 1.3rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    white-space: nowrap;
}

.lista-estado .estado-badge.cerrado {
    background: rgba(108, 117, 125, 0.1);
    color: var(--eventos-gray);
}

.lista-estado .estado-badge.abierto {
    background: var(--eventos-gradient-accent);
    color: white;
}

.lista-estado .btn-registrarse {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--eventos-gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.lista-estado .btn-registrarse:hover {
    background: linear-gradient(135deg, #1e7e34, #20c997);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

/* ==========================================================================
   ANIMACIONES ESPECÍFICAS PARA LISTA
   ========================================================================== */
.evento-lista-item:nth-child(1) { animation-delay: 0.1s; }
.evento-lista-item:nth-child(2) { animation-delay: 0.2s; }
.evento-lista-item:nth-child(3) { animation-delay: 0.3s; }
.evento-lista-item:nth-child(4) { animation-delay: 0.4s; }
.evento-lista-item:nth-child(5) { animation-delay: 0.5s; }
.evento-lista-item:nth-child(6) { animation-delay: 0.6s; }
.evento-lista-item:nth-child(7) { animation-delay: 0.7s; }
.evento-lista-item:nth-child(8) { animation-delay: 0.8s; }

/* ==========================================================================
   RESPONSIVE PARA VISTA DE LISTA
   ========================================================================== */
@media (max-width: 768px) {
    .evento-lista-item {
        flex-direction: column;
        gap: 2rem;
        padding: 2rem;
    }
    
    .lista-fecha {
        width: 100px;
        align-self: center;
    }
    
    .lista-header {
        text-align: center;
        justify-content: center;
    }
    
    .lista-titulo {
        text-align: center;
    }
    
    .lista-meta {
        justify-content: center;
        text-align: center;
    }
    
    .lista-estado {
        flex-direction: column;
        align-items: stretch;
        gap: 1.5rem;
    }
    
    .lista-estado .btn-registrarse {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .evento-lista-item {
        padding: 1.5rem;
    }
    
    .lista-fecha {
        min-width: 80px;
        padding: 1rem;
    }
    
    .lista-dia {
        font-size: 2.4rem;
    }
    
    .lista-mes {
        font-size: 1.2rem;
    }
    
    .lista-header {
        flex-direction: column;
        gap: 1rem;
    }
    
    .lista-titulo {
        font-size: 1.8rem;
        text-align: center;
    }
}

/* ==========================================================================
   EVENTOS ANTERIORES
   ========================================================================== */
.eventos-anteriores {
    background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
}

.eventos-archivo {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 3rem;
}

.evento-pasado-card {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--eventos-shadow-card);
    border: 2px solid rgba(0, 86, 179, 0.1);
    transition: all 0.3s ease;
    opacity: 0;
    transform: translateY(20px);
}

.evento-pasado-card.animate-in {
    animation: slideUp 0.6s ease forwards;
}

.evento-pasado-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--eventos-shadow);
}

.evento-pasado-imagen {
    height: 200px;
    position: relative;
    overflow: hidden;
}

.evento-pasado-imagen img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.evento-pasado-card:hover .evento-pasado-imagen img {
    transform: scale(1.05);
}

.evento-pasado-contenido {
    padding: 2.5rem;
}

.evento-pasado-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
    gap: 1rem;
}

.evento-pasado-badge {
    padding: 0.6rem 1.2rem;
    border-radius: 20px;
    font-size: 1.1rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: white;
}

.evento-pasado-badge.webinar {
    background: linear-gradient(135deg, var(--evento-webinar), #764ba2);
}

.evento-pasado-badge.workshop {
    background: linear-gradient(135deg, var(--evento-workshop), #00f2fe);
}

.evento-pasado-badge.congress {
    background: linear-gradient(135deg, var(--evento-congress), #38f9d7);
}

.evento-pasado-fecha {
    font-size: 1.3rem;
    font-weight: 700;
    color: var(--eventos-gray);
}

.evento-pasado-titulo {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 1.5rem;
    color: var(--eventos-dark);
    line-height: 1.3;
}

.evento-pasado-meta {
    display: flex;
    gap: 2rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}

.evento-pasado-descripcion {
    font-size: 1.4rem;
    color: var(--eventos-gray);
    line-height: 1.6;
    margin-bottom: 2.5rem;
}

/* ==========================================================================
   BOTONES PREMIUM
   ========================================================================== */
.btn-destacado {
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    background: var(--eventos-gradient);
    color: white;
    padding: 1.5rem 3rem;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: all 0.3s ease;
    border: 2px solid transparent;
}

.btn-destacado:hover {
    background: var(--eventos-gradient-light);
    transform: translateY(-3px);
    box-shadow: 0 10px 25px rgba(0, 86, 179, 0.3);
    border-color: white;
}


.btn-registrarse {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    background: var(--eventos-gradient-accent);
    color: white;
    padding: 1rem 2rem;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    font-size: 1.3rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    transition: all 0.3s ease;
}

.btn-registrarse:hover {
    background: linear-gradient(135deg, #1e7e34, #20c997);
    transform: translateY(-2px);
    box-shadow: 0 5px 15px rgba(40, 167, 69, 0.3);
}

.btn-ver-contenido {
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    color: var(--eventos-primary);
    text-decoration: none;
    font-weight: 700;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.btn-ver-contenido:hover {
    color: var(--eventos-primary-dark);
    transform: translateX(5px);
}
/* ==========================================================================
   FOOTER PREMIUM
   ========================================================================== */
.footer {
    background: var(--eventos-dark);
    color: white;
}

.footer .section-container {
    max-width: 1400px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 4rem;
    margin-bottom: 4rem;
}

.footer-section {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

.footer-logo {
    font-size: 2.4rem;
    font-weight: 900;
    color: white;
}

.footer-section p {
    font-size: 1.5rem;
    color: rgba(255, 255, 255, 0.8);
    line-height: 1.6;
}

.social-links {
    display: flex;
    gap: 1.5rem;
}

.social-links a {
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    text-decoration: none;
    transition: all 0.3s ease;
}

.social-links a:hover {
    background: var(--eventos-primary);
    transform: translateY(-3px);
}

.footer-section h4 {
    font-size: 1.8rem;
    font-weight: 700;
    margin-bottom: 1.5rem;
    color: white;
}

.footer-section ul {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
}

.footer-section ul li a {
    color: rgba(255, 255, 255, 0.8);
    text-decoration: none;
    font-size: 1.4rem;
    transition: all 0.3s ease;
}

.footer-section ul li a:hover,
.footer-section ul li a.active {
    color: white;
    padding-left: 0.5rem;
}

.footer-bottom {
    padding-top: 3rem;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    text-align: center;
    font-size: 1.4rem;
    color: rgba(255, 255, 255, 0.6);
}

/* ==========================================================================
   ANIMACIONES
   ========================================================================== */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ==========================================================================
   EFECTOS ESPECIALES DE ANIMACIÓN
   ========================================================================== */
.evento-card:nth-child(1) { animation-delay: 0.1s; }
.evento-card:nth-child(2) { animation-delay: 0.2s; }
.evento-card:nth-child(3) { animation-delay: 0.3s; }
.evento-card:nth-child(4) { animation-delay: 0.4s; }
.evento-card:nth-child(5) { animation-delay: 0.5s; }
.evento-card:nth-child(6) { animation-delay: 0.6s; }
.evento-card:nth-child(7) { animation-delay: 0.7s; }
.evento-card:nth-child(8) { animation-delay: 0.8s; }

.evento-pasado-card:nth-child(1) { animation-delay: 0.1s; }
.evento-pasado-card:nth-child(2) { animation-delay: 0.2s; }
.evento-pasado-card:nth-child(3) { animation-delay: 0.3s; }

/* ==========================================================================
   RESPONSIVE DESIGN
   ========================================================================== */
@media (max-width: 1200px) {
    .hero-title {
        font-size: 5.5rem;
    }
    
    .eventos-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 992px) {
    .hero-title {
        font-size: 4.5rem;
    }
    
    .hero-subtitle {
        font-size: 2.2rem;
    }
    
    .hero-stats {
        flex-direction: column;
        gap: 2rem;
    }
    
    .stat-item {
        min-width: 100%;
    }
    
    .section-title {
        font-size: 3.8rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-content {
        margin-left: 5%;
        text-align: center;
    }
    
    .hero-buttons {
        justify-content: center;
    }
    
    .filtros-grid {
        grid-template-columns: 1fr;
    }
    
    .eventos-proximos,
    .eventos-anteriores {
        padding: 8rem 0;
    }
}

@media (max-width: 768px) {
    /* Navbar responsive */
    .floating-navbar {
        padding: 10px 20px;
        width: 90%;
        border-radius: 15px;
    }
    
    .nav-menu {
        position: fixed;
        top: 70px;
        left: 50%;
        transform: translateX(-50%) translateY(-20px);
        width: 85%;
        background: rgba(255, 255, 255, 0.98);
        backdrop-filter: blur(30px);
        -webkit-backdrop-filter: blur(30px);
        border-radius: 20px;
        padding: 25px;
        box-shadow: 0 25px 60px rgba(0, 0, 0, 0.25);
        flex-direction: column;
        gap: 20px;
        opacity: 0;
        visibility: hidden;
        transition: all 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
        z-index: 999;
    }

    .nav-menu.active {
        opacity: 1;
        visibility: visible;
        transform: translateX(-50%) translateY(0);
    }

    .nav-menu a {
        font-size: 1rem;
        padding: 12px 0;
        text-align: center;
        width: 100%;
        display: block;
    }

    .hamburger-btn {
        display: flex;
    }

    .hamburger-btn.active span:nth-child(1) {
        transform: rotate(45deg) translate(6px, 6px);
    }
    
    .hamburger-btn.active span:nth-child(2) {
        opacity: 0;
    }
    
    .hamburger-btn.active span:nth-child(3) {
        transform: rotate(-45deg) translate(6px, -6px);
    }
    
    /* Hero responsive */
    .hero-title {
        font-size: 3.5rem;
    }
    
    .hero-subtitle {
        font-size: 1.8rem;
    }
    
    .hero-description {
        font-size: 1.6rem;
    }
    
    .section-title {
        font-size: 3.5rem;
    }
    
    .section-subtitle {
        font-size: 1.8rem;
    }
    
    .eventos-grid {
        grid-template-columns: 1fr;
    }
    
    .eventos-archivo {
        grid-template-columns: 1fr;
    }
    
    .evento-lista-item {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
    
    .lista-fecha {
        width: 100px;
    }
    
    .eventos-hero {
        height: auto;
        min-height: 600px;
        text-align: center;
    }
    
    .hero-content {
        margin-left: 0;
        text-align: center;
    }
    
    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 1.5rem;
    }
    
    .btn-destacado,
    .btn-cta-secondary {
        width: 100%;
        justify-content: center;
        max-width: 300px;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        text-align: center;
    }
    
    .social-links {
        justify-content: center;
    }
    
    .eventos-proximos,
    .eventos-anteriores {
        padding: 6rem 0;
    }
    
    .view-controls {
        flex-direction: column;
        gap: 2rem;
        text-align: center;
    }
}

@media (max-width: 576px) {
    .floating-navbar {
        padding: 8px 15px;
        width: 92%;
        border-radius: 12px;
        top: 15px;
    }
    
    .nav-logo span {
        font-size: 0.9rem;
    }
    
    .logo-img {
        height: 28px;
    }
    
    .btn-login {
        padding: 7px 14px;
        font-size: 0.8rem;
    }
    
    .nav-menu {
        top: 65px;
        width: 90%;
        padding: 20px;
    }
    
    .nav-menu a {
        font-size: 0.95rem;
        padding: 10px 0;
    }
    
    body {
        padding-top: 65px;
    }
    
    .eventos-hero {
        margin-top: -65px;
        padding-top: 65px;
    }
    
    .section-container {
        padding: 0 1.5rem;
    }
    
    .hero-title {
        font-size: 2.8rem;
    }
    
    .section-title {
        font-size: 2.8rem;
    }
    
    .evento-titulo {
        font-size: 2rem;
    }
    
    .evento-estado {
        flex-direction: column;
        gap: 1.5rem;
        align-items: stretch;
    }
    
    .btn-registrarse {
        width: 100%;
        justify-content: center;
    }
    
    .cta-title {
        font-size: 3rem;
    }
    
    .cta-description {
        font-size: 1.6rem;
    }
    
    .input-group {
        flex-direction: column;
    }
    
    .email-input,
    .btn-suscribir {
        width: 100%;
        border-radius: 10px;
        margin-bottom: 1rem;
    }
}

@media (max-width: 360px) {
    .floating-navbar {
        padding: 6px 12px;
    }
    
    .nav-logo span {
        font-size: 0.85rem;
    }
    
    .logo-img {
        height: 25px;
    }
    
    .btn-login {
        padding: 6px 12px;
        font-size: 0.75rem;
    }
    
    .nav-logo {
        gap: 8px;
    }
}

/* Para pantallas muy pequeñas, ocultar texto del logo */
@media (max-width: 320px) {
    .nav-logo span {
        display: none;
    }
    
    .floating-navbar {
        padding: 8px 15px;
    }
}

/* Asegurar que el navbar sea visible en dispositivos con notch */
@media (max-width: 768px) and (orientation: portrait) {
    .floating-navbar {
        top: max(15px, env(safe-area-inset-top));
    }
}

/* Mejorar visibilidad en modo oscuro */
@media (prefers-color-scheme: dark) {
    .floating-navbar {
        background: rgba(30, 30, 30, 0.95);
        border: 1px solid rgba(255, 255, 255, 0.1);
    }
    
    .nav-menu a {
        color: #ecf0f1;
    }
    
    .nav-logo {
        color: #ecf0f1;
    }
    
    .hamburger-btn span {
        background-color: #ecf0f1;
    }
}

/* Mejorar accesibilidad para reducir movimiento */
@media (prefers-reduced-motion: reduce) {
    .floating-navbar,
    .nav-menu a,
    .btn-login,
    .evento-card,
    .evento-lista-item,
    .evento-pasado-card {
        transition: none;
    }
    
    .hamburger-btn span {
        transition: none;
    }
    
    .evento-card,
    .evento-lista-item,
    .evento-pasado-card {
        animation: none;
        opacity: 1;
        transform: none;
    }
    
    .hero-title,
    .hero-subtitle,
    .hero-description,
    .hero-stats,
    .hero-buttons {
        animation: none;
    }
}

/* Clase para ocultar elementos */
.hidden {
    display: none !important;
}