/* Mobile alignment — consistent gutters and section rhythm */

@media (max-width: 767px) {
  /* Same horizontal rhythm as hero (px-6) across key sections */
  #ofertas {
    padding-left: 1.5rem !important;
    padding-right: 1.5rem !important;
  }

  #ofertas > .max-w-7xl {
    width: 100%;
  }

  #ofertas .text-center.mb-10,
  #ofertas .text-center.mb-10.md\:mb-16 {
    margin-bottom: 1.25rem !important;
    padding-left: 0;
    padding-right: 0;
  }

  #ofertas .offer-social-proof-wrap {
    width: 100%;
    padding: 0 !important;
    margin-bottom: 1.75rem;
  }

  #ofertas .offer-social-proof {
    width: 100%;
    max-width: 100%;
    padding: 11px 14px;
    font-size: 12px;
    line-height: 1.4;
    border-radius: 12px;
    flex-wrap: wrap;
  }

  #ofertas .offer-grid {
    width: 100%;
    margin-top: 1.25rem;
  }

  #ofertas .offer-card--premium {
    margin-top: 0.5rem;
  }

  #ofertas .offer-card {
    width: 100%;
  }

  #ofertas .offer-badge {
    max-width: calc(100% - 2rem);
    text-align: center;
    line-height: 1.25;
  }

  /* Hero — image, CTA and trust row */
  #root .min-h-screen > section.relative.overflow-hidden .max-w-sm {
    width: 100%;
    max-width: 100%;
  }

  #root .min-h-screen > section.relative.overflow-hidden [class*="aspect-"] {
    width: 100%;
    max-width: 100%;
  }

  #root .min-h-screen > section.relative.overflow-hidden [class*="aspect-"] .absolute.inset-0 {
    transform: translate(5px, 5px);
  }

  #root .min-h-screen > section.relative.overflow-hidden [class*="translate-x"] {
    transform: translate(5px, 5px) !important;
  }

  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-wrap.items-center.justify-center.lg\:justify-start {
    flex-direction: column;
    align-items: stretch;
    gap: 0.875rem;
  }

  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-wrap.items-center.justify-center.lg\:justify-start > a {
    width: auto;
    max-width: 100%;
    min-height: 48px;
    height: auto;
    padding: 0.875rem 1.625rem !important;
    justify-content: center;
    align-self: center;
  }

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

  #root a.group.inline-flex.items-center:not(.offer-cta) > span.inline-flex svg {
    display: block;
    flex-shrink: 0;
    margin: 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;
  }

  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-nowrap.items-center.justify-between {
    flex-wrap: wrap;
    justify-content: center;
    gap: 0.625rem 1.25rem;
    text-align: center;
  }

  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-nowrap.items-center.justify-between > span {
    flex: 0 1 auto;
    justify-content: center;
  }

  #root .min-h-screen > section.relative.overflow-hidden h1 {
    margin-top: 1rem !important;
    font-size: clamp(2.85rem, 11.5vw, 4rem) !important;
    line-height: 0.92 !important;
    letter-spacing: -0.02em;
  }

  #root .min-h-screen > section.relative.overflow-hidden h1 .text-terracotta,
  #root .min-h-screen > section.relative.overflow-hidden h1 .italic {
    white-space: nowrap;
  }

  #root .min-h-screen > section.relative.overflow-hidden p.max-w-xl {
    margin-top: 2.75rem !important;
    padding-left: 0;
    padding-right: 0;
  }

  #root a.group.inline-flex.items-center:not(.offer-cta) {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
    font-size: 0.8125rem;
    white-space: nowrap;
    min-height: 44px;
    height: auto;
    width: auto !important;
    padding: 0.75rem 1.375rem !important;
  }

  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-wrap.items-center.justify-center.lg\:justify-start > a.group.inline-flex.items-center:not(.offer-cta) {
    min-height: 48px;
    padding: 0.875rem 1.625rem !important;
    font-size: 1rem;
  }

  #ofertas a.offer-cta {
    padding: 1rem 1rem !important;
    white-space: nowrap;
  }

  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-wrap.items-center.justify-center.lg\:justify-start > div {
    width: 100%;
    justify-content: center;
  }

  /* Sticky bar — tighter, aligned copy */
  #offer-sticky-bar .offer-sticky-inner {
    width: 100%;
    max-width: 100%;
    gap: 8px;
    align-items: center;
  }

  #offer-sticky-bar .offer-sticky-label {
    font-size: 8px;
    letter-spacing: 0.08em;
    line-height: 1.35;
    max-width: 11rem;
  }

  #offer-sticky-bar .offer-sticky-price {
    font-size: 1.125rem;
  }

  #offer-sticky-bar .offer-sticky-btn {
    min-height: 44px;
    padding: 0 12px;
    font-size: 10px;
    letter-spacing: 0.08em;
  }

  body.landing-bonus-active {
    padding-top: var(--landing-top-offset, 88px);
  }
}

@media (max-width: 380px) {
  #root .min-h-screen > section.relative.overflow-hidden .flex.flex-nowrap.items-center.justify-between {
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
  }

  #ofertas .offer-social-proof {
    font-size: 11px;
  }
}
