/* Sección Eventos (/eventos): cabecera, filtros, meses y tarjetas. */
.ev { --ev-ink: #14213d; --ev-muted: #5b6472; --ev-line: #e8ebf2; --ev-soft: #f5f7fb; --ev-gold: #fed304; --ev-green: #17824c; --ev-red: #b42318; background: #fff; color: var(--ev-ink); }
.ev ul, .ev ol { margin: 0; padding: 0; list-style: none; }
.ev li::marker, .ev li::before { content: none; }

/* Cabecera */
.ev-hero { padding: 56px 0 40px; background: linear-gradient(135deg, #101a31 0%, #14213d 55%, #1d2f57 100%); color: #fff; }
.ev-hero__kicker { margin: 0 0 10px; color: var(--ev-gold); font-size: .85rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; }
.ev-hero h1 { margin: 0 0 12px; max-width: 20ch; color: #fff; font-size: clamp(1.9rem, 4vw, 2.8rem); font-weight: 800; line-height: 1.15; }
.ev-hero__lead { margin: 0 0 28px; max-width: 58ch; color: #d6dbe8; font-size: 1.05rem; line-height: 1.6; }
.ev-steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; max-width: 820px; }
.ev-steps li { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 14px; background: rgba(255, 255, 255, .08); }
.ev-steps li > span { flex: 0 0 34px; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--ev-gold); color: var(--ev-ink); font-weight: 800; }
.ev-steps strong { display: block; color: #fff; font-size: .98rem; }
.ev-steps small { color: #c4cbdc; font-size: .84rem; }

/* Filtros */
.ev-body { padding-top: 28px; padding-bottom: 64px; }
.ev-filters { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 12px 14px; margin: 0 0 32px; padding: 16px 18px; border-radius: 16px; background: var(--ev-soft); }
.ev-field { display: grid; gap: 6px; margin: 0; min-width: 160px; }
.ev-field--search { flex: 1 1 240px; }
.ev-field > span { color: var(--ev-muted); font-size: .78rem; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.ev-field input, .ev-field select { width: 100%; height: 44px; padding: 0 14px; border: 1px solid transparent; border-radius: 12px; background: #fff; color: var(--ev-ink); font-size: .95rem; }
.ev-field input:focus, .ev-field select:focus { outline: 2px solid var(--ev-ink); outline-offset: 1px; }
.ev-btn { display: inline-flex; align-items: center; justify-content: center; height: 44px; padding: 0 22px; border: 0; border-radius: 999px; background: var(--ev-gold); color: var(--ev-ink); font-weight: 700; text-decoration: none; cursor: pointer; }
.ev-btn:hover { filter: brightness(.96); color: var(--ev-ink); }
.ev-btn--ghost { background: #fff; box-shadow: inset 0 0 0 2px var(--ev-ink); }
.ev-clear { align-self: center; color: var(--ev-ink); font-size: .9rem; font-weight: 600; text-decoration: underline; }

/* Meses */
.ev-month + .ev-month { margin-top: 44px; }
.ev-month > h2 { display: flex; align-items: baseline; gap: 12px; margin: 0 0 18px; padding-bottom: 10px; border-bottom: 2px solid var(--ev-line); color: var(--ev-ink); font-size: 1.5rem; font-weight: 800; }
.ev-month > h2 small { color: var(--ev-muted); font-size: .9rem; font-weight: 600; }
.ev-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Tarjeta */
.ev-card { position: relative; display: flex; flex-direction: column; overflow: hidden; border-radius: 20px; background: #fff; box-shadow: 0 2px 14px rgba(20, 33, 61, .08); transition: transform .2s ease, box-shadow .2s ease; }
.ev-card:hover { transform: translateY(-4px); box-shadow: 0 14px 34px rgba(20, 33, 61, .16); }
.ev-card__link { position: absolute; inset: 0; z-index: 3; border-radius: 20px; }
.ev-card__link:focus-visible { outline: 3px solid var(--ev-ink); outline-offset: 2px; }
.ev-card__media { position: relative; aspect-ratio: 16 / 9; background: var(--ev-soft); }
.ev-card__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.ev-card__ph { position: absolute; inset: 0; background: linear-gradient(135deg, #14213d, #284a85); }
.ev-date { position: absolute; top: 14px; left: 14px; display: grid; justify-items: center; min-width: 58px; padding: 8px 10px; border-radius: 14px; background: #fff; box-shadow: 0 4px 14px rgba(0, 0, 0, .18); line-height: 1; }
.ev-date strong { color: var(--ev-ink); font-size: 1.6rem; font-weight: 800; }
.ev-date span { margin-top: 3px; color: var(--ev-muted); font-size: .78rem; font-weight: 800; letter-spacing: .08em; }
.ev-mode { position: absolute; right: 12px; bottom: 12px; padding: 4px 12px; border-radius: 999px; background: rgba(20, 33, 61, .86); color: #fff; font-size: .75rem; font-weight: 700; }
.ev-card__body { display: flex; flex: 1 1 auto; flex-direction: column; gap: 10px; padding: 18px 20px 6px; }
.ev-card__cat { margin: 0; color: var(--ev-muted); font-size: .8rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; }
.ev-card h3 { margin: 0; color: var(--ev-ink); font-size: 1.15rem; font-weight: 700; line-height: 1.3; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ev-meta { display: grid; gap: 8px; }
.ev-meta li { display: flex; align-items: flex-start; gap: 10px; color: #3b4557; font-size: .92rem; line-height: 1.35; }
.ev-meta svg { flex: 0 0 18px; width: 18px; height: 18px; margin-top: 1px; fill: none; stroke: var(--ev-ink); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.ev-seats--low { color: #b45309; font-weight: 700; }
.ev-seats--out { color: var(--ev-red); font-weight: 700; }
.ev-more { margin: 0; color: var(--ev-green); font-size: .86rem; font-weight: 700; }
.ev-card__foot { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; padding: 14px 20px 18px; border-top: 1px solid var(--ev-line); }
.ev-price { color: var(--ev-ink); font-size: 1.3rem; font-weight: 800; }
.ev-cta { color: var(--ev-ink); font-size: .92rem; font-weight: 700; }
.ev-card:hover .ev-cta { text-decoration: underline; }
.ev-card.is-soldout .ev-card__media img { filter: grayscale(.7); }
.ev-card.is-soldout .ev-price { color: var(--ev-muted); }

/* Vacío y nota */
.ev-empty { display: grid; justify-items: center; gap: 8px; max-width: 560px; margin: 24px auto 0; padding: 48px 24px; border-radius: 24px; background: var(--ev-soft); text-align: center; }
.ev-empty__icon { display: grid; place-items: center; width: 68px; height: 68px; border-radius: 50%; background: #fff; box-shadow: 0 4px 14px rgba(20, 33, 61, .1); }
.ev-empty__icon svg { width: 32px; height: 32px; fill: none; stroke: var(--ev-ink); stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.ev-empty h2 { margin: 10px 0 0; color: var(--ev-ink); font-size: 1.4rem; font-weight: 800; }
.ev-empty p { margin: 0 0 12px; color: var(--ev-muted); line-height: 1.6; }
.ev-empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.ev-note { margin: 36px 0 0; color: var(--ev-muted); font-size: .85rem; text-align: center; }

@media (max-width: 1100px) { .ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 720px) {
    .ev-hero { padding: 40px 0 28px; }
    .ev-steps { grid-template-columns: 1fr; gap: 8px; }
    .ev-grid { grid-template-columns: 1fr; gap: 18px; }
    .ev-filters { padding: 14px; }
    .ev-field, .ev-field--search { flex: 1 1 100%; }
    .ev-btn { width: 100%; }
}
@media (prefers-reduced-motion: reduce) { .ev-card, .ev-card:hover { transition: none; transform: none; } }

/* Bloques del editor de páginas: «Próximos eventos» y «Fechas del curso» */
.ev-block { padding: 48px 0; background: #fff; }
.ev-block .ev-grid { grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); }
.ev-block__more { margin: 28px 0 0; text-align: center; }
.ht-dates { padding: 40px 0; background: #fff; }
.ht-dates__list { display: grid; gap: 12px; max-width: 900px; margin: 0 auto; }
.ht-date { display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 16px; background: var(--ev-soft, #f5f7fb); }
.ht-date.is-off { opacity: .7; }
.ht-date__badge { flex: 0 0 62px; display: grid; justify-items: center; padding: 8px 0; border-radius: 14px; background: #fff; box-shadow: 0 2px 8px rgba(20, 33, 61, .1); line-height: 1; }
.ht-date__badge strong { color: var(--ev-ink, #14213d); font-size: 1.6rem; font-weight: 800; }
.ht-date__badge span { margin-top: 3px; color: var(--ev-muted, #5b6472); font-size: .72rem; font-weight: 800; letter-spacing: .08em; }
.ht-date__main { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.ht-date__main strong { color: var(--ev-ink, #14213d); font-size: 1.02rem; }
.ht-date__main span { color: #3b4557; font-size: .93rem; }
.ht-date__main small { color: var(--ev-muted, #5b6472); font-size: .84rem; }
.ht-date__seats { flex: 0 0 auto; min-width: 120px; color: #3b4557; font-size: .9rem; text-align: right; }
.ev-btn.is-disabled { pointer-events: none; opacity: .6; }
@media (max-width: 720px) { .ht-date { flex-wrap: wrap; } .ht-date__seats { text-align: left; min-width: 0; } .ht-date .ev-btn { width: 100%; } }
.ht-date .ev-btn { flex: 0 0 auto; white-space: nowrap; }

/* Selector de fecha en la página de un curso presencial */
.ev-pick { padding: 4px 0 28px; background: transparent; }
.ev-pick > h3 { margin: 0 0 6px; }
.ev-pick__lead, .ev-pick__none { margin: 0 0 14px; color: #5b6472; }
.ev-pick__none { padding: 16px 18px; border-radius: 14px; background: #f5f7fb; }
.ev-pick__list { display: grid; gap: 10px; }
.ev-pick__item { position: relative; display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 52px 14px 16px; border: 2px solid transparent; border-radius: 16px; background: #f5f7fb; color: #14213d; text-align: left; cursor: pointer; transition: border-color .15s, background .15s; }
.ev-pick__item:hover:not(:disabled) { border-color: #d5dbea; }
.ev-pick__item.is-on { border-color: #14213d; background: #fff; box-shadow: 0 6px 20px rgba(20, 33, 61, .1); }
.ev-pick__item.is-off { opacity: .6; cursor: not-allowed; }
.ev-pick__item:focus-visible { outline: 3px solid #14213d; outline-offset: 2px; }
.ev-pick__main { flex: 1 1 auto; min-width: 0; display: grid; gap: 2px; }
.ev-pick__main strong { font-size: 1rem; font-weight: 700; }
.ev-pick__main span { color: #3b4557; font-size: .92rem; }
.ev-pick__main small { color: #5b6472; font-size: .84rem; }
.ev-pick__seats { flex: 0 0 auto; color: #3b4557; font-size: .88rem; text-align: right; }
.ev-pick__radio { position: absolute; top: 50%; right: 18px; width: 22px; height: 22px; margin-top: -11px; border: 2px solid #b8c1d6; border-radius: 50%; background: #fff; }
.ev-pick__item.is-on .ev-pick__radio { border-color: #14213d; background: radial-gradient(circle, #14213d 45%, #fff 50%); }
.ev-pick__venue { display: grid; gap: 4px; margin-top: 14px; padding: 16px 18px; border-radius: 14px; background: #fff7d6; color: #14213d; }
.ev-pick__venue span, .ev-pick__venue p { margin: 0; color: #4a4200; }
.ev-pick__venue a { color: #14213d; font-weight: 700; }
.ev-pick__tz { margin: 12px 0 0; color: #5b6472; font-size: .84rem; }
.ev-pick__summary { display: grid; gap: 2px; margin: 0 0 14px; padding: 12px 14px; border-radius: 12px; background: #f5f7fb; color: #14213d; font-size: .92rem; }
.ev-pick__summary > span:first-child { color: #5b6472; font-size: .76rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.ev-pick__summary strong { font-size: .98rem; }
.ev-pick__summary small { color: #5b6472; }
.ev-pick__summary a { margin-top: 4px; color: #14213d; font-weight: 700; text-decoration: underline; }
@media (max-width: 640px) { .ev-pick__item { flex-wrap: wrap; } .ev-pick__seats { text-align: left; } }

/* Franja «Próximos eventos» de la portada */
.ev-home { padding: 64px 0; background: #fff; }
.ev-home__head { display: flex; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; gap: 14px; margin: 0 0 26px; }
.ev-home__head .ev-hero__kicker { margin-bottom: 6px; }
.ev-home__head h2 { margin: 0; color: #14213d; font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; }
/* Aprovechar el ancho de pantalla: menos margen lateral en pantallas grandes. */
.ev .container { max-width: 1760px; padding-left: clamp(16px, 2.2vw, 36px); padding-right: clamp(16px, 2.2vw, 36px); }
