/* Drao — Boletería */
:root {
  --bg: #0E0709;
  --surface: #1A0C11;
  --border: #3A1A24;
  --accent: #D9A441;
  --ticket: #EDE4D3;
  --ticket-ink: #241E18;
  --curtain: #6B1C28;
  --text: #EDE4DC;
  --muted: #A8928E;
  --font-logo: "Big Shoulders Display", sans-serif;
  --font-display: "Figtree", sans-serif;
  --font-body: "Figtree", sans-serif;
  --font-mono: "Figtree", sans-serif;
  --radius: 2px;
  --space: clamp(1rem, 3vw, 2rem);
  --max: 1120px;
}

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

html { scroll-behavior: smooth; }

body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font-body);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--text);
  background:
    radial-gradient(ellipse 90% 55% at 50% -15%, rgba(90, 18, 32, 0.45), transparent 55%),
    radial-gradient(ellipse 60% 40% at 80% 100%, rgba(50, 10, 18, 0.35), transparent 50%),
    var(--bg);
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }

.skip-link {
  position: absolute;
  left: -9999px;
  top: 0;
  background: var(--accent);
  color: var(--ticket-ink);
  padding: .5rem 1rem;
  z-index: 100;
}
.skip-link:focus { left: 1rem; top: 1rem; }

.container {
  width: min(100% - 2rem, var(--max));
  margin-inline: auto;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(14, 7, 9, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid transparent;
  transition: border-color .25s ease;
}
.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 0;
  transition: padding .25s ease;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: .65rem;
}
.brand-mark {
  width: 1.35rem;
  height: 1.9rem;
  background: var(--ticket);
  border-radius: 1px;
  position: relative;
  box-shadow: inset 0 0 0 1px rgba(36, 30, 24, 0.15);
  transition: width .25s ease, height .25s ease;
}
.brand-mark::before,
.brand-mark::after {
  content: "";
  position: absolute;
  width: .45rem;
  height: .45rem;
  background: var(--bg);
  border-radius: 50%;
  top: 50%;
  transform: translateY(-50%);
}
.brand-mark::before { left: -.22rem; }
.brand-mark::after { right: -.22rem; }
.brand-name {
  font-family: var(--font-logo);
  font-weight: 700;
  font-size: 1.75rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--text);
  transition: font-size .25s ease;
}
.site-nav {
  position: relative;
  display: grid;
  justify-items: end;
  align-items: center;
  min-width: 7.5rem;
}
.site-nav a,
.site-nav-plan {
  color: var(--muted);
  font-size: .9rem;
  font-weight: 700;
  letter-spacing: .06em;
  text-transform: uppercase;
}
.site-nav a:hover { color: var(--accent); }
.site-nav-cartelera,
.site-nav-plan {
  grid-area: 1 / 1;
  transition:
    opacity .3s ease,
    transform .35s cubic-bezier(.22, 1, .36, 1);
}
.site-nav-plan {
  font-family: var(--font-display);
  font-weight: 700;
  color: var(--text);
  letter-spacing: .04em;
  white-space: nowrap;
  max-width: 11rem;
  overflow: hidden;
  text-overflow: ellipsis;
  opacity: 0;
  transform: translateY(.35rem);
  pointer-events: none;
}
/* Al scrollear: Cartelera sale y “Elegí tu sector” entra con animación. */
body.is-compact .site-nav-cartelera {
  opacity: 0;
  transform: translateY(-.25rem);
  pointer-events: none;
}
body.is-compact .site-nav-plan {
  opacity: 1;
  transform: none;
  pointer-events: auto;
}

