/* Tío Mayoreo. Mismo acomodo que donmayoreo.com (encabezado negro, portada con billetes, franjas por colección),
   con su propia paleta: morado en lugar de verde.
   Tipografías: Poppins (OFL, static/fonts/LICENCIA-poppins.txt) para el texto y la monoespaciada del sistema
   para los títulos, igual que la tienda. */

@font-face { font-family: "Poppins"; font-style: normal; font-weight: 400; font-display: swap; src: url("/fonts/poppins-400.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 600; font-display: swap; src: url("/fonts/poppins-600.ttf") format("truetype"); }
@font-face { font-family: "Poppins"; font-style: normal; font-weight: 700; font-display: swap; src: url("/fonts/poppins-700.ttf") format("truetype"); }

:root {
  /* Paleta de Tío Mayoreo. Todo color de la marca vive aquí. */
  --negro: #0A0A0A;
  --tinta: #111111;
  --tinta-suave: #5B5966;
  --linea: #E6E3EC;
  --foto: #F5F4F7;
  --blanco: #FFFFFF;
  --morado: #6D28D9;          /* botón principal (en la tienda: verde) */
  --morado-hondo: #4C1D95;
  --lila: #C4B5FD;            /* íconos sobre negro */
  --lila-claro: #F4F0FF;
  --brillo: #A78BFA;
  --naranja: #C2410C;         /* listón "Nuevo" y lugar en "Lo más vendido" */
  --sol: #FDBA2C;
  --fuego: #F2551F;
  --miel: #EBDDFF;            /* franjas: en la tienda amarillo, azul marino y rosa */
  --noche: #24104F;
  --negra: #0B0710;
  --durazno: #FFE6D3;
  --velo: rgba(10, 10, 10, .55);
  /* El arte de la portada es el de la tienda, girado de verde a morado. */
  --giro-heroe: hue-rotate(150deg) saturate(1.15);

  --mono: "SF Mono", Menlo, Consolas, Monaco, "Liberation Mono", "Lucida Console", monospace;
  --sans: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --titulo: var(--mono);
  --texto: var(--sans);
  --titulo-peso: 400;
  --titulo-ancho: .62;     /* ancho medio de una letra de títulos, en em. probar_navegador.mjs lo mide */
  --titular-letras: 7;
  --marca-letras: 11;

  --ancho-max: 80rem;
  --margen: 1rem;
  --radio: 1rem;
  --alto-barra: 4rem;
  --alto-resumen: 0px;
}
@media (min-width: 48rem) { :root { --margen: 2rem; --alto-barra: 4.5rem; } }

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--alto-barra) + .5rem); }
/* Con la barra fija del carrito abajo, lo que se enfoca con Tab no queda debajo de ella. */
html:has(body.con-resumen) { scroll-padding-bottom: calc(var(--alto-resumen) + 1rem); }
body { margin: 0; background: var(--blanco); color: var(--tinta); font: 400 .875rem/1.4 var(--texto); overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input { font: inherit; color: inherit; }
h1, h2, h3, p, ul, ol, dl, dd { margin: 0; }
ul, ol { padding: 0; list-style: none; }
s { color: var(--tinta-suave); }
.ancho { width: 100%; max-width: var(--ancho-max); margin: 0 auto; padding: 0 var(--margen); }
.oculto { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.sin-corte { white-space: nowrap; }
:focus-visible { outline: 3px solid var(--brillo); outline-offset: 2px; }
.saltar { position: absolute; left: .5rem; top: -4rem; z-index: 100; background: var(--blanco); color: var(--tinta); padding: .6rem 1rem; border-radius: .5rem; }
.saltar:focus { top: .5rem; }
.sin-js { margin: 0; padding: .75rem var(--margen); background: var(--lila-claro); text-align: center; }
[hidden] { display: none !important; }

/* ---------- Botones ---------- */
.boton {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 2.75rem; padding: .7rem 1.5rem; border: 1px solid var(--tinta); border-radius: 999px;
  background: var(--tinta); color: var(--blanco); font-weight: 500; text-decoration: none; cursor: pointer;
  transition: background-color .15s, color .15s, transform .1s;
}
.boton:hover { background: #2A2A2A; }
.boton:active { transform: scale(.98); }
.boton--marca { background: var(--morado); border-color: var(--morado); min-width: 14.5rem; min-height: 3.1rem; }
.boton--marca:hover { background: var(--morado-hondo); }
.boton--linea { background: transparent; color: var(--tinta); border-color: var(--linea); }
.boton--linea:hover { background: var(--lila-claro); }
.boton--claro { background: var(--blanco); color: var(--tinta); border-color: var(--blanco); }
.boton--claro:hover { background: var(--lila-claro); }
.boton--grande { min-height: 3.25rem; padding-inline: 2rem; }
.boton--brillo { background: linear-gradient(90deg, #8B5CF6, #C4B5FD); border: 0; color: var(--negro); font-weight: 700; width: 100%; min-height: 3rem; box-shadow: 0 0 24px rgba(167, 139, 250, .35); }
.boton--brillo:hover { background: linear-gradient(90deg, #A78BFA, #DDD6FE); }
.boton[aria-disabled="true"] { opacity: .45; cursor: not-allowed; }

.icono-boton {
  display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; padding: 0;
  background: none; color: var(--blanco); cursor: pointer; border-radius: 999px; position: relative; text-decoration: none;
}
.icono-boton svg { width: 1.45rem; height: 1.45rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.icono-boton:hover { background: rgba(255, 255, 255, .1); }

/* ---------- Logo (texto y CSS) ---------- */
.logo { display: inline-flex; align-items: center; gap: .35em; font: 700 1rem/1 var(--sans); white-space: nowrap; }
.logo__sello {
  display: grid; place-items: center; width: 2.1em; height: 2.1em; font-size: 1.05em; letter-spacing: -.02em;
  background: #F7F2E6; color: var(--tinta); border: .14em solid var(--tinta); border-radius: .2em;
  box-shadow: .18em .18em 0 var(--fuego); transform: rotate(-4deg);
}
.logo__letras { display: flex; flex-direction: column; gap: .12em; }
.logo__tio { color: var(--blanco); font-size: 1.15em; letter-spacing: .03em; padding-left: .12em; }
.logo__mayoreo {
  color: var(--tinta); font-size: .82em; letter-spacing: .05em; padding: .18em 1.9em .14em .35em;
  background: linear-gradient(105deg, var(--brillo) 0 76%, transparent 76% 78%, var(--sol) 78% 86%, transparent 86% 88%, var(--fuego) 88% 96%, transparent 96%);
}

/* ---------- Encabezado ---------- */
.barra { position: sticky; top: 0; z-index: 30; background: var(--negro); color: var(--blanco); border-bottom: 1px solid rgba(255, 255, 255, .08); }
.barra__dentro { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: var(--alto-barra); }
.barra__izq { display: flex; align-items: center; gap: .1rem; margin-left: -.6rem; }
.barra__der { display: flex; align-items: center; justify-content: flex-end; gap: .1rem; margin-right: -.6rem; }
.barra__marca { text-decoration: none; display: block; font-size: .92rem; }
.barra__nav { display: none; }
.barra__cuenta {
  position: absolute; top: .2rem; right: .1rem; min-width: 1.15rem; height: 1.15rem; padding: 0 .3rem; border-radius: 999px;
  background: var(--blanco); color: var(--tinta); font-size: .68rem; font-weight: 700; line-height: 1.15rem; text-align: center;
}
.icono-boton--wa { display: none; }
@media (min-width: 64rem) {
  .barra__marca { font-size: 1.05rem; }
  .barra__nav { display: flex; gap: 1.25rem; margin-left: 1rem; }
  .barra__nav a { text-decoration: none; padding: .5rem 0; font-size: .875rem; }
  .barra__nav a:hover { text-decoration: underline; text-underline-offset: .3rem; }
  .menu { display: none; }
  .barra__nav { order: -1; margin: 0 1rem 0 0; }
  .barra__izq { margin-left: 0; }
  .icono-boton--wa { display: inline-grid; }
}

.menu summary { list-style: none; }
.menu summary::-webkit-details-marker { display: none; }
.menu__panel {
  position: absolute; left: 0; right: 0; top: var(--alto-barra); max-height: calc(100dvh - var(--alto-barra)); overflow-y: auto;
  background: var(--negro); border-top: 1px solid rgba(255, 255, 255, .08); padding: .5rem var(--margen) 1.5rem;
  display: flex; flex-direction: column; box-shadow: 0 20px 40px rgba(0, 0, 0, .4);
}
.menu__panel a { color: var(--blanco); text-decoration: none; padding: .85rem 0; border-bottom: 1px solid rgba(255, 255, 255, .08); font-size: 1rem; }
.menu__panel a:hover { color: var(--lila); }

/* ---------- Portada ---------- */
.heroe { position: relative; background: var(--negro); color: var(--blanco); overflow: hidden; isolation: isolate; }
.heroe__fondo { position: absolute; inset: 0; z-index: -1; }
.heroe__fondo img { width: 100%; height: 100%; object-fit: cover; filter: var(--giro-heroe); }
.heroe__texto { min-height: 31rem; display: flex; flex-direction: column; align-items: center; justify-content: center; text-align: center; padding-block: 4.5rem; }
.portada__titulo {
  font: var(--titulo-peso) clamp(2.6rem, 8vw + 1rem, 5rem)/1.1 var(--titulo); letter-spacing: -.01em;
  max-width: 11em; margin-bottom: 1.25rem; text-wrap: balance;
}
.heroe__texto p { font-size: 1.1rem; line-height: 1.35; max-width: 17rem; text-wrap: balance; }
.heroe__texto p + p { margin-top: .3rem; }
.heroe__texto .boton { margin-top: 1.6rem; }
@media (min-width: 48rem) {
  .heroe__texto { min-height: 33rem; }
  .heroe__texto p { max-width: none; font-size: 1rem; }
}

/* ---------- Cinta de confianza ---------- */
.confianza { background: var(--negro); border-block: 1px solid rgba(167, 139, 250, .15); overflow: hidden; padding: .85rem 0; color: var(--blanco); }
.confianza__pista { display: flex; width: max-content; animation: cinta 40s linear infinite; }
.confianza__lista { display: flex; }
.confianza__lista li { display: flex; align-items: center; gap: .75rem; padding: 0 1.1rem; white-space: nowrap; font-size: .69rem; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; }
.confianza__icono { display: grid; place-items: center; width: 1.9rem; height: 1.9rem; border-radius: 50%; background: rgba(167, 139, 250, .12); box-shadow: 0 0 12px rgba(167, 139, 250, .2); }
.confianza__icono svg { width: 1.05rem; height: 1.05rem; fill: none; stroke: var(--lila); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
@keyframes cinta { to { transform: translateX(-50%); } }
@media (min-width: 48rem) { .confianza__lista li { font-size: .8rem; padding: 0 1.9rem; } .confianza__icono { width: 2.1rem; height: 2.1rem; } }
@media (prefers-reduced-motion: reduce) {
  .confianza { overflow-x: auto; }
  .confianza__pista { animation: none; }
  .confianza__lista[aria-hidden="true"] { display: none; }
}

/* ---------- Franjas ---------- */
.franja { padding: 2.5rem 0; }
.franja--blanca { background: var(--blanco); }
.franja--miel { background: var(--miel); }
.franja--durazno { background: var(--durazno); }
.franja--noche { background: var(--noche); color: var(--blanco); }
.franja--negra { background: var(--negra); color: var(--blanco); }
.franja--noche s, .franja--negra s { color: rgba(255, 255, 255, .72); }
.franja__cabeza { display: flex; align-items: baseline; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.franja__titulo { font: 400 1.6rem/1.2 var(--texto); }
.franja__todo { flex: none; font-size: .875rem; text-underline-offset: .25rem; padding: .6rem 0; }
@media (min-width: 48rem) { .franja { padding: 3.25rem 0; } .franja__titulo { font-size: 1.9rem; } }

.carrusel {
  display: grid; grid-auto-flow: column; grid-auto-columns: 62%; gap: 1rem;
  overflow-x: auto; overscroll-behavior-x: contain; scroll-snap-type: x mandatory; scroll-padding-inline: var(--margen);
  padding: 0 var(--margen) .75rem; scrollbar-width: thin;
}
.carrusel > * { scroll-snap-align: start; }
@media (min-width: 48rem) { .carrusel { grid-auto-columns: calc((100% - 2 * var(--margen) - 3.2rem) / 4.2); } }
@media (min-width: 80rem) {
  .carrusel { padding-inline: max(var(--margen), calc((100vw - var(--ancho-max)) / 2 + var(--margen))); grid-auto-columns: 17rem; }
}

/* ---------- Tarjeta ---------- */
.tarjeta { position: relative; min-width: 0; }
.tarjeta__foto { position: relative; overflow: hidden; background: var(--blanco); aspect-ratio: 1; }
.tarjeta__imagen, .tarjeta__imagen img { display: block; width: 100%; height: 100%; }
.tarjeta__imagen img { object-fit: contain; }
.tarjeta__sin-foto { display: grid; place-items: center; height: 100%; background: var(--lila-claro); color: var(--morado-hondo); font: 700 1rem var(--sans); text-align: center; padding: 1rem; }
.tarjeta__nombre { font: 400 .875rem/1.35 var(--texto); margin-top: .75rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.tarjeta__nombre a { text-decoration: none; }
.tarjeta__nombre a:hover { text-decoration: underline; text-underline-offset: .2rem; }
.tarjeta__precio { margin-top: .25rem; font-size: .95rem; }
.tarjeta__precio s { font-size: .875rem; margin-right: .15rem; }
.tarjeta__desde { font-size: .8rem; }
.tarjeta__unidad { margin-top: .15rem; font-size: .78rem; color: var(--tinta-suave); }
.franja--noche .tarjeta__unidad, .franja--negra .tarjeta__unidad { color: rgba(255, 255, 255, .75); }
.tarjeta--agotada .tarjeta__imagen img { opacity: .5; }

.tarjeta__liston {
  position: absolute; top: 1.05rem; left: -2.6rem; width: 9.5rem; padding: .28rem 0; transform: rotate(-45deg);
  background: var(--morado); color: var(--blanco); text-align: center; font-size: .66rem; font-weight: 700;
  letter-spacing: .08em; text-transform: uppercase; pointer-events: none;
}
.tarjeta__liston--nuevo { background: var(--naranja); }
.tarjeta__chip { position: absolute; top: .55rem; right: .55rem; background: var(--tinta); color: var(--blanco); font-size: .75rem; padding: .2rem .5rem; pointer-events: none; }
.tarjeta__chip--oscuro { right: auto; left: .55rem; }

/* Agregar desde la tarjeta: botón redondo con la bolsa, como en la tienda */
.control--icono { position: absolute; right: .6rem; bottom: .6rem; z-index: 2; }
.control--icono .boton--agregar {
  width: 2.6rem; height: 2.6rem; min-height: 0; padding: 0; border-radius: 50%;
  background: var(--blanco); color: var(--tinta); border: 1px solid #D9D6DF; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.control--icono .boton--agregar:hover { background: var(--lila-claro); }
.control--icono .boton--agregar svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.control--icono .contador { background: var(--blanco); box-shadow: 0 2px 8px rgba(0, 0, 0, .12); }
.control--icono .control__agotada { display: none; }
.tarjeta__elegir {
  position: absolute; right: .6rem; bottom: .6rem; z-index: 2; display: grid; place-items: center;
  width: 2.6rem; height: 2.6rem; border-radius: 50%; background: var(--blanco); color: var(--tinta);
  border: 1px solid #D9D6DF; box-shadow: 0 2px 8px rgba(0, 0, 0, .08);
}
.tarjeta__elegir:hover { background: var(--lila-claro); }
.tarjeta__elegir svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }

/* "Lo más vendido HOY!" */
.vendidos { padding-top: 2.25rem; }
.vendidos__titulo { font: var(--titulo-peso) 1.4rem/1.1 var(--titulo); }
.vendidos__bajada { margin: .4rem 0 1.4rem; color: var(--tinta-suave); font-size: .875rem; }
.carrusel--vendidos { grid-auto-columns: 46%; }
@media (min-width: 48rem) {
  .vendidos__titulo { font-size: 2rem; }
  .carrusel--vendidos { grid-auto-columns: calc((100% - 2 * var(--margen) - 3rem) / 4); }
}
@media (min-width: 80rem) { .carrusel--vendidos { grid-auto-columns: calc((var(--ancho-max) - 2 * var(--margen) - 3rem) / 4); } }
.tarjeta--rango .tarjeta__foto { background: var(--foto); border-radius: .5rem; }
.tarjeta--rango .tarjeta__imagen img { mix-blend-mode: multiply; }
.tarjeta--rango .tarjeta__nombre { font: 400 1rem/1.3 var(--titulo); }
.tarjeta--rango .tarjeta__precio { font-weight: 700; }
.tarjeta__rango {
  position: absolute; top: .55rem; left: .55rem; display: grid; place-items: center; width: 2.3rem; height: 2.3rem;
  border-radius: 50%; background: var(--naranja); color: var(--blanco); font-weight: 700; font-size: .95rem; pointer-events: none;
}
.tarjeta--rango .tarjeta__chip--oscuro { left: 3.2rem; top: .9rem; border-radius: 999px; font-weight: 600; }

/* ---------- ¿Qué quieres revender hoy? ---------- */
.accesos { padding: 2rem 0; background: linear-gradient(180deg, #F7F4FF, #EFEAFB 50%, #F7F4FF); }
.accesos__caja { background: var(--blanco); border-radius: 1.5rem; padding: 1.75rem 1rem; text-align: center; box-shadow: 0 10px 30px rgba(76, 29, 149, .08); }
.accesos__ceja { color: var(--morado); font-weight: 700; font-size: .75rem; letter-spacing: .12em; text-transform: uppercase; }
.accesos__titulo { font: 700 1.2rem/1.25 var(--titulo); margin: .4rem 0 1.25rem; }
.accesos__lista { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; }
.accesos__lista a {
  display: inline-flex; align-items: center; gap: .55rem; min-height: 2.9rem; padding: .35rem 1rem .35rem .45rem;
  border-radius: 999px; background: var(--blanco); border: 1px solid #EEEAF4; box-shadow: 0 4px 14px rgba(0, 0, 0, .06);
  text-decoration: none; font-size: .875rem;
}
.accesos__lista a:hover { border-color: var(--brillo); }
.accesos__lista img { width: 1.9rem; height: 1.9rem; object-fit: contain; }
@media (min-width: 48rem) { .accesos { padding: 3rem 0; } .accesos__titulo { font-size: 1.6rem; } }

/* ---------- Colecciones y búsqueda ---------- */
.titulo { font: var(--titulo-peso) clamp(1.8rem, 4vw + 1rem, 2.75rem)/1.1 var(--titulo); }
.bajada { color: var(--tinta-suave); margin: .6rem 0 1.75rem; font-size: .95rem; }
.migas { font-size: .8rem; color: var(--tinta-suave); margin-bottom: .75rem; }
.migas a { color: inherit; }
.rejilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem .9rem; }
@media (min-width: 48rem) { .rejilla { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.25rem 1.25rem; } }
@media (min-width: 64rem) { .rejilla { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.catalogo__nota { margin-top: 2rem; font-size: .8rem; color: var(--tinta-suave); }
.colecciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; }
@media (min-width: 48rem) { .colecciones { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.colecciones__tarjeta { display: flex; flex-direction: column; gap: .2rem; text-decoration: none; }
.colecciones__foto { display: block; aspect-ratio: 1; background: var(--foto); border-radius: .75rem; overflow: hidden; margin-bottom: .5rem; }
.colecciones__foto img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.colecciones__nombre { font-weight: 600; }
.colecciones__cuenta { font-size: .8rem; color: var(--tinta-suave); }
.buscador input { width: 100%; min-height: 3.25rem; padding: .75rem 1.25rem; border: 1px solid #CFCBD8; border-radius: 999px; font-size: 1rem; margin-top: 1.25rem; background: var(--blanco); }
.buscable { min-width: 0; }
.perdida { padding: 5rem 0; text-align: center; }
.perdida .bajada { max-width: 32rem; margin-inline: auto; }

/* ---------- Ficha de producto ---------- */
.ficha { padding-bottom: 2rem; }
.ficha__rejilla { padding: 0; }
.ficha__galeria { min-width: 0; }
.galeria { display: flex; align-items: flex-start; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; background: var(--blanco); }
.galeria::-webkit-scrollbar { display: none; }
.galeria img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; scroll-snap-align: start; }
.galeria--vacia { aspect-ratio: 1; }
.miniaturas { display: flex; gap: .5rem; overflow-x: auto; padding: .75rem var(--margen); }
.miniaturas button { flex: none; width: 3.5rem; height: 3.5rem; padding: 0; border: 1px solid var(--linea); background: var(--blanco); cursor: pointer; }
.miniaturas button[aria-current="true"] { border: 2px solid var(--tinta); }
.miniaturas img { width: 100%; height: 100%; object-fit: contain; }
.ficha__datos { padding: 1rem var(--margen) 0; min-width: 0; }
.ficha__sello { display: inline-block; margin-bottom: .6rem; padding: .2rem .65rem; border-radius: 999px; background: var(--morado); color: var(--blanco); font-size: .75rem; font-weight: 600; }
.ficha__sello--nuevo { background: var(--naranja); }
.ficha__sello--agotado { background: var(--tinta); }
.ficha__nombre { font: var(--titulo-peso) 2.1rem/1.15 var(--titulo); overflow-wrap: anywhere; }
.ficha__nombre--largo { font-size: 1.55rem; }
.ficha__nombre--muy-largo { font-size: 1.2rem; }
.ficha__aviso { margin-top: .75rem; padding: .6rem .8rem; border-left: 3px solid var(--naranja); background: #FFF4EC; font-size: .85rem; }
.ficha__contenido { margin-top: .4rem; color: var(--tinta-suave); }
.ficha__precio { margin-top: 1rem; font-size: 1.6rem; }
.ficha__precio s { font-size: 1.1rem; }
.ficha__desde { font-size: 1rem; }
.ficha__unidad { color: var(--tinta-suave); font-size: .82rem; margin-top: .15rem; }
.ficha__subtitulo { font: 600 1rem/1.3 var(--texto); margin-top: 1.5rem; }
.ficha__compra { margin-top: 1.5rem; }
.ficha__compra .control, .ficha__compra .boton--agregar { width: 100%; }
.ficha__compra .boton--agregar { min-height: 3.25rem; font-size: .95rem; }
.ficha__compra .contador { width: 100%; min-height: 3.25rem; justify-content: space-between; }
.ficha__ver { width: 100%; min-height: 3.25rem; margin-top: .75rem; background: #EDEBF1; border-color: #EDEBF1; }
.ficha__ver:hover { background: #E2DEEA; }
@media (min-width: 60rem) {
  .ficha { padding-top: 2.5rem; }
  .ficha__rejilla { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; padding: 0 var(--margen); align-items: start; }
  .ficha__galeria { position: sticky; top: calc(var(--alto-barra) + 1.5rem); }
  .miniaturas { padding-inline: 0; }
  .ficha__datos { padding: 0; }
  .ficha__nombre { font-size: 2.6rem; }
  .ficha__nombre--largo { font-size: 1.9rem; }
  .ficha__nombre--muy-largo { font-size: 1.5rem; }
}

.volumen { margin-top: .75rem; border-top: 1px solid var(--linea); }
.volumen__fila { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding: .7rem 0; border-bottom: 1px solid var(--linea); }
.volumen__que { min-width: 0; }
.volumen__etiqueta { font-weight: 600; overflow-wrap: anywhere; }
.volumen__detalle { color: var(--tinta-suave); font-size: .82rem; }
.volumen__detalle .precio { color: var(--tinta); font-weight: 600; }
.volumen__fila--agotada .volumen__etiqueta { color: var(--tinta-suave); }
.volumen .control { flex: none; }
.volumen--opciones .volumen__etiqueta { font-weight: 500; }
.preguntas__inicio { padding-bottom: 1rem; }
.preguntas__inicio .bajada { margin-bottom: 0; }
.volumen .boton--agregar { min-height: 2.75rem; padding: .5rem 1.1rem; }

.pagos { margin-top: 1.75rem; }
.pagos__titulo { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta-suave); margin-bottom: .6rem; }
.pagos__lista { display: flex; flex-wrap: wrap; gap: .6rem; }
.pagos__lista li { display: inline-flex; align-items: center; gap: .55rem; padding: .45rem .9rem .45rem .45rem; border: 1px solid var(--linea); border-radius: 999px; font-weight: 600; font-size: .85rem; }
.pagos__marca { display: grid; place-items: center; min-width: 2.6rem; height: 1.7rem; padding: 0 .35rem; border-radius: .3rem; font-size: .68rem; font-weight: 700; letter-spacing: .02em; }
.pagos__marca--spei { background: var(--lila-claro); color: var(--morado-hondo); }
.pagos__marca--oxxo { background: #FFE8E3; color: #A1120B; }

.descripcion {
  margin-top: 1.75rem; padding: 1.4rem 1.25rem; border-radius: 1.25rem;
  background: linear-gradient(180deg, #EFE8FF 0%, #F8F5FF 55%, var(--blanco) 100%); border: 1px solid #ECE6FA;
  line-height: 1.6; font-size: .92rem;
}
.descripcion h2 { font: 700 1rem/1.3 var(--texto); margin: 1.25rem 0 .4rem; }
.descripcion > :first-child { margin-top: 0; }
.descripcion p + p { margin-top: .6rem; }
.descripcion ul { list-style: disc; padding-left: 1.2rem; }
.descripcion li + li { margin-top: .25rem; }
.descripcion__precaucion { padding: .6rem .8rem; background: var(--blanco); border-left: 3px solid var(--naranja); }

/* ---------- Contador (agregar / restar) ---------- */
.contador { display: inline-flex; align-items: center; border: 1px solid #CFCBD8; border-radius: 999px; background: var(--blanco); color: var(--tinta); }
.contador button { width: 2.75rem; height: 2.75rem; border: 0; background: none; font-size: 1.25rem; cursor: pointer; border-radius: 999px; }
.contador button:hover { background: var(--lila-claro); }
.contador output { min-width: 1.75rem; text-align: center; font-weight: 600; }
.control__agotada { color: var(--tinta-suave); font-size: .85rem; padding: .6rem 0; }
.ficha__compra .control__agotada { text-align: center; border: 1px solid var(--linea); border-radius: 999px; padding: .9rem; }

/* ---------- Pie ---------- */
.pie { background: radial-gradient(120% 60% at 0% 0%, rgba(109, 40, 217, .28), transparent 60%), #181717; color: #E9E6EF; padding: 3rem 0 calc(2rem + var(--alto-resumen)); }
.pie__club { max-width: 34rem; }
.pie__ceja { color: var(--lila); font-size: .72rem; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; margin-bottom: .5rem; }
.pie__titulo { font: 700 1.75rem/1.15 var(--titulo); color: var(--blanco); margin-bottom: .75rem; }
.pie__club > p:not(.pie__ceja) { color: #BDB8C8; margin-bottom: 1.25rem; }
.pie__beneficios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; margin: 2.25rem 0; padding: 1.5rem 0; border-block: 1px solid rgba(255, 255, 255, .1); font-weight: 600; font-size: .82rem; }
.pie__beneficios li { display: flex; align-items: center; gap: .65rem; }
.pie__icono { flex: none; display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: rgba(167, 139, 250, .15); }
.pie__icono svg { width: 1rem; height: 1rem; fill: none; stroke: var(--lila); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.pie__rejilla { display: grid; gap: 2rem; }
.pie__logo { display: inline-block; font-size: 1.5rem; text-decoration: none; margin-bottom: 1rem; }
.pie__nota { color: #BDB8C8; max-width: 24rem; }
.pie nav { display: flex; flex-direction: column; }
.pie nav a { color: var(--blanco); text-decoration: none; padding: .45rem 0; font-size: .95rem; }
.pie nav a:hover { color: var(--lila); }
.pie__legal { margin-top: 1.25rem; color: #A9A3B6; font-size: .78rem; }
.pie__legal + .pie__legal { margin-top: .35rem; }
.pie__marca { color: var(--blanco); }
@media (min-width: 48rem) {
  .pie__beneficios { grid-template-columns: repeat(3, auto); justify-content: start; gap: 2.5rem; }
  .pie__rejilla { grid-template-columns: 2fr 1fr 1fr; }
}

/* ---------- Botón flotante de WhatsApp ---------- */
.flotante-wa {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 25;
  display: grid; place-items: center; width: 3.6rem; height: 3.6rem; border-radius: 50%;
  background: #25D366; color: var(--blanco); box-shadow: 0 6px 20px rgba(0, 0, 0, .25), 0 0 0 6px rgba(37, 211, 102, .25);
}
.flotante-wa svg { width: 1.8rem; height: 1.8rem; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
body.con-resumen .flotante-wa { bottom: calc(1rem + var(--alto-resumen)); }

/* ---------- Barra fija del carrito ---------- */
.resumen { position: fixed; left: 0; right: 0; bottom: 0; z-index: 26; background: var(--negro); color: var(--blanco); padding-bottom: env(safe-area-inset-bottom); box-shadow: 0 -6px 20px rgba(0, 0, 0, .2); }
.resumen__avance { height: 4px; background: rgba(255, 255, 255, .15); }
.resumen__avance span { display: block; height: 100%; width: 0; background: var(--brillo); transition: width .3s; }
.resumen__dentro { display: flex; align-items: center; justify-content: space-between; gap: .75rem; padding-block: .6rem; }
.resumen__texto { display: flex; flex-direction: column; min-width: 0; }
.resumen__total { font-weight: 700; }
.resumen__estado { font-size: .78rem; color: #D6D0E2; }
.resumen .boton { flex: none; }
body.con-resumen .pie { padding-bottom: calc(2rem + var(--alto-resumen)); }
@media (prefers-reduced-motion: reduce) { .resumen__avance span { transition: none; } }

/* ---------- Carrito (hoja) ---------- */
.pedido:not([open]) { display: none; }
.pedido {
  position: fixed; inset: 0 0 0 auto; width: min(26rem, 100%); height: 100%; max-height: 100%; max-width: 100%;
  margin: 0 0 0 auto; padding: 0; border: 0; background: var(--blanco); color: var(--tinta);
}
.pedido::backdrop { background: rgba(10, 10, 10, .55); }
html.hoja-abierta { overflow: hidden; }
.pedido__hoja { display: flex; flex-direction: column; height: 100%; }
.pedido__cabeza { display: flex; align-items: center; justify-content: space-between; padding: .5rem .5rem .5rem 1.25rem; border-bottom: 1px solid var(--linea); }
.pedido__titulo { font: var(--titulo-peso) 1.4rem/1.2 var(--titulo); }
.pedido__cerrar { display: grid; place-items: center; width: 2.75rem; height: 2.75rem; border: 0; background: none; cursor: pointer; border-radius: 50%; }
.pedido__cerrar:hover { background: var(--lila-claro); }
.pedido__cerrar svg { width: 1.3rem; height: 1.3rem; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.pedido__cambio { margin: .75rem 1.25rem 0; padding: .6rem .8rem; background: #FFF4EC; border-left: 3px solid var(--naranja); font-size: .85rem; }
.pedido__vacio { padding: 2.5rem 1.25rem; text-align: center; display: flex; flex-direction: column; gap: 1rem; }
.pedido__vacio-titulo { font: var(--titulo-peso) 1.2rem/1.3 var(--titulo); }
.pedido__lleno { display: flex; flex-direction: column; flex: 1; min-height: 0; }
.pedido__cuerpo { flex: 1; min-height: 0; overflow-y: auto; padding: .75rem 1.25rem; }
.pedido__precaucion { font-size: .78rem; color: var(--tinta-suave); padding: .5rem .7rem; background: var(--lila-claro); border-radius: .5rem; margin-bottom: .5rem; }
.linea { display: grid; grid-template-columns: 4rem minmax(0, 1fr); column-gap: .85rem; padding: .85rem 0; border-bottom: 1px solid var(--linea); }
.linea__foto { grid-row: span 4; width: 4rem; height: 4rem; object-fit: contain; background: var(--foto); border-radius: .4rem; }
.linea__nombre { font-weight: 600; font-size: .88rem; line-height: 1.3; }
.linea__nombre a { text-decoration: none; }
.linea__detalle { font-size: .78rem; color: var(--tinta-suave); margin-top: .15rem; }
.linea__abajo { display: flex; align-items: center; justify-content: space-between; gap: .5rem; margin-top: .45rem; }
.linea__total { font-weight: 700; }
.linea__quitar { justify-self: start; background: none; border: 0; padding: .55rem 0; color: var(--tinta-suave); font-size: .8rem; text-decoration: underline; cursor: pointer; min-height: 2.75rem; }
.pedido__pie { border-top: 1px solid var(--linea); padding: .85rem 1.25rem calc(.85rem + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: .5rem; }
.pedido__cuentas { display: grid; gap: .15rem; font-size: .85rem; }
.pedido__cuentas div { display: flex; justify-content: space-between; gap: 1rem; }
.pedido__cuentas dt { color: var(--tinta-suave); }
.pedido__cuentas div:first-child { font-size: 1rem; font-weight: 700; }
.pedido__cuentas div:first-child dt { color: var(--tinta); }
.pedido__minimo { font-size: .82rem; color: var(--morado-hondo); font-weight: 600; }
.pedido__minimo--aviso { color: var(--naranja); }
.boton--pagar { width: 100%; min-height: 3.1rem; }
.pedido__nota { font-size: .75rem; color: var(--tinta-suave); text-align: center; }
.pedido__pie .boton--linea { width: 100%; }
.pedido__vaciar { align-self: center; background: none; border: 0; color: var(--tinta-suave); font-size: .8rem; text-decoration: underline; cursor: pointer; min-height: 2.75rem; padding: 0 .75rem; }
@media (max-height: 34rem) {
  .pedido__pie { gap: .35rem; padding-block: .5rem; }
  .pedido__nota { display: none; }
}

/* ---------- Preguntas y pasos (/preguntas/) ---------- */
.pasos { background: var(--negra); color: var(--blanco); padding: 3rem 0; }
.pasos .titulo { margin-bottom: 1.75rem; }
.pasos__lista { display: grid; gap: 1.25rem; counter-reset: paso; }
.pasos__lista li { counter-increment: paso; padding: 1.25rem; border: 1px solid rgba(255, 255, 255, .14); border-radius: var(--radio); }
.pasos__lista li::before { content: counter(paso); display: grid; place-items: center; width: 2rem; height: 2rem; border-radius: 50%; background: var(--brillo); color: var(--negro); font-weight: 700; margin-bottom: .75rem; }
.pasos__lista h3 { font-size: 1.05rem; margin-bottom: .35rem; }
.pasos__lista p { color: #D6D0E2; }
@media (min-width: 48rem) { .pasos__lista { grid-template-columns: repeat(3, 1fr); } }
.preguntas { padding: 3rem 0; background: var(--lila-claro); }
.preguntas__lista { margin-top: 1.5rem; display: grid; gap: .75rem; max-width: 48rem; }
.preguntas details { background: var(--blanco); border-radius: .75rem; border: 1px solid #E9E3F7; }
.preguntas summary { cursor: pointer; padding: 1rem 1.25rem; font-weight: 600; list-style-position: outside; min-height: 2.75rem; }
.preguntas details > p { padding: 0 1.25rem 1rem; color: #3C3A44; }
.preguntas details > p + p { padding-top: 0; }

/* Las fotos de producto de la ficha y los carruseles no se animan: nada de movimiento que no responda a un toque. */
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } .boton { transition: none; } }
