:root {
  --bg: #0b0b0a;
  --panel: #11110f;
  --ink: #f0eee8;
  --muted: #aaa69d;
  --line: rgba(240, 238, 232, 0.5);
  --line-soft: rgba(240, 238, 232, 0.18);
  --paper: #e8e4db;
  --dark-ink: #11110f;
  --danger: #d9a69f;
  --max-width: 1500px;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 18% 20%, rgba(255,255,255,.035), transparent 22%),
    radial-gradient(circle at 82% 70%, rgba(255,255,255,.025), transparent 28%),
    var(--bg);
  color: var(--ink);
  font-family: "Courier Prime", monospace;
}

body::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .16;
  z-index: 999;
  background-image:
    repeating-linear-gradient(
      0deg,
      rgba(255,255,255,.025) 0px,
      rgba(255,255,255,.025) 1px,
      transparent 1px,
      transparent 4px
    );
  mix-blend-mode: screen;
}

.noise {
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .08;
  z-index: 998;
  background-image:
    radial-gradient(circle, rgba(255,255,255,.8) .5px, transparent .7px);
  background-size: 8px 8px;
}

a {
  color: inherit;
}

.site-header,
.site-footer,
.page-shell {
  width: min(calc(100% - 48px), var(--max-width));
  margin-inline: auto;
}

.site-header {
  min-height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid var(--line);
}

.brand {
  text-decoration: none;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(1.45rem, 2.2vw, 2.25rem);
  letter-spacing: .22em;
  white-space: nowrap;
}

.nav {
  display: flex;
  gap: clamp(20px, 4vw, 56px);
}

.nav a {
  text-decoration: none;
  font-size: .76rem;
  letter-spacing: .16em;
  color: var(--muted);
}

.nav a:hover {
  color: var(--ink);
}

.page-shell {
  display: grid;
  grid-template-columns: minmax(0, 1.28fr) minmax(350px, .72fr);
  gap: clamp(34px, 4vw, 64px);
  padding-block: clamp(28px, 3vw, 44px);
}

.flyer-column {
  min-width: 0;
}

.flyer-frame {
  width: 100%;
  max-width: 860px;
  aspect-ratio: 1420 / 1092;
  border: 1px solid rgba(255,255,255,.72);
  overflow: hidden;
  background: #161613;
}

.flyer-frame img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.side-copy {
  margin: 28px 0 0 4%;
  max-width: 290px;
  color: var(--muted);
  line-height: 2;
  letter-spacing: .28em;
  font-size: .76rem;
}

.ticket-column {
  align-self: start;
  max-width: 520px;
}

.eyebrow {
  margin: 0 0 10px;
  color: var(--muted);
  letter-spacing: .34em;
  font-size: .82rem;
}

h1 {
  margin: 0;
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-size: clamp(2.8rem, 4.8vw, 5.2rem);
  line-height: .92;
  letter-spacing: -.045em;
}

h2 {
  margin: 14px 0 0;
  font-size: clamp(1rem, 2vw, 1.45rem);
  font-weight: 400;
  letter-spacing: .42em;
}

.divider {
  height: 1px;
  background: var(--line);
  margin: 20px 0;
}

.event-data {
  font-size: clamp(.88rem, 1.15vw, 1rem);
  line-height: 1.45;
  letter-spacing: .1em;
}

.event-data p {
  margin: 0;
}

.price-block {
  display: grid;
  gap: 4px;
  margin-bottom: 18px;
}

.price-block span,
.field-group label {
  color: var(--muted);
  font-size: .8rem;
  letter-spacing: .18em;
}

.price-block strong {
  font-size: clamp(1.8rem, 2.8vw, 2.9rem);
  font-weight: 400;
}

.field-group {
  margin-bottom: 15px;
}

.field-group label {
  display: block;
  margin-bottom: 7px;
}

.field-group label span {
  font-size: .68rem;
}

input {
  width: 100%;
  border: 1px solid rgba(255,255,255,.52);
  background: transparent;
  color: var(--ink);
  padding: 11px 14px;
  min-height: 44px;
  font: inherit;
  outline: none;
}

