/* =========================================
   PRICING
   Desktop/Tablet: 2 columnas
   Mobile: carrusel horizontal (66vw)
========================================= */

.pricing {
  padding: 72px 0 88px;
  color: var(--color-text);
}

.pricing__container {
  width: 100%;
  max-width: var(--container-max);
  margin: 0 auto;
  padding: 0 48px;
}

.pricing__title {
  text-align: center;
  font-size: 46px;
  line-height: 1.05;
  font-weight: 800;
  letter-spacing: -0.02em;
  margin: 0 0 34px;
}

/* =========================================
   GRID DESKTOP
========================================= */

.pricing__grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 34px;
  align-items: start;
}

/* =========================================
   CARD
========================================= */

.pricecard {
  background: var(--color-surface);
  border-radius: 34px;
  padding: 32px 28px;
  border: 1px solid var(--color-border-soft);

  display: grid;
  grid-template-rows: auto auto;
  gap: 18px;

  min-width: 0;
}

.pricecard__top {
  display: grid;
  justify-items: center;
  text-align: center;
  gap: 10px;

  min-width: 0;
}

.pricecard__media {
  width: 100%;
  max-width: 320px;
  margin: 6px auto 6px;
}

.pricecard__img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: contain;
}

.pricecard__name {
  margin: 6px 0 0;
  font-size: 26px;
  line-height: 1.12;
  font-weight: 800;
  letter-spacing: -0.01em;

  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
}

.pricecard__pricewrap {
  display: grid;
  gap: 6px;
  margin-top: 2px;
  min-width: 0;
}

.pricecard__price {
  font-size: 38px;
  line-height: 1;
  font-weight: 800;
  letter-spacing: -0.02em;
  color: rgba(0, 0, 0, 0.55);
}

.pricecard__subprice {
  font-size: 16px;
  line-height: 1.35;
  color: var(--color-muted);
  font-weight: var(--font-weight-semibold);

  overflow-wrap: anywhere;
}

.pricecard__desc {
  margin: 6px 0 0;
  font-size: 16px;
  line-height: 1.55;
  color: var(--color-nav-hover);
  max-width: 420px;

  overflow-wrap: anywhere;
  word-break: break-word;
}

/* =========================================
   SWATCHES (CÍRCULOS)
========================================= */

.swatches {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  margin: 14px 0 8px;
}

.swatch {
  width: 46px;
  height: 46px;
  border-radius: 999px;

  border: 2px solid transparent;
  background: transparent;
  padding: 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  cursor: pointer;

  transition:
    transform var(--transition-fast),
    border-color var(--transition-fast),
    box-shadow var(--transition-fast);
}

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

.swatch.is-active {
  border-color: rgba(0, 0, 0, 0.25);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.08);
}

.swatch:focus-visible {
  outline: none;
  border-color: rgba(0, 0, 0, 0.35);
}

.swatch__dot {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: block;
  border: 1px solid rgba(0, 0, 0, 0.10);
}

.swatch__dot--black {
  background: var(--swatch-black);
}

.swatch__dot--white {
  background: var(--swatch-white);
}

.swatch__dot--blue {
  background: var(--swatch-blue);
}

.swatch__dot--red {
  background: var(--swatch-red);
}

/* =========================================
   BOTÓN (fix overflow)
========================================= */

.pricecard__btn.btn {
  width: 100%;
  max-width: 100%;

  height: auto;
  /* 🔑 rompe altura fija global */
  padding: 12px 16px;
  white-space: normal;
  /* 🔑 permite salto */
  flex-wrap: wrap;
  /* 🔑 imprescindible con inline-flex */
  text-align: center;
  line-height: 1.15;
}

/* =========================================
   SPECS
========================================= */

.pricecard__specs {
  display: grid;
  gap: 14px;
  align-content: start;
  padding-top: 6px;
  min-width: 0;
}

.pricecard__specs[hidden] {
  display: none;
}