/* Meta de la función en el menú: solo visible al scrollear (is-compact). */
.site-header--show .header-inner {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: .75rem 1rem;
}
.header-show {
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: .1rem;
  line-height: 1.15;
  opacity: 0;
  max-height: 0;
  overflow: hidden;
  pointer-events: none;
  transform: translateY(.2rem);
  transition:
    opacity .28s ease,
    max-height .35s ease,
    transform .28s ease;
}
.header-show-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: .82rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  color: var(--text);
}
.header-show-meta {
  font-size: .68rem;
  color: var(--muted);
  letter-spacing: .02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-show-dot { margin: 0 .2rem; opacity: .55; }
.header-show-pick {
  display: none;
  align-items: baseline;
  gap: .55rem;
  font-size: .68rem;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.header-show-pick:not([hidden]) { display: inline-flex; }
.header-show-pick [data-pick-sector],
.header-show-pick [data-pick-total] {
  display: inline-block;
  will-change: opacity, transform;
}
.header-show-pick [data-pick-sector].is-entering,
.header-show-pick [data-pick-total].is-entering {
  animation: header-chip-in .42s cubic-bezier(.22, 1, .36, 1) both;
}
.header-show-pick [data-pick-total].is-entering {
  animation-delay: .1s;
}
@keyframes header-chip-in {
  from {
    opacity: 0;
    transform: translateX(-.35rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.header-show-pick strong {
  color: var(--accent);
  font-size: .78rem;
  font-weight: 600;
}
body.is-compact .header-show {
  opacity: 1;
  max-height: 2.75rem;
  pointer-events: auto;
  transform: none;
}
@media (min-width: 900px) {
  /* En desktop la meta puede verse siempre: no hay colapso por scroll. */
  .site-header--show .header-show {
    opacity: 1;
    max-height: none;
    pointer-events: auto;
    transform: none;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: baseline;
    gap: .35rem .65rem;
  }
  .header-show-title { font-size: .95rem; }
  .header-show-meta {
    font-size: .75rem;
  }
  .header-show-meta::before {
    content: "|";
    margin-right: .65rem;
    opacity: .45;
  }
}

/* Entrada suave al cargar: título de la obra + Cartelera. */
@media (prefers-reduced-motion: no-preference) {
  .site-nav-cartelera {
    animation: header-soft-in .55s cubic-bezier(.22, 1, .36, 1) .08s backwards;
  }
  @media (min-width: 900px) {
    .site-header--show .header-show-title {
      animation: header-soft-in .55s cubic-bezier(.22, 1, .36, 1) backwards;
    }
    .site-header--show .header-show-meta {
      animation: header-soft-in .55s cubic-bezier(.22, 1, .36, 1) .1s backwards;
    }
  }
}
@keyframes header-soft-in {
  from {
    opacity: 0;
    transform: translateY(-.3rem);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

.site-main { padding-bottom: 4rem; min-height: 60vh; }

.site-footer {
  border-top: 1px solid var(--border);
  padding: 2rem 0 3rem;
  margin-top: auto;
}
.footer-inner { text-align: center; }
.footer-brand {
  font-family: var(--font-logo);
  text-transform: uppercase;
  letter-spacing: .12em;
  margin: 0 0 .35rem;
  color: var(--muted);
}
.footer-note {
  margin: 0;
  color: var(--muted);
  font-size: .85rem;
}

/* Typography */
.page-kicker {
  font-family: var(--font-mono);
  font-size: .75rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  color: var(--accent);
  margin: 0 0 .75rem;
}
.page-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(2.4rem, 8vw, 4.5rem);
  line-height: .95;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 1rem;
}
.page-lead {
  color: var(--muted);
  max-width: 36rem;
  margin: 0 0 2.5rem;
  font-size: 1.05rem;
}

/* Home landing: banner + grilla 2 cols */
.home-landing {
  padding: 1.25rem 0 2.5rem;
}
.home-banner {
  position: relative;
  margin: 0 0 1.75rem;
  isolation: isolate;
}
.home-banner-glow {
  position: absolute;
  inset: 8% 4% 0;
  z-index: 0;
  pointer-events: none;
  border-radius: 14px;
  overflow: hidden;
  filter: blur(40px) saturate(1.2);
  opacity: .32;
  transform: scale(1.02);
}
.home-banner-glow-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  opacity: 0;
  transition: opacity .55s ease;
}
.home-banner-glow-img.is-active {
  opacity: 1;
}
.home-banner-track {
  position: relative;
  z-index: 1;
  height: clamp(180px, 32vw, 360px);
  overflow: hidden;
  border-radius: 10px;
  background: var(--surface);
  border: 1px solid var(--border);
  box-shadow: 0 12px 28px rgba(0, 0, 0, 0.28);
}
@media (prefers-reduced-motion: reduce) {
  .home-banner-glow {
    opacity: .18;
    filter: blur(28px) saturate(1.05);
  }
  .home-banner-glow-img {
    transition: none;
  }
}
.home-banner-slide {
  position: absolute;
  inset: 0;
  opacity: 0;
  visibility: hidden;
  transition: opacity .55s ease, visibility .55s ease;
  display: block;
}
.home-banner-slide.is-active {
  opacity: 1;
  visibility: visible;
  z-index: 1;
}
.home-banner-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 25%;
  display: block;
}
.home-banner-dots {
  display: flex;
  justify-content: center;
  gap: .4rem;
  margin-top: .85rem;
}
.home-banner-dot {
  appearance: none;
  width: 1.65rem;
  height: 3px;
  padding: 0;
  border: none;
  border-radius: 2px;
  background: rgba(237, 228, 220, 0.22);
  cursor: pointer;
  transition: background .25s ease, width .25s ease;
}
.home-banner-dot.is-active {
  background: var(--text);
  width: 2.1rem;
}
.home-banner-dot:hover,
.home-banner-dot:focus-visible {
  background: rgba(237, 228, 220, 0.5);
  outline: none;
}

.home-section-title {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: clamp(1.35rem, 3.5vw, 1.75rem);
  text-transform: uppercase;
  letter-spacing: .04em;
  margin: 0 0 1.25rem;
  color: var(--text);
}

.home-hero {
  padding: clamp(2.5rem, 8vw, 4.5rem) 0 1.5rem;
}
.home-hero .page-title { max-width: 12ch; }

/* Show grid */
.show-grid {
  display: grid;
  gap: 2rem 1.25rem;
  grid-template-columns: 1fr;
  padding-bottom: 2rem;
}
@media (min-width: 640px) {
  .show-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 960px) {
  .show-grid { grid-template-columns: repeat(3, 1fr); gap: 2.5rem 1.5rem; }
}

/* Home: 2 cols mobile / 4 cols PC (estilo mockup cartelera). */
.body-home .show-grid--home {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1.35rem .9rem;
  padding-bottom: 1rem;
}
@media (min-width: 720px) {
  .body-home .show-grid--home {
    gap: 1.75rem 1.25rem;
  }
}
@media (min-width: 900px) {
  .body-home .show-grid--home {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 2rem 1.35rem;
  }
  .body-home .show-card--home .show-card-title {
    font-size: clamp(.9rem, 1.1vw, 1.05rem);
  }
}

@keyframes soft-enter {
  from {
    opacity: 0;
    translate: 0 1.35rem;
  }
  to {
    opacity: 1;
    translate: 0 0;
  }
}

.show-card {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  opacity: 0;
  animation: soft-enter .7s cubic-bezier(.22, 1, .36, 1) both;
  animation-delay: calc(120ms + var(--stagger, 0) * 90ms);
  transition: transform .25s ease;
}
.show-card:hover { transform: translateY(-3px); }
.show-card:hover .show-card-poster img { filter: brightness(1.08); }

.show-card--home {
  gap: .65rem;
}
.show-card--home .show-card-poster {
  border-radius: 8px;
  border-color: transparent;
  aspect-ratio: 2 / 3;
}
.show-card--home .show-card-title {
  font-size: clamp(.95rem, 2.4vw, 1.2rem);
  line-height: 1.15;
}
.show-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
}
.show-card-tag {
  display: inline-block;
  padding: .2rem .45rem;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
  border-radius: 3px;
  color: var(--muted);
  font-size: .68rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  line-height: 1.2;
}
.show-card-tag--accent {
  color: var(--accent);
  border-color: rgba(217, 164, 65, 0.35);
}

/* Entrada suave del detalle de obra: título → info → descripción → columna. */
.body-checkout--plan .show-banner-summary .ticket-title,
.body-checkout--plan .show-banner-summary .ticket-meta,
.body-checkout--plan .show-banner-summary .show-desc,
.body-checkout--plan .checkout-plan {
  animation: soft-enter .75s cubic-bezier(.22, 1, .36, 1) backwards;
}
.body-checkout--plan .show-banner-summary .ticket-title { animation-delay: 90ms; }
.body-checkout--plan .show-banner-summary .ticket-meta { animation-delay: 180ms; }
.body-checkout--plan .show-banner-summary .show-desc { animation-delay: 270ms; }
.body-checkout--plan .checkout-plan { animation-delay: 220ms; }

@media (prefers-reduced-motion: reduce) {
  .show-card,
  .body-checkout--plan .show-banner-summary .ticket-title,
  .body-checkout--plan .show-banner-summary .ticket-meta,
  .body-checkout--plan .show-banner-summary .show-desc,
  .body-checkout--plan .checkout-plan {
    opacity: 1;
    animation: none;
  }
}
.show-card-poster {
  aspect-ratio: 3 / 4;
  overflow: hidden;
  background: var(--surface);
  border: 1px solid var(--border);
  position: relative;
}
.show-card-poster img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: filter .3s ease;
}
.show-card-body { display: flex; flex-direction: column; gap: .35rem; }
.show-card-title {
  font-family: var(--font-display);
  font-size: 1.55rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0;
}
.show-card-meta {
  color: var(--muted);
  font-size: .9rem;
  margin: 0;
}
.show-card-price {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
  margin: .25rem 0 0;
}

/* Steps */
.steps {
  display: flex;
  justify-content: center;
  align-items: center;
  margin: 0 0 2rem;
  padding: 0;
  list-style: none;
  font-family: var(--font-mono);
  font-size: .8rem;
  color: var(--muted);
}
.steps li {
  position: relative;
  display: grid;
  place-items: center;
  width: 2.1rem;
  height: 2.1rem;
  border: 1px solid var(--border);
  border-radius: 50%;
  line-height: 1;
}
.steps li + li { margin-left: 3rem; }
.steps li + li::before {
  content: "";
  position: absolute;
  top: 50%;
  right: calc(100% + .5rem);
  width: 2rem;
  height: 1px;
  background: var(--border);
}
.steps .is-active {
  color: var(--ticket-ink);
  background: var(--accent);
  border-color: var(--accent);
  font-weight: 600;
}
.steps .is-done {
  color: var(--accent);
  border-color: var(--accent);
}
.steps .is-done::before,
.steps .is-active::before { background: var(--accent); }

/* Checkout layout */
.checkout-layout {
  display: grid;
  gap: 2rem;
  padding-bottom: 2rem;
}
@media (min-width: 900px) {
  .checkout-layout {
    grid-template-columns: 1fr min(320px, 34%);
    align-items: start;
  }
  .checkout-aside {
    position: sticky;
    top: 5.5rem;
  }
}
.checkout-layout--solo {
  grid-template-columns: 1fr;
  max-width: 720px;
}
.checkout-layout--plan {
  max-width: 780px;
  margin-inline: auto;
  width: min(100%, 780px);
}

/* Desktop: póster full-bleed + info | plano compacto. */
@media (min-width: 900px) {
  .body-checkout--plan {
    overflow-x: clip;
  }
  .body-checkout--plan .show-flow {
    display: grid;
    /* Columna de pasos más angosta; la info gana aire. */
    grid-template-columns: minmax(280px, 1fr) minmax(0, 340px);
    grid-template-rows: auto auto;
    column-gap: 3.5rem;
    row-gap: 0;
    width: min(100% - 5rem, 880px);
    margin: 0 auto 3rem;
    align-items: start;
    justify-content: center;
  }
  .body-checkout--plan .show-banner {
    display: contents;
  }
  .body-checkout--plan .show-banner-media {
    grid-column: 1 / -1;
    grid-row: 1;
    /* Full-bleed: el póster llega al borde de la página. */
    width: 100vw;
    max-width: 100vw;
    margin-left: calc(50% - 50vw);
    height: clamp(240px, 30vw, 380px);
    margin-bottom: 0;
    z-index: 0;
  }
  .body-checkout--plan .show-banner-media img {
    max-width: none;
  }
  .body-checkout--plan .show-banner-media::after {
    background:
      linear-gradient(to top, var(--bg) 0%, rgba(14, 7, 9, 0.55) 42%, transparent 72%),
      linear-gradient(
        to bottom,
        rgba(14, 7, 9, 0.15) 0%,
        rgba(14, 7, 9, 0.35) 40%,
        rgba(14, 7, 9, 0.75) 78%,
        var(--bg) 100%
      );
  }
  .body-checkout--plan .show-banner-space {
    display: none;
  }
  .body-checkout--plan .show-banner-summary {
    grid-column: 1;
    grid-row: 2;
    position: sticky;
    top: 5.5rem;
    /* Sube sobre el degradé del póster. */
    margin-top: -6.5rem;
    max-width: none;
    width: 100%;
    padding: 0;
    z-index: 1;
  }
  .body-checkout--plan .show-banner-summary .ticket-title {
    font-size: clamp(1.65rem, 2.4vw, 2rem);
    white-space: normal;
  }
  .body-checkout--plan .show-banner-summary .show-desc {
    max-width: 36rem;
    margin-top: 1.1rem;
    font-size: .95rem;
    line-height: 1.55;
  }
  .body-checkout--plan .checkout-layout--plan {
    grid-column: 2;
    grid-row: 2;
    max-width: none;
    width: 100%;
    margin: -6.5rem 0 0;
    padding-bottom: 0;
    position: relative;
    z-index: 1;
  }
  .body-checkout--plan .checkout-plan {
    border: 1px solid var(--border);
    border-radius: 10px;
    background: rgba(26, 12, 17, 0.72);
    padding: 1.15rem 1rem 1rem;
  }
  .body-checkout--plan .checkout-sticky {
    display: flex;
    justify-content: center;
    margin-bottom: 1rem;
  }
  .body-checkout--plan .checkout-sticky .steps {
    margin: 0;
  }
  .body-checkout--plan .steps li {
    width: 2.15rem;
    height: 2.15rem;
    font-size: .8rem;
  }
  .body-checkout--plan .steps li + li {
    margin-left: 2.75rem;
  }
  .body-checkout--plan .steps li + li::before {
    width: 1.75rem;
  }
  .body-checkout--plan .venue-plan.theater-plan {
    border: none;
    background: transparent;
    margin: 0;
    padding: .35rem .15rem 0;
    min-height: 0;
    height: auto;
    max-height: none;
  }
  .body-checkout--plan .theater-stage {
    max-width: none;
    margin: 0 0 1rem;
    padding: .55rem 0 .8rem;
  }
  .body-checkout--plan .theater-view-bar {
    max-width: none;
    width: 100%;
  }
  .body-checkout--plan .theater-sectors {
    max-width: none;
    gap: .65rem;
  }
  .body-checkout--plan .theater-sector-name {
    font-size: .95rem;
  }
  .body-checkout--plan .theater-sector-head {
    padding: .55rem .85rem .2rem;
  }
  .body-checkout--plan .theater-sector.is-open .theater-sector-seats {
    --seat: 30px;
    --seat-gap: 7px;
  }
  .body-checkout--plan .theater-legend {
    display: none;
  }
  .body-checkout--plan .theater-plan.is-focusing .theater-legend {
    display: flex;
    margin-top: .85rem;
  }
  .body-checkout--plan .checkout-panels {
    min-height: 0;
  }
}

/* Show banner — full-bleed cropped poster with fade */
.show-banner {
  margin: 0 0 1.5rem;
}
.show-banner-media {
  position: relative;
  width: 100%;
  height: clamp(240px, 48vw, 460px);
  overflow: hidden;
  background: var(--surface);
}
.show-banner-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 30%;
}
.show-banner-media::after {
  content: "";
  position: absolute;
  inset: 0;
  /* La capa "to top" asegura fondo sólido en la franja donde se superpone el resumen (-3.5rem) */
  background:
    linear-gradient(to top, var(--bg) 4.5rem, rgba(14, 7, 9, 0) 12rem),
    linear-gradient(
      to bottom,
      rgba(14, 7, 9, 0.2) 0%,
      rgba(14, 7, 9, 0.45) 45%,
      rgba(14, 7, 9, 0.88) 78%,
      var(--bg) 100%
    );
  pointer-events: none;
}
.show-banner-summary {
  position: relative;
  margin-top: -3.5rem;
  padding-bottom: .5rem;
  z-index: 1;
  max-width: 520px;
}
.show-banner-summary .ticket {
  margin-bottom: 1rem;
}
.show-desc {
  color: var(--muted);
  max-width: 40rem;
  margin: .75rem 0 0;
}
.checkout-sticky {
  margin-bottom: 0;
}
.show-banner-space {
  height: 0;
}

/* Chrome colapsable ligado al scroll — mobile / tablet.
   El banner sale del flujo y .show-banner-space reserva su alto expandido, así
   el alto del documento no cambia al minimizarse. Al llegar a compacto el
   banner desaparece: título/fecha viven en el menú y el plano ocupa la pantalla. */
@media (max-width: 899px) {
  .body-checkout .header-inner {
    min-height: 3.1rem;
    height: auto;
    padding: .45rem 0;
  }
  .body-checkout .brand-name {
    font-size: 1.55rem;
    max-width: 8rem;
    opacity: 1;
    transition:
      font-size .25s ease,
      opacity .25s ease,
      max-width .3s ease;
  }
  .body-checkout .brand-mark {
    width: 1.25rem;
    height: 1.75rem;
    transition: width .25s ease, height .25s ease;
  }
  .body-checkout .site-nav a {
    font-size: .78rem;
  }
  .body-checkout.is-compact .site-header {
    border-bottom-color: var(--border);
  }
  /* Al scrollear: queda el ícono y la info de la obra entra al centro. */
  .body-checkout.is-compact .brand-name {
    max-width: 0;
    opacity: 0;
    overflow: hidden;
  }
  .body-checkout.is-compact .brand-mark {
    width: .95rem;
    height: 1.35rem;
  }
  .body-checkout.is-compact .header-show-title {
    font-size: .78rem;
  }
  .body-checkout--plan .site-footer {
    display: none;
  }

  .body-checkout .show-banner {
    position: fixed;
    top: var(--header-h, 3.1rem);
    left: 0;
    right: 0;
    z-index: 35;
    margin: 0;
    overflow: hidden;
    background: var(--bg);
    contain: layout paint;
  }
  .body-checkout .show-banner-space {
    height: var(--banner-space, clamp(160px, 36vw, 280px));
  }
  .body-checkout .show-banner-media {
    height: var(--media-h, clamp(160px, 36vw, 280px));
  }
  .body-checkout--plan .show-banner-media {
    height: var(--media-h, clamp(150px, 32vw, 240px));
  }
  .body-checkout .show-banner-media::after {
    opacity: calc(1 - .85 * var(--sp, 0));
  }
  .body-checkout .show-banner-summary {
    margin-top: 0;
    max-width: none;
    /* Al compactar, el resumen se va a cero: la info queda en el menú. */
    max-height: calc(28rem * (1 - var(--sp, 0)));
    padding-top: calc(.85rem * (1 - var(--sp, 0)));
    padding-bottom: calc(.85rem * (1 - var(--sp, 0)));
    opacity: calc(1 - 1.15 * var(--sp, 0));
    overflow: hidden;
  }
  .body-checkout .show-banner-summary .ticket {
    margin-bottom: 0;
  }

  /* Sector / butaca / total vacíos no aportan arriba; al scrollear el menú
     ya lleva título + fecha (y la selección cuando hay). */
  .body-checkout--plan .show-banner .ticket-meta > div:nth-child(4),
  .body-checkout--plan .show-banner .ticket-meta > div:nth-child(5),
  .body-checkout--plan .show-banner .ticket-total {
    display: none;
  }
  .show-banner .ticket-title {
    font-size: 1.45rem;
    margin: 0 0 .75rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
  .show-banner .ticket-meta {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: .45rem 1rem;
    padding-bottom: .75rem;
  }
  .show-banner .ticket-meta > div {
    gap: .65rem;
    font-size: .85rem;
  }
  .show-banner .ticket-meta dd {
    min-width: 0;
    text-align: right;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--text);
  }
  .show-banner .ticket-meta dd.is-empty {
    color: var(--muted);
  }
  .show-banner .ticket-total {
    margin-top: .75rem;
    font-size: .9rem;
  }
  .show-banner .ticket-total strong {
    font-size: 1.15rem;
  }
  .show-banner .show-desc {
    max-height: calc(var(--desc-h, 12rem) * (1 - var(--sp, 0)));
    margin-top: calc(.65rem * (1 - var(--sp, 0)));
    opacity: calc(1 - 1.2 * var(--sp, 0));
    overflow: hidden;
  }

  /* Sticky: solo pasos, centrados y más grandes. */
  .body-checkout--plan .checkout-sticky {
    position: sticky;
    top: calc(var(--header-h, 3.1rem) + var(--banner-h, 0px));
    z-index: 34;
    display: flex;
    align-items: center;
    justify-content: center;
    background: rgba(14, 7, 9, 0.96);
    backdrop-filter: blur(10px);
    padding: .55rem .85rem;
    margin: 0;
    border-bottom: 1px solid var(--border);
  }
  .body-checkout--plan .steps {
    margin: 0;
  }
  .body-checkout--plan .steps li {
    width: 2.1rem;
    height: 2.1rem;
    font-size: .8rem;
  }
  .body-checkout--plan .steps li + li {
    margin-left: 2.75rem;
  }
  .body-checkout--plan .steps li + li::before {
    width: 1.75rem;
    right: calc(100% + .45rem);
  }
  .body-checkout.is-compact .site-nav-plan {
    font-size: .72rem;
    color: var(--accent);
  }

  /* El plano se pega bajo los pasos y ocupa exactamente el resto del
     viewport: el escenario no se va abajo y no queda hueco vacío. */
  .body-checkout--plan .checkout-layout--plan {
    max-width: none;
    width: 100%;
    gap: 0;
    padding: 0;
  }
  .body-checkout--plan .site-main {
    padding-bottom: 0;
    min-height: 0;
  }
  .body-checkout--plan .checkout-plan {
    display: flex;
    flex-direction: column;
  }
  .body-checkout--plan .checkout-sticky {
    flex: none;
  }
  .body-checkout--plan .checkout-panels {
    position: sticky;
    top: calc(var(--header-h, 3.1rem) + var(--sticky-h, 2.5rem));
    z-index: 30;
    height: calc(100dvh - var(--header-h, 3.1rem) - var(--sticky-h, 2.5rem));
    max-height: calc(100dvh - var(--header-h, 3.1rem) - var(--sticky-h, 2.5rem));
    min-height: 0;
    overflow: hidden;
  }
  .body-checkout--plan .theater-plan {
    display: flex;
    flex-direction: column;
    height: 100%;
    max-height: 100%;
    min-height: 0;
    margin: 0;
    padding: .85rem .75rem .55rem;
    border-left: none;
    border-right: none;
    border-bottom: none;
    border-radius: 0;
    box-sizing: border-box;
    overflow: hidden;
  }
  .body-checkout--plan .theater-stage {
    flex: 0 0 auto;
    width: 100%;
    max-width: none;
    margin: 0 0 .65rem;
    padding: .5rem 0 .7rem;
  }
  .body-checkout--plan .theater-view-bar {
    flex: 0 0 auto;
  }
  .body-checkout--plan .theater-sectors {
    flex: 1 1 auto;
    min-height: 0;
    max-width: none;
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: .5rem;
    overflow: hidden;
  }
  .body-checkout--plan .theater-sector {
    flex: 1 1 0;
    min-height: 0;
    max-height: none;
    display: flex;
    flex-direction: column;
  }
  .body-checkout--plan .theater-sector-head {
    flex: 0 0 auto;
    padding: .65rem 1rem .25rem;
  }
  .body-checkout--plan .theater-sector-name {
    font-size: 1.2rem;
  }
  .body-checkout--plan .theater-sector-seats {
    flex: 1 1 auto;
    min-height: 0;
    display: flex;
    flex-direction: column;
    justify-content: center;
    overflow: hidden;
  }
  .body-checkout--plan .theater-sector.is-open .theater-sector-seats {
    --seat: 28px;
    --seat-gap: 8px;
    overflow: auto;
    justify-content: flex-start;
  }
  .body-checkout--plan .theater-plan.is-focusing .theater-sector.is-open {
    flex: 1 1 auto;
  }
  .body-checkout--plan .theater-plan.is-focusing .theater-sector.is-dimmed {
    flex: 0 0 0;
  }
  .body-checkout--plan .theater-legend {
    flex: 0 0 auto;
    margin-top: .45rem;
    margin-bottom: 0;
  }
  .body-checkout--plan .theater-actions {
    flex: 0 0 auto;
    margin: .25rem 0 0;
    padding: 0;
    min-height: 0;
  }
  .body-checkout--plan .theater-actions:not(:has(:not([hidden]))) {
    display: none;
  }

  /* Paso 2 → 3: el plano sale y el pago entra en la misma pantalla. */
  .body-checkout--plan .checkout-panels .theater-plan,
  .body-checkout--plan .checkout-panels .checkout-pay {
    transition:
      transform .45s cubic-bezier(.22, 1, .36, 1),
      opacity .35s ease;
  }
  .body-checkout--plan .checkout-panels .checkout-pay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transform: translateX(1.25rem);
    pointer-events: none;
    overflow: auto;
    background: var(--bg);
    padding: 1rem .9rem 1.25rem;
  }
  .body-checkout--plan .checkout-panels.is-step-pay .theater-plan {
    opacity: 0;
    transform: translateX(-1.1rem);
    pointer-events: none;
  }
  .body-checkout--plan .checkout-panels.is-step-pay .checkout-pay {
    opacity: 1;
    transform: none;
    pointer-events: auto;
  }
}

