/* =========================================================
   La Fiebre del Lúpulo — Sección de eventos
   (listado: template-calendario-eventos.php · ficha: template-parts/events/single.php)
   ========================================================= */

.lfl-ev {
  --ev-navy: #1B2C6F;
  --ev-navy-dark: #111c4a;
  --ev-navy-2: #2a3f8f;
  --ev-green: #76B62B;
  --ev-green-dark: #4f8a1c;
  --ev-green-soft: #eef7e3;
  --ev-bg-soft: #EEF1F8;
  --ev-text: #2b2f36;
  --ev-muted: #67737e;
  --ev-border: #e1e5ee;
  --ev-radius: 14px;
  --ev-head: "Zilla Slab", Georgia, serif;
  color: var(--ev-text);
  padding: 32px 0 72px;
}

.lfl-ev *,
.lfl-ev *::before,
.lfl-ev *::after { box-sizing: border-box; }

.lfl-ev-wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 16px;
}
.lfl-ev-wrap--narrow { max-width: 1080px; }

.lfl-ev-icon { flex: none; width: 15px; height: 15px; }

/* ---------- Botones ---------- */
.lfl-ev-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 0;
  border-radius: 10px;
  background: var(--ev-green);
  color: #fff !important;
  font-weight: 700;
  font-size: 15px;
  line-height: 1;
  padding: 13px 20px;
  cursor: pointer;
  text-decoration: none !important;
  transition: background .2s ease;
}
.lfl-ev-btn:hover { background: var(--ev-green-dark); }
.lfl-ev-btn--ghost {
  background: transparent;
  color: var(--ev-navy) !important;
  border: 1px solid var(--ev-border);
}
.lfl-ev-btn--ghost:hover { background: var(--ev-bg-soft); }
.lfl-ev-btn--block { width: 100%; }

/* ---------- Portada ---------- */
.lfl-ev-hero {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
  background:
    radial-gradient(1200px 400px at 85% -10%, rgba(118, 182, 43, .22), transparent 60%),
    linear-gradient(160deg, var(--ev-navy-dark) 0%, var(--ev-navy) 55%, var(--ev-navy-2) 100%);
  color: #fff;
  min-height: 420px;
  display: flex;
  align-items: center;
}
.lfl-ev-hero__inner {
  position: relative;
  z-index: 2;
  width: 100%;
  padding: 64px 48px 120px;
}
.lfl-ev-kicker {
  margin: 0 0 12px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--ev-green);
}
.lfl-ev-hero__title {
  margin: 0 0 14px;
  font-family: var(--ev-head);
  font-size: clamp(34px, 5vw, 54px);
  font-weight: 600;
  line-height: 1.05;
  color: #fff !important;
  text-transform: none;
}
.lfl-ev-hero__lead {
  max-width: 560px;
  margin: 0;
  font-size: 17px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.lfl-ev-stats {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 28px;
}
.lfl-ev-stats > div {
  min-width: 110px;
  padding: 10px 16px;
  border-radius: 12px;
  background: rgba(255, 255, 255, .08);
  border: 1px solid rgba(255, 255, 255, .14);
  backdrop-filter: blur(4px);
}
.lfl-ev-stats span {
  display: block;
  font-size: 11px;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .65);
}
.lfl-ev-stats strong {
  display: block;
  margin-top: 2px;
  font-size: 17px;
  color: #fff;
}
.lfl-ev-hero__chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 24px;
}
.lfl-ev-hero__chip {
  border: 1px solid rgba(255, 255, 255, .25);
  background: rgba(17, 28, 74, .45);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 12px;
  border-radius: 999px;
  cursor: pointer;
  transition: background .2s ease, border-color .2s ease;
}
.lfl-ev-hero__chip:hover {
  background: var(--ev-green);
  border-color: var(--ev-green);
}
.lfl-ev-hero__waves {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 150px;
  z-index: 1;
}

