/* ==========================================================================
   TICKETU · Página de evento principal  (/event/{friendlyurl})
   Usa los tokens definidos en main.css
   ========================================================================== */

.ev { --ev-radius: var(--r-lg); }

/* tamaños de botón extra */
.btn--lg { padding: .9em 1.6em; font-size: 1.02rem; min-height: 52px; }
.btn--ghost-dark { background: rgba(255,255,255,.12); color:#fff; border:1.5px solid rgba(255,255,255,.4); }
.btn--ghost-dark:hover { background: rgba(255,255,255,.22); border-color:#fff; transform: translateY(-2px); }

/* ============ HERO ============ */
.ev-hero { position: relative; color:#fff; isolation:isolate; overflow:hidden; }
.ev-hero__bg {
  position:absolute; inset:0; z-index:-2;
  background-size:cover; background-position:center;
  transform: scale(1.08); filter: saturate(1.05);
}
.ev-hero__bg::after { content:""; position:absolute; inset:0; backdrop-filter: blur(4px); }
.ev-hero__scrim {
  position:absolute; inset:0; z-index:-1;
  background:
    linear-gradient(180deg, rgba(22,17,13,.35) 0%, rgba(22,17,13,.72) 55%, rgba(22,17,13,.94) 100%),
    radial-gradient(120% 80% at 15% 0%, rgba(255,102,0,.28), transparent 60%);
}
.ev-hero__inner { padding-block: 26px 48px; }

.ev-crumbs { display:flex; flex-wrap:wrap; align-items:center; gap:8px; font-size:.86rem; color:rgba(255,255,255,.75); margin-bottom:28px; }
.ev-crumbs a:hover { color:#fff; text-decoration:underline; }
.ev-crumbs b { color:#fff; font-weight:600; }
.ev-crumbs span { opacity:.5; }

.ev-hero__grid { display:grid; grid-template-columns: 300px 1fr; gap: clamp(24px,4vw,52px); align-items:end; }
.ev-hero__poster {
  margin:0; border-radius: var(--r-lg); overflow:hidden; aspect-ratio: 3/4;
  box-shadow: var(--shadow-3); border:1px solid rgba(255,255,255,.16); background:#211a14;
}
.ev-hero__poster img { width:100%; height:100%; object-fit:cover; }

.ev-hero__eyebrow { color:#fff; opacity:.85; }
.ev-hero__title {
  font-size: clamp(2rem, 5.2vw, 3.6rem); margin:.18em 0 .55em;
  text-shadow: 0 2px 30px rgba(0,0,0,.4);
}
.ev-facts { list-style:none; padding:0; margin:0 0 26px; display:flex; flex-direction:column; gap:11px; }
.ev-facts li { display:flex; align-items:center; gap:11px; font-size:1.02rem; color:rgba(255,255,255,.94); }
.ev-facts svg { width:20px; height:20px; flex:none; color:var(--orange-200); }

.ev-hero__cta { display:flex; flex-wrap:wrap; gap:12px; }

/* ---- Hero centrado (solo título, ubicación y funciones) ---- */
.ev-hero__grid--center { grid-template-columns: 1fr; justify-items:center; text-align:center; }
.ev-hero__grid--center .ev-hero__meta { display:flex; flex-direction:column; align-items:center; max-width:760px; }
.ev-hero__grid--center .ev-facts { align-items:center; }
.ev-hero__grid--center .ev-facts li { justify-content:center; }
.ev-hero__grid--center .ev-hero__cta { justify-content:center; width:auto; }
.ev-hero__grid--center .ev-hero__cta .btn { flex:none; }

/* ---- Imagen del evento (arriba de "Acerca del evento") ---- */
.ev-poster {
  margin:0; border-radius: var(--r-lg); overflow:hidden;
  box-shadow: var(--shadow-3); border:1px solid var(--border, rgba(0,0,0,.08)); background:#211a14;
}
.ev-poster img { width:100%; height:auto; display:block; object-fit:cover; }

/* ============ BODY LAYOUT ============ */
.ev-body {
  display:grid; grid-template-columns: minmax(0,1fr) 360px; gap: clamp(20px,3vw,34px);
  padding-block: clamp(32px,5vw,56px);
  align-items:start;
}
.ev-main { display:flex; flex-direction:column; gap:22px; min-width:0; }
.ev-aside { display:flex; flex-direction:column; gap:22px; position:sticky; top:90px; }

.ev-card {
  background: var(--surface); border:1px solid var(--line);
  border-radius: var(--r-lg); padding: clamp(20px,3vw,30px);
  box-shadow: var(--shadow-1);
}
.ev-h2 { font-size: 1.32rem; margin-bottom:4px; }
.ev-h2__sub { color: var(--muted); font-size:.95rem; margin-bottom:18px; }
.ev-card .ev-h2 + .ev-h2__sub { margin-top:2px; }

/* descripción (HTML del admin) */
.ev-desc { color: var(--text); line-height:1.7; margin-top:12px; }
.ev-desc :where(p,ul,ol) { margin-bottom:.9em; }
.ev-desc img { border-radius: var(--r-md); margin:.6em 0; }
.ev-desc a { color: var(--orange-700); text-decoration:underline; }
.ev-desc h1,.ev-desc h2,.ev-desc h3 { margin:.8em 0 .35em; }

/* ============ FECHAS / SUBEVENTOS ============ */
.ev-dates { list-style:none; padding:0; margin:0; display:flex; flex-direction:column; gap:12px; }
.ev-date {
  display:grid; grid-template-columns: 72px 1fr auto; gap:18px; align-items:center;
  padding:16px; border:1px solid var(--line); border-radius: var(--r-md);
  background: var(--surface); transition: border-color .2s, box-shadow .2s, transform .2s;
}
.ev-date:hover { border-color: var(--orange-200); box-shadow: var(--shadow-1); transform: translateY(-1px); }
.ev-date.is-off { opacity:.62; }
.ev-date.is-off:hover { transform:none; box-shadow:none; border-color:var(--line); }

.ev-date__cal {
  display:flex; flex-direction:column; align-items:center; justify-content:center;
  width:72px; height:78px; border-radius: var(--r-md);
  background: linear-gradient(160deg, var(--orange-100), #fff);
  border:1px solid var(--orange-200); color: var(--orange-700); line-height:1;
}
.ev-date__m { font-size:.74rem; font-weight:800; text-transform:uppercase; letter-spacing:.08em; }
.ev-date__d { font-family:"Bricolage Grotesque",sans-serif; font-size:1.7rem; font-weight:800; color: var(--ink); margin:2px 0; }
.ev-date__y { font-size:.72rem; color: var(--muted); }

.ev-date__info { min-width:0; }
.ev-date__info h3 { font-size:1.08rem; margin-bottom:6px; }
.ev-date__sub { display:flex; flex-direction:column; gap:4px; }
.ev-date__sub span { display:flex; align-items:center; gap:7px; color: var(--muted); font-size:.9rem; }
.ev-date__sub svg { width:15px; height:15px; flex:none; color: var(--orange-700); }
.ev-date__action { justify-self:end; }

.ev-badge { display:inline-flex; align-items:center; padding:.5em 1em; border-radius:999px; font-weight:700; font-size:.84rem; }
.ev-badge--off { background:#efeae6; color: var(--muted); }
.ev-badge--soon { background: var(--blue-100); color: var(--blue); }

.ev-empty { text-align:center; padding:34px 10px; color: var(--muted); }
.ev-empty svg { color: var(--line-2); margin-bottom:10px; }

/* ============ PUNTOS DE VENTA ============ */
.ev-points { list-style:none; padding:0; margin:0; display:grid; grid-template-columns: repeat(auto-fill, minmax(220px,1fr)); gap:14px; }
.ev-point { display:flex; gap:13px; padding:14px; border:1px solid var(--line); border-radius: var(--r-md); background: var(--bg); }
.ev-point__ic { width:42px; height:42px; flex:none; display:grid; place-items:center; border-radius:12px; background: var(--orange-100); color: var(--orange-700); }
.ev-point__ic svg { width:21px; height:21px; }
.ev-point strong { display:block; font-size:.98rem; margin-bottom:3px; }
.ev-point p { color: var(--muted); font-size:.88rem; line-height:1.45; }

/* ============ PROMOTOR ============ */
.ev-promo__row { display:flex; align-items:center; gap:14px; margin:14px 0 18px; }
.ev-promo__logo {
  width:60px; height:60px; flex:none; border-radius:14px; overflow:hidden;
  display:grid; place-items:center; background: var(--orange-100); color: var(--orange-700);
  border:1px solid var(--orange-200);
}
.ev-promo__logo img { width:100%; height:100%; object-fit:cover; }
.ev-promo__logo svg { width:28px; height:28px; }
.ev-promo__logo.is-empty { background: var(--orange-100); }
.ev-promo__row strong { font-size:1.05rem; }
.ev-promo__role { color: var(--muted); font-size:.88rem; }

/* ============ MAPA ============ */
.ev-map__venue { font-weight:700; margin-top:12px; }
.ev-map__addr { color: var(--muted); font-size:.92rem; margin:4px 0 14px; line-height:1.5; }
.ev-map__none { color: var(--muted); font-size:.92rem; margin-top:10px; }
.ev-map__frame {
  border-radius: var(--r-md); overflow:hidden; border:1px solid var(--line);
  aspect-ratio: 4/3; margin-bottom:14px; background: var(--bg);
}
.ev-map__frame iframe { width:100%; height:100%; border:0; display:block; }

/* ============ STICKY BAR MÓVIL ============ */
.ev-stickybar { display:none; }

/* ============ RESPONSIVE ============ */
@media (max-width: 980px) {
  .ev-body { grid-template-columns: 1fr; }
  .ev-aside { position:static; }
}
@media (max-width: 720px) {
  .ev-hero__grid { grid-template-columns: 1fr; align-items:start; }
  .ev-hero__poster { width: 190px; aspect-ratio:3/4; }
  .ev-hero__cta { width:100%; }
  .ev-hero__cta .btn { flex:1; }

  .ev-date { grid-template-columns: 60px 1fr; }
  .ev-date__cal { width:60px; height:68px; }
  .ev-date__d { font-size:1.45rem; }
  .ev-date__action { grid-column: 1 / -1; justify-self:stretch; }
  .ev-date__action .btn { width:100%; }
  .ev-date__action .ev-badge { width:100%; justify-content:center; }

  /* barra fija inferior para compra rápida */
  .ev-stickybar {
    position: fixed; left:0; right:0; bottom:0; z-index: var(--z-sticky);
    display:flex; align-items:center; justify-content:space-between; gap:12px;
    margin:10px; padding:13px 18px; border-radius:999px;
    background: var(--orange); color:#fff; font-weight:600;
    box-shadow: 0 10px 30px rgba(214,70,0,.4);
  }
  .ev-stickybar b { display:block; font-size:1rem; }
  .ev-stickybar small { opacity:.9; font-size:.78rem; }
  main.ev { padding-bottom: 86px; }
}
