/* Secciones de la home, ficha de producto y página legal. */

/* ---------- Hero ---------- */
.hero { position: relative; overflow: hidden; }
.hero__media img { display: block; width: 100%; height: 100%; }
.hero__video { display: block; width: 100%; height: 100%; background: transparent; }
.hero__inner { position: relative; z-index: 1; }
.hero__copy { display: grid; gap: var(--s-5); justify-items: start; }
/* Titular grande y firme; cada línea sube desde abajo de su propia máscara al cargar */
.hero__title {
  font-size: clamp(2.9rem, 0.9rem + 5.9vw, 6.4rem); font-weight: 700; line-height: 0.96; letter-spacing: -0.042em;
  color: var(--ink-strong); max-width: 13ch; text-wrap: balance;
}
/* La frase de abajo va en la tinta completa; la categoría abre la frase en negrita */
.hero__subtitle { font-size: var(--fs-lg); color: var(--ink); max-width: 34ch; line-height: 1.5; text-wrap: pretty; }
.hero__kind { font-weight: 700; color: var(--ink-strong); }
.hero__cta { gap: 14px; margin-top: var(--s-3); }
.hero__cta .icon { transition: transform var(--t-fast) var(--ease); }
.hero__cta:hover .icon { transform: translateX(3px); }
.hero__highlights { display: flex; flex-wrap: wrap; gap: var(--s-2) var(--s-5); font-size: var(--fs-md); font-weight: 500; color: var(--ink); }

/* Desktop: la foto ocupa el lado derecho hasta el borde y se funde con el blanco */
@media (min-width: 900px) {
  .hero { min-height: clamp(560px, calc(100vh - var(--header-h) - 60px), 760px); display: flex; align-items: center; }
  .hero__media {
    position: absolute; top: 0; bottom: 0; right: 0; width: min(66vw, 1320px);
  }
  /* la foto se apoya en el borde inferior: el caño del monopatín "sale" de la sección */
  .hero__media img { object-fit: contain; object-position: right bottom; }
  .hero__video { object-fit: cover; object-position: center; }
  /* sin cortes rectos: el caño se desvanece hacia abajo y el lado izquierdo se funde con el blanco */
  .hero__media {
    -webkit-mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%);
    -webkit-mask-composite: source-in;
    mask-image: linear-gradient(to bottom, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%);
    mask-composite: intersect;
  }
  /* de noche el video también se desvanece arriba: así no se nota un corte si su negro
     no es exactamente el de la página */
  [data-theme="dark"] .hero__media {
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 72%, transparent 100%), linear-gradient(to right, transparent 0, #000 14%);
  }
  /* las palabras se ubican respecto del borde de la pantalla, igual que la foto */
  .hero__inner { position: static; width: 100%; padding-block: var(--s-8); }
  .hero__copy { position: relative; z-index: 1; max-width: 54%; }
  /* en fila, alineadas al mismo margen derecho que el header */
  .hero__highlights {
    position: absolute; z-index: 1; bottom: 7%;
    right: max(var(--gutter-r), calc((100% - var(--max) - 48px) / 2 + 24px));
    gap: var(--s-6); font-size: var(--fs-lg);
  }
}

@media (min-width: 900px) and (max-width: 1199px) {
  .hero__copy { max-width: 52%; }
  .hero__title { font-size: clamp(3.4rem, 0.6rem + 5.2vw, 4.75rem); }
  .hero__highlights { font-size: var(--fs-md); gap: var(--s-5); }
}

/* Mobile y tablet: texto arriba y la foto abajo, grande, fundiéndose con el blanco
   hacia la sección de productos (sin botón: los productos están justo debajo). */
