:root {
  --ink: #17332a;
  --ink-2: #234a3d;
  --yellow: #b8844f;
  --yellow-dark: #9d6d3b;
  --paper: #f2ede4;
  --card: #ffffff;
  --muted: #62665f;
  --line: #ddd5c6;
  --green: #17803d;
  --display: 'Trebuchet MS', 'Segoe UI', system-ui, sans-serif;
  --font: system-ui, -apple-system, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--paper);
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; }
a { color: inherit; }
button { font-family: inherit; }
.container { max-width: 1180px; margin: 0 auto; padding: 0 20px; }

/* ---------- Anuncio + header ---------- */
.announce {
  background: var(--yellow);
  color: var(--ink);
  text-align: center;
  font-size: 12.5px;
  font-weight: 800;
  letter-spacing: 1.2px;
  padding: 8px 16px;
}
.site-header { background: var(--ink); color: #fff; position: sticky; top: 0; z-index: 50; }
.header-inner { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 60px; }
.header-inner > :first-child { justify-self: start; }
.header-inner > :last-child { justify-self: end; }
.logo { font-family: var(--display); font-size: 19px; letter-spacing: 0.5px; color: #fff; white-space: nowrap; }
.icon-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  border: 0;
  border-radius: 50%;
  background: none;
  color: #fff;
  text-decoration: none;
  cursor: pointer;
}
.icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.cart-count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border-radius: 9px;
  background: var(--yellow);
  color: var(--ink);
  font-size: 10px;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* ---------- Producto ---------- */
.product-page {
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
  gap: 52px;
  padding-top: 32px;
  padding-bottom: 48px;
  align-items: start;
}

.gallery, .product-info { min-width: 0; }
.gallery { position: sticky; top: 84px; }
.stage { position: relative; background: #f8f4ec; border-radius: 6px; overflow: hidden; }
.track {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  -webkit-overflow-scrolling: touch;
}
.track::-webkit-scrollbar { display: none; }
.slide {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  aspect-ratio: 1 / 1;
  object-fit: cover;
  scroll-snap-align: center;
  display: block;
}
.tag-off {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 15px;
  padding: 7px 11px;
  transform: rotate(-3deg);
}
.nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 50%;
  background: rgba(23, 51, 42, 0.78);
  color: #fff;
  font-size: 28px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
}
.nav:hover { background: var(--ink); }
.nav.prev { left: 12px; }
.nav.next { right: 12px; }
.counter {
  position: absolute;
  right: 12px;
  bottom: 12px;
  z-index: 2;
  background: rgba(23, 51, 42, 0.78);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  padding: 4px 10px;
  border-radius: 20px;
}
.thumbs { display: grid; grid-template-columns: repeat(9, minmax(0, 1fr)); gap: 8px; margin-top: 10px; }
.thumb {
  padding: 0;
  border: 2px solid transparent;
  background: #f8f4ec;
  border-radius: 4px;
  overflow: hidden;
  cursor: pointer;
  opacity: 0.6;
  transition: opacity .15s, border-color .15s;
}
.thumb img { display: block; width: 100%; aspect-ratio: 1 / 1; object-fit: cover; }
.thumb:hover { opacity: 1; }
.thumb.active { border-color: var(--ink); opacity: 1; }

.kicker { margin: 0 0 6px; font-size: 12px; font-weight: 800; letter-spacing: 2px; text-transform: uppercase; color: var(--muted); }
.product-info h1 {
  margin: 0 0 12px;
  font-family: var(--display);
  font-size: 32px;
  line-height: 1.1;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.rating { display: inline-flex; align-items: center; gap: 6px; text-decoration: none; font-size: 14px; margin-bottom: 18px; }
.rating-stars { color: #f0a500; letter-spacing: 1px; }
.rating-num { font-weight: 800; }
.rating-count { color: var(--muted); }

.price-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  background: var(--ink);
  color: #fff;
  padding: 16px 20px;
  margin-bottom: 22px;
  border-radius: 6px;
}
.price-new { font-family: var(--display); font-size: 34px; color: var(--yellow); letter-spacing: -0.5px; }
.price-old { margin-left: 10px; font-size: 16px; color: #a8a8a2; text-decoration: line-through; }
.price-save { background: var(--yellow); color: var(--ink); font-size: 12px; font-weight: 800; letter-spacing: 0.5px; padding: 6px 10px; border-radius: 3px; }

.option-fixed { font-size: 14px; margin: 0 0 18px; }
.option-group { margin-bottom: 20px; }
.option-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 10px; }
.option-title { font-size: 14px; }
.link-btn { background: none; border: 0; padding: 0; font-size: 13px; color: var(--ink); text-decoration: underline; cursor: pointer; }
.sizes { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.size {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 48px;
  background: #fff;
  border: 2px solid var(--ink);
  font-size: 15px;
  font-weight: 800;
  cursor: pointer;
  transition: background .12s, color .12s;
}
.size:hover { background: var(--yellow); }
.size input { position: absolute; opacity: 0; width: 1px; height: 1px; pointer-events: none; }
.size.selected { background: var(--ink); color: var(--yellow); }
.size:focus-within { outline: 3px solid var(--yellow); outline-offset: 2px; }

.qty-buy { display: flex; gap: 12px; align-items: stretch; margin: 6px 0 22px; }
.qty-selector { display: flex; align-items: center; background: #fff; border: 2px solid var(--ink); }
.qty-selector button { width: 42px; min-height: 52px; height: 100%; border: 0; background: none; font-size: 20px; cursor: pointer; }
.qty-selector input { width: 36px; border: 0; background: none; text-align: center; font-size: 16px; font-weight: 800; -moz-appearance: textfield; }
.qty-selector input::-webkit-outer-spin-button,
.qty-selector input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.btn-buy {
  flex: 1;
  min-height: 52px;
  border: 0;
  background: var(--yellow);
  color: var(--ink);
  font-family: var(--display);
  font-size: 16px;
  letter-spacing: 0.5px;
  cursor: pointer;
  transition: background .15s, transform .1s;
}
.btn-buy:hover { background: var(--yellow-dark); }
.btn-buy:active { transform: translateY(1px); }

.trust-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 14px; border-top: 2px solid var(--ink); padding-top: 18px; }
.trust-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 14px; }
.trust-list strong { display: block; }
.trust-list small { display: block; color: var(--muted); font-size: 13px; }
.trust-dot { flex-shrink: 0; width: 12px; height: 12px; margin-top: 6px; background: var(--yellow); border: 2px solid var(--ink); border-radius: 50%; }

/* ---------- Sobre el producto ---------- */
.about { background: #fff; padding: 64px 0; }
.about h2, .reviews h2 {
  margin: 0 0 14px;
  font-family: var(--display);
  font-size: 34px;
  line-height: 1.05;
  text-transform: uppercase;
  letter-spacing: -0.5px;
}
.about h2 span, .reviews h2 span { background: var(--yellow); padding: 0 8px; }
.about-lead { max-width: 760px; margin: 0 0 40px; font-size: 17px; line-height: 1.7; color: var(--muted); }
.about-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 48px; align-items: center; margin-bottom: 44px; }
.about-row img { width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 6px; background: #f8f4ec; }
.about-row.reverse img { order: 2; }
.about-num { display: block; font-family: var(--display); font-size: 56px; line-height: 1; color: var(--yellow); -webkit-text-stroke: 2px var(--ink); margin-bottom: 8px; }
.about-row h3 { margin: 0 0 10px; font-size: 24px; text-transform: uppercase; letter-spacing: -0.3px; }
.about-row p { margin: 0; font-size: 16px; line-height: 1.7; color: var(--muted); max-width: 440px; }

.specs { margin-top: 12px; background: var(--ink); color: #fff; border-radius: 6px; padding: 28px 32px; }
.specs h3 { margin: 0 0 14px; font-family: var(--display); font-size: 20px; color: var(--yellow); text-transform: uppercase; }
.specs dl { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 40px; }
.specs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-bottom: 1px solid rgba(255, 255, 255, 0.16); font-size: 14.5px; }
.specs dt { color: #b9b9b2; }
.specs dd { margin: 0; font-weight: 700; text-align: right; }

/* ---------- Reseñas (carrusel) ---------- */
.reviews { padding: 64px 0; background: var(--paper); overflow: hidden; }
.reviews-top { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.reviews-top h2 { margin: 0; }
.reviews-nav { display: flex; gap: 8px; }
.nav-sq {
  width: 46px;
  height: 46px;
  border: 2px solid var(--ink);
  background: #fff;
  font-size: 26px;
  line-height: 1;
  padding-bottom: 4px;
  cursor: pointer;
}
.nav-sq:hover { background: var(--yellow); }

.reviews-summary {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: var(--ink);
  color: #fff;
  border-radius: 6px;
  padding: 22px 28px;
  margin-bottom: 22px;
}
.score { font-family: var(--display); font-size: 54px; line-height: 1; color: var(--yellow); }
.score small { font-size: 18px; color: #b9b9b2; margin-left: 2px; }
.score-stars { color: var(--yellow); letter-spacing: 3px; font-size: 18px; }
.score-count { font-size: 13px; color: #b9b9b2; }
.bars { display: grid; gap: 5px; max-width: 360px; justify-self: end; width: 100%; }
.bar-row { display: grid; grid-template-columns: 26px 1fr 20px; align-items: center; gap: 8px; font-size: 12px; color: #b9b9b2; }
.bar-track { height: 6px; background: rgba(255, 255, 255, 0.18); border-radius: 3px; overflow: hidden; }
.bar-fill { height: 100%; background: var(--yellow); }
.bar-n { text-align: right; }

.rv-track {
  display: flex;
  gap: 16px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  padding-bottom: 4px;
  -webkit-overflow-scrolling: touch;
}
.rv-track::-webkit-scrollbar { display: none; }
.rv-card {
  flex: 0 0 min(340px, 86%);
  scroll-snap-align: start;
  display: flex;
  flex-direction: column;
  background: #fff;
  border: 2px solid var(--ink);
  border-radius: 6px;
  padding: 22px;
}
.review-stars { color: #f0a500; letter-spacing: 1.5px; font-size: 15px; margin-bottom: 8px; }
.rv-card h3 { margin: 0 0 6px; font-size: 17px; }
.rv-card p { margin: 0 0 18px; font-size: 14.5px; line-height: 1.65; color: var(--muted); flex: 1; }
.rv-author { display: flex; align-items: center; gap: 10px; padding-top: 14px; border-top: 1px solid var(--line); }
.avatar { flex-shrink: 0; width: 36px; height: 36px; border-radius: 50%; background: var(--yellow); color: var(--ink); font-weight: 800; display: flex; align-items: center; justify-content: center; }
.rv-name { font-size: 14px; font-weight: 800; }
.rv-date { font-size: 12px; color: var(--muted); }
.verified { color: var(--green); font-weight: 700; }

/* ---------- Modal ---------- */
.modal-overlay { position: fixed; inset: 0; z-index: 200; display: flex; align-items: center; justify-content: center; background: rgba(23, 51, 42, 0.62); }
.modal-overlay[hidden] { display: none; }
.modal-box { position: relative; width: 92%; max-width: 440px; padding: 26px; background: #fff; border-top: 6px solid var(--yellow); border-radius: 4px; }
.modal-box h3 { margin: 0 0 12px; font-family: var(--display); text-transform: uppercase; }
.modal-close { position: absolute; top: 10px; right: 14px; border: 0; background: none; font-size: 28px; line-height: 1; cursor: pointer; }
.size-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.size-table th, .size-table td { padding: 9px 12px; text-align: center; }
.size-table th { background: var(--ink); color: #fff; font-size: 12.5px; font-weight: 700; }
.size-table td { border-bottom: 1px solid var(--line); font-weight: 700; }
.size-note { margin: 12px 0 0; font-size: 12.5px; color: var(--muted); }

/* ---------- Footer ---------- */
.site-footer { background: var(--ink); color: #c9c9c2; padding: 44px 0 22px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 28px; }
.footer-logo { font-family: var(--display); font-size: 20px; color: var(--yellow); margin-bottom: 8px; }
.footer-note { margin: 0; font-size: 14px; }
.site-footer h4 { margin: 0 0 10px; font-size: 13px; letter-spacing: 1.5px; text-transform: uppercase; color: #fff; }
.site-footer p { margin: 0 0 6px; font-size: 14px; }
.site-footer a { color: #c9c9c2; text-decoration: none; }
.site-footer a:hover { color: var(--yellow); }
.copyright { text-align: center; font-size: 12px; color: #8b8b84; margin: 30px 0 0; }

/* ---------- Barra fija (móvil) ---------- */
.sticky-buy { display: none; }

/* ---------- Accesibilidad ---------- */
a:focus-visible, button:focus-visible, .track:focus-visible, .rv-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: 0 0 0 5px var(--ink); }
@media (prefers-reduced-motion: reduce) {
  * { transition: none !important; animation: none !important; scroll-behavior: auto !important; }
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .product-page { grid-template-columns: minmax(0, 1fr); gap: 24px; padding-top: 0; padding-bottom: 32px; }
  .container.product-page { padding-left: 0; padding-right: 0; }
  .gallery { position: static; }
  .stage { border-radius: 0; }
  .thumbs { display: flex; overflow-x: auto; padding: 0 20px; scrollbar-width: none; }
  .thumbs::-webkit-scrollbar { display: none; }
  .thumb { flex: 0 0 62px; }
  .product-info { padding: 0 20px; }
  .product-info h1 { font-size: 26px; }
  .nav { width: 38px; height: 38px; font-size: 24px; }

  .about { padding: 44px 0; }
  .about h2, .reviews h2 { font-size: 27px; }
  .about-row { grid-template-columns: 1fr; gap: 16px; margin-bottom: 34px; }
  .about-row.reverse img { order: 0; }
  .about-row p { max-width: none; }
  .specs { padding: 22px 20px; }
  .specs dl { grid-template-columns: 1fr; }

  .reviews { padding: 44px 0; }
  .reviews-summary { grid-template-columns: auto 1fr; gap: 14px 20px; }
  .bars { grid-column: 1 / -1; max-width: none; justify-self: stretch; }
  .reviews-nav { display: none; }

  .footer-grid { grid-template-columns: 1fr; }

  .sticky-buy {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 60;
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 10px 16px calc(10px + env(safe-area-inset-bottom, 0px));
    background: var(--ink);
    box-shadow: 0 -4px 18px rgba(0, 0, 0, 0.25);
    transition: transform .2s ease;
  }
  .sticky-buy.is-hidden { transform: translateY(110%); }
  .sticky-price { display: flex; flex-direction: column; line-height: 1.15; }
  .sticky-price strong { font-family: var(--display); font-size: 18px; color: var(--yellow); }
  .sticky-price small { font-size: 12px; color: #a8a8a2; text-decoration: line-through; }
  .sticky-buy .btn-buy { min-height: 46px; }
  body { padding-bottom: 72px; }
}




/* ======== Tema Arena & Bosque ======== */
.announce { background: var(--paper); color: var(--ink); font-weight: 600; font-size: 13px; letter-spacing: .3px; border-bottom: 1px solid var(--line); }
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.logo { color: var(--ink); font-weight: 800; letter-spacing: 3px; font-size: 17px; }
.icon-btn { color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.cart-count { background: var(--ink); color: #fff; }
@media (min-width: 901px) { .product-page { grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); } }
.stage { border-radius: 10px; background: #ebebeb; }
.thumbs { grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 6px; }
.thumb { border-radius: 8px; background: #ebebeb; }
.thumb.active { border-color: var(--ink); }
.tag-off { background: var(--ink); color: #fff; border-radius: 30px; transform: none; font-family: var(--font); font-weight: 700; font-size: 13px; letter-spacing: .5px; }
.nav { background: rgba(255,255,255,.9); color: var(--ink); box-shadow: 0 1px 6px rgba(0,0,0,.18); }
.nav:hover { background: #fff; }
.counter { background: rgba(23,51,42,.8); }
.kicker { color: var(--yellow); }
.product-info h1 { text-transform: none; font-weight: 700; font-size: 34px; letter-spacing: -0.4px; line-height: 1.1; }
.price-card { background: var(--paper); color: var(--ink); border: 0; border-radius: 10px; }
.price-new { color: var(--ink); font-weight: 800; }
.price-old { color: #8c8f88; }
.price-save { background: var(--ink); color: #fff; border-radius: 30px; }
.sizes { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.size { border: 1.5px solid #cfc7b8; border-radius: 8px; height: 46px; font-weight: 700; background: #fff; }
.size:hover { border-color: var(--ink); background: #fff; }
.size.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.qty-selector { border: 1.5px solid #cfc7b8; border-radius: 8px; background: #fff; overflow: hidden; }
.btn-buy { background: var(--ink); color: #fff; border-radius: 8px; font-family: var(--font); font-weight: 700; letter-spacing: 1.5px; font-size: 15px; }
.btn-buy:hover { background: var(--ink-2); }
.trust-list { border-top: 1px solid var(--line); }
.trust-dot { background: var(--yellow); border: 0; }

.about { background: var(--paper); }
.about h2, .reviews h2 { text-transform: none; font-weight: 700; font-size: 34px; letter-spacing: -0.4px; text-align: center; }
.about h2 span, .reviews h2 span { background: none; padding: 0; color: var(--yellow); }
.about-lead { text-align: center; margin: 0 auto 36px; font-size: 17px; max-width: 620px; }
.about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-bottom: 30px; }
.about-row { position: relative; display: block; margin: 0; padding: 0; border-radius: 14px; overflow: hidden; background: var(--ink); }
.about-row img { display: block; width: 100%; border-radius: 0; aspect-ratio: 1 / 1; }
.about-row > div { position: absolute; left: 0; right: 0; bottom: 0; padding: 60px 20px 20px; background: linear-gradient(to top, rgba(23,51,42,.94) 35%, rgba(23,51,42,0)); color: #fff; }
.about-num { font-family: var(--font); font-size: 12px; letter-spacing: 2px; color: #e3b98a; -webkit-text-stroke: 0; font-weight: 700; margin-bottom: 2px; }
.about-row h3 { font-size: 20px; text-transform: none; color: #fff; margin: 0 0 6px; }
.about-row p { color: #dfe7e2; font-size: 14px; line-height: 1.55; max-width: none; }
.specs { background: #fff; color: var(--ink); border-radius: 14px; border: 1px solid var(--line); }
.specs h3 { color: var(--ink); text-transform: none; font-size: 20px; }
.specs dl > div { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }

.reviews { background: #fff; }
.reviews-top { justify-content: center; position: relative; }
.reviews-nav { position: absolute; right: 0; bottom: 0; }
.nav-sq { border: 1.5px solid var(--ink); border-radius: 50%; }
.nav-sq:hover { background: var(--ink); color: #fff; }
.reviews-summary { background: var(--paper); color: var(--ink); border: 0; border-radius: 14px; }
.score { color: var(--ink); }
.score small, .score-count, .bar-row { color: var(--muted); }
.score-stars { color: var(--yellow); }
.bar-track { background: #e4dccd; }
.bar-fill { background: var(--yellow); }
.rv-card { border: 1px solid var(--line); border-radius: 14px; background: #fff; }
.review-stars { color: var(--yellow); }
.rv-card h3 { font-size: 16px; }
.avatar { background: var(--paper); color: var(--ink); border: 1px solid var(--line); }

.modal-box { border-top: 0; border-radius: 14px; }
.site-footer { background: var(--ink); }
.footer-logo { color: #fff; letter-spacing: 2px; font-size: 17px; font-weight: 800; }
.site-footer a:hover { color: #e3b98a; }
.sticky-buy { background: #fff !important; box-shadow: 0 -4px 18px rgba(23,51,42,.15) !important; }
.sticky-price strong { color: var(--ink) !important; }
.sticky-price small { color: #8c8f88 !important; }
a:focus-visible, button:focus-visible, .track:focus-visible, .rv-track:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; box-shadow: none; }

@media (max-width: 900px) {
  .stage { border-radius: 0; }
  .thumbs { display: flex; }
  .product-info h1 { font-size: 28px; }
  .about h2, .reviews h2 { font-size: 27px; }
  .about-cards { grid-template-columns: 1fr; gap: 14px; }
  .reviews-nav { display: none; }
}
