/* =========================================================
   MARK: SCROLL-MAGIA (Vaquera - "Rodeo de quince")
   Piezas que crea js/scroll-magia.js.
   Solo aplica cuando el script se activó (body.vq-on).
   ========================================================= */

/* MARK: REATA-DE-PROGRESO */
.vq-reata {
  position: fixed;
  left: 3px;
  top: calc(70px + env(safe-area-inset-top));
  bottom: 90px;
  z-index: 9990;
  width: 14px;
  pointer-events: none;
}

body:not(.is-open) .vq-reata { visibility: hidden; }

.vq-reata svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vq-reata path {
  fill: none;
  stroke: #f0c987;
  stroke-width: 2.6;
  stroke-dasharray: 6 2;
  vector-effect: non-scaling-stroke;
}

.vq-reata path.vq-reata-sombra {
  stroke: #4a2614;
  stroke-width: 4.6;
  stroke-dasharray: none;
}

.vq-reata-herradura {
  position: absolute;
  left: -3px;
  top: -4px;
  width: 20px;
  text-align: center;
  color: #e9c27a;
  font: 900 20px/1 Georgia, serif;
  text-shadow: 0 1px 0 #5a2f1a, 0 0 6px rgba(255, 220, 160, .8);
}

/* MARK: MARCA-A-FUEGO */
.vq-brasa {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: block;
  padding: inherit;
  background: none;
  -webkit-text-fill-color: #ffb36b;
  color: #ffb36b;
  -webkit-text-stroke: .6px #ff5a1a;
  text-shadow: 0 0 10px #ff6a1a, 0 0 22px #ff3d00;
  pointer-events: none;
  opacity: 0;
}

.vq-humo {
  position: absolute;
  left: 20%;
  right: 20%;
  top: 0;
  height: 100%;
  pointer-events: none;
}

.vq-humo i {
  position: absolute;
  bottom: 40%;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(240, 225, 215, .75), rgba(240, 225, 215, 0) 70%);
  opacity: 0;
}

.vq-humo i:nth-child(1) { left: 10%; }
.vq-humo i:nth-child(2) { left: 45%; }
.vq-humo i:nth-child(3) { left: 78%; }

/* MARK: TITULOS-CON-REATA */
.vq-subrayado {
  display: block;
  width: min(62%, 220px);
  height: 22px;
  margin: -.35rem auto .6rem;
  overflow: visible;
  pointer-events: none;
}

.vq-subrayado path {
  fill: none;
  stroke: #d8ab6a;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* MARK: ESTRELLAS-DE-SHERIFF */
.vq-estrella {
  position: absolute;
  top: 8px;
  z-index: 3;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #d9a74e 55%, #8a5a22);
  box-shadow: 0 2px 6px rgba(60, 25, 10, .45);
  pointer-events: none;
  opacity: 0;
}

.vq-estrella b {
  color: #6b3a14;
  font: 900 17px/1 Georgia, serif;
  text-shadow: 0 1px 0 rgba(255, 240, 200, .7);
}

.vq-estrella--izq { left: 8px; }
.vq-estrella--der { right: 8px; }

/* MARK: CAMIONETA-EN-EL-CAMINO */
.vq-camino {
  position: relative;
  width: 100%;
  height: 74px;
  margin: 0 auto .8rem;
  overflow: hidden;
  pointer-events: none;
}

.vq-camino::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 6px;
  height: 14px;
  border-radius: 7px;
  background: linear-gradient(180deg, #a77a52, #7c5236);
  box-shadow: inset 0 2px 3px rgba(0, 0, 0, .25);
}

.vq-camino-rayas {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 200%;
  height: 2px;
  background: repeating-linear-gradient(90deg, rgba(255, 236, 200, .85) 0 14px, transparent 14px 30px);
}

.vq-troca {
  position: absolute;
  left: 0;
  bottom: 12px;
  width: 78px;
  height: 56px;
  object-fit: cover;
  border-radius: 8px;
  box-shadow: 0 4px 8px rgba(40, 15, 5, .4);
}

.vq-polvo {
  position: absolute;
  left: 0;
  bottom: 10px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(222, 190, 150, .8), rgba(222, 190, 150, 0) 70%);
  opacity: 0;
}

