/* KRON PRIME · tienda. Una familia (Archivo variable): angosta para titulares, ancha para los códigos
   de producto (como en el bote) y normal para leer. Negro, blanco mate y el color de cada bote. */

@font-face {
  font-family: "Archivo";
  src: url("/fuentes/archivo.woff2") format("woff2");
  font-weight: 100 900;
  font-stretch: 62% 125%;
  font-display: swap;
}

:root {
  --negro: #0a0a0a;
  --carbon: #161616;
  --blanco: #ffffff;
  --mate: #f1f0ec;
  --mate-2: #e4e2dc;
  --gris: #8e8e8e;
  --gris-oscuro: #5b5b5b;
  --linea: rgb(255 255 255 / 0.14);
  --linea-clara: rgb(10 10 10 / 0.13);
  --oro: #c6a664;
  --error: #b3261e;
  --margen: clamp(16px, 4vw, 56px);
  --barra: 64px;
  --fuente: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --curva: cubic-bezier(0.2, 0.7, 0.1, 1);
  color-scheme: dark;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  -webkit-text-size-adjust: 100%;
  scroll-padding-top: var(--barra);
}

body {
  margin: 0;
  background: var(--negro);
  color: var(--blanco);
  font: 400 17px/1.55 var(--fuente);
  font-stretch: 100%;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img,
picture,
svg {
  display: block;
  max-width: 100%;
}

a {
  color: inherit;
}

button,
input,
select {
  font: inherit;
  color: inherit;
}

h1,
h2,
h3,
p,
dl,
dd,
figure,
fieldset {
  margin: 0;
}

:focus-visible {
  outline: 2px solid var(--oro);
  outline-offset: 3px;
}

.visualmente-oculto {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}

.saltar {
  position: absolute;
  left: 8px;
  top: -60px;
  z-index: 50;
  background: var(--blanco);
  color: var(--negro);
  padding: 10px 16px;
}
.saltar:focus {
  top: 8px;
}

/* ── tipografía de marca ── */

.titulo-seccion {
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(2.6rem, 6.4vw, 6rem);
  line-height: 0.88;
  text-transform: uppercase;
  letter-spacing: -0.005em;
  text-wrap: balance;
}

.producto-codigo {
  font-stretch: 125%;
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 0.8;
  white-space: nowrap;
  color: var(--acento);
}

/* ── botones y enlaces ── */

.boton {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 0 28px;
  border: 0;
  border-radius: 2px;
  font-weight: 600;
  font-size: 16px;
  text-decoration: none;
  cursor: pointer;
  transition: background-color 0.2s, color 0.2s, scale 0.15s;
}
.boton:active {
  scale: 0.98;
}
.boton:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.boton-claro {
  background: var(--blanco);
  color: var(--negro);
}
.boton-claro:hover {
  background: var(--mate-2);
}
.boton-oscuro {
  background: var(--negro);
  color: var(--blanco);
}
.boton-oscuro:hover {
  background: #2a2a2a;
}
.boton-ancho {
  width: 100%;
}
.boton[data-hecho] {
  background: var(--oro);
  color: var(--negro);
}

.enlace {
  font-weight: 500;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 6px;
}
.enlace:hover {
  text-decoration-thickness: 2px;
}

.icono-boton {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 0;
  background: none;
  cursor: pointer;
}
.icono-boton svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.6;
}

/* ── aviso de demostración y barra ── */

.aviso-demo {
  padding: 8px var(--margen);
  background: var(--carbon);
  color: #bdbdbd;
  font-size: 13px;
  text-align: center;
}

.barra {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  gap: 40px;
  height: var(--barra);
  padding: 0 var(--margen);
  background: var(--negro);
  border-bottom: 1px solid transparent;
  transition: border-color 0.3s;
}
.barra[data-con-scroll] {
  border-bottom-color: var(--linea);
}
.barra-marca {
  color: var(--blanco);
}
.barra-marca svg {
  width: 118px;
  height: auto;
}
.barra-nav {
  display: flex;
  gap: 28px;
  margin-right: auto;
}
.barra-nav a {
  color: #c9c9c9;
  font-size: 15px;
  font-weight: 500;
  text-decoration: none;
}
.barra-nav a:hover {
  color: var(--blanco);
}
.barra-carrito {
  margin-left: auto;
  padding: 10px 0 10px 12px;
  border: 0;
  background: none;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
}
.barra-cuenta {
  display: inline-block;
  min-width: 1.2em;
  font-variant-numeric: tabular-nums;
}
.barra-cuenta[data-salto] {
  animation: salto 0.5s var(--curva);
}
@keyframes salto {
  40% {
    scale: 1.5;
    color: var(--oro);
  }
}

