/* ==========================================================
   LISTADO DE EVENTOS — plantilla "Eventos" (eventos.php)
   Hero usa .hero-secondary (internas.css).
   Tags de modalidad usan .card-event-tag (internas.css).
   Aqui solo lo exclusivo del listado.
   ========================================================== */

/* ===== HERO - boton Regresar sobre .hero-secondary ===== */
.evento-hero {
    position: relative;
}

.evento-regresar {
    position: absolute;
    top: 24px;
    left: 80px;
    z-index: 3;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #fff;
    color: #11203F;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 16px;
    padding: 10px 20px;
    border-radius: 8px;
    text-decoration: none;
    transition: opacity 0.2s;
}

.evento-regresar:hover {
    opacity: 0.88;
}

.eventos-block {
    width: 100%;
    max-width: 1440px;
    margin: 0 auto;
    padding: 56px 84px 80px;
    display: flex;
    flex-direction: column;
    gap: 32px;
    background: var(--brand-light-bg, #F1F7FF);
}

/* ===== FILTROS (tipo + ordenar) ===== */
.eventos-filtros {
    display: flex;
    align-items: flex-end;
    gap: 24px;
    flex-wrap: wrap;
}

.filtro-select-wrap {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 0 1 280px;
    min-width: 200px;
}

.filtro-label {
    font-family: var(--fuente-principal);
    font-size: 14px;
    font-weight: 600;
    color: var(--primary-color);
}

.filtro-select-wrap select {
    width: 100%;
    appearance: none;
    -webkit-appearance: none;
    padding: 12px 40px 12px 14px;
    font-family: var(--fuente-secundaria);
    font-size: 16px;
    color: #11203F;
    background: #fff;
    border: 1px solid #11203F;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
    transition: border-color 0.2s;
}

.filtro-select-wrap select:focus {
    border-color: #4B9ED9;
}

/* Chevron */
.filtro-select-wrap::after {
    content: '';
    position: absolute;
    right: 14px;
    bottom: 18px;
    width: 10px;
    height: 6px;
    background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 8 4' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 0.5L4 3.5L7 0.5' stroke='%2311203F' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
}

/* ===== TEMAS (botones-tag) ===== */
.eventos-temas {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.eventos-temas__title {
    font-family: var(--fuente-principal);
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
    line-height: 1.2;
}

.eventos-temas__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
}

.tema-tag {
    display: inline-flex;
    align-items: center;
    padding: 14px 24px;
    font-family: var(--fuente-principal);
    font-size: 16px;
    font-weight: 600;
    color: #fff;
    background: var(--primary-color);
    border: 1px solid var(--primary-color);
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s, color 0.2s, transform 0.15s;
}

.tema-tag:hover {
    transform: translateY(-2px);
}

.tema-tag.is-active {
    background: #4B9ED9;
    border-color: #4B9ED9;
    color: #11203F;
}

/* ===== GRID DE CARDS ===== */
.eventos-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
}

.evento-card {
    flex: 0 0 calc(33.333% - 16px);
    background: #fff;
    border-radius: 8px;
    padding: 24px;
    display: flex;
    flex-direction: column;
    gap: 16px;
    box-shadow: 0 2px 12px rgba(17, 32, 63, 0.08);
    text-decoration: none;
    color: inherit;
    transition: transform 0.25s, box-shadow 0.25s, background-color 0.25s;
}

.evento-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 32px rgba(17, 32, 63, 0.14);
    background-color: #f2f3f5;
}

.evento-card__img {
    width: 100%;
    aspect-ratio: 16 / 12;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.evento-card__img--placeholder {
    background: #C8C8C8;
}

.evento-card__body {
    display: flex;
    flex-direction: column;
    gap: 12px;
    flex: 1;
}

.evento-card__head {
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.evento-card__titulo {
    font-family: var(--fuente-secundaria);
    font-size: 22px;
    font-weight: 700;
    color: #1E3A8A;
    line-height: 1.2;
}

.evento-card__subtitulo {
    font-family: var(--fuente-secundaria);
    font-size: 14px;
    font-weight: 600;
    color: #282943;
}

.evento-card__desc {
    font-family: var(--fuente-secundaria);
    font-size: 16px;
    font-weight: 400;
    color: #282943;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.evento-card__cta {
    display: inline-flex;
    align-items: center;
    padding: 8px 18px;
    font-family: var(--fuente-secundaria);
    font-size: 16px;
    font-weight: 700;
    color: #11203F;
    background: #4B9ED9;
    border-radius: 10px;
    text-decoration: none;
    width: fit-content;
    margin-top: auto;
    transition: background 0.2s;
}

.evento-card:hover .evento-card__cta {
    background: rgb(55, 138, 197);
}

/* ===== ESTADO VACIO ===== */
.eventos-empty {
    width: 100%;
    text-align: center;
    padding: 48px;
    font-family: var(--fuente-secundaria);
    font-size: 18px;
    color: rgba(17, 32, 63, 0.5);
}

/* ===== VER MAS ===== */
.eventos-vermas-wrap {
    display: flex;
    justify-content: center;
    margin-top: 16px;
}

.eventos-vermas {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 141px;
    height: 52px;
    padding: 16px 32px;
    border-radius: 8px;
    border: 1px solid #11203F;
    background: #fff;
    color: #11203F;
    font-family: var(--fuente-principal);
    font-weight: 600;
    font-size: 18px;
    cursor: pointer;
    transition: opacity 0.2s;
}

.eventos-vermas:hover {
    opacity: 0.85;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .eventos-block { padding: 48px 40px; }
    .evento-card { flex: 0 0 calc(50% - 12px); }
    .filtro-select-wrap { flex: 1 1 calc(50% - 12px); }
}

@media (max-width: 640px) {
    .eventos-block { padding: 32px 20px; gap: 24px; }
    .eventos-filtros { flex-direction: column; align-items: stretch; }
    .filtro-select-wrap { flex: 1 1 100%; }
    .eventos-temas__title { font-size: 20px; }
    .tema-tag { font-size: 14px; padding: 12px 18px; }
    .evento-card { flex: 0 0 100%; }
    .evento-card__titulo { font-size: 20px; }
    .eventos-vermas { width: 100%; }
}