@media (max-width: 899px) {
  .hero { display: flex; flex-direction: column; padding-top: var(--s-6); }
  .hero__inner { order: 1; }
  .hero__copy { gap: var(--s-4); }
  .hero__title { font-size: clamp(2.75rem, 0.9rem + 8.6vw, 4.75rem); }
  .hero__subtitle { font-size: var(--fs-md); }
  .hero__highlights { margin-top: var(--s-5); font-size: var(--fs-sm); gap: var(--s-2) var(--s-5); }
  .hero__cta { display: none; }
  .hero__media {
    order: 2; position: relative; width: 100%; overflow: hidden;
    margin-top: var(--s-4);
    /* sin bordes rectos: arriba y abajo se desvanece */
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 62%, transparent 98%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 10%, #000 62%, transparent 98%);
  }
  .hero__media img { width: 128%; max-width: none; height: auto; margin-left: -14%; }
  .hero__video { height: auto; aspect-ratio: 16 / 9; max-height: 70vh; object-fit: cover; }
  /* Video vertical: más bajo, recortando el blanco de arriba, y el producto pegado al texto */
  .hero__media.is-portrait {
    margin-top: 0;
    -webkit-mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
    mask-image: linear-gradient(to bottom, transparent 0, #000 12%, #000 86%, transparent 100%);
  }
  .hero__media.is-portrait .hero__video { aspect-ratio: auto; height: min(52vh, 460px); max-height: none; object-position: center 85%; }
  /* el final difuminado de la foto hace de transición hacia los productos */
  .hero + .catalog, .hero + .benefits + .catalog { padding-top: var(--s-4); }
}
@media (min-width: 600px) and (max-width: 899px) {
  .hero__media img { width: 100%; max-width: 760px; margin-inline: auto; }
}

/* Entrada de la portada, en orden de lectura: el titular sube desde su máscara,
   después la frase y el botón; la foto se asienta desde un leve zoom; al final,
   las palabras destacadas una por una. Sin 3D: solo movimiento plano y opacidad. */
@media (prefers-reduced-motion: no-preference) {
  .hero__title { animation: unmask 1000ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__copy > :nth-child(2) { animation: rise 800ms 160ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__copy > :nth-child(3) { animation: rise 800ms 240ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__media img, .hero__video { animation: settle 1600ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__highlights li { animation: rise 700ms cubic-bezier(0.16, 1, 0.3, 1) both; }
  .hero__highlights li:nth-child(1) { animation-delay: 420ms; }
  .hero__highlights li:nth-child(2) { animation-delay: 500ms; }
  .hero__highlights li:nth-child(3) { animation-delay: 580ms; }
  .hero__highlights li:nth-child(4) { animation-delay: 660ms; }
  .hero__cta .icon { transition: transform 240ms cubic-bezier(0.16, 1, 0.3, 1); }
}
@keyframes rise { from { opacity: 0; transform: translateY(20px); } }
@keyframes fade { from { opacity: 0; } }
@keyframes unmask { from { clip-path: inset(0 0 100% 0); transform: translateY(0.35em); } to { clip-path: inset(0 0 -0.2em 0); } }
@keyframes settle { from { opacity: 0; transform: scale(1.06); } }

/* ---------- Beneficios ---------- */
.benefits { border-block: 1px solid var(--line); }
/* En el celular se saca: de la portada se pasa directo a los productos. */
@media (max-width: 899px) { .benefits { display: none; } }
.benefits__list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s-5) var(--s-4); padding-block: var(--s-6); }
@media (min-width: 900px) { .benefits__list { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.benefit { display: flex; gap: var(--s-3); align-items: flex-start; font-size: var(--fs-sm); line-height: 1.4; }
.benefit strong { display: block; color: var(--ink-strong); font-weight: 700; }
.benefit__text { color: var(--ink-soft); }
.catalog + .benefits, .reviews + .benefits { margin-top: var(--section); }
.benefit__icon { display: grid; place-items: center; flex: none; width: 44px; height: 44px; border-radius: 13px; background: var(--mist); color: var(--ink); }

/* ---------- Catálogo ---------- */
.catalog { padding-top: var(--section); }
.catalog__toolbar { display: grid; grid-template-columns: 1fr auto auto; gap: var(--s-3); margin-bottom: var(--s-6); }
.catalog__layout { display: grid; gap: var(--s-7); }
.catalog__count { font-size: var(--fs-sm); color: var(--ink-soft); margin-bottom: var(--s-5); }
.catalog__results { min-width: 0; }

.filters { display: grid; gap: var(--s-6); align-content: start; }
.filter { display: grid; gap: var(--s-3); }
.filter legend { font-size: var(--fs-sm); font-weight: 800; color: var(--ink-strong); margin-bottom: var(--s-3); padding: 0; }
.filters__head { display: flex; align-items: center; justify-content: space-between; }
.filters__head h3 { font-size: var(--fs-lg); font-weight: 800; }
.filters__foot { display: flex; gap: var(--s-3); justify-content: space-between; }
.filters-open__count {
  display: inline-grid; place-items: center; min-width: 22px; height: 22px; padding: 0 6px; border-radius: var(--r-pill);
  background: var(--ink); color: var(--on-ink); font-size: 0.75rem;
}
.filters-backdrop { position: fixed; inset: 0; z-index: 60; background: rgba(31, 31, 33, 0.35); }

@media (min-width: 900px) {
  .catalog__toolbar { grid-template-columns: minmax(0, 420px) auto; justify-content: space-between; }
  .filters-open, .filters__head, .filters__apply, .filters-backdrop { display: none !important; }
  .catalog__layout { grid-template-columns: 240px minmax(0, 1fr); }
  .filters { position: sticky; top: calc(var(--header-h) + 24px); }
  .filters__foot { justify-content: flex-start; }
  .filters__foot .btn--ghost { padding-left: 0; }
}

@media (max-width: 899px) {
  .catalog__toolbar { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .catalog__toolbar .search { grid-column: 1 / -1; }
  .select select { width: 100%; }
  .filters {
    position: fixed; z-index: 70; left: 0; right: 0; bottom: 0; max-height: 86vh; overflow-y: auto;
    padding: var(--s-5) var(--gutter-r) calc(var(--s-5) + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: var(--paper); border-radius: 28px 28px 0 0; box-shadow: var(--shadow-float);
    transform: translateY(105%); visibility: hidden;
    transition: transform var(--t-med) var(--ease), visibility 0s linear var(--t-med);
  }
  .filters.is-open { transform: none; visibility: visible; transition: transform var(--t-med) var(--ease); }
  .filters__foot { position: sticky; bottom: calc(-1 * var(--s-5)); padding-block: var(--s-4); background: var(--paper); }
  .filters__foot .btn { flex: 1; }
}

.empty { display: grid; gap: var(--s-3); justify-items: start; padding: var(--s-7) var(--s-6); border-radius: var(--r-panel); background: var(--mist); }
.empty__title { font-size: var(--fs-lg); font-weight: 800; color: var(--ink-strong); }

/* ---------- Reseñas ---------- */
.reviews { padding-top: var(--section); }
.reviews__head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: var(--s-5); margin-bottom: var(--s-6); }
.reviews__head .section-subtitle { margin-top: var(--s-3); }
.reviews__score { display: flex; align-items: center; gap: var(--s-3); }
.reviews__score > strong { font-size: var(--fs-num); font-weight: 800; line-height: 1; letter-spacing: -0.04em; color: var(--ink-strong); }
.reviews__score > span { display: grid; gap: 4px; }
.reviews__count { font-size: var(--fs-sm); color: var(--ink-soft); }
.reviews__more { font-size: var(--fs-sm); font-weight: 700; color: var(--ink); text-underline-offset: 4px; margin-left: var(--s-2); }
.reviews__marquee {
  overflow: hidden; padding-block: var(--s-2);
  -webkit-mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
  mask-image: linear-gradient(to right, transparent 0, #000 3%, #000 97%, transparent 100%);
}
/* Loop continuo: arranca con las tarjetas a la vista y se repiten sin huecos (ver reviews.js) */
.reviews__track { display: flex; gap: var(--s-4); width: max-content; }
.reviews__track.is-ready { animation: reviews-loop var(--reviews-duration, 30s) linear infinite; }
.reviews__marquee:hover .reviews__track, .reviews__marquee:focus-within .reviews__track { animation-play-state: paused; }
@keyframes reviews-loop { to { transform: translateX(var(--reviews-shift, 0)); } }
.review {
  display: grid; align-content: start; gap: var(--s-4); width: min(340px, 80vw); flex: none;
  padding: var(--s-5); border-radius: var(--r-panel); background: var(--mist);
}
.review__stars { display: inline-flex; gap: 2px; color: var(--line); }
.review__stars .is-on { color: #f2a91e; }
.review__text { margin: 0; font-size: var(--fs-md); line-height: 1.55; color: var(--ink); display: -webkit-box; -webkit-line-clamp: 6; -webkit-box-orient: vertical; overflow: hidden; }
.review__who { display: flex; align-items: center; gap: var(--s-3); margin-top: auto; }
.review__avatar { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--ink); color: var(--on-ink); font-weight: 800; flex: none; }
.review__name { display: block; font-size: var(--fs-sm); font-weight: 700; color: var(--ink-strong); }
.review__detail { display: block; font-size: var(--fs-xs); color: var(--ink-soft); }
/* Si el usuario pidió menos movimiento: se desliza con el dedo en vez de moverse sola */
@media (prefers-reduced-motion: reduce) {
  .reviews__marquee { overflow-x: auto; scroll-snap-type: x mandatory; -webkit-mask-image: none; mask-image: none; }
  .reviews__track { animation: none; padding-inline: var(--gutter-l); }
  .review { scroll-snap-align: start; }
}

/* ---------- Ubicación del local ---------- */
.visit { padding-top: var(--section); position: relative; }
.visit__alias { position: absolute; top: var(--section); }
.visit__card { display: grid; border-radius: var(--r-frame); background: var(--mist); overflow: hidden; }
@media (min-width: 900px) { .visit__card { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); min-height: 480px; } }
.visit__info { display: grid; align-content: center; gap: var(--s-6); padding: var(--s-6) var(--s-5); }
@media (min-width: 900px) { .visit__info { padding: var(--s-7); } }
.visit__status {
  display: inline-flex; align-items: center; gap: 10px; justify-self: start;
  padding: 8px 16px; border-radius: var(--r-pill); background: var(--paper);
  font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft);
}
.visit__status.is-open { color: var(--ok); }
.visit__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--ink-faint); }
.visit__status.is-open .visit__dot { background: var(--ok); animation: visit-pulse 2s var(--ease) infinite; }
@keyframes visit-pulse {
  0% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0.45); }
  70% { box-shadow: 0 0 0 10px rgba(31, 138, 76, 0); }
  100% { box-shadow: 0 0 0 0 rgba(31, 138, 76, 0); }
}
@media (prefers-reduced-motion: reduce) { .visit__status.is-open .visit__dot { animation: none; } }
.visit__rows { display: grid; gap: var(--s-5); }
.visit__row { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: var(--s-4); align-items: start; }
.visit__icon { display: grid; place-items: center; width: 52px; height: 52px; border-radius: 16px; background: var(--paper); }
.visit__label { display: block; margin-bottom: 4px; font-size: var(--fs-xs); font-weight: 700; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-soft); }
.visit__main { display: block; font-size: var(--fs-xl); font-weight: 800; letter-spacing: -0.02em; line-height: 1.15; color: var(--ink-strong); }
.visit__sub { display: block; margin-top: 2px; font-size: var(--fs-lg); color: var(--ink-soft); }
.visit__week { display: flex; flex-wrap: wrap; gap: 6px; margin-top: var(--s-4); }
.visit__day {
  display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px;
  background: var(--paper); color: var(--ink-faint); font-size: var(--fs-xs); font-weight: 800;
}
.visit__day.is-on { background: var(--ink); color: var(--on-ink); }
.visit__day.is-today { outline: 2px solid var(--ink); outline-offset: 2px; }
.visit__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); }
.visit__actions .icon { margin-left: 2px; }
.visit__map { position: relative; min-height: 360px; background: var(--mist-2); }
.visit__map iframe {
  position: absolute; inset: 0; width: 100%; height: 100%; border: 0;
}
/* Mapa de Google en tonos oscuros para el modo noche */
[data-theme="dark"] .visit__map iframe { filter: invert(0.92) hue-rotate(180deg) saturate(0.8); }
.visit__chip {
  position: absolute; left: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px;
  padding: 10px 16px; border-radius: var(--r-pill); background: var(--ink); color: var(--on-ink);
  font-size: var(--fs-sm); font-weight: 700; text-decoration: none; box-shadow: var(--shadow-float);
}
.visit__chip:hover { background: var(--ink-strong); }
@media (max-width: 899px) {
  .visit__actions .btn { flex: 1 1 100%; }
  .visit__map { min-height: 340px; }
}

