@font-face {
  font-family: "ED Piedmont";
  src: url("fonts/EDPiedmont-Regular.ttf") format("truetype");
  font-weight: 400;
  font-display: swap;
}

:root {
  --green: #00594c;
  --sage: #85b09a;
  --terra: #d14124;
  --ink: #0b0b0b;
  --gold: #ac8400;
  --sand: #d6d1c4;
  --paper: #f6f3ec;
  --white: #fff;
  --line: rgba(0, 89, 76, 0.16);
  --font: "Figtree", "Segoe UI", sans-serif;
  --script: "ED Piedmont", "Palatino Linotype", serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

#cajas, #promos, #inicio, #zonas { scroll-margin-top: 5.5rem; }

body {
  margin: 0;
  overflow-x: clip;
  color: var(--ink);
  background: var(--paper);
  font-family: var(--font);
  font-size: 1.05rem;
  line-height: 1.5;
}

img { max-width: 100%; display: block; }

a { color: inherit; }

h1, h2, h3 { letter-spacing: -0.03em; line-height: 0.95; margin: 0; }

h1, h2 { font-weight: 900; }

h3 { font-weight: 700; }

.script {
  margin: 0 0 0.35rem;
  color: var(--gold);
  font-family: var(--script);
  font-size: 2rem;
  line-height: 1;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.55rem 0.9rem;
  background: rgba(246, 243, 236, 0.94);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(10px);
}

.logo-link { min-width: 0; }

.logo-link img { height: 64px; width: auto; }

.site-header nav {
  display: flex;
  gap: 0.9rem;
  margin-left: auto;
  font-weight: 600;
}

.site-header nav a { text-decoration: none; }

.iva-toggle {
  display: flex;
  flex-shrink: 0;
  gap: 0.35rem;
  margin: 0 0 0 auto;
  padding: 0.2rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
}

.iva-toggle legend {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.iva-toggle label {
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
}

.iva-toggle input { position: absolute; opacity: 0; }

.iva-toggle label:has(input:checked) {
  background: var(--green);
  color: var(--white);
}

.iva-toggle label:has(input:focus-visible) { outline: 2px solid var(--gold); }

.hero {
  width: 100%;
  min-width: 0;
  margin: 0;
  padding: 0;
  overflow-x: clip;
  background: #e6e3d6;
  color: #2d574c;
  text-align: center;
}

.hero-poster {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: min(34rem, 100%);
  min-width: 0;
  margin: 0 auto;
  padding: 1.15rem 1.15rem 0.7rem;
}

.hero-copy,
.hero-offer,
.hero-visual {
  display: contents;
}

.hero-title {
  order: 1;
  width: min(72%, 13.5rem);
  min-width: 0;
  margin: 0;
}

.hero-title img {
  width: 100%;
  max-width: 100%;
  height: auto;
  aspect-ratio: 333 / 126;
}

.hero-off {
  order: 3;
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  margin: 0.1rem 0 0;
  color: #d14024;
  line-height: 1;
}

.hero-off-kicker,
.hero-off-pay {
  font-size: 0.95rem;
  font-weight: 400;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero-off-value {
  margin: 0.06rem 0 0.12rem;
  font-size: clamp(3.6rem, 16vw, 5.6rem);
  font-weight: 900;
  letter-spacing: -0.06em;
  line-height: 0.8;
}

.hero-boxes {
  order: 2;
  width: min(92%, 28rem);
  max-width: 100%;
  min-width: 0;
  height: auto;
  margin: 0.35rem auto 0.5rem;
}

.hero-budget {
  order: 4;
  margin: 0.85rem 0 0;
  padding-inline: 1.25rem;
  text-align: center;
}

.hero-ml {
  order: 5;
  width: 100%;
  max-width: 100%;
  height: auto;
  margin: 0.9rem auto 0.15rem;
  aspect-ratio: 539 / 50;
}

.hero .deadline {
  display: block;
  align-self: stretch;
  width: 100%;
  margin: 0.95rem 0 0.15rem;
  padding: 0.75rem 0.95rem;
  border: 1px solid rgba(45, 87, 76, 0.22);
  border-radius: 16px;
  background: #f4f2ea;
  color: #2d574c;
  font-style: normal;
  font-weight: 400;
  line-height: 1.35;
}

.hero-ship {
  overflow: hidden;
  width: 100%;
  margin: 0;
  padding: 0.7rem 0;
  background: #d14124;
  color: var(--white);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.hero-ship-track {
  display: flex;
  width: max-content;
  animation: ship-marquee 28s linear infinite;
}

.hero-ship-group {
  display: flex;
  flex: 0 0 auto;
  gap: 2.4rem;
  padding-right: 2.4rem;
}

@media (prefers-reduced-motion: reduce) {
  .hero-ship-track { animation: none; }
}

@keyframes ship-marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

.lead { max-width: 38rem; color: var(--ink); font-size: 1.15rem; }

.offer {
  margin: 1.2rem 0 0.2rem;
  color: var(--green);
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  font-weight: 900;
  letter-spacing: -0.03em;
}

.offer strong { color: var(--terra); }

.offer-detail { margin: 0; color: var(--ink); }

.deadline {
  display: inline-block;
  margin: 1rem 0 1.3rem;
  padding: 0.45rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--green);
  font-weight: 600;
}

.harlequin {
  height: 18px;
  background: url("img/harlequin.svg") repeat-x center / auto 18px;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0.75rem 1.1rem;
  border-radius: 999px;
  font-weight: 600;
  text-decoration: none;
}

.btn-sand { background: var(--sand); color: var(--green); }

.btn-green { background: var(--green); color: var(--white); }

.btn-white { background: var(--white); color: var(--green); }

.text-link {
  padding: 0;
  border: 0;
  background: none;
  color: var(--green);
  font: inherit;
  font-weight: 600;
  text-decoration: underline;
  text-underline-offset: 0.18em;
  cursor: pointer;
}

.promos, .catalog-section, .conditions {
  padding: clamp(2.2rem, 5vw, 3.2rem) clamp(1rem, 3vw, 1.5rem);
}

.promos h2, .section-head h2, .estimator h2, .conditions h2 {
  font-size: clamp(2.2rem, 6vw, 3.6rem);
  color: var(--green);
}

.promos-title {
  width: min(16.5rem, 78%);
  margin: 0;
  font-size: 0;
  line-height: 0;
}

.promos-title img {
  width: 100%;
  height: auto;
  aspect-ratio: 333 / 126;
}

.promo-lead {
  max-width: 38rem;
  margin: 0.85rem 0 0;
}

.promo-flow {
  display: grid;
  gap: 0.65rem;
  max-width: 46rem;
  margin-top: 1.3rem;
}

.promo-step, .promo-ship, .condition-grid div, .estimator-form, .card {
  background: var(--white);
  border-radius: 18px;
}

.promo-step {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.35rem 1rem;
  align-items: center;
  padding: 1rem 1.15rem;
}

.promo-off {
  margin: 0;
  color: var(--terra);
  font-size: 2.5rem;
  font-weight: 900;
  letter-spacing: -0.04em;
  line-height: 0.9;
}

.promo-step h3, .promo-ship h3, .condition-grid h3 {
  margin: 0 0 0.3rem;
  font-size: 1.45rem;
  color: var(--green);
}

.promo-step p, .promo-ship p, .condition-grid li, .section-head p { margin: 0; }

.promo-join {
  margin: 0;
  color: var(--green);
  font-weight: 600;
}

.promo-total {
  margin: 0.15rem 0 0;
  padding: 0.95rem 1.15rem;
  border-radius: 18px;
  background: var(--green);
  color: var(--white);
  font-size: 1.45rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.promo-ship {
  max-width: 46rem;
  margin-top: 0.8rem;
  padding: 1rem 1.15rem 1.15rem;
}

.promo-ship a {
  color: var(--green);
  font-weight: 600;
}

.condition-grid {
  display: grid;
  gap: 0.8rem;
  margin-top: 1.2rem;
}

.condition-grid div { padding: 1.15rem 1.25rem 1.3rem; }

.section-head { max-width: 40rem; margin-bottom: 1.2rem; }

.section-head p { margin-top: 0.7rem; }

.catalog { display: grid; gap: 1rem; }

.card {
  overflow: hidden;
  box-shadow: 0 8px 22px rgba(43, 36, 24, 0.08);
}

.carousel { margin: 0 0 0.35rem; }

.carousel-viewport {
  position: relative;
  overflow: hidden;
  background: var(--white);
  touch-action: pan-y;
}

.carousel-track {
  display: flex;
  width: 100%;
  transition: transform 0.35s ease;
}

.carousel-track img {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 0 0 100%;
  height: auto;
  margin: 0;
  aspect-ratio: 1;
  object-fit: contain;
  background: var(--white);
  user-select: none;
  cursor: zoom-in;
}

.carousel-btn {
  position: absolute;
  top: 50%;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  box-shadow: 0 1px 6px rgba(11, 11, 11, 0.16);
  cursor: pointer;
  transform: translateY(-50%);
}

.carousel-btn.prev { left: 0.45rem; }

.carousel-btn.next { right: 0.45rem; }

.carousel-btn::before {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
}

.carousel-btn.prev::before {
  margin-left: 0.16rem;
  transform: rotate(135deg);
}

.carousel-btn.next::before {
  margin-right: 0.16rem;
  transform: rotate(-45deg);
}

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 0.38rem;
  margin-top: 0.55rem;
}

.carousel-dots button {
  width: 0.48rem;
  height: 0.48rem;
  padding: 0;
  border: 0;
  border-radius: 999px;
  background: #cfc8b8;
  cursor: pointer;
}

.carousel-dots button[aria-selected="true"] {
  width: 1.15rem;
  background: var(--green);
}

@media (prefers-reduced-motion: reduce) {
  .carousel-track { transition: none; }
}

.zoom {
  width: min(920px, calc(100vw - 1.4rem));
  max-height: calc(100vh - 1.4rem);
  margin: auto;
  padding: 0;
  border: 0;
  background: transparent;
  overflow: visible;
}

.zoom::backdrop { background: rgba(11, 11, 11, 0.72); }

.zoom img {
  width: 100%;
  max-height: calc(100vh - 1.4rem);
  object-fit: contain;
  background: var(--white);
  border-radius: 12px;
}

.zoom-close {
  position: absolute;
  top: 0.55rem;
  right: 0.55rem;
  width: 2.15rem;
  height: 2.15rem;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.94);
  color: var(--green);
  box-shadow: 0 1px 6px rgba(11, 11, 11, 0.16);
  cursor: pointer;
}

.zoom-close::before,
.zoom-close::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 0.9rem;
  height: 2px;
  background: currentColor;
}

.zoom-close::before { transform: translate(-50%, -50%) rotate(45deg); }

.zoom-close::after { transform: translate(-50%, -50%) rotate(-45deg); }

.card-body { padding: 0.15rem 1.05rem 1.15rem; }

.card h3 {
  margin: 0.15rem 0 0.7rem;
  font-size: clamp(1.55rem, 4vw, 2rem);
  color: var(--green);
}

.detail { margin: 0.15rem 0 0.85rem; }

.detail summary {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--green);
  font-weight: 600;
  cursor: pointer;
  list-style: none;
}

