/* Offer section — mobile-first conversion overrides */

/* Hero / section CTAs (not offer cards) */
#root a.group.inline-flex.items-center:not(.offer-cta) {
  align-items: center !important;
  justify-content: center;
}

#root a.group.inline-flex.items-center:not(.offer-cta) > span.inline-flex {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.625rem;
  line-height: 1;
}

#root a.group.inline-flex.items-center:not(.offer-cta) > span.inline-flex > span {
  line-height: 1;
}

#root a.group.inline-flex.items-center:not(.offer-cta) > span.inline-flex svg {
  display: block;
  flex-shrink: 0;
  align-self: center;
  position: relative;
  top: -0.28em;
  width: 0.875rem;
  height: 0.875rem;
  min-width: 0.875rem;
  min-height: 0.875rem;
  max-width: 0.875rem;
  max-height: 0.875rem;
}

/* Offer card CTAs */
#ofertas a.offer-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

#ofertas a.offer-cta > span.inline-flex {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center;
  gap: 0.5rem;
  line-height: 1;
}

#ofertas a.offer-cta > span.inline-flex > span {
  display: inline-flex;
  align-items: center;
  line-height: 1;
  margin: 0;
  padding: 0;
  white-space: nowrap;
}

#ofertas a.offer-cta > span.inline-flex svg {
  display: block;
  flex-shrink: 0;
  position: static;
  top: auto;
  margin: 0;
  padding: 0;
  width: 12px !important;
  height: 12px !important;
  min-width: 12px !important;
  min-height: 12px !important;
  max-width: 12px !important;
  max-height: 12px !important;
}

@media (min-width: 768px) {
  #ofertas a.offer-cta > span.inline-flex {
    gap: 0.625rem;
  }

  #ofertas a.offer-cta > span.inline-flex svg {
    width: 14px !important;
    height: 14px !important;
    min-width: 14px !important;
    min-height: 14px !important;
    max-width: 14px !important;
    max-height: 14px !important;
  }
}

#ofertas {
  scroll-margin-top: 72px;
}

@media (max-width: 767px) {
  #ofertas {
    padding-top: 6rem !important;
    padding-bottom: 6rem !important;
  }

  #ofertas > .max-w-7xl > .text-center {
    margin-top: 1rem;
  }

  #ofertas .offer-grid {
    margin-bottom: 1.75rem;
    padding-bottom: 1rem;
  }
}

#ofertas .offer-grid {
  background: transparent;
  border: 0;
}

@media (max-width: 767px) {
  #ofertas .offer-grid {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
  }

  #ofertas .offer-card--premium {
    order: -1;
  }

  #ofertas .offer-card {
    border-radius: 16px;
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 12px 28px -8px rgb(25 15 5 / 0.12);
    border: 1px solid hsl(40 16% 84%);
    overflow: visible;
  }

  #ofertas .offer-card--premium {
    border-color: hsl(345 42% 26%);
    box-shadow: 0 4px 6px -1px rgb(0 0 0 / 0.1), 0 16px 32px -8px hsl(345 42% 26% / 0.32);
    outline: 2px solid hsl(40 72% 50% / 0.55);
    outline-offset: 2px;
  }

  #ofertas .offer-badge {
    top: -14px;
    font-size: 10px;
    letter-spacing: 0.14em;
  }

  #ofertas .offer-price {
    font-size: 2.75rem;
    line-height: 1;
  }

  #ofertas .offer-cta {
    min-height: 52px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgb(25 15 5 / 0.15);
  }

  #ofertas .offer-card--premium .offer-cta {
    box-shadow: 0 6px 18px hsl(12 72% 52% / 0.35);
  }
}

#ofertas .offer-card li.flex {
  align-items: flex-start;
  gap: 1rem !important;
}

#ofertas .offer-check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  min-width: 20px;
  min-height: 20px;
  border-radius: 50%;
  font-size: 11px;
  font-weight: 700;
  flex-shrink: 0;
  margin-top: 1px;
  margin-right: 0.125rem;
}

#ofertas .offer-card li.flex > span:first-child:not(.offer-check) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.25rem;
  min-width: 1.25rem;
  flex-shrink: 0;
  margin-right: 0.125rem;
}

#ofertas .offer-card--premium .offer-check {
  background: hsl(40 72% 50% / 0.18);
}

#ofertas .offer-card--essencial .offer-check {
  background: hsl(12 70% 52% / 0.12);
}

#ofertas .offer-social-proof-wrap {
  display: flex;
  justify-content: center;
  width: 100%;
  margin-bottom: 1.5rem;
  padding: 0 0.5rem;
}

#ofertas .offer-social-proof {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  width: fit-content;
  max-width: 100%;
  margin: 0;
  padding: 10px 16px;
  background: hsl(345 42% 26% / 0.07);
  border: 1px solid hsl(345 42% 26% / 0.15);
  border-radius: 999px;
  font-size: 13px;
  font-weight: 500;
  color: hsl(345 42% 26%);
  text-align: center;
}

#ofertas .offer-social-proof strong {
  font-weight: 700;
}

#ofertas .offer-savings {
  display: inline-block;
  margin-left: 8px;
  padding: 3px 8px;
  border-radius: 999px;
  background: hsl(12 72% 52% / 0.15);
  color: hsl(12 72% 42%);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.04em;
  vertical-align: middle;
}

#ofertas .offer-card--essencial .offer-savings {
  background: hsl(25 15% 88%);
  color: hsl(210 10% 38%);
}

#offer-sticky-bar {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 60;
  padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
  background: hsl(40 38% 96% / 0.96);
  border-top: 1px solid hsl(40 16% 84%);
  box-shadow: 0 -8px 24px rgb(15 20 25 / 0.1);
  transform: translateY(110%);
  transition: transform 0.28s ease;
  backdrop-filter: blur(8px);
}

#offer-sticky-bar.is-visible {
  transform: translateY(0);
}

#offer-sticky-bar .offer-sticky-inner {
  max-width: 480px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  gap: 10px;
}

#offer-sticky-bar .offer-sticky-info {
  flex: 1;
  min-width: 0;
}

#offer-sticky-bar .offer-sticky-label {
  display: block;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: hsl(210 10% 38%);
  margin-bottom: 2px;
}

#offer-sticky-bar .offer-sticky-price {
  font-family: Fraunces, Georgia, serif;
  font-size: 1.25rem;
  font-weight: 600;
  color: hsl(210 20% 12%);
  line-height: 1.1;
}

#offer-sticky-bar .offer-sticky-price small {
  font-family: Inter, system-ui, sans-serif;
  font-size: 10px;
  font-weight: 500;
  color: hsl(25 15% 45%);
  margin-left: 4px;
}

#offer-sticky-bar .offer-sticky-btn {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 0;
  border-radius: 10px;
  background: hsl(12 72% 52%);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 4px 14px hsl(12 72% 52% / 0.35);
}

@media (min-width: 768px) {
  #offer-sticky-bar {
    display: none !important;
  }
}

@media (max-width: 767px) {
  body.offer-sticky-active {
    padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
  }
}
