/* ==========================================================================
   TandyWeb — Campaña Navideña 2026 · Tarjeta flotante Premium IA
   Negro cálido #0A0A0A · Coral #FF665E · Inter · Sin overlay ni modal
   ========================================================================== */

.navidad-promo {
  --np-bg: #0a0a0a;
  --np-ink: #f7f5f3;
  --np-muted: #a9a29d;
  --np-coral: #ff665e;
  --np-line: rgba(255, 255, 255, 0.09);
  --np-ease: cubic-bezier(0.16, 1, 0.3, 1);

  position: fixed;
  right: 22px;
  right: calc(22px + env(safe-area-inset-right, 0px));
  bottom: 92px;
  bottom: calc(92px + env(safe-area-inset-bottom, 0px));
  z-index: 90;
  width: 440px;
  max-width: calc(100vw - 32px);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--np-ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(18px) scale(0.985);
  transform-origin: 100% 100%;
  transition:
    opacity 0.35s ease,
    transform 0.5s var(--np-ease),
    visibility 0s linear 0.5s;
  pointer-events: none;
}

.navidad-promo.is-visible {
  opacity: 1;
  visibility: visible;
  transform: none;
  pointer-events: auto;
  transition-delay: 0s;
}

/* Nunca debe estorbar al menú móvil ni al chat de Tandy IA. */
body.menu-open .navidad-promo,
body.chat-open .navidad-promo {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.navidad-promo__card {
  position: relative;
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  grid-template-areas:
    "figure body"
    "footer footer";
  column-gap: 18px;
  row-gap: 14px;
  padding: 22px 24px 20px;
  border: 1px solid var(--np-line);
  border-radius: 24px;
  background:
    radial-gradient(120% 130% at 88% -10%, #191110 0%, rgba(10, 10, 10, 0) 58%),
    var(--np-bg);
  box-shadow:
    0 34px 70px -30px rgba(0, 0, 0, 0.78),
    0 10px 24px -16px rgba(0, 0, 0, 0.5);
  overflow: visible;
}

/* --- Koalani: sale ligeramente por el borde superior de la tarjeta ------- */
.navidad-promo__figure {
  grid-area: figure;
  position: relative;
  align-self: start;
  width: 182px;
  height: 228px;
  margin-top: -56px;
  margin-left: -2px;
  pointer-events: none;
  isolation: isolate;
}

.navidad-promo__figure::before {
  content: "";
  position: absolute;
  inset: 6% -18% 4% -12%;
  z-index: 0;
  border-radius: 50%;
  background: radial-gradient(
    circle at 50% 48%,
    rgba(255, 102, 94, 0.2) 0%,
    rgba(255, 102, 94, 0.07) 42%,
    rgba(255, 102, 94, 0) 70%
  );
  filter: blur(10px);
}

.navidad-promo__figure img {
  position: relative;
  z-index: 1;
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: bottom center;
  filter: drop-shadow(0 18px 26px rgba(0, 0, 0, 0.5));
}

/* --- Contenido ----------------------------------------------------------- */
.navidad-promo__body {
  grid-area: body;
  min-width: 0;
  padding-top: 26px;
}

.navidad-promo__eyebrow {
  display: block;
  margin-bottom: 10px;
  font-size: 9.5px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--np-coral);
}

.navidad-promo__title {
  margin: 0 0 10px;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.16;
  letter-spacing: -0.032em;
  color: var(--np-ink);
  text-wrap: balance;
}

.navidad-promo__desc {
  margin: 0;
  font-size: 12.5px;
  font-weight: 400;
  line-height: 1.55;
  letter-spacing: -0.005em;
  color: var(--np-muted);
}

/* --- Precio y CTA -------------------------------------------------------- */
.navidad-promo__footer {
  grid-area: footer;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px 12px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.07);
}

.navidad-promo__price {
  font-size: 19px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.03em;
  color: var(--np-ink);
  white-space: nowrap;
}

.navidad-promo__price small {
  margin-left: 3px;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0;
  color: var(--np-muted);
}

.navidad-promo__cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 42px;
  padding: 0 16px;
  border: 1px solid var(--np-coral);
  border-radius: 999px;
  background: var(--np-coral);
  color: #0a0a0a;
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  letter-spacing: -0.01em;
  text-decoration: none;
  white-space: nowrap;
  transition: background 0.18s ease, transform 0.18s ease, box-shadow 0.18s ease;
}

.navidad-promo__cta svg {
  width: 14px;
  height: 14px;
  flex: none;
  transition: transform 0.18s ease;
}

.navidad-promo__cta:hover {
  background: #ff7a73;
  border-color: #ff7a73;
  transform: translateY(-1px);
  box-shadow: 0 10px 22px -12px rgba(255, 102, 94, 0.9);
}

.navidad-promo__cta:hover svg {
  transform: translateX(2px);
}

.navidad-promo__close {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.06);
  color: #d6d0cc;
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.navidad-promo__close svg {
  width: 13px;
  height: 13px;
}

/* Área táctil de 44 px sin agrandar el círculo visible. */
.navidad-promo__close::before {
  content: "";
  position: absolute;
  inset: -6px;
  border-radius: 50%;
}

.navidad-promo__close:hover {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
  color: #ffffff;
}

.navidad-promo :is(a, button):focus-visible {
  outline: 2px solid var(--np-coral);
  outline-offset: 3px;
}

/* --- Móvil: tarjeta compacta sobre los botones flotantes ----------------- */
@media (max-width: 700px) {
  .navidad-promo {
    right: 12px;
    right: calc(12px + env(safe-area-inset-right, 0px));
    left: 12px;
    left: calc(12px + env(safe-area-inset-left, 0px));
    bottom: 74px;
    bottom: calc(74px + env(safe-area-inset-bottom, 0px));
    width: auto;
    max-width: none;
    transform: translateY(14px);
  }

  .navidad-promo__card {
    grid-template-columns: 108px minmax(0, 1fr);
    column-gap: 12px;
    row-gap: 10px;
    padding: 16px 16px 14px;
    border-radius: 20px;
  }

  .navidad-promo__figure {
    width: 112px;
    height: 140px;
    margin-top: -28px;
    margin-left: -2px;
  }

  .navidad-promo__body {
    padding-top: 24px;
  }

  .navidad-promo__eyebrow {
    margin-bottom: 7px;
    font-size: 8.5px;
    letter-spacing: 0.14em;
  }

  .navidad-promo__title {
    margin-bottom: 8px;
    font-size: 17px;
    line-height: 1.16;
  }

  .navidad-promo__desc {
    font-size: 11.5px;
    line-height: 1.5;
  }

  .navidad-promo__footer {
    gap: 8px 10px;
    padding-top: 11px;
  }

  .navidad-promo__price {
    font-size: 16px;
  }

  .navidad-promo__price small {
    font-size: 10px;
  }

  .navidad-promo__cta {
    min-height: 42px;
    padding: 0 14px;
    font-size: 11.5px;
  }

  .navidad-promo__close {
    top: 8px;
    right: 8px;
    width: 30px;
    height: 30px;
  }
}

/* Teléfonos de 320 px */
@media (max-width: 360px) {
  .navidad-promo__card {
    grid-template-columns: 94px minmax(0, 1fr);
  }

  .navidad-promo__figure {
    width: 100px;
    height: 125px;
    margin-top: -20px;
  }

  .navidad-promo__title {
    font-size: 16px;
  }

  .navidad-promo__desc {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .navidad-promo,
  .navidad-promo__cta,
  .navidad-promo__cta svg,
  .navidad-promo__close {
    transition: none !important;
    transform: none !important;
  }
}