/* ---------- Filtros ---------- */
.lfl-ev-filters {
  margin-top: 20px;
  padding: 18px;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: #fff;
  box-shadow: 0 6px 24px rgba(27, 44, 111, .05);
}
.lfl-ev-search {
  display: flex;
  gap: 10px;
  margin: 0;
}
.lfl-ev-search__field {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}
.lfl-ev-search__field .lfl-ev-icon {
  position: absolute;
  left: 14px;
  color: var(--ev-muted);
}
.lfl-ev-search input[type="search"] {
  width: 100%;
  height: 46px;
  margin: 0;
  padding: 0 14px 0 40px;
  border: 1px solid var(--ev-border);
  border-radius: 10px;
  background: var(--ev-bg-soft);
  font-size: 15px;
  color: var(--ev-text);
  outline: none;
  box-shadow: none;
}
.lfl-ev-search input[type="search"]:focus {
  border-color: var(--ev-navy);
  background: #fff;
}
.lfl-ev-filters__grid {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 28px;
  margin-top: 16px;
}
.lfl-ev-field { min-width: 0; }
.lfl-ev-field--selects {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  flex: 1 1 100%;
}
.lfl-ev-label {
  display: block;
  margin-bottom: 6px;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--ev-muted);
}
.lfl-ev-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lfl-ev-chip {
  border: 1px solid var(--ev-border);
  background: #fff;
  color: var(--ev-text);
  font-size: 13px;
  font-weight: 600;
  line-height: 1;
  padding: 8px 13px;
  border-radius: 999px;
  cursor: pointer;
  transition: all .15s ease;
}
.lfl-ev-chip:hover { border-color: var(--ev-navy); color: var(--ev-navy); }
.lfl-ev-chip.is-active {
  background: var(--ev-navy);
  border-color: var(--ev-navy);
  color: #fff;
}
.lfl-ev-select select {
  width: 100%;
  height: 44px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--ev-border);
  border-radius: 10px;
  background-color: #fff;
  font-size: 15px;
  color: var(--ev-text);
}

/* ---------- Resultados ---------- */
.lfl-ev-results { margin-top: 32px; }
.lfl-ev-results__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.lfl-ev-results__title {
  margin: 0;
  font-family: var(--ev-head);
  font-size: 26px;
  font-weight: 600;
  color: var(--ev-navy) !important;
  text-transform: none;
}
.lfl-ev-toggle {
  display: inline-flex;
  padding: 4px;
  border: 1px solid var(--ev-border);
  border-radius: 12px;
  background: #fff;
}
.lfl-ev-toggle button {
  border: 0;
  background: transparent;
  color: var(--ev-muted);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  padding: 9px 14px;
  border-radius: 9px;
  cursor: pointer;
}
.lfl-ev-toggle button.is-active {
  background: var(--ev-green);
  color: #fff;
}
.lfl-ev-count {
  margin: 0 0 14px;
  font-size: 14px;
  color: var(--ev-muted);
}

/* Destacado */
.lfl-ev-featured { margin-bottom: 28px; }
.lfl-ev-featured__label {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: var(--ev-green-dark);
}

/* Cuadrícula */
.lfl-ev-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

