/* ==========================================================================
   Palco · base común de los temas A, B y C (estilo app, fondo claro)
   Solo presentación. Se carga después de style.css y antes del tema elegido.
   Cada tema (tema-a.css, tema-b.css, tema-c.css) solo cambia colores y
   algunos detalles; esta base pone la forma de app (barra inferior, campos
   grandes, tarjetas redondeadas, hojas inferiores en móvil).
   ========================================================================== */

:root {
  --radius: 14px;
  --radius-lg: 20px;
  --ease: cubic-bezier(.2, .8, .2, 1);
  --ring: 0 0 0 3px color-mix(in oklch, var(--accent) 24%, transparent);
  --btn-bg: var(--accent);
  --btn-ink: var(--accent-ink);
  --btn-radius: 14px;
  --tab-bg: #ffffff;
  --tab-ink: var(--muted);
  --tab-on: var(--accent);
  --tab-on-bg: transparent;
  --fs-display: clamp(34px, 5.4vw, 66px);
  --fs-h1: clamp(28px, 4vw, 46px);
  --fs-h2: clamp(23px, 2.8vw, 34px);
}

html { color-scheme: light; }
body { font-family: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Segoe UI Variable Text', 'Segoe UI', system-ui, sans-serif; }

/* ── tipografía ───────────────────────────────────────────────────────── */
.display, h1.display, h1, .h1 { font-weight: 800; letter-spacing: -.03em; }
h2, .h2 { font-weight: 750; letter-spacing: -.025em; }
.eyebrow { font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.meta, .poster__foot, .legend__item, .mapband__meta, .stagebar, .mapbands__stage, .seat-row__label,
.dateline__date, .hero__stat span, .table th, .scanner__hint, .hero-mini__marca,
.stub__k, .tk__k, .stub__v, .gig__meta, .price, .price small, .steps, .foot__title, .foot__bottom {
  font-family: inherit;
}
.meta { font-size: 13px; font-weight: 500; letter-spacing: .01em; }
.num { font-family: inherit; font-weight: 700; font-variant-numeric: tabular-nums; }
.stub__v { font-weight: 650; }
.price { font-weight: 800; letter-spacing: -.02em; }
.gig__meta { font-weight: 600; letter-spacing: .03em; }

/* ── barra superior ───────────────────────────────────────────────────── */
.nav { padding-top: env(safe-area-inset-top); }
.brand { font-weight: 800; letter-spacing: -.03em; }
.nav__links { gap: 4px; align-items: center; }
.nav__links a, .nav__menu-btn { padding: 7px 12px; border-radius: 999px; border-bottom: 0; }
.nav__menu[data-open="true"] .nav__menu-panel { border-radius: 18px; }
.nav__menu-panel a { border-radius: 12px; padding: 11px 14px; }
.nav__toggle { width: 42px; height: 42px; border-radius: 14px; }

/* ── botones ──────────────────────────────────────────────────────────── */
.btn { border-radius: var(--btn-radius); font-weight: 650; min-height: 46px; padding-inline: 20px; }
.btn--sm { min-height: 36px; border-radius: calc(var(--btn-radius) - 3px); padding: 6px 14px; }
.btn--primary { background: var(--btn-bg); border-color: var(--btn-bg); color: var(--btn-ink); box-shadow: 0 8px 18px -12px color-mix(in oklch, var(--btn-bg) 90%, black); }
.btn--primary:hover:not([disabled]) { background: color-mix(in oklch, var(--btn-bg) 86%, black); border-color: color-mix(in oklch, var(--btn-bg) 86%, black); }
.btn--primary:active:not([disabled]), .btn--secondary:active:not([disabled]), .btn--ghost:active { transform: scale(.97); }

/* ── superficies ──────────────────────────────────────────────────────── */
.card { border-radius: var(--radius-lg); }
.poster { border-radius: 18px; border: 0; }
.poster__tag { border-radius: 999px; }
.gig--color { border-radius: 24px; }
.stub, .tk { border-radius: 22px; }
.mapband { border-radius: 16px; }
.empty { border-radius: 22px; }
.alert { border-radius: 14px; }
/* El QR siempre sobre blanco */
.qr { background: #fff; border-radius: 14px; }

/* ── formularios (16 px evita el zoom automático en iPhone) ───────────── */
.input, .select, .textarea { border-radius: 14px; min-height: 50px; padding: 12px 15px; font-size: 16px; }
.buscador .input, .buscador .select { min-height: 46px; font-size: 16px; }
.buscador__btn { min-height: 46px; }
.buscador-caja { border-radius: 22px; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--accent); box-shadow: var(--ring); }

/* ── sillas: blancas disponibles, rojas vendidas, verdes reservadas ───── */
.seat { border-radius: 8px 8px 4px 4px; font-weight: 600; }
.seat[aria-pressed="true"] { background: var(--accent); border-color: var(--accent); color: var(--accent-ink); }

/* ── el banner de fondo nunca se repite en mosaico ───────────────────── */
.hero--fondo { background-size: cover; background-position: center top; background-repeat: no-repeat; }
.hero-mini--foto { background-size: cover; background-repeat: no-repeat; }

/* ── barra de pestañas inferior y ajustes de móvil ────────────────────── */
@media (max-width: 767px) {
  :root { --gutter: 16px; }

  .tabbar { background: var(--tab-bg); }
  .tabbar__item { font-size: 10.5px; font-weight: 600; color: var(--tab-ink); border-radius: 16px; }
  .tabbar__item .ic { width: 23px; height: 23px; }
  .tabbar__item--on { color: var(--tab-on); background: var(--tab-on-bg); }

  .nav__inner { padding-block: 8px; }
  .nav__links[data-open="true"] {
    align-items: stretch; margin-top: 6px; padding: 8px; border: 1px solid var(--border);
    background: var(--surface); border-radius: 20px; box-shadow: 0 18px 40px -20px rgba(0, 0, 0, .35);
  }
  .nav__links[data-open="true"] a { display: block; text-align: left; padding: 12px 14px; border-radius: 12px; color: var(--fg); font-size: 15px; }
  .nav__menu-btn { width: 100%; padding: 12px 14px; border-bottom: 0; border-radius: 12px; color: var(--fg); font-size: 15px; }
  .nav__menu[data-open="true"] .nav__menu-panel { background: var(--surface-2); border: 0; border-radius: 14px; margin: 4px 0 6px; padding: 4px; }

  .section { padding-block: 28px; }
  .section--tight { padding-block: 22px; }
  .section--pt-tight { padding-top: 20px; }
  .section--pb-tight { padding-bottom: 20px; }
  .hero__inner { padding-block: 40px 48px; }
  .card { padding: 18px; }
  .card--pad-lg { padding: 22px; }
  .gigs { gap: 18px; }
  .gig__name { font-size: 20px; }
  .btn { min-height: 48px; }
  .btn--sm { min-height: 38px; }
  .hero__cta .btn, .aviso-subasta__pie .btn { flex: 1 1 100%; }

  /* Banner pequeño como tarjeta */
  .hero-mini { margin: 12px var(--gutter) 0; border-radius: 22px; border: 0; min-height: 170px; }
  .hero-mini__inner { justify-content: flex-end; min-height: 170px; padding: 18px; }
  .hero-mini__marca { font-weight: 700; letter-spacing: .12em; }
  .hero-mini__dicho { font-size: 26px; font-weight: 800; letter-spacing: -.03em; }

  /* Ventanas emergentes como hoja inferior */
  .aviso-subasta { align-items: end; padding: 0; }
  .aviso-subasta__caja, .cf__caja { border-radius: 26px 26px 0 0; padding-bottom: calc(20px + env(safe-area-inset-bottom)); }
  .aviso-subasta__caja::before, .cf__caja::before {
    content: ''; display: block; width: 42px; height: 5px; border-radius: 99px;
    background: var(--border-strong); margin: -6px auto 14px;
  }
  .cf { padding: 0; }

  /* Carrusel de destacados a sangre */
  .destacados-carrusel { margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scroll-padding-inline: var(--gutter); }

  /* Boletas: las muescas decorativas no caen sobre el QR */
  .stub::before, .stub::after { display: none; }
  .tk__media { height: 168px; }

  .foot { padding-block: 32px 24px; margin-top: 32px; }
  .foot__grid { gap: 24px; }
}

@media print {
  .tabbar, .wa-flotante, .cf-boton, .sp-aviso { display: none !important; }
}