.detail summary::-webkit-details-marker { display: none; }

.detail summary::after {
  content: "";
  width: 0.4rem;
  height: 0.4rem;
  margin-top: -0.2rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: rotate(45deg);
}

.detail[open] summary::after {
  margin-top: 0.15rem;
  transform: rotate(225deg);
}

.detail ul {
  margin: 0.55rem 0 0;
  padding-left: 1.15rem;
}

.detail li { margin: 0.18rem 0; line-height: 1.35; }

.was { margin: 0; color: #5c5852; text-decoration: line-through; }

.now {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0.15rem 0.4rem;
  margin: 0.15rem 0 0;
  color: var(--terra);
  font-size: 1.7rem;
  font-weight: 900;
  letter-spacing: -0.03em;
}

.now small {
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.04em;
}

.now-note {
  margin: 0.55rem 0 0;
  color: var(--terra);
  font-size: 1.05rem;
  font-weight: 700;
}

.card-ship {
  margin: 0.55rem 0 0;
  color: var(--ink);
  font-size: 0.95rem;
  font-weight: 400;
  line-height: 1.35;
}
.now-save { margin: 0.1rem 0 0; font-size: 0.88rem; color: #5c5648; }

.card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.8rem;
  margin-top: 1rem;
}

.estimator {
  display: grid;
  gap: 1.2rem;
  margin: 0 1.25rem 2rem;
  padding: 1.3rem;
  border-radius: 24px;
  background: #e7efe9;
}

.estimator-photo {
  width: 100%;
  max-width: 28rem;
  height: auto;
  margin: 0.85rem 0 0.35rem;
  border-radius: 16px;
  aspect-ratio: 1;
  object-fit: cover;
}

.estimator-form {
  display: grid;
  gap: 0.8rem;
  padding: 1rem;
}

.estimator-form label { display: grid; gap: 0.3rem; font-weight: 600; color: var(--green); }

select, input[type="number"] {
  width: 100%;
  min-height: 48px;
  padding: 0.6rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font: inherit;
}

.result { display: grid; gap: 0.55rem; }

.result-title { margin: 0; font-size: 1.35rem; font-weight: 900; color: var(--green); }

.result-promo {
  margin: 0.15rem 0 0;
  color: var(--terra);
  font-weight: 700;
}

.result-list, .result-note, .result-alert { margin: 0; }

.result-alert {
  padding: 0.7rem 0.8rem;
  border-radius: 12px;
  background: #f8e7e1;
  color: #6d2416;
  font-weight: 700;
}

.promo-choice {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  border: 0;
}

.promo-choice legend {
  margin-bottom: 0.1rem;
  font-weight: 600;
  color: var(--green);
}

.estimator-form .choice {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
  margin: 0;
  padding: 0.75rem 0.8rem;
  border-radius: 12px;
  background: var(--paper);
  color: var(--ink);
  font-weight: 400;
  cursor: pointer;
}

.choice input {
  width: 1.15rem;
  height: 1.15rem;
  margin: 0;
  accent-color: var(--green);
}

.choice > span { display: grid; }

.choice strong { font-size: 1.35rem; }

.choice:has(input:checked) {
  background: var(--green);
  color: var(--white);
}

.choice:has(input:checked) input { accent-color: var(--white); }

.choice:has(input:focus-visible) { outline: 2px solid var(--gold); }

.unsure { margin: 0; font-size: 0.95rem; }

.unsure a { color: var(--green); font-weight: 600; }

.conditions ul { margin: 0; padding-left: 1.1rem; }

.conditions details {
  margin-top: 0.8rem;
  padding: 1rem 1.25rem 1.15rem;
  border-radius: 16px;
  background: var(--white);
}

.conditions details p { margin: 0.7rem 0 0; }

.conditions summary { font-weight: 600; color: var(--green); cursor: pointer; }

.conditions a {
  color: var(--green);
  font-weight: 600;
}

footer {
  padding: 2rem 1.25rem 7.5rem;
  border-top: 1px solid var(--line);
  background: var(--white);
  color: var(--green);
  text-align: center;
}

footer img { height: 72px; width: auto; margin: 0 auto 0.6rem; }

footer a { color: var(--green); }

.legal { font-size: 0.92rem; }

.credit {
  margin: 1.15rem 0 0;
  color: #8a918c;
  font-size: 0.72rem;
  font-weight: 400;
}

.credit a {
  color: inherit;
  font-weight: 600;
  text-underline-offset: 0.15em;
}

.sticky-actions {
  position: fixed;
  right: 0.9rem;
  bottom: 0.9rem;
  z-index: 6;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.45rem;
}

.sticky-order {
  min-height: 42px;
  padding: 0.45rem 0.95rem;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.sticky-wa {
  padding: 0.8rem 1rem;
  border-radius: 999px;
  background: #1f7a45;
  color: var(--white);
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.18);
}

@media (max-width: 380px) {
  .logo-link img { height: 52px; }
  .iva-toggle label { padding: 0.28rem 0.48rem; font-size: 0.75rem; }
  .hero-poster { padding: 1.1rem 0.85rem 0.4rem; }
  .promo-off { font-size: 2rem; }
  .promo-step h3, .promo-ship h3, .condition-grid h3 { font-size: 1.25rem; }
  .sticky-actions { right: 0.55rem; bottom: 0.55rem; }
  .sticky-wa { padding: 0.65rem 0.85rem; }
}

@media (max-width: 719px) {
  .site-header nav { display: none; }
}

@media (min-width: 720px) {
  .site-header { gap: 1rem; padding: 0.65rem 1.15rem; }
  .logo-link img { height: 74px; }
}

@media (min-width: 800px) {
  .site-header {
    width: 100%;
    padding-inline: max(1.5rem, calc((100% - 1180px) / 2));
  }

  .promos,
  .catalog-section,
  .conditions {
    width: min(1180px, calc(100% - 3rem));
    margin-inline: auto;
  }

  .hero-poster {
    display: grid;
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: center;
    gap: 0.4rem 1.25rem;
    width: min(1180px, calc(100% - 3rem));
    padding: 1.2rem 0 0.95rem;
  }

  .hero-copy {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .hero-offer {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    width: 100%;
    min-width: 0;
    text-align: left;
  }

  .hero-title,
  .hero-boxes,
  .hero-off,
  .hero-budget,
  .hero-ml {
    order: 0;
  }

  .hero-title {
    width: min(100%, 15.5rem);
    margin: 0;
  }

  .hero-visual {
    display: grid;
    justify-items: stretch;
    gap: 0.75rem;
    width: 100%;
    min-width: 0;
    margin: 0;
  }

  .hero-boxes,
  .hero-ml {
    width: 100%;
    margin: 0;
  }

  .hero-off {
    align-items: flex-start;
    width: 100%;
    margin: 0.15rem 0 0;
  }

  .hero-off-kicker,
  .hero-off-pay {
    font-size: 1.05rem;
  }

  .hero-off-value {
    font-size: clamp(4.6rem, 7.2vw, 6.6rem);
  }

  .hero-budget { margin-top: 0.95rem; }
  .hero-ship { font-size: 0.9rem; padding: 0.78rem 0; }

  .condition-grid { grid-template-columns: 1fr 1fr; }
  .catalog { grid-template-columns: repeat(2, minmax(0, 1fr)); }

  .estimator {
    width: min(1180px, calc(100% - 3rem));
    margin: 0 auto 2rem;
    padding: 1.6rem;
  }

  footer { padding-bottom: 6.5rem; }
}

@media (min-width: 1040px) {
  .hero-poster {
    grid-template-columns: minmax(0, 0.88fr) minmax(0, 1.12fr);
    gap: 0.5rem 1.6rem;
    padding: 1.35rem 0 1.05rem;
  }

  .hero-title { width: min(100%, 16.5rem); }
  .hero-off-value { font-size: clamp(5.2rem, 6.8vw, 7.2rem); }
  .hero-visual { width: 100%; }
  .logo-link img { height: 86px; }

  .estimator {
    grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
    align-items: start;
  }
}
