/* Aviso de promoción de Abierto Ya (ver promo.js).
 * Toma colores y letras de la plantilla; cada web puede fijar --promo-*. */
.ab-promo {
  --_paper: var(--promo-paper, var(--paper, #fff));
  --_ink: var(--promo-ink, var(--ink, #111));
  --_ink-2: var(--promo-ink-2, var(--ink-2, #555));
  --_acento: var(--promo-acento, var(--acento, #c62828));
  --_acento-ink: var(--promo-acento-ink, var(--paper, #fff));
  --_rule: var(--promo-rule, var(--rule, #ccc));
  --_display: var(--promo-display, var(--display, inherit));
  --_body: var(--promo-body, var(--body, inherit));
  border: 0; padding: 0; margin: 0; background: transparent; color: var(--_ink);
  max-width: none; max-height: none; width: 100%; height: 100%; box-sizing: border-box;
  display: flex; align-items: center; justify-content: center; padding: 16px;
}
.ab-promo:not([open]) { display: none; }
.ab-promo::backdrop { background: color-mix(in oklch, black 82%, transparent); }
.ab-promo__card:focus { outline: none; }
/* Tarjeta centrada y flotando, igual en celular y computadora (como el aviso de Klaus). */
.ab-promo__card {
  position: relative; width: min(440px, 100%); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--_paper); color: var(--_ink); font-family: var(--_body);
  border-radius: 20px; box-shadow: 0 24px 60px color-mix(in oklch, black 45%, transparent);
  animation: ab-promo-entra 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}
@keyframes ab-promo-entra { from { opacity: 0; transform: translateY(14px) scale(0.97); } to { opacity: 1; transform: none; } }
.ab-promo--sale .ab-promo__card { opacity: 0; transform: translateY(20px); transition: opacity 0.18s, transform 0.18s; }
@media (prefers-reduced-motion: reduce) { .ab-promo__card { animation: none; } .ab-promo--sale .ab-promo__card { transition: none; } }

.ab-promo__x {
  position: absolute; top: 0.6rem; right: 0.6rem; z-index: 1; width: 44px; height: 44px; border-radius: 50%;
  border: 0; background: color-mix(in oklch, var(--_paper) 85%, transparent); color: var(--_ink);
  font-size: 1.6rem; line-height: 1; cursor: pointer;
}
.ab-promo__x:focus-visible, .ab-promo__btn:focus-visible, .ab-promo__no:focus-visible, .ab-promo__in:focus-visible { outline: 2px solid var(--_acento); outline-offset: 2px; }
/* El flyer se ve entero (contain): si se recortara, se cortaría su texto. */
.ab-promo__img { display: block; width: 100%; max-height: 52vh; object-fit: contain; background: var(--_ink); }
@media (min-width: 640px) { .ab-promo__img { max-height: 58vh; } }
.ab-promo__cuerpo { display: grid; gap: 0.6rem; padding: 1.4rem 1.4rem 1.2rem; }
.ab-promo__etq { margin: 0; font-size: 0.78rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--_acento); padding-right: 3rem; }
.ab-promo__tit { margin: 0; font-family: var(--_display); font-size: 1.6rem; line-height: 1.05; overflow-wrap: break-word; text-wrap: balance; }
.ab-promo__cuerpo > .ab-promo__tit:first-child { padding-right: 2.6rem; }
.ab-promo__tit--grande { font-size: clamp(1.8rem, 7.5vw, 2.5rem); color: var(--_acento); }
.ab-promo__txt { margin: 0; font-size: 1.02rem; line-height: 1.45; color: var(--_ink); }
.ab-promo__vence { margin: 0; font-size: 0.85rem; color: var(--_ink-2); }
.ab-promo__acc { display: grid; gap: 0.6rem; margin-top: 0.5rem; }
.ab-promo__btn {
  display: flex; align-items: center; justify-content: center; min-height: 48px; padding: 0.7rem 1.2rem; border: 0; border-radius: 999px;
  background: var(--_acento); color: var(--_acento-ink); font: 700 1rem var(--_body); text-decoration: none; cursor: pointer; white-space: nowrap;
}
.ab-promo__btn--2 { background: transparent; color: var(--_ink); box-shadow: inset 0 0 0 2px var(--_ink); }
.ab-promo__btn:disabled { opacity: 0.6; cursor: progress; }
.ab-promo__no { min-height: 44px; border: 0; background: none; color: var(--_ink-2); font: 500 0.95rem var(--_body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.ab-promo__form { display: grid; gap: 0.55rem; }
.ab-promo__in { min-height: 48px; padding: 0 0.9rem; border-radius: 12px; border: 1.5px solid var(--_rule); background: var(--_paper); color: var(--_ink); font: 1rem var(--_body); }
.ab-promo__consent { display: flex; gap: 0.55rem; align-items: flex-start; font-size: 0.82rem; line-height: 1.4; color: var(--_ink-2); }
.ab-promo__consent input { margin-top: 0.15rem; width: 18px; height: 18px; accent-color: var(--_acento); flex: none; }
.ab-promo__nota { margin: 0; font-size: 0.85rem; color: var(--_acento); }
