/* =========================================================
   Tarjetas de Evento — Calendario Escolar (I.E. 10153)
   Diseño tomado de la maqueta eventos.html
   ========================================================= */

.ev-card-modern {
    background: #ffffff;
    border-radius: 18px;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, .06);
    transition: transform .3s ease, box-shadow .3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
    border: 1px solid rgba(0, 0, 0, .04);
}

.ev-card-modern:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(13, 110, 253, .12);
}

/* ── Imagen ── */
.ev-thumb {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.ev-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}

.ev-card-modern:hover .ev-thumb img {
    transform: scale(1.05);
}

/* ── Categoría (superior izquierda) ── */
.ev-tag-pill {
    position: absolute;
    top: 12px;
    left: 12px;
    background: #2563eb;
    color: #ffffff;
    font-size: .7rem;
    font-weight: 700;
    letter-spacing: .5px;
    padding: 5px 12px;
    border-radius: 30px;
    text-transform: uppercase;
    box-shadow: 0 4px 10px rgba(37, 99, 235, .3);
    z-index: 2;
}

/* ── Ubicación (inferior izquierda) ── */
.ev-location-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(15, 23, 42, .8);
    backdrop-filter: blur(4px);
    color: #ffffff;
    font-size: .75rem;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 20px;
    display: flex;
    align-items: center;
    gap: 5px;
    z-index: 2;
}

.ev-location-badge i {
    color: #38bdf8;
}

/* ── Fecha y hora (inferior derecha) ── */
.ev-date-floating {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(255, 255, 255, .95);
    backdrop-filter: blur(4px);
    padding: 6px 10px;
    border-radius: 10px;
    text-align: center;
    box-shadow: 0 4px 12px rgba(0, 0, 0, .12);
    z-index: 2;
}

.ev-date-floating .date-line {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    line-height: 1;
}

.ev-date-floating .day {
    font-size: 1.05rem;
    font-weight: 800;
    color: #1e293b;
}

.ev-date-floating .month {
    font-size: .75rem;
    font-weight: 700;
    text-transform: uppercase;
    color: #2563eb;
}

.ev-date-floating .time {
    display: block;
    font-size: .68rem;
    font-weight: 600;
    color: #64748b;
    margin-top: 3px;
    padding-top: 3px;
    border-top: 1px solid #e2e8f0;
    line-height: 1;
}

/* ── Cuerpo ── */
.ev-body {
    padding: 16px 18px 14px 18px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.ev-title {
    font-size: 1.1rem;
    font-weight: 700;
    color: #1e293b;
    margin-bottom: 8px;
    line-height: 1.3;
}

.ev-desc {
    font-size: .85rem;
    color: #64748b;
    line-height: 1.45;
    margin-bottom: 12px;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* ── Pie y enlace ── */
.ev-footer {
    margin-top: auto;
    padding-top: 10px;
}

.ev-link {
    font-size: .88rem;
    font-weight: 700;
    color: #2563eb;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    transition: gap .2s ease, color .2s ease;
}

.ev-link:hover {
    color: #1d4ed8;
    gap: 9px;
    text-decoration: none;
}

/* ── Barra inferior degradada ── */
.ev-accent-bar {
    height: 4px;
    width: 100%;
    background: linear-gradient(90deg, #2563eb 0%, #f59e0b 100%);
}