/* Panel de pago (misma página) */
.checkout-panels {
  position: relative;
}
.checkout-pay-inner {
  max-width: 480px;
  margin: 0 auto;
}
.checkout-pay-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 5vw, 2.2rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  margin: 0 0 .5rem;
}
.checkout-pay .form-stack {
  max-width: none;
  gap: .7rem;
}
.checkout-pay .field label {
  font-size: .7rem;
  margin-bottom: .25rem;
}
.checkout-pay .field input {
  padding: .55rem .75rem;
  font-size: .9rem;
}
.checkout-pay .actions-row {
  margin-top: .35rem;
  justify-content: center;
}

/* Estado post-compra: carga + ticket imprimiéndose */
.checkout-status {
  min-height: 14rem;
  display: grid;
  place-items: center;
  padding: .5rem 0 .25rem;
}
.checkout-status[hidden] { display: none !important; }
.checkout-status-label {
  margin: .85rem 0 0;
  text-align: center;
  font-size: .78rem;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--muted);
}
.checkout-status-label--ok {
  color: var(--accent);
  margin: 0 0 .85rem;
}
.checkout-spinner {
  display: block;
  width: 1.75rem;
  height: 1.75rem;
  margin: 0 auto;
  border: 2px solid var(--border);
  border-top-color: var(--accent);
  border-radius: 50%;
  animation: checkout-spin .7s linear infinite;
}
@keyframes checkout-spin {
  to { transform: rotate(360deg); }
}
.checkout-status-loading,
.checkout-status-success {
  width: 100%;
  text-align: center;
}
.checkout-status-loading.is-out {
  animation: checkout-fade-out .28s ease both;
}
.checkout-status-success.is-in {
  animation: checkout-fade-in .35s ease both;
}
@keyframes checkout-fade-out {
  to { opacity: 0; transform: translateY(-.35rem); }
}
@keyframes checkout-fade-in {
  from { opacity: 0; transform: translateY(.35rem); }
  to { opacity: 1; transform: none; }
}