input:focus {
  border-color: var(--ink);
  box-shadow: 0 0 0 1px rgba(255,255,255,.16);
}

.quantity-control {
  display: inline-grid;
  grid-template-columns: 42px 74px 42px;
  border: 1px solid rgba(255,255,255,.42);
}

.quantity-control button,
.quantity-control input {
  border: 0;
  min-height: 42px;
}

.quantity-control button {
  cursor: pointer;
  background: var(--paper);
  color: var(--dark-ink);
  font-size: 1.4rem;
}

.quantity-control button:disabled {
  opacity: .4;
  cursor: not-allowed;
}

.quantity-control input {
  text-align: center;
  font-size: 1.05rem;
  padding: 0;
  appearance: textfield;
}

.quantity-control input::-webkit-outer-spin-button,
.quantity-control input::-webkit-inner-spin-button {
  appearance: none;
  margin: 0;
}

.hint {
  min-height: 18px;
  margin: 8px 0 0;
  color: var(--muted);
  font-size: .73rem;
}

.total-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 22px;
  margin: 22px 0 16px;
  font-family: "Libre Caslon Display", serif;
  font-size: clamp(1.55rem, 2.2vw, 2.25rem);
}

.total-row strong {
  font-weight: 400;
}

.primary-button,
.secondary-button {
  width: 100%;
  border: 0;
  cursor: pointer;
  font: inherit;
  letter-spacing: .2em;
}

.primary-button {
  min-height: 52px;
  padding: 12px 20px;
  background: var(--paper);
  color: var(--dark-ink);
  font-size: .95rem;
}

.primary-button:hover {
  filter: brightness(.92);
}

.secondary-button {
  min-height: 54px;
  padding: 13px 18px;
  color: var(--ink);
  background: transparent;
  border: 1px solid rgba(255,255,255,.4);
}

.payment-note {
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.45;
  font-size: .76rem;
}

.form-error {
  min-height: 20px;
  margin: 12px 0 0;
  color: var(--danger);
  font-size: .82rem;
}

.reservation-result {
  padding-top: 8px;
}

.reservation-result h3,
.closed-sale h3 {
  margin: 0 0 14px;
  font-family: "Libre Caslon Display", serif;
  font-weight: 400;
  font-size: clamp(2rem, 4vw, 3.5rem);
}

.reservation-result > p:not(.eyebrow),
.closed-sale p {
  color: var(--muted);
  line-height: 1.6;
}

.reservation-summary {
  margin: 28px 0;
  border-block: 1px solid var(--line-soft);
}

.reservation-summary p {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px solid var(--line-soft);
}

.reservation-summary p:last-child {
  border-bottom: 0;
}

.reservation-summary span {
  color: var(--muted);
}

.payment-box {
  margin-bottom: 24px;
  padding: 24px;
  background: var(--paper);
  color: var(--dark-ink);
  display: grid;
  gap: 8px;
}

.payment-box span {
  font-size: .72rem;
  letter-spacing: .2em;
}

.payment-box strong {
  font-size: clamp(1.5rem, 3vw, 2.3rem);
  overflow-wrap: anywhere;
}

.payment-box small {
  opacity: .7;
}

.site-footer {
  min-height: 70px;
  border-top: 1px solid var(--line-soft);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  color: var(--muted);
  font-size: .72rem;
  letter-spacing: .16em;
}

[hidden] {
  display: none !important;
}

@media (max-width: 900px) {
  .site-header,
  .site-footer,
  .page-shell {
    width: min(calc(100% - 30px), var(--max-width));
  }

  .site-header {
    min-height: 84px;
  }

  .nav {
    display: none;
  }

  .page-shell {
    grid-template-columns: 1fr;
    gap: 48px;
    padding-top: 32px;
  }

  .flyer-frame {
    max-width: none;
    aspect-ratio: 1420 / 1092;
  }

  .side-copy {
    display: none;
  }

  .ticket-column {
    max-width: none;
  }

  h1 {
    font-size: clamp(3.1rem, 15vw, 6rem);
  }

  .site-footer {
    align-items: flex-start;
    justify-content: center;
    flex-direction: column;
    padding-block: 28px;
  }
}

