/* Pop up de las promos de Buen Fin.
   Vence solo el martes 17 de noviembre de 2026 a las 23:59 h (lo controla promo-buen-fin.js).
   Para quitarlo del todo: borrar este archivo, promo-buen-fin.js y el bloque <dialog class="promo"> del index. */

.promo {
  width: min(460px, 100% - 24px); max-width: none; max-height: calc(100svh - 24px);
  padding: 0; border: 3px solid var(--bosque); border-radius: 28px; overflow: auto; overscroll-behavior: contain;
  background: var(--crema); color: var(--bosque);
  box-shadow: 0 12px 0 var(--bosque); --anillo: var(--bosque);
}
.promo::backdrop { background: rgb(4 34 19 / .74); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
html:has(.promo[open]) { overflow: hidden; }

.promo__cielo { position: relative; padding: 38px 64px 28px; background: var(--cielo); border-bottom: 3px solid var(--bosque); text-align: center; overflow: hidden; }
.promo__nube { position: absolute; width: 96px; left: -36px; top: 8px; pointer-events: none; }
.promo__estrella { position: absolute; width: 26px; left: 30px; bottom: 14px; transform: rotate(-12deg); pointer-events: none; }
.promo__estrella--2 { width: 20px; left: auto; right: 22px; bottom: 22px; transform: rotate(16deg); }
.promo__titulo {
  position: relative; margin: 0;
  font-family: var(--display); font-weight: 400; font-size: clamp(2.4rem, 1.9rem + 2.2vw, 3.1rem); line-height: .98;
  color: var(--crema); text-shadow: 0 .05em 0 var(--naranja), 0 .095em 0 var(--bosque);
}
.promo__titulo:focus { outline: none; }

.promo__lista { list-style: none; margin: 0; padding: 24px 22px 6px; display: grid; gap: 16px; }
.promo__boleto {
  position: relative; display: grid; grid-template-columns: auto 1fr; align-items: center; column-gap: 16px;
  padding: 16px 20px 17px 16px; background: var(--naranja);
  border: 3px solid var(--bosque); border-radius: 18px; box-shadow: 0 5px 0 var(--bosque);
}
.promo__boleto--amarillo { background: var(--amarillo); }
.promo__boleto::before, .promo__boleto::after {
  content: ""; position: absolute; top: 50%; width: 20px; height: 20px; margin-top: -10px;
  border-radius: 50%; background: var(--crema); border: 3px solid var(--bosque);
}
.promo__boleto::before { left: -12px; clip-path: inset(0 0 0 50%); }
.promo__boleto::after { right: -12px; clip-path: inset(0 50% 0 0); }
.promo__cifra {
  min-width: 92px; padding-right: 16px; align-self: stretch; display: grid; place-content: center;
  border-right: 3px dashed var(--bosque); text-align: center;
  font: 2.35rem/.95 var(--display); font-variant-numeric: tabular-nums;
}
.promo__cifra small { display: block; margin-top: 4px; font: 800 1.05rem/1 var(--texto); }
.promo__nombre { margin: 0; font-weight: 800; font-size: 1.22rem; line-height: 1.1; }
.promo__desc { margin: 5px 0 0; font-weight: 600; font-size: 1rem; line-height: 1.3; }

.promo__pie { padding: 18px 22px 28px; display: grid; justify-items: center; gap: 18px; text-align: center; }
.promo__vigencia {
  margin: 0; padding: .4em 1.05em .45em; border-radius: 16px;
  background: var(--bosque); color: var(--crema); font-weight: 700; font-size: 1.02rem; line-height: 1.3;
}
.promo__cerrar {
  position: absolute; top: 12px; right: 12px; z-index: 2; width: 44px; height: 44px; padding: 0;
  display: grid; place-items: center; border-radius: 50%; border: 3px solid var(--bosque);
  background: var(--crema); color: var(--bosque); font: 700 1.9rem/1 var(--texto); cursor: pointer;
}
@media (prefers-reduced-motion: no-preference) {
  .promo[open] { animation: promo-entra .55s var(--curva); }
  .promo[open]::backdrop { animation: promo-velo .4s ease-out; }
  @keyframes promo-entra { from { opacity: 0; transform: translateY(28px) scale(.97); } }
  @keyframes promo-velo { from { opacity: 0; } }
}
@media (max-width: 400px) {
  .promo__cielo { padding: 30px 50px 22px; }
  .promo__titulo { font-size: 2.2rem; }
  .promo__lista { padding: 20px 16px 4px; }
  .promo__boleto { column-gap: 12px; padding: 14px 16px 15px 12px; }
  .promo__cifra { min-width: 80px; padding-right: 12px; font-size: 2.05rem; }
  .promo__nombre { font-size: 1.12rem; }
  .promo__pie { padding: 16px 16px 24px; }
}