.checkout-print {
  position: relative;
  width: min(100%, 15.5rem);
  margin: 0 auto;
  padding-top: .65rem;
  overflow: hidden;
}
.checkout-print-slot {
  position: relative;
  z-index: 2;
  height: .55rem;
  margin: 0 auto .15rem;
  width: 92%;
  border-radius: 3px;
  background: linear-gradient(to bottom, #2a151c, #1a0c11);
  border: 1px solid var(--border);
  box-shadow: inset 0 -1px 0 rgba(217, 164, 65, 0.25);
}
.checkout-print-ticket {
  position: relative;
  z-index: 1;
  text-align: left;
  background: var(--ticket);
  color: var(--ticket-ink);
  border-radius: 4px;
  padding: .85rem .9rem .75rem;
  transform: translateY(-110%);
  animation: checkout-ticket-print 1.15s cubic-bezier(.22, 1, .36, 1) .15s both;
  box-shadow: 0 8px 22px rgba(0, 0, 0, 0.35);
}
.checkout-print-brand {
  margin: 0 0 .45rem;
  font-family: var(--font-logo);
  font-size: .95rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  opacity: .7;
}
.checkout-print-title {
  margin: 0 0 .65rem;
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.1;
}
.checkout-print-meta {
  display: grid;
  gap: .28rem;
  margin: 0 0 .65rem;
  padding: 0;
  font-size: .72rem;
}
.checkout-print-meta > div {
  display: flex;
  justify-content: space-between;
  gap: .5rem;
}
.checkout-print-meta dt {
  margin: 0;
  opacity: .55;
}
.checkout-print-meta dd {
  margin: 0;
  font-weight: 600;
}
.checkout-print-code {
  letter-spacing: .04em;
  color: #8a6418;
}
.checkout-print-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin: 0;
  padding-top: .45rem;
  border-top: 1px solid rgba(36, 30, 24, 0.18);
  font-size: .75rem;
  opacity: .8;
}
.checkout-print-total strong {
  font-size: .95rem;
  color: #8a6418;
}
@keyframes checkout-ticket-print {
  from { transform: translateY(-110%); }
  to { transform: translateY(0); }
}
@media (prefers-reduced-motion: reduce) {
  .checkout-spinner { animation: none; border-top-color: var(--accent); }
  .checkout-print-ticket,
  .checkout-status-loading.is-out,
  .checkout-status-success.is-in {
    animation: none;
    opacity: 1;
    transform: none;
  }
}
@media (min-width: 900px) {
  .body-checkout--plan .checkout-panels {
    position: relative;
    min-height: 0;
    overflow: hidden;
  }
  .body-checkout--plan .checkout-panels .theater-plan,
  .body-checkout--plan .checkout-panels .checkout-pay {
    transition:
      transform .45s cubic-bezier(.22, 1, .36, 1),
      opacity .35s ease;
  }
  .body-checkout--plan .checkout-panels .checkout-pay {
    position: absolute;
    inset: 0;
    z-index: 2;
    opacity: 0;
    transform: translateX(1.5rem);
    pointer-events: none;
    overflow: hidden;
    background: transparent;
    padding: 0;
    border: none;
  }
  /* En PC el formulario define la altura: sin scroll interno. */
  .body-checkout--plan .checkout-panels.is-step-pay {
    overflow: visible;
  }
  .body-checkout--plan .checkout-panels.is-step-pay .theater-plan {
    position: absolute;
    inset: 0;
    opacity: 0;
    transform: translateX(-1.25rem);
    pointer-events: none;
  }
  .body-checkout--plan .checkout-panels.is-step-pay .checkout-pay {
    position: relative;
    inset: auto;
    opacity: 1;
    transform: none;
    pointer-events: auto;
    overflow: visible;
  }
  .body-checkout--plan .checkout-pay-inner {
    max-width: none;
  }
  .body-checkout--plan .checkout-pay .form-stack {
    gap: .55rem;
  }
  .body-checkout--plan .checkout-pay .field label {
    font-size: .65rem;
    margin-bottom: .15rem;
  }
  .body-checkout--plan .checkout-pay .field input {
    padding: .45rem .65rem;
    font-size: .85rem;
  }
  .body-checkout--plan .checkout-pay .actions-row {
    margin-top: .25rem;
    gap: .5rem;
    flex-wrap: nowrap;
  }
  .body-checkout--plan .checkout-pay .actions-row .btn {
    padding: .55rem .85rem;
    font-size: .78rem;
  }
  .body-checkout--plan .checkout-plan:has(.checkout-panels.is-step-pay) {
    padding-bottom: .85rem;
  }
}