/* ---------- Nosotros ---------- */
.about { padding-top: var(--section); }
.about__grid { display: grid; gap: var(--s-6); }
.about__copy { display: grid; gap: var(--s-4); max-width: 62ch; }
.about__copy p { font-size: var(--fs-lg); line-height: 1.6; color: var(--ink-soft); }

/* ---------- FAQ ---------- */
.faq { padding-top: var(--section); }
.faq__wrap { display: grid; gap: var(--s-6); }
@media (min-width: 900px) { .faq__wrap { grid-template-columns: 1fr 1.6fr; align-items: start; } }
.faq__list { border-top: 1px solid var(--line); }
.faq__item { border-bottom: 1px solid var(--line); }
.faq__item summary {
  display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
  padding: var(--s-5) 0; cursor: pointer; list-style: none;
  font-size: var(--fs-md); font-weight: 700; color: var(--ink-strong);
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary .icon { color: var(--ink-soft); transition: transform var(--t-med) var(--ease); }
.faq__item[open] summary .icon { transform: rotate(180deg); }
.faq__item p { padding-bottom: var(--s-5); color: var(--ink-soft); max-width: 62ch; }

/* ---------- Contacto: el único bloque oscuro, eco del cuadrado del logo ---------- */
.contact { padding-top: var(--section); }
.contact__card {
  display: grid; gap: var(--s-6); padding-block: var(--s-8);
  background: var(--ink); color: #fff; border-radius: var(--r-frame);
}
@media (min-width: 1100px) { .contact__card { max-width: var(--max); } }
.contact__card { padding-left: max(24px, 5vw); padding-right: max(24px, 5vw); }
@media (min-width: 900px) { .contact__card { grid-template-columns: 1.2fr 1fr; align-items: center; padding-inline: var(--s-8); } }
.contact__card .section-title { color: #fff; }
.contact__card .section-subtitle { color: rgba(255, 255, 255, 0.72); margin-block: var(--s-3) var(--s-6); }
.contact__list { display: grid; gap: var(--s-4); }
.contact__list li { display: flex; gap: var(--s-3); align-items: flex-start; color: rgba(255, 255, 255, 0.86); }
.contact__list .icon { margin-top: 3px; color: rgba(255, 255, 255, 0.6); }
@media (max-width: 699px) {
  .contact > .wrap.contact__card { border-radius: 0; margin-inline: 0; max-width: none; }
  .contact__card .btn { width: 100%; }
}

/* ---------- Ficha de producto ---------- */
.product { display: grid; gap: var(--s-6); }
@media (min-width: 900px) {
  .product { grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.85fr); gap: var(--s-8); align-items: start; }
  .product__info { position: sticky; top: calc(var(--header-h) + 24px); }
}
.product__info { display: grid; gap: var(--s-2); min-width: 0; }
.product__brand { font-size: var(--fs-sm); font-weight: 700; color: var(--ink-soft); }
.product__name { font-size: clamp(2rem, 1.4rem + 2.4vw, 3.25rem); font-weight: 800; letter-spacing: -0.035em; }
.product__model { color: var(--ink-faint); font-size: var(--fs-sm); }
.product__lead { margin-top: var(--s-2); color: var(--ink-soft); font-size: var(--fs-md); max-width: 46ch; }
.product__actions { display: grid; gap: var(--s-3); margin-top: var(--s-4); }
.product__buy-msg { padding: var(--s-3) var(--s-4); border-radius: var(--r-control); background: var(--mist); font-size: var(--fs-sm); color: var(--ink); }
.product__note { font-size: var(--fs-xs); color: var(--ink-soft); text-align: center; }
.product__perks { display: grid; gap: var(--s-3); margin-top: var(--s-5); padding-top: var(--s-5); border-top: 1px solid var(--line); font-size: var(--fs-sm); color: var(--ink-soft); }
.product__perks li { display: flex; gap: var(--s-3); align-items: center; }

.stock { display: inline-flex; align-items: center; gap: 8px; margin-top: var(--s-3); font-size: var(--fs-sm); font-weight: 700; }
.stock__dot { width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.stock--in_stock { color: var(--ok); }
.stock--low { color: var(--warn); }
.stock--out { color: var(--ink-soft); }

/* Galería */
.gallery { display: grid; gap: var(--s-3); min-width: 0; }
.gallery__stage { position: relative; border-radius: var(--r-frame); overflow: hidden; background: var(--mist); }
.gallery__track {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  overscroll-behavior-x: contain;
}
.gallery__track::-webkit-scrollbar { display: none; }
.gallery__slide { flex: 0 0 100%; scroll-snap-align: center; aspect-ratio: 1; }
.gallery__zoom { display: block; width: 100%; height: 100%; padding: 0; border: 0; background: none; cursor: zoom-in; }
.gallery__zoom img { width: 100%; height: 100%; object-fit: cover; }
.gallery__arrow {
  position: absolute; top: 50%; transform: translateY(-50%);
  display: grid; place-items: center; width: 44px; height: 44px; border: 0; border-radius: 50%;
  background: var(--glass); color: var(--ink); box-shadow: 0 2px 10px rgba(0,0,0,.08); cursor: pointer;
  opacity: 0; transition: opacity var(--t-fast);
}
.gallery__arrow--prev { left: 14px; }
.gallery__arrow--next { right: 14px; }
.gallery__stage:hover .gallery__arrow, .gallery__arrow:focus-visible { opacity: 1; }
@media (hover: none) { .gallery__arrow { display: none; } }
.gallery__counter, .gallery__hint {
  position: absolute; bottom: 14px; padding: 4px 10px; border-radius: var(--r-pill);
  background: var(--glass); font-size: 0.75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.gallery__counter { right: 14px; }
.gallery__hint { left: 14px; display: inline-flex; align-items: center; gap: 6px; color: var(--ink-soft); pointer-events: none; }
.gallery__thumbs { display: flex; gap: var(--s-3); overflow-x: auto; scrollbar-width: none; }
.gallery__thumb {
  display: block; width: 84px; height: 84px; padding: 0; border: 2px solid transparent; border-radius: 18px;
  overflow: hidden; background: var(--mist); cursor: pointer; transition: border-color var(--t-fast);
}
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb[aria-current="true"] { border-color: var(--ink); }
@media (max-width: 899px) {
  .product-page .wrap.product { padding-inline: 0; }
  .gallery__stage { border-radius: 0; }
  .gallery__thumbs { display: none; }
  .gallery__hint { display: none; }
  .product__info { padding-left: var(--gutter-l); padding-right: var(--gutter-r); }
  .breadcrumbs ol { padding-block: var(--s-3); }
}

/* Lightbox */
.lightbox {
  position: fixed; inset: 0; z-index: 100; width: 100%; height: 100%; max-width: none; max-height: none;
  margin: 0; padding: 0; border: 0; background: var(--paper);
}
.lightbox::backdrop { background: var(--paper); }
.lightbox__img-wrap { position: absolute; inset: 0; display: grid; place-items: center; overflow: auto; touch-action: pinch-zoom pan-x pan-y; }
.lightbox__img { max-width: 100%; max-height: 100%; object-fit: contain; cursor: zoom-in; transition: transform var(--t-med) var(--ease); }
.lightbox__img.is-zoomed { cursor: zoom-out; transform: scale(2); }
.lightbox__bar {
  position: absolute; left: 0; right: 0; top: 0; z-index: 2; display: flex; justify-content: space-between; align-items: center;
  padding: calc(12px + env(safe-area-inset-top, 0px)) var(--gutter-r) 12px var(--gutter-l);
  font-size: var(--fs-sm); font-weight: 700; font-variant-numeric: tabular-nums;
}
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); z-index: 2; background: var(--mist); }
.lightbox__nav--prev { left: calc(12px + env(safe-area-inset-left, 0px)); }
.lightbox__nav--next { right: calc(12px + env(safe-area-inset-right, 0px)); }

/* Cifras clave: el momento tipográfico de la ficha */
.product__section { margin-top: var(--section); }
.keyspecs { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin: 0; border-block: 1px solid var(--line); }
.keyspecs__item { display: grid; gap: var(--s-2); padding: var(--s-6) var(--s-4) var(--s-6) 0; min-width: 0; }
.keyspecs__item + .keyspecs__item { padding-left: var(--s-5); border-left: 1px solid var(--line); }
.keyspecs dt { font-size: var(--fs-sm); color: var(--ink-soft); font-weight: 600; }
.keyspecs dd { margin: 0; display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; }
.keyspecs__num { font-size: var(--fs-num); font-weight: 800; letter-spacing: -0.05em; line-height: 1; color: var(--ink-strong); font-variant-numeric: tabular-nums; }
.keyspecs__unit { font-size: var(--fs-lg); font-weight: 700; color: var(--ink-soft); }
@media (max-width: 559px) {
  .keyspecs__item { padding-block: var(--s-5); align-content: space-between; }
  .keyspecs__item + .keyspecs__item { padding-left: var(--s-3); }
  .keyspecs dt { font-size: var(--fs-xs); line-height: 1.35; }
  .keyspecs dd { flex-wrap: nowrap; gap: 3px; }
  .keyspecs__num { font-size: 2.125rem; }
  .keyspecs__unit { font-size: var(--fs-xs); }
}

.product__details { display: grid; gap: var(--s-8); margin-top: var(--section); }
@media (min-width: 900px) { .product__details { grid-template-columns: 1fr 1fr; gap: var(--s-8); align-items: start; } }
.specs, .description { display: grid; gap: var(--s-5); min-width: 0; }
.specs__table { margin: 0; border-top: 1px solid var(--line); }
.specs__row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: var(--s-4); padding-block: 14px; border-bottom: 1px solid var(--line); font-size: var(--fs-sm); }
.specs__row dt { color: var(--ink-soft); }
.specs__row dd { margin: 0; font-weight: 700; color: var(--ink-strong); font-variant-numeric: tabular-nums; }

