/* ===================================================
   Evento Próximos – Grilla de tarjetas para la home
   =================================================== */

@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&display=swap');

.eprox-wrapper {
    font-family: 'DM Sans', sans-serif;
    max-width: 1200px;
    margin: 2.5rem auto;
    padding: 0 1rem;
    box-sizing: border-box;
}

/* ── Título de sección ── */
.eprox-section-title {
    text-align: center;
    font-size: 2rem;
    font-weight: 700;
    color: #1a1a2e;
    margin-bottom: 2rem;
    letter-spacing: -0.01em;
}

/* ── Grilla ── */
.eprox-grid {
    display: grid;
    gap: 28px;
}

.eprox-cols-1 { grid-template-columns: minmax(0, 480px); justify-content: center; }
.eprox-cols-2 { grid-template-columns: repeat(2, 1fr); }
.eprox-cols-3 { grid-template-columns: repeat(3, 1fr); }
.eprox-cols-4 { grid-template-columns: repeat(4, 1fr); }

/* ── Tarjeta ── */
.eprox-card {
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: box-shadow 0.2s, transform 0.2s;
    border: 1px solid #ececec;
}

.eprox-card:hover {
    box-shadow: 0 8px 28px rgba(0,0,0,0.14);
    transform: translateY(-3px);
}

/* ── Imagen ── */
.eprox-img-wrap {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 16 / 9;
    background: #e8e8e8;
    text-decoration: none;
    flex-shrink: 0;
}

.eprox-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.35s ease;
}

.eprox-card:hover .eprox-img {
    transform: scale(1.04);
}

.eprox-img-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #e7ecfd, #f0f3ff);
    font-size: 3rem;
}

/* ── Badge de fecha sobre la imagen ── */
.eprox-date-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #1a1a2e;
    color: #fff;
    border-radius: 7px;
    padding: 6px 10px;
    text-align: center;
    min-width: 44px;
    line-height: 1;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
}

.eprox-badge-day {
    display: block;
    font-size: 1.4rem;
    font-weight: 700;
    line-height: 1.1;
}

.eprox-badge-month {
    display: block;
    font-size: 0.65rem;
    font-weight: 600;
    letter-spacing: 0.08em;
    margin-top: 2px;
    color: #a0aec0;
}

/* ── Cuerpo de la tarjeta ── */
.eprox-body {
    padding: 20px 22px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.eprox-fecha-label {
    font-size: 0.75rem;
    color: #888;
    margin: 0 0 8px;
    font-weight: 500;
}

.eprox-title {
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a2e;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    margin: 0 0 12px;
    line-height: 1.35;
}

.eprox-excerpt {
    font-size: 0.88rem;
    color: #555;
    line-height: 1.6;
    margin: 0 0 16px;
    flex: 1;
}

/* ── Link "+ INFO" ── */
.eprox-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.82rem;
    font-weight: 600;
    color: #3b5bdb;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.15s, gap 0.15s;
}

.eprox-link:hover {
    color: #1a1a2e;
    gap: 8px;
    text-decoration: none;
}

/* ── Sin eventos ── */
.eprox-empty {
    text-align: center;
    color: #999;
    font-style: italic;
    padding: 2rem 0;
}

/* ── Responsive ── */
@media (max-width: 900px) {
    .eprox-cols-3,
    .eprox-cols-4 {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 560px) {
    .eprox-cols-2,
    .eprox-cols-3,
    .eprox-cols-4 {
        grid-template-columns: 1fr;
    }

    .eprox-section-title {
        font-size: 1.5rem;
    }
}