/* Legacy hero (admin / fallbacks) */
.show-hero {
  display: grid;
  gap: 1.5rem;
  margin-bottom: 2rem;
}
@media (min-width: 720px) {
  .show-hero {
    grid-template-columns: 180px 1fr;
    gap: 2rem;
    align-items: start;
  }
}
.show-hero-poster {
  aspect-ratio: 3 / 4;
  border: 1px solid var(--border);
  background: var(--surface);
  overflow: hidden;
  max-width: 220px;
}
.show-hero-poster img { width: 100%; height: 100%; object-fit: cover; }

/* Venue / sectors */
.venue-plan {
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.5rem 1rem 1.25rem;
  margin-bottom: 1.5rem;
}
.stage-arc {
  text-align: center;
  margin-bottom: 1.5rem;
}
.stage-arc span {
  display: inline-block;
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .2em;
  text-transform: uppercase;
  color: var(--muted);
  border: 1px solid var(--border);
  border-radius: 999px 999px 0 0;
  padding: .55rem 2.5rem .4rem;
  border-bottom: none;
}
/* Plano del teatro (vista superior) */
.theater-plan {
  padding: 2rem 1rem 1.25rem;
}
.theater-stage {
  max-width: 560px;
  margin: 0 auto 2rem;
  text-align: center;
  padding: .75rem 0 1.05rem;
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 50% 50% / 0 0 100% 100%;
  background: linear-gradient(
    to bottom,
    rgba(217, 164, 65, 0.1),
    rgba(217, 164, 65, 0.02)
  );
  max-height: 5rem;
  opacity: 1;
  transform: translateY(0);
  overflow: hidden;
  transition:
    opacity .35s ease,
    transform .4s cubic-bezier(.22, 1, .36, 1),
    max-height .4s cubic-bezier(.22, 1, .36, 1),
    margin .4s ease,
    padding .4s ease,
    border-width .3s ease;
}
.theater-stage span {
  font-family: var(--font-mono);
  font-size: .7rem;
  letter-spacing: .3em;
  text-transform: uppercase;
  color: var(--accent);
  opacity: .8;
  display: block;
  transition: opacity .25s ease;
}
/* Paso 2: el escenario sale hacia arriba y deja lugar a las butacas. */
.theater-plan.is-focusing .theater-stage {
  opacity: 0;
  transform: translateY(-1.25rem);
  max-height: 0;
  margin: 0 auto;
  padding-top: 0;
  padding-bottom: 0;
  border-width: 0;
  pointer-events: none;
}
.theater-plan.is-focusing .theater-stage span {
  opacity: 0;
}
.theater-sectors {
  display: flex;
  flex-direction: column;
  gap: .9rem;
  max-width: 560px;
  margin: 0 auto;
}
.theater-sector {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: rgba(255, 255, 255, 0.012);
  transition:
    border-color .3s ease,
    background .3s ease,
    box-shadow .3s ease,
    opacity .35s ease,
    filter .35s ease,
    max-height .4s ease,
    transform .35s ease;
  max-height: 480px;
  overflow: hidden;
}
.theater-sector.sector-palco { order: 0; }
.theater-sector.sector-platea { order: 1; }
.theater-sector.sector-pullman { order: 2; }
.theater-sector:hover { border-color: var(--muted); }
.theater-sector.is-selected {
  border-color: var(--accent);
  background: rgba(217, 164, 65, 0.04);
  box-shadow: 0 0 0 1px rgba(217, 164, 65, 0.35);
}
.theater-plan.is-focusing .theater-sector.is-dimmed {
  opacity: 0;
  pointer-events: none;
  max-height: 0;
  margin: 0;
  padding: 0;
  border-width: 0;
  transform: scale(.96);
}
.theater-plan.is-focusing .theater-sector.is-dimmed .theater-sector-head,
.theater-plan.is-focusing .theater-sector.is-dimmed .theater-sector-seats {
  opacity: 0;
  padding: 0;
}
.theater-plan.is-focusing .theater-sectors {
  gap: 0;
}
.plan-title {
  font-size: clamp(1.75rem, 5vw, 2.5rem);
  margin: 0 0 .35rem;
}
#btn-cambiar-sector[hidden],
#btn-visualizar[hidden],
#btn-volver-cartelera[hidden] {
  display: none !important;
}
.theater-view-bar {
  display: flex;
  justify-content: flex-end;
  max-width: 560px;
  margin: 0 auto;
  min-height: 0;
}
.theater-view-bar:not(:has(#btn-visualizar:not([hidden]))) {
  display: none;
}
.btn-visualizar {
  appearance: none;
  margin: 0 0 .35rem;
  padding: .2rem .15rem;
  border: none;
  background: transparent;
  color: var(--accent);
  font-size: .68rem;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.2;
  opacity: .9;
  transition: opacity .2s ease, color .2s ease;
}
.btn-visualizar:hover,
.btn-visualizar:focus-visible {
  opacity: 1;
  color: var(--text);
  outline: none;
}
.theater-sector-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  width: 100%;
  padding: .8rem 1rem .35rem;
  background: transparent;
  border: 0;
  cursor: pointer;
  color: var(--text);
  text-align: left;
}
.theater-sector-name {
  font-family: var(--font-display);
  font-size: 1.2rem;
  text-transform: uppercase;
  letter-spacing: .05em;
}
.theater-sector-meta {
  display: inline-flex;
  align-items: baseline;
  gap: .9rem;
  white-space: nowrap;
}
.theater-sector-availability {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
}
.theater-sector-price {
  font-family: var(--font-mono);
  font-size: .85rem;
  color: var(--accent);
}
.theater-sector-seats {
  --seat: 9px;
  --seat-gap: 3px;
  padding: calc(var(--seat) * .8) .75rem .8rem;
  overflow-x: auto;
  transition: padding .35s ease;
}
.theater-sector.is-open .theater-sector-seats {
  --seat: 22px;
  --seat-gap: 6px;
  padding: calc(var(--seat) * .8) .75rem 1.3rem;
}
.theater-row {
  display: flex;
  justify-content: center;
  align-items: flex-end;
  gap: var(--seat-gap);
  margin-bottom: var(--seat-gap);
  min-width: min-content;
}
.theater-row-label {
  font-family: var(--font-mono);
  font-size: .65rem;
  color: var(--muted);
  width: 0;
  opacity: 0;
  overflow: hidden;
  text-align: center;
  transition: width .3s, opacity .3s;
  flex: none;
}
.theater-sector.is-open .theater-row-label {
  width: 1.3rem;
  opacity: 1;
}
.mini-seat {
  flex: none;
  appearance: none;
  padding: 0;
  width: var(--seat);
  height: calc(var(--seat) * .94);
  border: 1px solid rgba(217, 164, 65, 0.55);
  border-radius: 38% 38% 16% 16%;
  background: rgba(217, 164, 65, 0.14);
  box-shadow: inset 0 calc(var(--seat) * -0.22) 0 rgba(0, 0, 0, 0.35);
  transition: width .35s ease, height .35s ease, background .15s, border-color .15s;
}
.theater-sector:not(.is-open) .mini-seat { pointer-events: none; }
.theater-sector:not(.is-open) { cursor: pointer; }
.theater-sector.is-open button.mini-seat {
  cursor: pointer;
  transition:
    width .35s ease,
    height .35s ease,
    background .15s,
    border-color .15s,
    transform .15s ease,
    box-shadow .15s ease;
}
.theater-sector.is-open button.mini-seat:hover,
.theater-sector.is-open button.mini-seat:focus-visible {
  background: var(--accent);
  border-color: var(--accent);
  transform: translateY(-2px) scale(1.06);
  box-shadow: 0 0 0 2px rgba(217, 164, 65, 0.35);
}
.mini-seat.is-selected {
  background: var(--accent);
  border-color: var(--accent);
}
.mini-seat.is-occupied {
  border-color: #4a2430;
  background: #2a1218;
  box-shadow: none;
  cursor: not-allowed;
}
.theater-loading {
  margin: .25rem 0 .75rem;
  text-align: center;
  font-size: .8rem;
  color: var(--muted);
}
.theater-hint {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 1rem;
}
.theater-legend {
  justify-content: center;
  margin-top: 1.5rem;
}
.theater-legend .legend-swatch.available {
  background: rgba(217, 164, 65, 0.14);
  border-color: rgba(217, 164, 65, 0.55);
}