.related { margin-top: var(--section); }
.related .section-title { margin-bottom: var(--s-6); }

/* Barra fija de compra en mobile */
.buybar { display: none; }
@media (max-width: 899px) {
  .buybar {
    position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
    display: flex; align-items: center; justify-content: space-between; gap: var(--s-4);
    padding: 12px var(--gutter-r) calc(12px + env(safe-area-inset-bottom, 0px)) var(--gutter-l);
    background: var(--bar-bg); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-top: 1px solid var(--line);
    transform: translateY(110%); transition: transform var(--t-med) var(--ease);
  }
  .buybar.is-visible { transform: none; }
  .buybar__price { display: grid; line-height: 1.2; min-width: 0; }
  .buybar__amount { font-size: var(--fs-lg); font-weight: 800; font-variant-numeric: tabular-nums; }
  .buybar__label { font-size: 0.75rem; color: var(--ink-soft); }
  .buybar__actions { display: flex; gap: var(--s-2); flex: none; }
  .buybar__wa { width: 48px; padding: 0; }
  body[data-page="product"] .site-footer { padding-bottom: calc(var(--s-6) + 80px); }
}

/* ---------- Página legal / formulario ---------- */
.legal-page { display: grid; gap: var(--s-4); padding-bottom: var(--s-6); }
.legal-page .section-subtitle { margin-bottom: var(--s-4); }
.form { display: grid; gap: var(--s-5); padding: var(--s-6); border-radius: var(--r-frame); background: var(--mist); }
.form__row { display: grid; gap: var(--s-5); }
@media (min-width: 700px) { .form__row { grid-template-columns: 1fr 1fr; } }
.field { display: grid; gap: 6px; font-size: var(--fs-sm); font-weight: 700; min-width: 0; }
.field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; border: 1.5px solid var(--line); border-radius: var(--r-control);
  background: var(--paper); font-weight: 500; font-size: var(--fs-md);
}
.field input:focus, .field textarea:focus { outline: none; border-color: var(--ink); }
.field input[aria-invalid="true"] { border-color: var(--danger); }
.form .btn { justify-self: start; }
.form__error { color: var(--danger); font-size: var(--fs-sm); font-weight: 600; }
.form__status { padding: var(--s-4); border-radius: var(--r-control); background: var(--paper); font-size: var(--fs-sm); }

/* ---------- Aviso de vista previa (solo Fase 2) ---------- */
.preview-note {
  background: #fff8e1; color: #5c4400; font-size: var(--fs-xs); text-align: center;
  padding: 8px var(--gutter-r) 8px var(--gutter-l); border-bottom: 1px solid #f0e2b0;
}

/* Vuelta de Mercado Pago (/compra/...) */
.purchase__op { font-size: var(--fs-sm); color: var(--ink-soft); }
.purchase__actions { display: flex; flex-wrap: wrap; gap: var(--s-3); margin-top: var(--s-2); }
