/* ==========================================================================
   HERO: Event Archive (Event Calendar)
   ========================================================================== */

.hero-event-archive {
    position: relative;
    width: 100%;
    /* Altura basada en el diseño de Kingster */
    padding: 340px 0 60px 0; 
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end; /* Alinea el contenido hacia abajo */
}

/* Overlay oscuro semi-transparente uniforme */
.hero-event-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(
    to bottom, 
    rgba(0, 0, 0, 0.8) 0%,   /* Empieza oscuro arriba */
    rgba(0, 0, 0, 0) 30%,    /* Se vuelve transparente al 25% de la altura */
    rgba(0, 0, 0, 0) 60%,    /* Se mantiene transparente hasta el 75% */
    rgba(0, 0, 0, 0.8) 100%  /* Vuelve a oscurecerse hacia abajo */
    );
    z-index: 1;
}

.hero-event-inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    width: 100%;
    margin: 0 auto;
}

.hero-event-title {
    font-size: var(--text-3xl); /* Tamaño impactante */
    font-weight: 800;
    color: var(--color-white);
    margin: 0;
    line-height: 1.1;
    text-align: left; /* Alineado a la izquierda según captura */
    letter-spacing: -1px;
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .hero-event-inner {
        padding: 0 20px;
    }
    .hero-event-archive {
        padding: 180px 0 80px 0;
    }
    .hero-event-title {
        font-size: 48px;
    }
}

@media (max-width: 768px) {
    .hero-event-archive {
        padding: 200px 0 40px 0;
    }
    .hero-event-title {
        font-size: 36px;
    }
}


/* ==========================================================================
   BODY: Archive Events Grid
   ========================================================================== */

.event-archive-body {
    padding: 80px 0;
    background-color: var(--color-white);
}

.event-grid-wrap {
    display: grid;
    grid-template-columns: repeat(3, 1fr); /* 3 columnas */
    gap: 40px 30px; /* Separación vertical y horizontal */
    max-width: 1200px;
    width: 100%;
    margin: auto;
}

/* =====================================================
   TARJETA DEL EVENTO (Card)
   ===================================================== */
.event-card {
    display: flex;
    flex-direction: column;
}

/* 1. Imagen Destacada */
.event-card-thumbnail {
    margin-bottom: 25px;
    overflow: hidden;
}

.event-card-thumbnail img {
    width: 100%;
    height: 250px; /* Altura uniforme para todas las fotos */
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.event-card:hover .event-card-thumbnail img {
    transform: scale(1.05); /* Efecto zoom sutil al pasar el mouse */
}

/* 2. Contenido (Fecha Izq + Detalles Der) */
.event-card-content {
    display: flex;
    align-items: flex-start;
    gap: 20px;
}

/* 3. Bloque de Fecha (Izquierda) */
.event-card-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 50px;
}

.event-day {
    font-size: var(--text-3xl);
    font-weight: 800;
    color: var(--color-primary); /* Rojo Kingster */
    line-height: 1;
}

.event-month {
    font-size: var(--text-base);
    font-weight: 700;
    color: var(--color-text-main); /* Casi negro */
    text-transform: uppercase;
    margin-top: 5px;
    letter-spacing: 1px;
}

.event-date-divider {
    width: 30px;
    height: 2px;
    background-color: var(--color-primary);
    margin-top: 10px;
}

/* 4. Bloque de Detalles (Derecha) */
.event-card-details {
    flex: 1;
}

.event-title {
    font-size: var(--text-lg);
    font-weight: 800;
    line-height: 1.3;
    margin: 0 0 15px 0;
    transition: color 0.2s ease;
}

.event-title a {
    color: var(--color-text-main); /* Azul muy oscuro según captura */
    text-decoration: none;
    transition: color 0.3s ease;
}

.event-title a:hover {
    color: var(--color-primary);
}

/* 5. Metadatos (Hora y Ubicación) */
.event-meta {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.meta-item {
    font-size: var(--text-base);
    color: var(--color-text-muted);
    display: flex;
    align-items: center;
    gap: 8px;
}

.meta-item svg {
    width: 14px;
    height: 14px;
    color: var(--color-primary);
}

/* =====================================================
   PAGINACIÓN
   ===================================================== */
.event-pagination {
    margin-top: 60px;
    text-align: center;
}

.event-pagination .nav-links {
    display: inline-flex;
    gap: 10px;
    align-items: center;
}

.event-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    height: 40px;
    padding: 0 15px;
    background-color: var(--color-border);
    color: var(--color-text-muted);
    font-weight: 600;
    text-decoration: none;
    transition: all 0.3s ease;
}

.event-pagination .page-numbers:hover,
.event-pagination .page-numbers.current {
    background-color: var(--color-primary);
    color: var(--color-white);
}

/* =====================================================
   RESPONSIVE
   ===================================================== */
@media (max-width: 1024px) {
    .event-grid-wrap {
        grid-template-columns: repeat(2, 1fr); /* 2 columnas en Tablet */
        padding: 0 20px;
    }
}

@media (max-width: 768px) {
    .event-grid-wrap {
        grid-template-columns: 1fr; /* 1 columna en Móvil */
    }
    
    .event-card-thumbnail img {
        height: auto;
        aspect-ratio: 16/9; /* Mantiene una buena proporción */
    }
}