.actions-row {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem;
  margin-top: 1.5rem;
}
.actions-row--center {
  justify-content: center;
  align-items: center;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .5rem;
  padding: .85rem 1.4rem;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: transparent;
  color: var(--text);
  cursor: pointer;
  font-size: .9rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  transition: background .2s, border-color .2s, color .2s;
}
.btn:hover { border-color: var(--muted); }
.btn:disabled {
  opacity: .4;
  cursor: not-allowed;
}
.btn-primary {
  background: var(--accent);
  border-color: var(--accent);
  color: var(--ticket-ink);
  font-weight: 600;
}
.btn-primary:hover:not(:disabled) {
  filter: brightness(1.05);
  border-color: var(--accent);
}
.btn-ghost { border-color: transparent; color: var(--muted); }
.btn-ghost:hover { color: var(--text); }

/* Seat map */
.seatmap-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.seatmap-legend {
  display: flex;
  flex-wrap: wrap;
  gap: .75rem 1.25rem;
  font-size: .8rem;
  color: var(--muted);
}
.legend-item {
  display: inline-flex;
  align-items: center;
  gap: .4rem;
}
.legend-swatch {
  width: 14px;
  height: 14px;
  border: 1px solid var(--border);
  border-radius: 3px 3px 2px 2px;
}
.legend-swatch.available { background: transparent; }
.legend-swatch.selected { background: var(--accent); border-color: var(--accent); }
.legend-swatch.occupied { background: #2a1218; border-color: #4a2430; }

.seatmap-wrap {
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--border);
  padding: 1.25rem .75rem 1.5rem;
  -webkit-overflow-scrolling: touch;
}
.seatmap {
  display: inline-flex;
  flex-direction: column;
  gap: .45rem;
  min-width: min-content;
  margin: 0 auto;
  width: 100%;
  align-items: center;
}
.seatmap-row {
  display: flex;
  align-items: center;
  gap: .4rem;
}
.seatmap-row-label {
  font-family: var(--font-mono);
  font-size: .7rem;
  color: var(--muted);
  width: 1.1rem;
  text-align: center;
}
.seat {
  width: 28px;
  height: 26px;
  border: 1px solid var(--border);
  border-radius: 6px 6px 3px 3px;
  background: transparent;
  padding: 0;
  cursor: pointer;
  position: relative;
  transition: background .15s, border-color .15s, transform .15s;
}
.seat:hover:not(:disabled) {
  border-color: var(--accent);
  transform: translateY(-1px);
}
.seat.is-selected {
  background: var(--accent);
  border-color: var(--accent);
}
.seat.is-occupied,
.seat:disabled {
  background: #2a1218;
  border-color: #4a2430;
  cursor: not-allowed;
  opacity: .7;
}
.seat.is-occupied::after {
  content: "";
  position: absolute;
  inset: 45% 15%;
  height: 1px;
  background: var(--curtain);
  transform: rotate(-20deg);
}

