/* Portada (front-page.php) */
.t5-home {
  --t5-bg: #0d0d0d;
  --t5-surface: #171717;
  --t5-line: #2a2a2a;
  --t5-text: #f5f5f5;
  --t5-muted: #a3a3a3;
  --t5-accent: #d9a441;
  --t5-accent-ink: #1a1204;
  background: var(--t5-bg);
  color: var(--t5-text);
  font-size: 16px;
  padding-bottom: 56px;
}

.t5-home .t5-wrap {
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 16px;
}

.t5-home .t5-kicker {
  margin: 0 0 8px;
  color: var(--t5-accent);
  font-size: 13px;
  font-weight: 800;
  letter-spacing: .1em;
  text-transform: uppercase;
}

.t5-home a { text-decoration: none; }

.t5-btn {
  display: inline-block;
  padding: 14px 26px;
  border: 1px solid var(--t5-accent);
  border-radius: 10px;
  background: var(--t5-accent);
  color: var(--t5-accent-ink) !important;
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  transition: filter .2s, background .2s, color .2s;
}
.t5-btn:hover { filter: brightness(1.1); }
.t5-btn--ghost {
  background: transparent;
  color: var(--t5-accent) !important;
}
.t5-btn--ghost:hover {
  background: var(--t5-accent);
  color: var(--t5-accent-ink) !important;
  filter: none;
}

/* Evento destacado */
.t5-feature {
  position: relative;
  overflow: hidden;
  padding: 28px 0 40px;
}
.t5-feature__bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.35) saturate(1.2);
  transform: scale(1.1);
}
.t5-feature__grid {
  position: relative;
  display: grid;
  gap: 24px;
  align-items: center;
}
.t5-feature__poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}
.t5-home .t5-feature__title {
  margin: 0 0 14px;
  font-size: clamp(30px, 5vw, 52px);
  font-weight: 800;
  line-height: 1.05;
  text-align: left;
}
.t5-home .t5-feature__title a { color: #fff; }
.t5-feature__meta {
  margin: 0 0 24px;
  padding: 0;
  list-style: none;
  color: var(--t5-text);
  font-size: 17px;
  line-height: 1.6;
}
.t5-feature__cta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px 20px;
}
.t5-from { color: var(--t5-muted); }
.t5-from strong { color: #fff; }

@media (min-width: 900px) {
  .t5-feature { padding: 56px 0 64px; }
  .t5-feature__grid {
    grid-template-columns: minmax(0, 5fr) minmax(0, 6fr);
    gap: 56px;
  }
}

/* Cuadricula */
.t5-section { padding-top: 48px; }
.t5-home .t5-section__title {
  margin: 0 0 20px;
  color: #fff;
  font-size: 24px;
  font-weight: 800;
}
.t5-empty { color: var(--t5-muted); }

.t5-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 20px;
}

.t5-card {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  border: 1px solid var(--t5-line);
  border-radius: 14px;
  background: var(--t5-surface);
  color: var(--t5-text) !important;
  transition: transform .2s, border-color .2s;
}
.t5-card:hover {
  transform: translateY(-3px);
  border-color: var(--t5-accent);
}

.t5-card__media {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #111;
}
.t5-card__media img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.t5-card__date {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  flex-direction: column;
  align-items: center;
  min-width: 52px;
  padding: 6px 8px;
  border-radius: 10px;
  background: rgba(13, 13, 13, .88);
  color: var(--t5-accent);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  line-height: 1.1;
}
.t5-card__date strong {
  color: #fff;
  font-size: 22px;
}

.t5-card__body {
  display: flex;
  flex: 1;
  flex-direction: column;
  padding: 16px;
}
.t5-home .t5-card__title {
  margin: 0 0 6px;
  color: #fff;
  font-size: 18px;
  font-weight: 700;
  text-align: left;
}
.t5-card__meta {
  margin: 0;
  color: var(--t5-muted);
  font-size: 14px;
}
.t5-card__foot {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: auto;
  padding-top: 14px;
  color: var(--t5-muted);
  font-size: 14px;
}
.t5-card__foot strong { color: #fff; }
.t5-card__go {
  color: var(--t5-accent);
  font-weight: 700;
  white-space: nowrap;
}

/* Franja Mi cuenta */
.t5-strip {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px 24px;
  margin-top: 48px;
  padding: 24px;
  border: 1px solid var(--t5-line);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(217, 164, 65, .12), rgba(217, 164, 65, .02));
}
.t5-home .t5-strip h2 {
  margin: 0 0 4px;
  color: #fff;
  font-size: 20px;
  font-weight: 800;
}
.t5-strip p {
  margin: 0;
  max-width: 560px;
  color: var(--t5-muted);
}