@media (max-width: 720px) {
  .barra-nav {
    display: none;
  }
}

/* ── héroe ── */

.heroe {
  position: relative;
  display: grid;
  align-items: end;
  min-height: calc(100svh - var(--barra) - 34px);
  overflow: hidden;
}
.heroe-foto,
.heroe-foto img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.heroe-foto img {
  object-fit: cover;
  object-position: 72% 50%;
}
.heroe-texto {
  position: relative;
  padding: 0 var(--margen) clamp(32px, 6vh, 72px);
}
.heroe-titulo {
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(4.6rem, 15vw, 16.5rem);
  line-height: 0.8;
  text-transform: uppercase;
  letter-spacing: -0.006em;
}
.linea-de-titulo {
  display: block;
  overflow: hidden;
  padding-bottom: 0.03em;
}
.linea-de-titulo > span {
  display: block;
}
.heroe-sub {
  max-width: 34ch;
  margin: 28px 0 28px;
  color: #cfcfcf;
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
}
.heroe-acciones {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 28px;
}

/* En celular vertical el texto va arriba sobre negro y la foto debajo: nunca texto encima del atleta. */
@media (orientation: portrait) and (max-width: 900px) {
  .heroe {
    display: flex;
    flex-direction: column;
    min-height: 0;
  }
  .heroe-texto {
    order: -1;
    padding-top: clamp(28px, 6vh, 56px);
    padding-bottom: 8px;
  }
  .heroe-foto {
    position: relative;
    height: auto;
  }
  .heroe-foto img {
    position: static;
    height: auto;
    aspect-ratio: 4 / 5;
    object-position: 50% 82%;
  }
  .heroe-titulo {
    font-size: 23vw;
  }
}

/* Un solo momento orquestado: la foto se asienta y el titular sube línea por línea. */
@media (prefers-reduced-motion: no-preference) {
  .heroe-foto img {
    animation: asentar 2.2s var(--curva) both;
  }
  .linea-de-titulo > span {
    animation: subir 1s var(--curva) both;
  }
  .linea-de-titulo:nth-child(1) > span {
    animation-delay: 0.25s;
  }
  .linea-de-titulo:nth-child(2) > span {
    animation-delay: 0.38s;
  }
  .heroe-sub,
  .heroe-acciones {
    animation: aparecer 0.9s ease-out 0.8s both;
  }
}
@keyframes asentar {
  from {
    scale: 1.07;
    opacity: 0.4;
  }
}
@keyframes subir {
  from {
    translate: 0 105%;
  }
}
@keyframes aparecer {
  from {
    opacity: 0;
  }
}

/* ── manifiesto ── */

