/* ============================================================
   boletería — pared Nº 08 · violeta nocturno
   Contenido: H2 + 4 párrafos + tabla de métodos (Método / Tipo
   de operación) + 5 reglas — palabra por palabra.
   Anatomy unlike siblings: el TABLERO DE LA CAJA — panel de
   salidas colgado (doble filete, renglones con chapas de
   estado); a su lado la foto y las reglas como NOTAS AL MARGEN
   tipográficas (sin papel); cierre a todo lo ancho.
   Gesto propio: las chapas de estado GIRAN como celdas de
   tablero de aeropuerto (rotateX), renglón por renglón.
   ============================================================ */

.boleteria {
  position: relative;
  background: var(--noche);
  color: var(--hueso);
  padding-block: clamp(4rem, 8vw, 7rem);
}

.boleteria .numeral {
  top: clamp(.5rem, 2.5vw, 2rem);
  left: clamp(.6rem, 3vw, 2.8rem);
  transform: rotate(-1.6deg);
  color: rgba(253, 249, 240, .07);
}

.boleteria_cabecera {
  position: relative;
  z-index: 1;
  max-width: 58ch;
  margin-bottom: clamp(2.2rem, 4.5vw, 3.4rem);
}
.boleteria_cabecera .pregon {
  color: rgba(253, 249, 240, .6);
  margin-bottom: 1.1rem;
}
.boleteria_titulo {
  font-size: clamp(2rem, 2.8vw + .8rem, 3.2rem);
  color: var(--hueso);
  margin-bottom: 1.4rem;
}
.boleteria_titulo em {
  font-style: normal;
  color: var(--cian);
  text-shadow: 2px 2px 0 var(--tinta);
}
.boleteria_lead { color: rgba(253, 249, 240, .88); }

.boleteria_armado {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1.12fr) minmax(0, .88fr);
  gap: clamp(2.5rem, 6vw, 5.5rem);
  align-items: start;
  margin-bottom: clamp(2.2rem, 4vw, 3.2rem);
}

.boleteria_principal > p { color: rgba(253, 249, 240, .88); }

/* ── el tablero de la caja ── */
.tablero {
  margin-top: 1.6rem;
  border: 2px solid var(--hueso);
  position: relative;
  padding: 1.4rem 1.5rem 1.2rem;
  background: var(--tinta);
  box-shadow: .65rem .75rem 0 0 rgba(0, 0, 0, .45);
}
.tablero::before {                       /* segundo filete */
  content: "";
  position: absolute;
  inset: 4px;
  border: 1px solid rgba(253, 249, 240, .3);
  pointer-events: none;
}
.tablero_titulos {
  display: flex;
  gap: 1.6rem;
  margin-bottom: 1rem;
  position: relative;
  z-index: 1;
}
.tablero_titulos span {
  font: 700 var(--t-folio)/1 var(--letra);
  letter-spacing: .26em;
  text-transform: uppercase;
  color: var(--turquesa-viva);
}
.tablero_titulos span + span::before { content: "— "; color: rgba(253, 249, 240, .4); }

.tablero_filas { position: relative; z-index: 1; perspective: 700px; }
.tablero_fila {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1.4rem;
  padding-block: .72rem;
}
.tablero_fila + .tablero_fila { border-top: 1px dashed rgba(253, 249, 240, .25); }
.tablero_fila > p { font-weight: 600; color: var(--hueso); }

/* chapa de estado: celda del tablero */
.tablero_tipo {
  flex: 0 0 auto;
  font: 700 .76rem/1 var(--letra);
  letter-spacing: .14em;
  text-transform: uppercase;
  color: rgba(253, 249, 240, .85);
  border: 2px solid rgba(253, 249, 240, .45);
  padding: .42em .75em;
  white-space: nowrap;
}
.tablero_tipo--doble {
  color: var(--cian);
  border-color: rgba(3, 233, 242, .65);
}