/* Zona clara: "Mas eventos" y franja de Mi cuenta */
.t5-light {
  --t5-surface: #fff;
  --t5-line: #e7e3da;
  --t5-text: #1c1c1c;
  --t5-muted: #6b6b6b;
  padding-bottom: 56px;
  background: #fff;
  color: var(--t5-text);
}
.t5-home { padding-bottom: 0; }
.t5-home .t5-light .t5-section__title,
.t5-home .t5-light .t5-card__title,
.t5-home .t5-light .t5-strip h2 { color: var(--t5-text); }
.t5-light .t5-card {
  color: var(--t5-text) !important;
  box-shadow: 0 6px 24px rgba(0, 0, 0, .06);
}
.t5-light .t5-card:hover { box-shadow: 0 10px 30px rgba(0, 0, 0, .1); }
.t5-light .t5-card__foot strong { color: var(--t5-text); }
.t5-light .t5-card__go { color: #a77a22; }
.t5-light .t5-strip {
  background: linear-gradient(135deg, #faf3e2, #fdfaf3);
  border-color: #efe3c4;
}
.t5-light .t5-btn--ghost { color: #8a6418 !important; border-color: #d9a441; }
.t5-light .t5-btn--ghost:hover { color: #1a1204 !important; }
/* .t5-home .t5-wrap ponia padding-top 0 a la seccion */
.t5-home .t5-section { padding-top: 48px; }

/* Banner de la repeticion (va a /live) */
.t5-home .t5-replay-wrap { position: relative; margin-top: 32px; }
.t5-home .t5-replay-wrap--solo { margin-top: 0; padding-top: 32px; padding-bottom: 48px; }
.t5-replay {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  padding: 16px;
  border: 1px solid rgba(217, 164, 65, .45);
  border-radius: 16px;
  background: linear-gradient(120deg, rgba(217, 164, 65, .18), rgba(217, 164, 65, .04) 60%), rgba(18, 18, 18, .75);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  box-shadow: 0 18px 50px rgba(0, 0, 0, .45);
  color: var(--t5-text) !important;
  transition: border-color .2s, transform .2s;
}
.t5-replay:hover { border-color: var(--t5-accent); transform: translateY(-2px); }
.t5-replay__media {
  position: relative;
  display: block;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  background: #111;
}
.t5-replay__media img { display: block; width: 100%; height: 100%; object-fit: cover; }
.t5-replay__play {
  position: absolute;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(0, 0, 0, .35);
}
.t5-replay__play svg {
  width: 40px;
  height: 40px;
  padding: 9px 8px 9px 10px;
  border-radius: 50%;
  background: var(--t5-accent);
  fill: var(--t5-accent-ink);
}
.t5-replay__info { display: block; min-width: 0; }
.t5-replay .t5-kicker { display: block; margin-bottom: 4px; }
.t5-replay__title {
  display: block;
  color: #fff;
  font-size: 19px;
  font-weight: 800;
  line-height: 1.25;
}
.t5-replay__text {
  display: block;
  margin-top: 6px;
  color: var(--t5-muted);
  font-size: 15px;
  line-height: 1.5;
}
.t5-replay__meta { display: block; margin-top: 2px; font-size: 14px; }
.t5-replay__cta {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.t5-replay__price {
  color: #fff;
  font-size: 28px;
  font-weight: 800;
}
.t5-replay__cta .t5-btn { flex: 0 1 auto; text-align: center; }
@media (min-width: 900px) {
  .t5-home .t5-replay-wrap { margin-top: 48px; }
  .t5-home .t5-replay-wrap--solo { margin-top: 0; }
}
@media (min-width: 760px) {
  .t5-replay {
    grid-template-columns: 140px minmax(0, 1fr) auto;
    gap: 24px;
    padding: 20px 24px 20px 20px;
  }
  .t5-replay__title { font-size: 24px; }
  .t5-replay__cta {
    grid-column: auto;
    flex-direction: column;
    align-items: flex-end;
    gap: 10px;
  }
}