/* Resumen de compra */
.ticket {
  background: transparent;
  color: var(--text);
  border: none;
  padding: 0;
}
.ticket-title {
  font-family: var(--font-display);
  font-size: clamp(1.5rem, 4vw, 1.9rem);
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .02em;
  line-height: 1.05;
  margin: 0 0 1rem;
}
.ticket-meta {
  display: grid;
  gap: .55rem;
  margin: 0;
  padding: 0 0 1rem;
  border-bottom: 1px solid var(--border);
}
.ticket-meta > div {
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  font-size: .9rem;
}
.ticket-meta dt {
  margin: 0;
  color: var(--muted);
}
.ticket-meta dd {
  margin: 0;
  text-align: right;
}
.ticket-meta dd.is-empty {
  color: var(--muted);
  font-style: italic;
}
.ticket-code {
  font-weight: 600;
  letter-spacing: .06em;
  color: var(--accent);
}
.ticket-total {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-top: 1rem;
  font-size: .95rem;
  color: var(--muted);
}
.ticket-total strong {
  font-size: 1.25rem;
  font-weight: 600;
  color: var(--accent);
}

/* Form */
.form-stack {
  display: grid;
  gap: 1rem;
  max-width: 480px;
}
.form-row {
  display: grid;
  gap: 1rem;
}
@media (min-width: 560px) {
  .form-row.two { grid-template-columns: 1fr 1fr; }
}
.field label {
  display: block;
  font-size: .8rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: .4rem;
}
.field input,
.field textarea,
.field select {
  width: 100%;
  padding: .85rem 1rem;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 4px;
  outline: none;
}
.field input:focus {
  border-color: var(--accent);
}
.form-error {
  color: #e8a0a0;
  background: rgba(153, 59, 59, 0.2);
  border: 1px solid var(--curtain);
  padding: .75rem 1rem;
  font-size: .9rem;
  margin-bottom: 1rem;
}
.form-note {
  color: var(--muted);
  font-size: .85rem;
  margin: 0 0 1rem;
}

/* Confirmation */
.confirm-wrap {
  max-width: 480px;
  margin: 2rem auto;
  text-align: center;
}
.confirm-wrap .ticket { text-align: left; margin: 2rem 0; }
.dni-notice {
  border: 1px solid var(--accent);
  background: rgba(217, 164, 65, 0.08);
  padding: 1rem 1.25rem;
  margin: 1.5rem 0;
  text-align: left;
}
.dni-notice strong {
  display: block;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.15rem;
  margin-bottom: .35rem;
  color: var(--accent);
}
.dni-notice p { margin: 0; color: var(--muted); font-size: .95rem; }

