/* Promotional coupon: compact notice, corner pill, booking-form banner and small hero link */

/* ---------- Compact notice ---------- */

.coupon-notice {
  position: fixed;
  right: var(--space-3);
  bottom: var(--space-3);
  left: var(--space-3);
  z-index: 95;
  display: grid;
  gap: var(--space-2);
  max-height: calc(100dvh - var(--header-h) - var(--space-6));
  overflow-y: auto;
  padding: var(--space-3);
  border-radius: var(--radius);
  background: var(--blanco);
  box-shadow: 0 0 0 1px var(--borde), 0 18px 40px rgb(10 39 84 / 0.25);
  opacity: 0;
  transform: translateY(16px);
}

.coupon-notice.is-visible {
  opacity: 1;
  transform: none;
}

@media (prefers-reduced-motion: no-preference) {
  .coupon-notice {
    transition: opacity 0.3s var(--ease), transform 0.3s var(--ease);
  }
}

.coupon-notice__head {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: var(--space-3);
  align-items: center;
}

.coupon-notice__icon {
  --size: 40px;
  box-shadow: 0 0 0 3px var(--blanco), 0 0 0 5px rgb(79 195 224 / 0.4);
}

.coupon-notice__text {
  font-size: var(--fs-sm);
  line-height: 1.4;
  color: var(--texto);
}

.coupon-notice__text strong {
  color: var(--azul-rey);
}

.coupon-notice__close {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: var(--cielo-claro);
  color: var(--azul-rey);
}

.coupon-notice__close:hover {
  background: #d4eef8;
}

.coupon-notice__toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: var(--azul-rey);
  color: var(--blanco);
  font-size: var(--fs-sm);
  font-weight: 600;
}

.coupon-notice__toggle:hover {
  background: var(--azul-rey-oscuro);
}

.coupon-notice__toggle .bi {
  display: inline-block;
  transition: transform 0.2s var(--ease);
}

.coupon-notice__toggle[aria-expanded="true"] .bi {
  transform: rotate(180deg);
}

.coupon-notice__details {
  display: grid;
  gap: var(--space-2);
  padding-top: var(--space-2);
}

.coupon-notice__details .btn {
  min-height: 44px;
  padding-block: var(--space-2);
  font-size: var(--fs-sm);
}

.coupon-notice__details .promo__code-value {
  font-size: 1.25rem;
}

.coupon-notice__terms {
  font-size: 0.72rem;
  line-height: 1.45;
  text-align: center;
  color: var(--texto-suave);
}

/* Keep the floating WhatsApp button above the full-width notice on small screens */
@media (max-width: 599.98px) {
  .coupon-open .wa-float {
    bottom: calc(var(--coupon-height, 0px) + var(--space-5));
  }
}

@media (min-width: 600px) {
  .coupon-notice {
    right: auto;
    bottom: var(--space-5);
    left: var(--space-5);
    width: 340px;
  }
}

/* ---------- Corner pill (after closing) ---------- */

.coupon-pill {
  position: fixed;
  left: var(--space-4);
  bottom: calc(var(--space-4) + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 48px;
  padding: var(--space-2) var(--space-4) var(--space-2) var(--space-3);
  border: 0;
  border-radius: 999px;
  background: linear-gradient(140deg, var(--azul-medio), var(--azul-rey));
  color: var(--blanco);
  font-weight: 600;
  box-shadow: 0 0 0 3px var(--blanco), 0 10px 24px rgb(15 56 119 / 0.35);
  transition: transform 0.2s var(--ease);
}

.coupon-pill .bi {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: rgb(255 255 255 / 0.18);
  font-size: 1rem;
}

.coupon-pill:hover {
  transform: translateY(-2px);
}

@media (prefers-reduced-motion: reduce) {
  .coupon-pill:hover {
    transform: none;
  }
}

/* ---------- Shared code row ---------- */

.promo__code {
  display: flex;
  align-items: center;
  gap: var(--space-3);
  padding: var(--space-2) var(--space-2) var(--space-2) var(--space-4);
  border: 2px dashed var(--azul-cielo);
  border-radius: var(--radius-sm);
  background: var(--cielo-claro);
}

.promo__code-label {
  font-size: var(--fs-sm);
  color: var(--texto-suave);
}

.promo__code-value {
  flex: 1;
  font-family: var(--font-titulos);
  font-size: 1.5rem;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--azul-rey);
}

.promo__copy {
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border: 1.5px solid var(--azul-rey);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--azul-rey);
  font-size: var(--fs-sm);
  font-weight: 600;
  white-space: nowrap;
  transition: background-color 0.2s var(--ease), color 0.2s var(--ease);
}

.promo__copy:hover {
  background: var(--azul-rey);
  color: var(--blanco);
}

/* ---------- Booking form banner ---------- */

.form-coupon {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: var(--space-3) var(--space-4);
  align-items: center;
  padding: var(--space-4);
  border: 2px dashed var(--azul-cielo);
  border-radius: var(--radius);
  background:
    radial-gradient(60% 100% at 100% 0%, rgb(79 195 224 / 0.25), transparent 70%),
    var(--cielo-claro);
}

.form-coupon__icon {
  --size: 52px;
}

.form-coupon__title {
  font-family: var(--font-titulos);
  font-size: 1.15rem;
  letter-spacing: 0.04em;
  color: var(--azul-rey);
}

.form-coupon__desc {
  font-size: var(--fs-sm);
  line-height: 1.45;
  color: var(--texto);
}

.form-coupon__check {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: var(--space-2);
  justify-self: start;
  min-height: 44px;
  padding: var(--space-2) var(--space-4);
  border-radius: 999px;
  background: var(--blanco);
  font-weight: 600;
  color: var(--azul-rey);
  cursor: pointer;
}

.form-coupon__check input {
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--azul-rey);
}

/* ---------- Small hero link ---------- */

/* Space is reserved up front so inserting the link does not shift the page */
.hero__promo {
  min-height: calc(var(--space-5) + 42px);
}

.hero-coupon {
  display: inline-flex;
  white-space: nowrap;
  align-items: center;
  gap: var(--space-2);
  margin-top: var(--space-5);
  padding: var(--space-2) var(--space-4);
  border: 1.5px dashed var(--azul-cielo);
  border-radius: 999px;
  background: var(--blanco);
  color: var(--azul-rey);
  font-size: var(--fs-sm);
  font-weight: 500;
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.hero-coupon .bi {
  color: var(--azul-medio);
}

.hero-coupon strong {
  color: var(--azul-medio);
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-coupon:hover {
  border-color: var(--azul-medio);
  color: var(--azul-rey);
}

.coupon-notice[hidden],
.coupon-notice__details[hidden],
.coupon-pill[hidden] {
  display: none;
}