/* ---------- Tarjeta ---------- */
.lfl-ev-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--ev-border);
  border-radius: var(--ev-radius);
  background: #fff;
  transition: transform .2s ease, box-shadow .2s ease;
}
.lfl-ev-card:hover {
  transform: translateY(-3px);
  box-shadow: 0 14px 30px rgba(27, 44, 111, .12);
}
.lfl-ev-card__media {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  text-decoration: none !important;
}
.lfl-ev-card__media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.lfl-ev-card__initials {
  font-family: var(--ev-head);
  font-size: 40px;
  font-weight: 700;
  letter-spacing: .04em;
  color: rgba(255, 255, 255, .92);
}
.lfl-ev-tone-0 { background: linear-gradient(135deg, #1B2C6F, #3b56b5); }
.lfl-ev-tone-1 { background: linear-gradient(135deg, #2f5d12, #76B62B); }
.lfl-ev-tone-2 { background: linear-gradient(135deg, #111c4a, #2f6b3a); }
.lfl-ev-tone-3 { background: linear-gradient(135deg, #2a3f8f, #4f8a1c); }
.lfl-ev-card.is-past .lfl-ev-card__media { filter: saturate(.55); }

.lfl-ev-card__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 18px;
}
.lfl-ev-card__title {
  margin: 0;
  font-family: var(--ev-head);
  font-size: 21px;
  font-weight: 600;
  line-height: 1.2;
  text-transform: none;
}
.lfl-ev-card__title a {
  color: var(--ev-navy) !important;
  text-decoration: none !important;
}
.lfl-ev-card__title a:hover { color: var(--ev-green-dark) !important; }
.lfl-ev-card__excerpt {
  margin: 2px 0 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--ev-muted);
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Meta (fecha y lugar) */
.lfl-ev-meta {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 14px;
  color: var(--ev-text);
}
.lfl-ev-meta > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.lfl-ev-meta .lfl-ev-icon { color: var(--ev-green-dark); }

/* Etiquetas */
.lfl-ev-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.lfl-ev-badges--over {
  position: absolute;
  top: 10px;
  left: 10px;
  z-index: 1;
}
.lfl-ev-badge {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .92);
  color: var(--ev-navy) !important;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  letter-spacing: .02em;
  text-decoration: none !important;
}
.lfl-ev-badge.is-upcoming { background: var(--ev-green); color: #fff !important; }
.lfl-ev-badge.is-ongoing { background: #f2b705; color: #2b2300 !important; }
.lfl-ev-badge.is-past { background: #dfe3ea; color: #4b5563 !important; }
.lfl-ev-badge.is-featured { background: var(--ev-navy); color: #fff !important; }

/* Tarjeta destacada (horizontal) */
.lfl-ev-card--featured { flex-direction: row; }
.lfl-ev-card--featured .lfl-ev-card__media {
  flex: 0 0 38%;
  aspect-ratio: auto;
  min-height: 220px;
}
.lfl-ev-card--featured .lfl-ev-card__body {
  justify-content: center;
  padding: 24px 28px;
}
.lfl-ev-card--featured .lfl-ev-card__title { font-size: 30px; }
.lfl-ev-card--featured .lfl-ev-card__excerpt { -webkit-line-clamp: 3; font-size: 15px; }

/* ---------- Cronología ---------- */
.lfl-ev-month + .lfl-ev-month { margin-top: 28px; }
.lfl-ev-month__title {
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--ev-green);
  font-family: var(--ev-head);
  font-size: 20px;
  font-weight: 600;
  color: var(--ev-navy) !important;
  text-transform: capitalize;
}
.lfl-ev-month__list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.lfl-ev-row {
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 14px 16px;
  border: 1px solid var(--ev-border);
  border-radius: 12px;
  background: #fff;
  color: inherit !important;
  text-decoration: none !important;
  transition: border-color .2s ease, box-shadow .2s ease;
}
.lfl-ev-row:hover {
  border-color: var(--ev-navy);
  box-shadow: 0 8px 20px rgba(27, 44, 111, .08);
}
.lfl-ev-row__date {
  flex: none;
  width: 62px;
  padding: 8px 0;
  border-radius: 10px;
  background: var(--ev-navy);
  color: #fff;
  text-align: center;
  line-height: 1;
}
.lfl-ev-row.is-past .lfl-ev-row__date { background: #8a93a6; }
.lfl-ev-row__date strong {
  display: block;
  font-family: var(--ev-head);
  font-size: 26px;
}
.lfl-ev-row__date span {
  display: block;
  margin-top: 3px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.lfl-ev-row__body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.lfl-ev-row__title {
  font-family: var(--ev-head);
  font-size: 19px;
  font-weight: 600;
  line-height: 1.2;
  color: var(--ev-navy);
}
.lfl-ev-row .lfl-ev-meta { flex-direction: row; flex-wrap: wrap; gap: 4px 16px; }
.lfl-ev-row .lfl-ev-badge { background: var(--ev-bg-soft); }
.lfl-ev-row .lfl-ev-badge.is-upcoming { background: var(--ev-green); }
.lfl-ev-row .lfl-ev-badge.is-ongoing { background: #f2b705; }
.lfl-ev-row .lfl-ev-badge.is-past { background: #dfe3ea; }

/* Estados de filtrado */
.lfl-ev [data-ev].is-hidden,
.lfl-ev [data-month].is-hidden,
.lfl-ev [data-featured-wrap].is-hidden { display: none !important; }

.lfl-ev-empty {
  display: none;
  padding: 48px 16px;
  border: 1px dashed var(--ev-border);
  border-radius: var(--ev-radius);
  text-align: center;
  color: var(--ev-muted);
}
.lfl-ev-empty.is-visible { display: block; }
.lfl-ev-empty p { margin: 0 0 14px; font-size: 16px; }

/* ---------- Ficha del evento ---------- */
.lfl-ev-back {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 22px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ev-green-dark) !important;
  text-decoration: none !important;
}
.lfl-ev-back:hover { color: var(--ev-navy) !important; }

.lfl-ev-single {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 40px;
  align-items: start;
}
.lfl-ev-single .lfl-ev-badge { background: var(--ev-bg-soft); }
.lfl-ev-single .lfl-ev-badge.is-upcoming { background: var(--ev-green); }
.lfl-ev-single .lfl-ev-badge.is-ongoing { background: #f2b705; }
.lfl-ev-single .lfl-ev-badge.is-past { background: #dfe3ea; }
.lfl-ev-single .lfl-ev-badge.is-featured { background: var(--ev-navy); }
.lfl-ev-single__title {
  margin: 14px 0 20px;
  font-family: var(--ev-head);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.08;
  color: var(--ev-navy) !important;
  text-transform: none;
}
.lfl-ev-single__image {
  margin: 0 0 24px;
  overflow: hidden;
  border-radius: var(--ev-radius);
}
.lfl-ev-single__image img {
  display: block;
  width: 100%;
  height: auto;
}
.lfl-ev-single__content {
  font-size: 17px;
  line-height: 1.7;
  color: var(--ev-text);
}
.lfl-ev-single__content > :first-child { margin-top: 0; }

/* Caja de datos */
.lfl-ev-info {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--ev-border);
  border-top: 5px solid var(--ev-green);
  border-radius: var(--ev-radius);
  background: #fff;
  box-shadow: 0 10px 30px rgba(27, 44, 111, .07);
}
.lfl-ev-info__item {
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.lfl-ev-info__label {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-bottom: 2px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--ev-muted);
}
.lfl-ev-info__label .lfl-ev-icon { width: 14px; height: 14px; color: var(--ev-green-dark); }
.lfl-ev-info strong {
  font-size: 17px;
  line-height: 1.35;
  color: var(--ev-navy);
}
.lfl-ev-info__sub {
  font-size: 14px;
  line-height: 1.45;
  color: var(--ev-muted);
}
.lfl-ev-info__link {
  margin-top: 4px;
  font-size: 14px;
  font-weight: 600;
  color: var(--ev-green-dark) !important;
}
.lfl-ev-info__add {
  padding-top: 16px;
  border-top: 1px solid var(--ev-border);
}
.lfl-ev-info__add > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 6px;
}
.lfl-ev-info__add a {
  padding: 7px 12px;
  border: 1px solid var(--ev-border);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 600;
  color: var(--ev-navy) !important;
  text-decoration: none !important;
}
.lfl-ev-info__add a:hover { border-color: var(--ev-navy); }

.lfl-ev-more { margin-top: 56px; }
.lfl-ev-more .lfl-ev-results__title { margin-bottom: 18px; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .lfl-ev-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .lfl-ev-single { grid-template-columns: 1fr; gap: 28px; }
  .lfl-ev-info { position: static; }
}

@media (max-width: 767px) {
  .lfl-ev { padding-top: 16px; }
  .lfl-ev-hero { min-height: 0; border-radius: 16px; }
  .lfl-ev-hero__inner { padding: 40px 22px 100px; }
  .lfl-ev-hero__lead { font-size: 16px; }
  .lfl-ev-stats > div { flex: 1 1 calc(33% - 10px); min-width: 0; padding: 8px 10px; }
  .lfl-ev-stats strong { font-size: 15px; }
  .lfl-ev-filters { padding: 14px; }
  .lfl-ev-field--selects { grid-template-columns: 1fr; }
  .lfl-ev-grid { grid-template-columns: 1fr; }
  .lfl-ev-results__head { flex-wrap: wrap; }
  .lfl-ev-card--featured { flex-direction: column; }
  .lfl-ev-card--featured .lfl-ev-card__media { flex: none; aspect-ratio: 16 / 9; min-height: 0; }
  .lfl-ev-card--featured .lfl-ev-card__body { padding: 16px 18px 18px; }
  .lfl-ev-card--featured .lfl-ev-card__title { font-size: 24px; }
  .lfl-ev-row { flex-wrap: wrap; gap: 12px; }
  .lfl-ev-row .lfl-ev-badges { flex-basis: 100%; }
}

/* =========================================================
   Vistas del plugin The Events Calendar (/eventos/: Lista, Mes, Día)
   Colores institucionales y tipografía de La Fiebre del Lúpulo
   ========================================================= */

.tribe-common,
.tribe-events {
  --tec-color-accent-primary: #76B62B;
  --tec-color-accent-primary-hover: #4f8a1c;
  --tec-color-accent-primary-active: #4f8a1c;
  --tec-color-accent-primary-background: rgba(118, 182, 43, .1);
  --tec-color-accent-secondary: #1B2C6F;
  --tec-color-accent-secondary-hover: rgba(27, 44, 111, .85);
  --tec-color-accent-secondary-active: #111c4a;
  --tec-color-text-primary: #1B2C6F;
  --tec-color-text-primary-light: rgba(27, 44, 111, .62);
  --tec-color-text-secondary: #67737e;
  --tec-color-text-events-title: #1B2C6F;
  --tec-color-text-event-title: #1B2C6F;
  --tec-color-text-event-date: #4f8a1c;
  --tec-color-text-secondary-event-date: #67737e;
  /* Variables derivadas: hay que repetirlas, porque el plugin las calcula en :root */
  --tec-color-button-primary: #76B62B;
  --tec-color-button-primary-hover: #4f8a1c;
  --tec-color-button-primary-active: #4f8a1c;
  --tec-color-button-primary-background: rgba(118, 182, 43, .1);
  --tec-color-button-secondary: #1B2C6F;
  --tec-color-button-secondary-hover: rgba(27, 44, 111, .85);
  --tec-color-button-secondary-active: #111c4a;
  --tec-color-button-secondary-background: rgba(27, 44, 111, .07);
  --tec-form-color-border-active: #1B2C6F;
  --tec-form-color-accent-primary: #76B62B;
  --tec-color-accent-primary-background-datepicker: rgba(118, 182, 43, .1);
  --tec-color-background-secondary-datepicker: #EEF1F8;
  --tec-color-accent-primary-multiday: rgba(118, 182, 43, .22);
  --tec-color-background-events-bar-submit-button: #76B62B;
  --tec-color-background-events-bar-submit-button-hover: #4f8a1c;
  --tec-color-background-events-bar-submit-button-active: #4f8a1c;
  --tec-color-text-events-bar-submit-button: #fff;
  --tec-color-text-event-title-list: #1B2C6F;
  --tec-color-text-events-title-day: #1B2C6F;
  --tec-color-text-events-title-latest-past: #1B2C6F;
  --tec-color-text-events-title-month-multiday: #1B2C6F;
  --tec-color-text-events-bar-input: #2b2f36;
  --tec-color-text-view-selector-list-item: #1B2C6F;
  --tec-color-text-view-selector-list-item-hover: #4f8a1c;
  --tec-color-border-events-bar: #e1e5ee;
  --tec-color-border-secondary-month-grid: #e1e5ee;
  --tec-color-day-marker-month: #1B2C6F;
  --tec-color-day-marker-current-month: #1B2C6F;
  --tec-color-day-marker-past-month: #b3bccb;
  --tec-color-text-day-of-week-month: #67737e;
  --tec-color-category-legend-default-1: #76B62B;
  --tec-color-accent-primary-multiday-hover: rgba(118, 182, 43, .36);
  --tec-color-icon-active: #1B2C6F;
  --tec-color-icon-focus: #76B62B;
  --tec-color-event-icon: #4f8a1c;
  --tec-color-event-icon-hover: #1B2C6F;
  --tec-color-link-primary: #1B2C6F;
  --tec-color-link-accent: #4f8a1c;
  --tec-color-link-accent-hover: #1B2C6F;
  --tec-color-border-default: #e1e5ee;
  --tec-color-border-secondary: #e9ecf3;
  --tec-color-border-active: #1B2C6F;
  --tec-color-background-secondary: #EEF1F8;
  --tec-color-background-secondary-hover: #e3e8f4;
  --tec-color-background-primary-multiday: rgba(118, 182, 43, .22);
  --tec-color-background-primary-multiday-hover: rgba(118, 182, 43, .36);
  --tec-color-accent-primary-week-event: rgba(118, 182, 43, .14);
  --tec-color-accent-primary-week-event-hover: rgba(118, 182, 43, .26);
  --tec-border-radius-default: 10px;
  --tec-font-family-sans-serif: "Oxygen", system-ui, sans-serif;
  --tec-font-family-base: "Oxygen", system-ui, sans-serif;
  --lfl-head: "Zilla Slab", Georgia, serif;
}

/* Contenedor */
.tribe-events .tribe-events-l-container {
  padding-top: 32px !important;
  padding-bottom: 72px !important;
}

/* Portada compacta (se imprime desde includes/lfl-events.php) */
.tribe-common .lfl-tec-hero,
.lfl-tec-hero {
  position: relative;
  overflow: hidden;
  width: 100%;
  margin: 0 0 24px !important;
  padding: 40px 40px 64px !important;
  border-radius: 20px;
  background:
    radial-gradient(900px 300px at 85% -20%, rgba(118, 182, 43, .25), transparent 60%),
    linear-gradient(160deg, #111c4a 0%, #1B2C6F 55%, #2a3f8f 100%);
  color: #fff;
}
.tribe-common .lfl-tec-hero__kicker {
  margin: 0 0 10px !important;
  font-family: "Oxygen", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: #76B62B;
}
.tribe-common .lfl-tec-hero__title {
  margin: 0 0 10px !important;
  font-family: var(--lfl-head);
  font-size: clamp(32px, 4.5vw, 48px);
  font-weight: 600;
  line-height: 1.05;
  color: #fff !important;
  text-transform: none;
}
.tribe-common .lfl-tec-hero__lead {
  max-width: 560px;
  margin: 0 !important;
  font-family: "Oxygen", system-ui, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  color: rgba(255, 255, 255, .82);
}
.lfl-tec-hero svg {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 70px;
}

/* Barra de búsqueda y selector de vista */
.tribe-events .tribe-events-c-events-bar {
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 6px 24px rgba(27, 44, 111, .05);
}
@media (min-width: 768px) {
  .tribe-events .tribe-events-header__events-bar { margin-bottom: 28px; }
  .tribe-events .tribe-events-c-events-bar__search-container { padding-left: 8px; }
}
.tribe-common .tribe-common-c-btn,
.tribe-common a.tribe-common-c-btn,
.tribe-events .tribe-events-c-search__button {
  border-radius: 10px;
  background-color: #76B62B;
  font-family: var(--tec-font-family-sans-serif);
  font-weight: 700;
  color: #fff;
}
.tribe-common .tribe-common-c-btn:hover,
.tribe-common .tribe-common-c-btn:focus,
.tribe-events .tribe-events-c-search__button:hover,
.tribe-events .tribe-events-c-search__button:focus {
  background-color: #4f8a1c;
}
.tribe-events .tribe-events-c-view-selector__list-item-text,
.tribe-events .tribe-events-c-view-selector__button-text {
  font-weight: 700;
  color: #1B2C6F;
}
.tribe-events .tribe-events-c-view-selector__list-item--active .tribe-events-c-view-selector__list-item-link::after {
  height: 3px;
  background-color: #76B62B;
}

/* Barra superior: flechas, «Hoy» y fecha */
.tribe-events .tribe-events-c-top-bar__datepicker-button,
.tribe-events .tribe-events-c-top-bar__datepicker-desktop,
.tribe-events .tribe-events-c-top-bar__datepicker-mobile {
  font-family: var(--lfl-head);
  font-weight: 600;
  color: #1B2C6F;
}
.tribe-events .tribe-events-c-top-bar__today-button {
  border-color: #e1e5ee;
  border-radius: 999px;
  padding: 6px 14px;
  font-weight: 700;
  color: #1B2C6F;
}
.tribe-events .tribe-events-c-top-bar__today-button:hover { border-color: #1B2C6F; }
.tribe-common .tribe-common-c-btn-icon--caret-left .tribe-common-c-btn-icon__icon-svg path,
.tribe-common .tribe-common-c-btn-icon--caret-right .tribe-common-c-btn-icon__icon-svg path { fill: #1B2C6F; }

/* ---------- Lista ---------- */
.tribe-events .tribe-events-calendar-list__month-separator-text {
  font-family: var(--lfl-head);
  font-size: 20px;
  font-weight: 600;
  color: #1B2C6F;
  text-transform: capitalize;
}
.tribe-events .tribe-events-calendar-list__month-separator::after {
  height: 2px;
  background-color: #76B62B;
}
.tribe-events .tribe-events-calendar-list__event-row {
  margin-top: 16px;
  margin-bottom: 16px;
}
.tribe-events .tribe-events-calendar-list__event-date-tag { align-self: flex-start; }
.tribe-events .tribe-events-calendar-list__event-date-tag-datetime {
  height: auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 64px;
  padding: 10px 0;
  border-radius: 12px;
  background: #1B2C6F;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-weekday {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: .06em;
  color: #76B62B;
}
.tribe-events .tribe-events-calendar-list__event-date-tag-daynum {
  font-family: var(--lfl-head);
  font-size: 28px;
  font-weight: 700;
  line-height: 1;
  color: #fff;
}
.tribe-events .tribe-events-calendar-list__event-row--featured .tribe-events-calendar-list__event-date-tag-datetime::after { display: none; }

.tribe-events .tribe-events-calendar-list__event {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 18px 6px;
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #fff;
  transition: box-shadow .2s ease, border-color .2s ease;
}
.tribe-events .tribe-events-calendar-list__event:hover {
  border-color: #c9d1e3;
  box-shadow: 0 14px 30px rgba(27, 44, 111, .1);
}
.tribe-events .tribe-events-calendar-list__event-featured-image-wrapper img,
.tribe-events .tribe-events-calendar-list__event-featured-image {
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  border-radius: 10px;
}
.tribe-events .tribe-events-calendar-list__event-title,
.tribe-events .tribe-events-calendar-day__event-title,
.tribe-events .tribe-events-calendar-latest-past__event-title {
  font-family: var(--lfl-head);
  font-size: 26px;
  font-weight: 600;
  line-height: 1.15;
}
.tribe-events .tribe-events-calendar-list__event-title-link,
.tribe-events .tribe-events-calendar-day__event-title-link,
.tribe-events .tribe-events-calendar-latest-past__event-title-link {
  color: #1B2C6F;
  border-bottom: 0;
}
.tribe-events .tribe-events-calendar-list__event-title-link:hover,
.tribe-events .tribe-events-calendar-day__event-title-link:hover,
.tribe-events .tribe-events-calendar-latest-past__event-title-link:hover {
  color: #4f8a1c;
  border-bottom: 0;
}
.tribe-events .tribe-events-calendar-list__event-datetime,
.tribe-events .tribe-events-calendar-day__event-datetime {
  font-size: 14px;
  font-weight: 700;
  color: #4f8a1c;
}
.tribe-events .tribe-events-calendar-list__event-venue,
.tribe-events .tribe-events-calendar-day__event-venue,
.tribe-events .tribe-events-calendar-list__event-description,
.tribe-events .tribe-events-calendar-day__event-description {
  font-size: 15px;
  color: #67737e;
}
.tribe-events .tribe-events-calendar-list__event-venue-title,
.tribe-events .tribe-events-calendar-day__event-venue-title { color: #1B2C6F; }

/* Etiqueta «Destacado» */
.tribe-events .tribe-events-calendar-list__event-datetime-featured-text,
.tribe-events .tribe-events-calendar-day__event-datetime-featured-text { color: #1B2C6F; }
.tribe-events .tribe-events-calendar-list__event-datetime-featured-icon-svg path { fill: #76B62B; }

/* ---------- Mes ---------- */
.tribe-events .tribe-events-calendar-month__header-column-title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: #67737e;
}
.tribe-events .tribe-events-calendar-month__day-date-daynum {
  font-family: var(--lfl-head);
  font-size: 18px;
  font-weight: 600;
  color: #1B2C6F;
}
.tribe-events .tribe-events-calendar-month__day--past .tribe-events-calendar-month__day-date-daynum,
.tribe-events .tribe-events-calendar-month__day--other-month .tribe-events-calendar-month__day-date-daynum { color: #b3bccb; }
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #76B62B;
  color: #fff;
}
.tribe-events .tribe-events-calendar-month__day--current .tribe-events-calendar-month__day-date-daynum a { color: #fff; }
.tribe-events .tribe-events-calendar-month__day-date-link { color: inherit; }
.tribe-events .tribe-events-calendar-month__multiday-event-bar {
  border-radius: 6px;
}
.tribe-events .tribe-events-calendar-month__multiday-event-bar-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title,
.tribe-events .tribe-events-calendar-month__calendar-event-title-link {
  font-weight: 700;
  color: #1B2C6F;
}
.tribe-events .tribe-events-calendar-month__calendar-event-datetime { color: #4f8a1c; }
.tribe-events .tribe-events-calendar-month__more-events-link { color: #4f8a1c; font-weight: 700; }
.tribe-events .tribe-events-calendar-month__mobile-events-icon--event { background-color: #76B62B; }
.tribe-events .tribe-events-calendar-month__day-cell--selected,
.tribe-events .tribe-events-calendar-month__day-cell--selected:hover,
.tribe-events .tribe-events-calendar-month__day-cell--selected:focus { background-color: #1B2C6F; }

/* Tooltip del mes */
.tribe-events-tooltip-theme .tribe-events-calendar-month__tooltip-title,
.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-title {
  font-family: "Zilla Slab", Georgia, serif;
  font-weight: 600;
}
.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-title-link { color: #1B2C6F; }
.tribe-events-tooltip-theme .tribe-events-calendar-month__calendar-event-tooltip-datetime { color: #4f8a1c; }

/* ---------- Día ---------- */
.tribe-events .tribe-events-calendar-day__type-separator-text,
.tribe-events .tribe-events-calendar-day__time-separator-text {
  font-family: var(--lfl-head);
  font-weight: 600;
  color: #1B2C6F;
}
.tribe-events .tribe-events-calendar-day__event {
  margin-left: 0 !important;
  margin-right: 0 !important;
  padding: 18px 6px;
  border: 1px solid #e1e5ee;
  border-radius: 14px;
  background: #fff;
}

/* Navegación inferior y mensajes */
.tribe-events .tribe-events-c-nav__prev,
.tribe-events .tribe-events-c-nav__next,
.tribe-events .tribe-events-c-nav__today {
  font-weight: 700;
  color: #1B2C6F;
}
.tribe-events .tribe-events-c-nav__prev:hover,
.tribe-events .tribe-events-c-nav__next:hover,
.tribe-events .tribe-events-c-nav__today:hover { color: #4f8a1c; }
.tribe-events .tribe-events-c-messages__message {
  border-radius: 12px;
  background: #EEF1F8;
  color: #1B2C6F;
}
.tribe-events .tribe-events-c-subscribe-dropdown__button {
  border-color: #e1e5ee;
  border-radius: 10px;
  color: #1B2C6F;
}

@media (max-width: 767px) {
  .tribe-common .lfl-tec-hero { padding: 28px 22px 52px !important; border-radius: 16px; }
  .tribe-events .tribe-events-calendar-list__event { padding: 14px 4px; }
  .tribe-events .tribe-events-calendar-list__event-title { font-size: 22px; }
  .tribe-events .tribe-events-calendar-list__event-date-tag-datetime { width: 56px; }
}