/* ── el lado: foto + reglas al margen ── */
.boleteria_foto { transform: rotate(1.6deg); margin-bottom: 2rem; }
.boleteria_foto figcaption {
  margin-top: .8rem;
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  color: var(--tinta);
}

.boleteria_lado > p { color: rgba(253, 249, 240, .88); }

.renglones { margin-top: 1.3rem; }
.renglones li {
  position: relative;
  padding-left: 1.9rem;
  padding-block: .55rem;
  color: rgba(253, 249, 240, .85);
  font-size: .98rem;
}
.renglones li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 1.15rem;
  width: 1.15rem;
  height: 3px;
  background: var(--fucsia);
  transform: rotate(-2deg);          /* rayita a mano */
}
/* sangrías desparejas de apunte */
.renglones li:nth-child(2) { margin-left: .7rem; }
.renglones li:nth-child(3) { margin-left: .2rem; }
.renglones li:nth-child(4) { margin-left: .9rem; }
.renglones li:nth-child(5) { margin-left: .4rem; }

.boleteria_cta {
  margin-top: 2rem;
  background: var(--fucsia);
  color: var(--blanco);
  border-color: var(--fucsia-honda);
  box-shadow: .5rem .5rem 0 0 rgba(0, 0, 0, .45);
}
.boleteria_cta:hover,
.boleteria_cta:active { background: #ef3a94; }

/* — cierre a todo lo ancho — */
.boleteria_cierre {
  position: relative;
  z-index: 1;
  max-width: 70ch;
  color: rgba(253, 249, 240, .88);
  border-top: 1px dashed rgba(253, 249, 240, .25);
  padding-top: 1.8rem;
}

/* ── gesto: las chapas giran como tablero de salidas ── */
@media (min-width: 1025px) {
  .tablero_fila {
    opacity: 0;
    transition: opacity .4s ease;
  }
  .tablero_tipo {
    transform: rotateX(-88deg);
    transform-origin: top;
    transition: transform .5s cubic-bezier(.3, 1.2, .4, 1);
  }
  .boleteria.en-vista .tablero_fila { opacity: 1; }
  .boleteria.en-vista .tablero_tipo { transform: rotateX(0); }

  .boleteria.en-vista .tablero_fila:nth-child(1),
  .boleteria.en-vista .tablero_fila:nth-child(1) .tablero_tipo { transition-delay: .1s; }
  .boleteria.en-vista .tablero_fila:nth-child(2),
  .boleteria.en-vista .tablero_fila:nth-child(2) .tablero_tipo { transition-delay: .22s; }
  .boleteria.en-vista .tablero_fila:nth-child(3),
  .boleteria.en-vista .tablero_fila:nth-child(3) .tablero_tipo { transition-delay: .34s; }
  .boleteria.en-vista .tablero_fila:nth-child(4),
  .boleteria.en-vista .tablero_fila:nth-child(4) .tablero_tipo { transition-delay: .46s; }
  .boleteria.en-vista .tablero_fila:nth-child(5),
  .boleteria.en-vista .tablero_fila:nth-child(5) .tablero_tipo { transition-delay: .58s; }
  .boleteria.en-vista .tablero_fila:nth-child(6),
  .boleteria.en-vista .tablero_fila:nth-child(6) .tablero_tipo { transition-delay: .7s; }
}

/* ============================ móvil ============================ */
@media (max-width: 1024px) {
  .boleteria_titulo { font-size: clamp(1.9rem, 7vw, 2.6rem); }

  .boleteria_armado { grid-template-columns: 1fr; gap: 2.4rem; }

  .tablero { padding: 1.2rem 1.1rem 1rem; }
  .tablero_fila {
    flex-direction: column;
    align-items: flex-start;
    gap: .5rem;
  }
  .tablero_tipo { font-size: .85rem; }

  .renglones li { font-size: 1.04rem; }
  .renglones li:nth-child(2),
  .renglones li:nth-child(3),
  .renglones li:nth-child(4),
  .renglones li:nth-child(5) { margin-left: 0; }

  .boleteria_cta { width: 90%; }
}