/* Modal */
.modal {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1rem;
  background: rgba(8, 3, 5, 0.88);
}
.modal.is-open,
.modal.is-closing {
  display: flex;
}
.modal.is-open {
  animation: modal-backdrop-in .28s ease both;
}
.modal.is-closing {
  animation: modal-backdrop-out .24s ease both;
  pointer-events: none;
}
.modal-dialog {
  width: min(100%, 560px);
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem;
}
.modal.is-open .modal-dialog {
  animation: modal-dialog-in .38s cubic-bezier(.22, 1, .36, 1) both;
}
.modal.is-closing .modal-dialog {
  animation: modal-dialog-out .24s ease both;
}
@keyframes modal-backdrop-in {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes modal-backdrop-out {
  from { opacity: 1; }
  to { opacity: 0; }
}
@keyframes modal-dialog-in {
  from {
    opacity: 0;
    transform: translateY(.6rem) scale(.97);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
@keyframes modal-dialog-out {
  from {
    opacity: 1;
    transform: none;
  }
  to {
    opacity: 0;
    transform: translateY(.45rem) scale(.98);
  }
}
.modal-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: .75rem;
}
.modal-header h3 {
  margin: 0;
  font-family: var(--font-display);
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: 1.3rem;
}
.modal-close {
  background: none;
  border: none;
  color: var(--muted);
  font-size: 1.5rem;
  cursor: pointer;
  line-height: 1;
}
.modal-body img {
  width: 100%;
  aspect-ratio: 16 / 10;
  object-fit: cover;
  border: 1px solid var(--border);
  border-radius: 4px;
  background: var(--bg);
  display: block;
}
.modal-caption {
  margin: .75rem 0 0;
  color: var(--muted);
  font-size: .85rem;
}

/* Admin */
.admin-body { background: var(--bg); }
.admin-shell {
  display: grid;
  min-height: 100vh;
}
@media (min-width: 800px) {
  .admin-shell { grid-template-columns: 220px 1fr; }
}
.admin-sidebar {
  border-right: 1px solid var(--border);
  padding: 1.5rem 1.25rem;
  background: var(--surface);
}
.admin-sidebar .brand-name { font-size: 1.4rem; }
.admin-nav {
  display: flex;
  flex-direction: column;
  gap: .35rem;
  margin-top: 2rem;
}
.admin-nav a {
  padding: .55rem .7rem;
  color: var(--muted);
  border-radius: var(--radius);
}
.admin-nav a:hover,
.admin-nav a.is-active {
  color: var(--text);
  background: rgba(217, 164, 65, 0.08);
}
.admin-content { padding: 1.5rem; }
.admin-top {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.5rem;
}
.admin-table-wrap { overflow-x: auto; }
table.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: .9rem;
}
.data-table th,
.data-table td {
  text-align: left;
  padding: .75rem .6rem;
  border-bottom: 1px solid var(--border);
}
.data-table th {
  color: var(--muted);
  font-weight: 500;
  font-size: .75rem;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.badge {
  display: inline-block;
  padding: .15rem .5rem;
  font-size: .7rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  border: 1px solid var(--border);
  color: var(--muted);
}
.badge-ok { border-color: var(--accent); color: var(--accent); }
.login-card {
  max-width: 380px;
  margin: 10vh auto;
  padding: 2rem;
  background: var(--surface);
  border: 1px solid var(--border);
}
.login-card h1 {
  font-family: var(--font-logo);
  text-transform: uppercase;
  margin: 0 0 1.5rem;
}
.alert {
  padding: .75rem 1rem;
  margin-bottom: 1rem;
  border: 1px solid var(--border);
  font-size: .9rem;
}
.alert-error { border-color: var(--curtain); color: #e8a0a0; background: rgba(153,59,59,.15); }
.alert-ok { border-color: var(--accent); color: var(--accent); background: rgba(217,164,65,.08); }
.admin-form { display: grid; gap: 1rem; max-width: 640px; }
.admin-form textarea {
  width: 100%;
  min-height: 120px;
  padding: .85rem 1rem;
  background: var(--bg);
  border: 1px solid var(--border);
  resize: vertical;
}
.price-grid {
  display: grid;
  gap: .75rem;
}
.price-grid label { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.price-grid input { width: 140px; padding: .5rem .75rem; background: var(--bg); border: 1px solid var(--border); }
.sector-admin-card {
  border: 1px solid var(--border);
  padding: 1rem;
  margin-bottom: .75rem;
  background: var(--surface);
}
.empty-state {
  color: var(--muted);
  padding: 3rem 1rem;
  text-align: center;
  border: 1px dashed var(--border);
}

/* Checkout — paso 4: medio de pago */
.steps:has([data-step="4"]) li + li {
  margin-left: 2rem;
}
.steps:has([data-step="4"]) li + li::before {
  width: 1.35rem;
}
.checkout-pay-lead {
  margin: 0 0 1rem;
  color: var(--muted);
  font-size: .82rem;
  line-height: 1.45;
}
.checkout-step--payment[hidden] {
  display: none !important;
}
.checkout-panels.is-step-payment .checkout-step--data {
  display: none;
}
.pay-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  padding: .75rem .85rem;
  margin-bottom: 1rem;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid var(--border);
  border-radius: 6px;
  font-size: .78rem;
  letter-spacing: .04em;
  text-transform: uppercase;
  color: var(--muted);
}
.pay-summary strong {
  font-family: var(--font-display);
  font-size: 1.35rem;
  color: var(--accent);
  letter-spacing: .02em;
}
.pay-methods {
  display: grid;
  gap: .55rem;
  margin-bottom: 1rem;
}
.pay-method {
  display: flex;
  align-items: flex-start;
  gap: .65rem;
  padding: .75rem .85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.02);
  cursor: pointer;
  transition: border-color .2s ease, background .2s ease;
}
.pay-method:has(input:checked) {
  border-color: rgba(217, 164, 65, 0.55);
  background: rgba(217, 164, 65, 0.08);
}
.pay-method input {
  margin-top: .2rem;
  accent-color: var(--accent);
}
.pay-method-body {
  display: flex;
  flex-direction: column;
  gap: .15rem;
}
.pay-method-title {
  font-size: .88rem;
  font-weight: 600;
  color: var(--text);
}
.pay-method-desc {
  font-size: .72rem;
  color: var(--muted);
}
.pay-panel {
  margin-bottom: .85rem;
}
.pay-panel[hidden] {
  display: none !important;
}
.transfer-box {
  padding: .85rem;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.03);
}
.transfer-box p {
  margin: 0 0 .65rem;
  font-size: .82rem;
  color: var(--muted);
}
.transfer-details {
  display: grid;
  gap: .45rem;
  margin: 0 0 .65rem;
}
.transfer-details div {
  display: grid;
  grid-template-columns: 4.5rem 1fr;
  gap: .5rem;
  align-items: baseline;
}
.transfer-details dt {
  font-size: .68rem;
  letter-spacing: .06em;
  text-transform: uppercase;
  color: var(--muted);
}
.transfer-details dd {
  margin: 0;
  font-size: .85rem;
}
.transfer-details code {
  font-family: var(--font-mono);
  font-size: .78rem;
  color: var(--accent);
}
.transfer-note {
  margin: 0;
  font-size: .72rem;
  color: var(--muted);
  line-height: 1.4;
}
@media (max-width: 899px) {
  .steps:has([data-step="4"]) li + li {
    margin-left: 1.65rem;
  }
  .steps:has([data-step="4"]) li + li::before {
    width: 1.1rem;
  }
}