/* MARK: PUERTAS-DE-CANTINA */
.vq-cantina {
  position: absolute;
  inset: 0;
  z-index: 4;
  perspective: 700px;
  pointer-events: none;
}

.vq-hoja {
  position: absolute;
  top: 6%;
  bottom: 6%;
  width: 50%;
  background:
    repeating-linear-gradient(90deg, rgba(0, 0, 0, .14) 0 2px, transparent 2px 18px),
    linear-gradient(180deg, #8a5a34, #5e3820);
  border: 2px solid #c79a5c;
  box-shadow: inset 0 0 0 4px rgba(60, 30, 10, .35);
}

.vq-hoja--izq { left: 0; transform-origin: 0 50%; border-radius: 0 40% 6px 0 / 0 30% 6px 0; }
.vq-hoja--der { right: 0; transform-origin: 100% 50%; border-radius: 40% 0 0 6px / 30% 0 0 6px; }

/* MARK: MATORRALES-RODADORES */
.vq-pista {
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.vq-matorral {
  position: absolute;
  left: 0;
  bottom: 2px;
  width: 30px;
  height: 30px;
}

.vq-matorral svg {
  display: block;
  width: 100%;
  height: 100%;
}

.vq-matorral ellipse,
.vq-matorral circle {
  fill: none;
  stroke: #b88a58;
  stroke-width: 1.6;
}

/* MARK: LAZO-EN-LA-GALERIA */
.vq-lazo {
  position: absolute;
  inset: 6%;
  z-index: 3;
  width: 88%;
  height: 88%;
  overflow: visible;
  pointer-events: none;
}

.vq-lazo ellipse {
  fill: none;
  stroke: #e3b878;
  stroke-width: 3;
  stroke-dasharray: 9 3;
}

/* MARK: PLACA-FINAL */
.vq-placa {
  position: relative;
  display: grid;
  place-items: center;
  width: 78px;
  height: 78px;
  margin: 0 auto .7rem;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #fff1c4, #d9a74e 55%, #8a5a22);
  box-shadow: 0 6px 14px rgba(60, 25, 10, .45), inset 0 0 0 3px rgba(255, 236, 190, .6);
  pointer-events: none;
}

.vq-placa b {
  color: #6b3a14;
  font: 900 46px/1 Georgia, serif;
}

.vq-placa span {
  position: absolute;
  color: #fff3d0;
  font: 700 13px/1 Georgia, serif;
  letter-spacing: .05em;
}

.vq-chispas {
  position: absolute;
  inset: 50%;
}

.vq-chispas i {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px;
  border-radius: 50%;
  background: #ffe39a;
  box-shadow: 0 0 6px #ffc451;
  opacity: 0;
}

/* =========================================================
   MARK: REVISION-REATA-EN-EL-MARGEN
   La reata de avance (3px-17px) rozaba el borde de las tarjetas de
   ubicaciones (empiezan en 14px). Se adelgaza y se pega a la orilla.
   ========================================================= */
.vq-reata {
  left: 1px;
  width: 10px;
}

.vq-reata-herradura {
  left: -2px;
  width: 14px;
  font-size: 15px;
}

/* MARK: REVISION-BOTON-MUSICA
   El botón de música (clave de sol) medía 73px y se montaba sobre textos
   y horarios de las tarjetas (p. ej. "1:00 a.m."). Más chico y en la orilla. */
.music-button {
  left: 4px !important;
  bottom: 12px !important;
  width: 50px !important;
  height: 50px !important;
}

/* MARK: REVISION-FINAL-LIBRE
   Aire al final para que "Actualizar" no quede bajo la píldora de pausa. */
.demo-global-final-controls {
  margin-bottom: 72px;
}
