:root {
  --ink: #14213d;
  --ink-2: #1f2f52;
  --yellow: #ff5a36;
  --yellow-dark: #e8461f;
  --paper: #faf6ef;
  --card: #ffffff;
  --muted: #5f6577;
  --line: #e6dfd2;
  --green: #17803d;
  --display: Georgia, 'Times New Roman', 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: #efe9dd; 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(20, 33, 61, 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(20, 33, 61, 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: #efe9dd;
  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: #efe9dd; }
.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(20, 33, 61, 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 Crema & Coral: ajustes de diseño ======== */
.announce { background: var(--ink); color: #fff; font-weight: 600; letter-spacing: .4px; text-transform: none; font-size: 13px; }
.site-header { background: #fff; color: var(--ink); border-bottom: 1px solid var(--line); }
.logo { color: var(--ink); font-weight: 700; letter-spacing: 1px; font-size: 20px; }
.icon-btn { color: var(--ink); }
.icon-btn:hover { background: var(--paper); }
.cart-count { background: var(--yellow); color: #fff; }
.stage { border-radius: 18px; }
.tag-off { background: var(--yellow); color: #fff; border-radius: 30px; transform: none; font-family: var(--font); font-weight: 800; font-size: 14px; }
.thumb { border-radius: 10px; }
.product-info h1 { text-transform: none; font-size: 34px; letter-spacing: -0.3px; font-weight: 700; }
.kicker { color: var(--yellow); letter-spacing: 2.5px; }
.rating-stars { color: #f2a81d; }
.price-card { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 16px; box-shadow: 4px 4px 0 var(--ink); }
.price-new { color: var(--yellow); font-weight: 700; }
.price-old { color: #8c90a0; }
.price-save { background: #ffe9e2; color: var(--yellow-dark); border-radius: 30px; }
.sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.size { border: 1.5px solid #c9c3b5; border-radius: 30px; height: 44px; font-weight: 700; }
.size:hover { background: #fff; border-color: var(--ink); }
.size.selected { background: var(--ink); color: #fff; border-color: var(--ink); }
.size:focus-within { outline-color: var(--yellow); }
.qty-selector { border: 1.5px solid #c9c3b5; border-radius: 30px; overflow: hidden; background: #fff; }
.btn-buy { background: var(--yellow); color: #fff; border-radius: 30px; font-family: var(--font); font-weight: 800; letter-spacing: 1px; }
.btn-buy:hover { background: var(--yellow-dark); }
.trust-list { border-top: 1px solid var(--line); }
.trust-dot { background: var(--yellow); border: 0; width: 10px; height: 10px; }

.about { background: #fff; }
.about h2, .reviews h2 { text-transform: none; font-size: 36px; letter-spacing: -0.4px; font-weight: 700; }
.about h2 span, .reviews h2 span { background: none; padding: 0; color: var(--yellow); font-style: italic; }
.about-lead { font-size: 18px; max-width: 680px; }
.about-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px; margin-bottom: 36px; }
.about-row { display: block; margin: 0; background: var(--paper); border-radius: 18px; overflow: hidden; }
.about-row img { border-radius: 0; }
.about-row > div { padding: 22px 24px 26px; }
.about-num { font-size: 15px; letter-spacing: 2px; -webkit-text-stroke: 0; color: var(--yellow); font-family: var(--font); font-weight: 800; margin-bottom: 6px; }
.about-row h3 { text-transform: none; font-size: 21px; font-family: var(--display); }
.about-row p { font-size: 15px; max-width: none; }
.specs { background: var(--paper); color: var(--ink); border-radius: 18px; }
.specs h3 { color: var(--ink); text-transform: none; font-size: 22px; }
.specs dl > div { border-bottom: 1px solid var(--line); }
.specs dt { color: var(--muted); }

.reviews { background: var(--paper); }
.nav-sq { border: 1.5px solid var(--ink); border-radius: 50%; }
.nav-sq:hover { background: var(--ink); color: #fff; }
.reviews-summary { background: #fff; color: var(--ink); border: 1.5px solid var(--ink); border-radius: 18px; }
.score { color: var(--ink); }
.score small, .score-count, .bar-row { color: var(--muted); }
.score-stars { color: #f2a81d; }
.bar-track { background: #efe9dd; }
.bar-fill { background: #f2a81d; }
.rv-card { border: 0; border-radius: 18px; background: #fff; box-shadow: 0 2px 0 var(--line); position: relative; padding-top: 34px; }
.rv-card::before { content: '\201C'; position: absolute; top: 4px; right: 20px; font-family: var(--display); font-size: 64px; line-height: 1; color: #ffd9cf; }
.review-stars { color: #f2a81d; }
.rv-card h3 { font-family: var(--display); font-size: 18px; }
.avatar { background: var(--ink); color: #fff; }

.modal-box { border-top: 0; border-radius: 18px; }
.size-table th { background: var(--ink); }
.site-footer { background: var(--ink); }
.footer-logo { color: #fff; }
.site-footer a:hover { color: #ffb9a8; }
.sticky-buy { background: #fff !important; box-shadow: 0 -4px 18px rgba(20,33,61,.15) !important; }
.sticky-price strong { color: var(--yellow) !important; }
.sticky-price small { color: #8c90a0 !important; }
a:focus-visible, button:focus-visible, .track:focus-visible, .rv-track:focus-visible { box-shadow: none; outline-color: var(--yellow); }

@media (max-width: 900px) {
  .stage { border-radius: 0; }
  .sizes { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .product-info h1 { font-size: 28px; }
  .about h2, .reviews h2 { font-size: 28px; }
  .about-cards { grid-template-columns: 1fr; gap: 16px; }
}