.manifiesto {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: clamp(32px, 6vw, 96px);
  align-items: center;
  padding: clamp(96px, 15vw, 200px) var(--margen);
}
.manifiesto-frase {
  max-width: 22ch;
  font-stretch: 88%;
  font-weight: 500;
  font-size: clamp(1.9rem, 3.8vw, 3.5rem);
  line-height: 1.1;
  letter-spacing: -0.02em;
}
.manifiesto-cierre {
  margin-top: clamp(28px, 4vw, 48px);
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(2.6rem, 6vw, 5.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.manifiesto-foto img {
  width: 100%;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: 28% 50%;
}
@media (prefers-reduced-motion: no-preference) {
  @supports ((animation-timeline: view()) and (animation-range: entry)) {
    .palabra {
      animation: encender linear both;
      animation-timeline: view();
      animation-range: cover 22% cover 42%;
    }
  }
}
@keyframes encender {
  from {
    opacity: 0.16;
  }
}
@media (max-width: 900px) {
  .manifiesto {
    grid-template-columns: 1fr;
  }
}

/* ── la línea: escena fija que cambia de bote con el scroll ── */

.linea {
  --n: 4;
  position: relative;
  height: calc(var(--n) * 100svh + 40svh);
  background: var(--mate);
  color: var(--negro);
  color-scheme: light;
}
.linea :focus-visible {
  outline-color: var(--negro);
}
.linea-escena {
  position: sticky;
  top: 0;
  height: 100svh;
  overflow: hidden;
}
.linea-banda {
  position: absolute;
  inset: 0;
  background: var(--banda, #111);
  clip-path: polygon(87% 0, 100% 0, 100% 100%, 78% 100%);
}
.linea-banda span {
  position: absolute;
  right: 6%;
  bottom: 18%;
  color: rgb(255 255 255 / 0.85);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.32em;
  text-transform: uppercase;
  writing-mode: vertical-rl;
  rotate: 180deg;
}
.linea-barrido {
  position: absolute;
  top: 0;
  bottom: 0;
  left: -40vh;
  z-index: 5;
  width: calc(100% + 80vh);
  background: var(--barrido, #111);
  transform: translateX(var(--x, 200vw)) skewX(-16deg);
  pointer-events: none;
  will-change: transform;
}
.linea-cabeza {
  position: absolute;
  top: calc(var(--barra) + 18px);
  left: var(--margen);
  right: var(--margen);
  z-index: 3;
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 24px;
}
.linea-titulo {
  font-stretch: 62%;
  font-weight: 850;
  font-size: 30px;
  text-transform: uppercase;
}
.linea-indice {
  display: flex;
  gap: clamp(14px, 2.4vw, 32px);
}
.linea-indice a {
  padding: 6px 0;
  color: var(--gris-oscuro);
  font-stretch: 125%;
  font-weight: 700;
  font-size: 14px;
  text-decoration: none;
  border-bottom: 2px solid transparent;
}
.linea-indice a[aria-current="true"] {
  color: var(--negro);
  border-bottom-color: var(--negro);
}

.producto {
  position: absolute;
  inset: 0;
  z-index: 2;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 30vw);
  gap: clamp(24px, 4vw, 64px);
  padding: calc(var(--barra) + 84px) calc(var(--margen) + 17vw) 48px var(--margen);
  visibility: hidden;
}
.producto[data-activo] {
  visibility: visible;
}
.producto-foto {
  position: relative;
  display: grid;
  place-items: center;
  min-height: 0;
  container-type: inline-size;
}
.producto .producto-codigo {
  position: absolute;
  top: 50%;
  left: 50%;
  font-size: calc(100cqi / (var(--letras, 6) * 0.86));
  translate: calc(-50% + var(--deriva, 0px)) -50%;
}
.producto-bote {
  position: relative;
  width: auto;
  height: min(62svh, 660px);
  filter: drop-shadow(0 28px 28px rgb(0 0 0 / 0.16));
  translate: 0 var(--flota, 0);
}
.producto-info {
  position: relative;
  align-self: center;
  max-width: 460px;
}
.producto-nombre {
  font-weight: 700;
  font-size: clamp(1.4rem, 2vw, 1.9rem);
  line-height: 1.15;
  letter-spacing: -0.01em;
}
.producto-meta {
  margin-top: 8px;
  color: var(--gris-oscuro);
  font-size: 15px;
}
.etiqueta-datos {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin: 28px 0;
  border-top: 1px solid var(--linea-clara);
}
.etiqueta-datos.cuatro {
  grid-template-columns: repeat(4, 1fr);
}
.etiqueta-datos div {
  display: flex;
  flex-direction: column-reverse;
  justify-content: flex-end;
  gap: 2px;
  padding: 14px 12px 0 0;
}
.etiqueta-datos div + div {
  padding-left: 12px;
  border-left: 1px solid var(--linea-clara);
}
.etiqueta-datos dd {
  font-stretch: 62%;
  font-weight: 800;
  font-size: clamp(1.5rem, 2.3vw, 2.3rem);
  line-height: 1;
}
.etiqueta-datos.cuatro dd {
  font-size: clamp(1.8rem, 3vw, 3rem);
}
.etiqueta-datos dt {
  color: var(--gris-oscuro);
  font-size: 14px;
}
.producto-compra {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 16px 24px;
}
.precio {
  display: flex;
  flex-direction: column;
  width: 100%;
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(2.4rem, 3.6vw, 3.4rem);
  line-height: 1;
}
.precio small {
  margin-top: 6px;
  color: var(--gris-oscuro);
  font-stretch: 100%;
  font-weight: 400;
  font-size: 14px;
  line-height: 1.4;
}

@media (max-width: 1000px) {
  .producto {
    grid-template-columns: 1fr;
    grid-template-rows: 1fr auto;
    gap: 16px;
    padding-top: calc(var(--barra) + 64px);
    padding-bottom: 24px;
  }
  .producto {
    padding-right: calc(var(--margen) + 7vw);
  }
  .producto .producto-codigo {
    font-size: calc(96cqi / (var(--letras, 6) * 0.86));
  }
  .producto-bote {
    height: min(36svh, 420px);
  }
  .producto-info {
    max-width: none;
  }
  .producto-meta {
    font-size: 13px;
  }
  .etiqueta-datos {
    margin: 14px 0;
  }
  .etiqueta-datos div {
    padding-top: 10px;
  }
  .etiqueta-datos dt {
    font-size: 12px;
  }
  .precio {
    width: auto;
    font-size: 2.2rem;
  }
  .precio small {
    font-size: 12px;
  }
  .producto-compra .enlace {
    display: none;
  }
  .linea-banda {
    clip-path: polygon(96% 0, 100% 0, 100% 100%, 92% 100%);
  }
  .linea-banda span {
    display: none;
  }
}
@media (max-width: 1000px) and (max-height: 720px) {
  .producto-bote {
    height: 28svh;
  }
  .producto-meta {
    display: none;
  }
}
@media (max-width: 520px) {
  .linea-titulo {
    display: none;
  }
  .linea-cabeza {
    justify-content: flex-start;
  }
  .producto-nombre {
    font-size: 1.15rem;
  }
}

/* ── stacks ── */

.stacks {
  padding: clamp(96px, 13vw, 180px) var(--margen);
}
.stacks-cabeza {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  align-items: end;
  margin-bottom: clamp(40px, 6vw, 72px);
}
.stacks-cabeza p {
  max-width: 38ch;
  color: #bdbdbd;
}
.stacks-lista {
  margin: 0;
  padding: 0;
  list-style: none;
}
.stack {
  display: grid;
  grid-template-columns: 260px 1fr auto auto;
  align-items: center;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--linea);
}
.stack:last-child {
  border-bottom: 1px solid var(--linea);
}
.stack-botes {
  display: flex;
  align-items: flex-end;
}
.stack-bote {
  width: auto;
  height: 150px;
}
.stack-bote + .stack-bote {
  margin-left: -26px;
}
.stack-texto h3 {
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(1.8rem, 3vw, 2.8rem);
  line-height: 1;
  text-transform: uppercase;
}
.stack-texto p {
  margin-top: 6px;
  color: var(--gris);
  font-stretch: 125%;
  font-weight: 600;
  font-size: 14px;
}
.stack-precio {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  font-variant-numeric: tabular-nums;
}
.stack-precio s {
  color: var(--gris);
  font-size: 15px;
}
.stack-precio strong {
  font-stretch: 62%;
  font-weight: 850;
  font-size: 2.2rem;
  line-height: 1;
}
@media (max-width: 860px) {
  .stacks-cabeza {
    grid-template-columns: 1fr;
  }
  .stack {
    grid-template-columns: auto 1fr;
    gap: 16px 20px;
  }
  .stack-bote {
    height: 96px;
  }
  .stack-precio {
    align-items: flex-start;
  }
}

/* ── atletas ── */

.atletas {
  padding: clamp(80px, 10vw, 140px) var(--margen) clamp(120px, 16vw, 220px);
  border-top: 1px solid var(--linea);
}
.atletas .titulo-seccion {
  max-width: 14ch;
  margin-bottom: clamp(40px, 6vw, 80px);
}
.atletas-rejilla {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 16px;
  align-items: start;
}
.atleta:nth-child(even) {
  margin-top: clamp(40px, 9vw, 140px);
}
.atleta img {
  width: 100%;
  aspect-ratio: 3 / 4;
  object-fit: cover;
}
.atleta figcaption {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 14px;
}
.atleta-disciplina {
  font-stretch: 62%;
  font-weight: 850;
  font-size: 2rem;
  line-height: 1;
  text-transform: uppercase;
}
.atleta-stack {
  color: var(--gris);
  font-size: 14px;
}
.atleta-stack a {
  color: var(--blanco);
  text-underline-offset: 4px;
}
@media (max-width: 1100px) {
  .atletas-rejilla {
    grid-template-columns: repeat(2, 1fr);
  }
}

/* ── cierre ── */

.cierre {
  position: relative;
  display: grid;
  align-items: end;
  min-height: 92svh;
  overflow: hidden;
}
.cierre picture,
.cierre-foto {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.cierre img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 40%;
}
.cierre-texto {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  padding: 0 var(--margen) clamp(40px, 7vh, 80px);
}
.cierre-titulo {
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(4rem, 12vw, 13rem);
  line-height: 0.82;
  text-transform: uppercase;
  max-width: 9ch;
}

/* ── pie ── */

.pie {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
  gap: 40px;
  padding: 72px var(--margen) 40px;
  border-top: 1px solid var(--linea);
  background: var(--negro);
  color: var(--blanco);
}
.pie-marca svg {
  width: 150px;
  height: auto;
}
.pie-marca p {
  margin-top: 16px;
  color: var(--gris);
  font-size: 14px;
}
.pie-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 15px;
}
.pie-col h2 {
  margin-bottom: 6px;
  color: var(--gris);
  font-size: 14px;
  font-weight: 600;
}
.pie-col a {
  text-decoration: none;
}
.pie-col a:hover {
  text-decoration: underline;
}
.pie-gen p {
  color: #c9c9c9;
}
.pie-legal {
  grid-column: 1 / -1;
  display: grid;
  gap: 6px;
  padding-top: 28px;
  border-top: 1px solid var(--linea);
  color: var(--gris);
  font-size: 13px;
}
@media (max-width: 860px) {
  .pie {
    grid-template-columns: 1fr 1fr;
  }
  .pie-marca {
    grid-column: 1 / -1;
  }
}

/* ── carrito (cajón lateral) ── */

.carrito {
  width: min(440px, 100vw);
  max-width: 100vw;
  height: 100dvh;
  max-height: 100dvh;
  margin: 0 0 0 auto;
  padding: 0;
  border: 0;
  background: var(--blanco);
  color: var(--negro);
  color-scheme: light;
  translate: 100% 0;
  transition: translate 0.35s var(--curva), display 0.35s allow-discrete, overlay 0.35s allow-discrete;
}
.carrito[open] {
  translate: 0 0;
}
@starting-style {
  .carrito[open] {
    translate: 100% 0;
  }
}
.carrito::backdrop {
  background: rgb(0 0 0 / 0);
  transition: background-color 0.35s, display 0.35s allow-discrete, overlay 0.35s allow-discrete;
}
.carrito[open]::backdrop {
  background: rgb(0 0 0 / 0.55);
}
@starting-style {
  .carrito[open]::backdrop {
    background: rgb(0 0 0 / 0);
  }
}
@media (prefers-reduced-motion: reduce) {
  .carrito,
  .carrito::backdrop {
    transition: none;
  }
}
.carrito :focus-visible {
  outline-color: var(--negro);
}
.carrito-hoja {
  display: flex;
  flex-direction: column;
  height: 100%;
}
.carrito-cabeza {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 16px 16px 24px;
  border-bottom: 1px solid var(--linea-clara);
}
.carrito-cabeza h2 {
  font-stretch: 62%;
  font-weight: 850;
  font-size: 1.8rem;
  text-transform: uppercase;
}
.carrito-lineas {
  flex: 1;
  overflow-y: auto;
  padding: 8px 24px;
}
.carrito-vacio {
  display: grid;
  gap: 20px;
  justify-items: start;
  padding: 32px 24px;
}
.carrito-vacio[hidden],
.carrito-pie[hidden] {
  display: none;
}
.carrito-pie {
  display: grid;
  gap: 16px;
  padding: 20px 24px 24px;
  border-top: 1px solid var(--linea-clara);
}
.carrito-stack {
  font-size: 14px;
  color: var(--gris-oscuro);
}
.carrito-stack:empty {
  display: none;
}

.linea-carrito {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 4px 16px;
  align-items: center;
  padding: 16px 0;
  border-bottom: 1px solid var(--linea-clara);
}
.linea-carrito img {
  grid-row: span 2;
  width: 56px;
  height: auto;
}
.linea-carrito-nombre {
  font-stretch: 125%;
  font-weight: 700;
  font-size: 15px;
}
.linea-carrito-importe {
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: right;
}
.linea-carrito-controles {
  display: flex;
  align-items: center;
  gap: 12px;
  grid-column: 2 / -1;
}
.quitar {
  margin-left: auto;
  padding: 4px 0;
  border: 0;
  background: none;
  color: var(--gris-oscuro);
  font-size: 14px;
  text-decoration: underline;
  text-underline-offset: 3px;
  cursor: pointer;
}

.cantidad {
  display: inline-flex;
  align-items: center;
  border: 1px solid var(--linea-clara);
  border-radius: 2px;
}
.cantidad .icono-boton {
  width: 36px;
  height: 36px;
}
.cantidad input {
  width: 36px;
  border: 0;
  background: none;
  text-align: center;
  font-variant-numeric: tabular-nums;
  -moz-appearance: textfield;
}
.cantidad input::-webkit-inner-spin-button,
.cantidad input::-webkit-outer-spin-button {
  -webkit-appearance: none;
}

.totales {
  display: grid;
  gap: 6px;
  font-variant-numeric: tabular-nums;
}
.totales div {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.totales dt {
  color: var(--gris-oscuro);
}
.totales .total {
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--linea-clara);
  font-weight: 700;
  font-size: 1.2rem;
}
.totales .total dt {
  color: inherit;
}
.totales .ahorro dd {
  color: #1d6b3a;
}

/* ── páginas claras (producto, pago, pedido) ── */

.pagina-clara,
.pagina-producto {
  background: var(--mate);
  color: var(--negro);
  color-scheme: light;
}
.pagina-clara main :focus-visible,
.pagina-producto main :focus-visible {
  outline-color: var(--negro);
}

/* ficha de producto */
.ficha {
  position: relative;
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(24px, 5vw, 80px);
  align-items: center;
  min-height: calc(100svh - var(--barra) - 34px);
  padding: 48px var(--margen);
  overflow: hidden;
}
.ficha-banda {
  position: absolute;
  inset: 0;
  background: var(--acento);
  clip-path: polygon(46% 0, 58% 0, 47% 100%, 35% 100%);
  opacity: 0.12;
}
.ficha-foto {
  position: relative;
  display: grid;
  place-items: center;
  container-type: inline-size;
}
.ficha-foto .producto-codigo {
  position: absolute;
  top: 50%;
  left: 50%;
  translate: -50% -50%;
  font-size: calc(100cqi / (var(--letras, 6) * 0.86));
}
.ficha-bote {
  position: relative;
  width: auto;
  height: min(70svh, 720px);
  filter: drop-shadow(0 28px 28px rgb(0 0 0 / 0.16));
}
.ficha-info {
  position: relative;
  max-width: 520px;
}
.ficha-migas {
  color: var(--gris-oscuro);
  font-size: 14px;
}
.ficha-migas a {
  text-underline-offset: 3px;
}
.ficha-titulo {
  margin-top: 18px;
  color: var(--acento-texto);
  font-stretch: 125%;
  font-weight: 800;
  font-size: clamp(3rem, 6vw, 5.6rem);
  line-height: 0.9;
  letter-spacing: -0.03em;
}
.ficha-tipo {
  margin-top: 14px;
  font-weight: 700;
  font-size: clamp(1.3rem, 1.8vw, 1.7rem);
  line-height: 1.2;
}
.precio-grande {
  margin-bottom: 24px;
}
.ficha-compra {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.ficha-compra .cantidad {
  background: var(--blanco);
}
.ficha-compra .cantidad .icono-boton,
.ficha-compra .cantidad input {
  height: 50px;
}
.ficha-compra .boton {
  flex: 1;
  min-width: 200px;
}
.ficha-nota {
  margin-top: 14px;
  color: var(--gris-oscuro);
  font-size: 14px;
}
@media (max-width: 900px) {
  .ficha {
    grid-template-columns: 1fr;
    padding-top: 24px;
  }
  .ficha-bote {
    height: 46svh;
  }
}

.cuenta,
.especificacion,
.pareja,
.otros {
  padding: clamp(64px, 9vw, 120px) var(--margen);
  border-top: 1px solid var(--linea-clara);
}
.cuenta-operacion {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 0 0.35em;
  margin-top: 28px;
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(2.4rem, 7vw, 6.4rem);
  line-height: 1;
  text-transform: uppercase;
}
.cuenta-signo {
  color: var(--gris-oscuro);
  font-weight: 400;
}
.cuenta-operacion strong {
  color: var(--acento-texto, var(--negro));
}
.cuenta-nota {
  margin-top: 16px;
  color: var(--gris-oscuro);
}
.espec {
  width: 100%;
  max-width: 880px;
  margin-top: 32px;
  border-collapse: collapse;
}
.espec th,
.espec td {
  padding: 14px 0;
  border-bottom: 1px solid var(--linea-clara);
  text-align: left;
  vertical-align: top;
}
.espec th {
  width: 40%;
  color: var(--gris-oscuro);
  font-weight: 400;
}
.espec td {
  font-weight: 600;
}
.pareja {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: clamp(24px, 5vw, 72px);
  align-items: center;
}
.pareja .stack-bote {
  height: 220px;
}
.pareja p {
  max-width: 44ch;
  margin: 16px 0 20px;
  color: var(--gris-oscuro);
}
.pareja .stack-precio {
  align-items: flex-start;
  margin-bottom: 20px;
}
.pagina-producto .stack-precio s {
  color: var(--gris-oscuro);
}
.otros-lista {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 32px 0 0;
  padding: 0;
  list-style: none;
}
.otros-lista a {
  display: grid;
  gap: 2px;
  padding: 24px;
  background: var(--blanco);
  text-decoration: none;
}
.otros-bote {
  height: 220px;
  width: auto;
  margin: 0 auto 16px;
}
.otros-codigo {
  color: var(--acento-texto);
  font-stretch: 125%;
  font-weight: 800;
  font-size: 1.5rem;
}
.otros-tipo {
  color: var(--gris-oscuro);
  font-size: 14px;
}
.otros-precio {
  margin-top: 8px;
  font-weight: 700;
}
@media (max-width: 760px) {
  .pareja {
    grid-template-columns: 1fr;
  }
  .otros-lista {
    grid-template-columns: 1fr;
  }
}

/* pago */
.pago {
  display: grid;
  grid-template-columns: 1.25fr 0.9fr;
  gap: clamp(32px, 5vw, 80px);
  align-items: start;
  max-width: 1240px;
  margin: 0 auto;
  padding: 48px var(--margen) 96px;
}
.pago-titulo {
  font-stretch: 62%;
  font-weight: 850;
  font-size: clamp(2.8rem, 5vw, 4.4rem);
  line-height: 0.9;
  text-transform: uppercase;
}
.pago-demo {
  margin: 16px 0 8px;
  padding: 14px 16px;
  border-left: 3px solid var(--oro);
  background: var(--blanco);
  font-size: 15px;
}
.pago-form fieldset {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 16px;
  margin-top: 40px;
  padding: 0;
  border: 0;
}
.pago-form legend {
  margin-bottom: 16px;
  font-stretch: 62%;
  font-weight: 850;
  font-size: 1.7rem;
  text-transform: uppercase;
}
.campo {
  display: grid;
  gap: 6px;
  grid-column: span 6;
}
.campo-correo,
.campo-telefono,
.campo-calle,
.campo-numero,
.campo-ciudad,
.campo-estado {
  grid-column: span 3;
}
.campo-colonia {
  grid-column: span 4;
}
.campo-cp {
  grid-column: span 2;
}
.campo label {
  font-size: 15px;
  font-weight: 600;
}
.opcional {
  color: var(--gris-oscuro);
  font-weight: 400;
}
.campo input,
.campo select,
.panel-entrar input {
  height: 52px;
  padding: 0 14px;
  border: 1px solid #c9c6be;
  border-radius: 2px;
  background: var(--blanco);
  font-size: 16px;
}
.campo input:focus-visible,
.campo select:focus-visible {
  outline: 2px solid var(--negro);
  outline-offset: 1px;
}
.campo [aria-invalid="true"] {
  border-color: var(--error);
}
.campo-ayuda {
  color: var(--gris-oscuro);
  font-size: 13px;
}
.campo-error {
  color: var(--error);
  font-size: 14px;
}
.campo-error:empty {
  display: none;
}
.campo-error-general {
  margin-top: 24px;
}
.opciones {
  grid-template-columns: 1fr !important;
  gap: 10px !important;
}
.opcion {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 2px 14px;
  align-items: start;
  padding: 16px 18px;
  border: 1px solid #c9c6be;
  border-radius: 2px;
  background: var(--blanco);
  cursor: pointer;
}
.opcion:has(input:checked) {
  border-color: var(--negro);
  box-shadow: inset 0 0 0 1px var(--negro);
}
.opcion input {
  grid-row: span 2;
  width: 18px;
  height: 18px;
  margin: 2px 0 0;
  accent-color: var(--negro);
}
.opcion-nombre {
  font-weight: 600;
}
.opcion-detalle {
  grid-column: 2 / -1;
  color: var(--gris-oscuro);
  font-size: 14px;
}
.opcion-precio {
  grid-row: 1;
  grid-column: 3;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
}
.pago-form > .boton {
  margin-top: 32px;
  min-height: 58px;
  font-size: 17px;
}
.resumen {
  position: sticky;
  top: calc(var(--barra) + 24px);
  display: grid;
  gap: 16px;
  padding: 28px;
  background: var(--blanco);
}
.resumen h2 {
  font-stretch: 62%;
  font-weight: 850;
  font-size: 1.7rem;
  text-transform: uppercase;
}
.resumen .carrito-vacio {
  padding: 0;
}
@media (max-width: 900px) {
  .pago {
    grid-template-columns: 1fr;
  }
  .resumen {
    position: static;
    order: -1;
  }
  .campo {
    grid-column: span 6 !important;
  }
}

/* seguimiento de pedido */
.seguimiento {
  max-width: 820px;
  margin: 0 auto;
  padding: 56px var(--margen) 120px;
}
.seguimiento > p {
  margin: 16px 0 24px;
  color: var(--gris-oscuro);
}
.seguimiento-folio {
  color: var(--gris-oscuro);
  font-stretch: 125%;
  font-weight: 700;
}
.pasos {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  margin: 40px 0;
  padding: 0;
  list-style: none;
  counter-reset: paso;
}
.pasos li {
  position: relative;
  padding-top: 22px;
  color: var(--gris-oscuro);
  font-size: 15px;
}
.pasos li::before {
  content: "";
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: var(--mate-2);
}
.pasos li[data-hecho]::before {
  background: var(--negro);
}
.pasos li[data-hecho] {
  color: var(--negro);
}
.pasos li[aria-current="step"] {
  font-weight: 700;
}
.pasos time {
  display: block;
  font-size: 13px;
  font-weight: 400;
}
.hoja {
  padding: 28px;
  background: var(--blanco);
}
.hoja + .hoja {
  margin-top: 16px;
}
.hoja h2 {
  margin-bottom: 12px;
  font-size: 1.1rem;
}
.mis-pedidos {
  display: grid;
  gap: 8px;
  padding: 0;
  list-style: none;
}
.mis-pedidos a {
  display: flex;
  justify-content: space-between;
  padding: 18px 20px;
  background: var(--blanco);
  text-decoration: none;
}
