/* Pagina de evento (templates/single-event.php) */
.t5-event {
  --t5-bg: #0d0d0d;
  --t5-surface: #171717;
  --t5-surface-2: #222;
  --t5-line: #2e2e2e;
  --t5-text: #f5f5f5;
  --t5-muted: #a3a3a3;
  --t5-accent: #d9a441;
  --t5-accent-ink: #1a1204;
  background: var(--t5-bg);
  color: var(--t5-text);
  font-size: 16px;
}

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

/* Hero */
.t5-hero {
  position: relative;
  overflow: hidden;
  padding: 32px 0 48px;
}

.t5-hero__bg {
  position: absolute;
  inset: -40px;
  background-size: cover;
  background-position: center;
  filter: blur(40px) brightness(.35) saturate(1.2);
  transform: scale(1.1);
}

.t5-hero__grid {
  position: relative;
  display: grid;
  gap: 28px;
}

@media (min-width: 900px) {
  .t5-hero { padding: 56px 0 72px; }
  .t5-hero__grid {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
  }
  .t5-poster { position: sticky; top: 24px; }
}

.t5-poster img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 14px;
  box-shadow: 0 24px 60px rgba(0, 0, 0, .6);
}

/* Info */
.t5-kicker {
  margin: 0 0 6px;
  color: var(--t5-accent);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.t5-event .t5-title {
  margin: 0 0 16px;
  color: #fff;
  font-size: clamp(30px, 5vw, 48px);
  font-weight: 800;
  line-height: 1.05;
  text-transform: none;
}

.t5-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 20px;
  margin: 0 0 14px;
  padding: 0;
  list-style: none;
  color: var(--t5-text);
}

.t5-meta li {
  display: flex;
  align-items: center;
  gap: 8px;
}

.t5-meta svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--t5-accent);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex-shrink: 0;
}

.t5-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 28px;
}

.t5-links a {
  padding: 6px 14px;
  border: 1px solid var(--t5-line);
  border-radius: 999px;
  background: rgba(255, 255, 255, .04);
  color: var(--t5-text);
  font-size: 14px;
  text-decoration: none;
  transition: border-color .2s, color .2s;
}

.t5-links a:hover {
  border-color: var(--t5-accent);
  color: var(--t5-accent);
}

/* Entradas */
.t5-tickets {
  padding: 20px;
  border: 1px solid var(--t5-line);
  border-radius: 14px;
  background: var(--t5-surface);
}

.t5-event .t5-tickets__title {
  margin: 0 0 12px;
  color: #fff;
  font-size: 20px;
  font-weight: 700;
}

.t5-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.t5-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px;
  margin-bottom: 8px;
  border: 1px solid var(--t5-line);
  border-radius: 10px;
  background: var(--t5-surface-2);
  transition: border-color .2s, background .2s;
}

.t5-row.is-selected {
  border-color: var(--t5-accent);
  background: rgba(217, 164, 65, .08);
}

.t5-row.is-soldout { opacity: .55; }

.t5-row__info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.t5-row__name {
  font-weight: 600;
  overflow-wrap: anywhere;
}

.t5-row__price {
  color: var(--t5-muted);
  font-size: 15px;
}

.t5-soldout {
  color: var(--t5-muted);
  font-size: 14px;
  font-weight: 600;
  text-transform: uppercase;
}

.t5-stepper {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.t5-stepper__btn {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--t5-line);
  border-radius: 50%;
  background: transparent;
  color: var(--t5-text);
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
  transition: background .15s, border-color .15s;
}

.t5-stepper__btn:hover:not(:disabled) {
  border-color: var(--t5-accent);
  background: var(--t5-accent);
  color: var(--t5-accent-ink);
}

.t5-stepper__btn:disabled {
  opacity: .3;
  cursor: default;
}

.t5-stepper__qty {
  min-width: 32px;
  font-size: 18px;
  font-weight: 700;
  text-align: center;
}

.t5-summary,
.t5-sticky {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.t5-summary {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--t5-line);
}

.t5-summary__total,
.t5-sticky__total {
  display: flex;
  flex-direction: column;
}

.t5-summary__count {
  color: var(--t5-muted);
  font-size: 14px;
}

.t5-summary__amount {
  color: #fff;
  font-size: 22px;
}

.t5-buy {
  padding: 14px 24px;
  border: 0;
  border-radius: 10px;
  background: var(--t5-accent);
  color: var(--t5-accent-ink);
  font-size: 16px;
  font-weight: 800;
  white-space: nowrap;
  cursor: pointer;
  transition: filter .2s, opacity .2s;
}

.t5-buy:hover:not(:disabled) { filter: brightness(1.1); }
.t5-buy:disabled { opacity: .35; cursor: default; }
.t5-buy.is-loading { opacity: .7; cursor: progress; }
.t5-buy.is-loading::after { content: '…'; }

.t5-error {
  margin: 12px 0 0;
  color: #ff8a80;
  font-size: 14px;
}

.t5-note,
.t5-empty {
  margin: 14px 0 0;
  color: var(--t5-muted);
  font-size: 13px;
  line-height: 1.5;
}

.t5-note a {
  color: var(--t5-accent);
  text-decoration: underline;
}

/* Descripcion */
.t5-about {
  padding-top: 8px;
  padding-bottom: 56px;
  line-height: 1.7;
}

.t5-event .t5-about h2 {
  color: #fff;
  font-size: 22px;
}

/* Barra fija en movil */
.t5-sticky {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 50;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  border-top: 1px solid var(--t5-line);
  background: rgba(13, 13, 13, .96);
  backdrop-filter: blur(8px);
}

.t5-sticky[hidden] { display: none; }

/* Espacio para que la barra fija no tape el final de la pagina */
body.t5-has-sticky { padding-bottom: 76px; }
@media (min-width: 900px) {
  body.t5-has-sticky { padding-bottom: 0; }
}

@media (min-width: 900px) {
  .t5-sticky { display: none !important; }
}