@media (max-width: 520px) {
  .brand {
    font-size: 1.2rem;
  }

  .page-shell {
    width: calc(100% - 24px);
  }

  .ticket-column {
    padding-inline: 2px;
  }

  h2 {
    letter-spacing: .28em;
  }

  .quantity-control {
    grid-template-columns: 42px 72px 42px;
  }

  .total-row {
    font-size: 2rem;
  }

  .primary-button {
    font-size: .82rem;
  }
}


/* =========================================================
   AJUSTE HEADER COMPACTO
   ========================================================= */

.brand {
  display: none;
}

.site-header {
  justify-content: flex-end;
}

.nav {
  gap: 32px;
}

.nav a {
  font-size: .68rem;
}

/* Aprovechar el espacio ganado arriba */
.page-shell {
  padding-top: clamp(18px, 2vw, 28px);
}

/* MOBILE */
@media (max-width: 900px) {
  .site-header {
    min-height: 34px;
    border-bottom: 1px solid var(--line-soft);
  }

  /* En celular ocultamos también la navegación superior:
     el contenido principal empieza casi inmediatamente. */
  .nav {
    display: none;
  }

  .page-shell {
    padding-top: 14px;
    gap: 30px;
  }

  .flyer-frame {
    width: 100%;
    max-width: none;
    aspect-ratio: 1420 / 1092;
  }

  .ticket-column {
    width: 100%;
  }

  .eyebrow {
    margin-bottom: 8px;
  }

  h1 {
    font-size: clamp(2.8rem, 13vw, 5rem);
  }

  h2 {
    margin-top: 10px;
  }

  .divider {
    margin: 16px 0;
  }

  .price-block {
    margin-bottom: 14px;
  }

  .field-group {
    margin-bottom: 13px;
  }

  .total-row {
    margin: 18px 0 14px;
  }
}

@media (max-width: 520px) {
  .site-header {
    min-height: 24px;
  }

  .page-shell {
    width: calc(100% - 20px);
    padding-top: 10px;
    gap: 24px;
  }

  .price-block strong {
    font-size: 2rem;
  }

  .quantity-control {
    grid-template-columns: 40px 68px 40px;
  }

  .quantity-control button,
  .quantity-control input {
    min-height: 40px;
  }

  .quantity-control button {
    font-size: 1.25rem;
  }

  .quantity-control input {
    font-size: 1rem;
  }
}


/* =========================================================
   AJUSTE: FLYER MÁS PEQUEÑO
   ========================================================= */

@media (min-width: 901px) {
  .flyer-frame {
    width: 82%;
    max-width: 700px;
  }
}

@media (max-width: 900px) {
  .flyer-frame {
    width: 88%;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .flyer-frame {
    width: 92%;
  }
}


/* =========================================================
   AJUSTE DE COMPOSICIÓN - FLYER + COLUMNA DE COMPRA
   ========================================================= */

@media (min-width: 901px) {
  .page-shell {
    grid-template-columns: minmax(0, 1.18fr) minmax(350px, .78fr);
    gap: clamp(24px, 2.8vw, 46px);
  }

  .flyer-frame {
    width: 90%;
    max-width: 780px;
  }

  .ticket-column {
    justify-self: start;
    width: 100%;
    max-width: 520px;
  }
}

/* En tablet/celular mantenemos el flujo vertical cómodo */
@media (max-width: 900px) {
  .page-shell {
    grid-template-columns: 1fr;
  }

  .flyer-frame {
    width: 92%;
    margin-inline: auto;
  }
}

@media (max-width: 520px) {
  .flyer-frame {
    width: 96%;
  }
}


/* =========================================================
   AJUSTE: MOSTRAR SIEMPRE EL FLYER COMPLETO
   ========================================================= */

.flyer-frame {
  aspect-ratio: 1420 / 1092;
}

.flyer-frame img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}