.specs__title {
  font-size: 16px;
  font-weight: 800;
  color: rgba(0, 0, 0, 0.55);
}

.specs__divider {
  height: 1px;
  width: 100%;
  background: rgba(0, 0, 0, 0.18);
  opacity: 0.55;
}

.specs {
  display: grid;
  gap: 14px;
  margin: 0;
}

.specs__row {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.specs__k {
  font-weight: 800;
  color: rgba(0, 0, 0, 0.65);

  overflow-wrap: anywhere;
}

.specs__v {
  margin: 0;
  color: var(--color-nav);
  line-height: 1.4;

  overflow-wrap: anywhere;
  word-break: break-word;
}

.pricecard__more {
  margin-top: 6px;
  justify-self: center;
  font-weight: 800;
  color: var(--color-cta);
  text-transform: lowercase;

  overflow-wrap: anywhere;
}

/* =========================================
   BREAKPOINTS
========================================= */

@media (max-width: 1400px) {
  .pricing__title {
    font-size: 42px;
  }

  .pricecard__name {
    font-size: 24px;
  }

  .pricecard__price {
    font-size: 36px;
  }
}

@media (max-width: 1200px) {
  .pricing__container {
    padding: 0 36px;
  }

  .pricing__title {
    font-size: 38px;
  }

  .pricing__grid {
    gap: 26px;
  }

  .pricecard {
    border-radius: 28px;
  }
}

@media (max-width: 1000px) {
  .pricing__title {
    font-size: 30px;
  }

  .pricecard {
    padding: 28px 22px;
  }
}

/* =========================================
   MOBILE (<= 820px)
   66vw visible + scroll
========================================= */

@media (max-width: 820px) {
  .pricing {
    padding: 28px 0 48px;
  }

  .pricing__container {
    padding: 0 24px;
  }

  .pricing__title {
    font-size: 28px;
    line-height: 1.12;
    letter-spacing: -0.015em;
    text-wrap: balance;
    margin: 0 0 18px;
  }

  .pricing__grid {
    display: flex;
    gap: 18px;

    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;

    padding-right: 24px;
    contain: layout paint;
  }

  .pricecard {
    flex: 0 0 auto;
    width: 66vw;
    /* 👈 2/3 ancho visible */
    max-width: 420px;
    scroll-snap-align: start;
  }

  .pricecard__media {
    max-width: 240px;
  }

  .pricecard__name {
    font-size: 22px;
  }

  .pricecard__price {
    font-size: 32px;
  }
}

@media (max-width: 420px) {
  .pricing__container {
    padding: 0 20px;
  }

  .pricing__title {
    font-size: 24px;
  }

  .pricecard {
    width: 66vw;
    border-radius: 22px;
  }

  .pricecard__media {
    max-width: 200px;
  }

  .swatch {
    width: 42px;
    height: 42px;
  }

  .swatch__dot {
    width: 24px;
    height: 24px;
  }
}

/* Screen-reader only */
.u-sr {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

/* =========================================
   PRICING: Early-bird (primeras 100 reservas)
   (bajo el título, antes de la grid)
========================================= */

.pricing__early {
  width: 100%;
  max-width: 980px;
  margin: 0 auto 26px;
  padding: 14px 16px;

  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 12px;
  align-items: start;

  background: rgba(212, 85, 33, 0.06);
  border: 1px solid rgba(212, 85, 33, 0.18);
  border-radius: var(--radius-md);

  min-width: 0;
}

.pricing__earlyIcon {
  width: 22px;
  height: 22px;
  display: block;
}

.pricing__earlyText {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.pricing__earlyTitle {
  font-weight: 800;
  color: var(--color-nav-hover);
  line-height: 1.2;
  font-size: 1.5em;
  overflow-wrap: anywhere;
}

.pricing__earlyLine {
  font-size: 14px;
  line-height: 1.35;
  color: var(--color-nav);

  overflow-wrap: anywhere;
  word-break: break-word;
}

.pricing__earlyHighlight {
  color: var(--color-cta);
}