/* =========================================================
   ESTILOS — Sonia la gallega
   Concepto: blanco y crema luminosos, morado del logo en botones
   y títulos, y toques coral. Fotos enmarcadas
   en arcos (motivo propio de la marca), serif italiana elegante
   para titulares y notas manuscritas para el toque cercano.
   Los colores se cambian todos desde aquí arriba.
   ========================================================= */

/* Paleta: ~65 % blanco/crema · ~25 % lila/morado (marca) · ~10 % coral (alegría) */
:root {
  /* Color — fondos */
  --bg: #fffdfa;             /* blanco cálido (fondo principal) */
  --crema: #faf5ef;          /* crema muy claro (bloques alternos) */
  --foto-fondo: #f4efe9;     /* fondo neutro para fotos de producto */
  --ph-sombra: #e7ddd2;      /* tono de las imágenes provisionales */
  --ph-luz: #fdfaf6;
  /* Color — marca */
  --lila: #efe6f8;           /* lila suave del logo (detalles) */
  --morado: #7a4a9e;         /* morado del logo: botones y títulos */
  --morado-hondo: #5b3480;   /* hover de botones */
  /* Color — alegría */
  --coral: #e5704f;          /* coral cálido: pequeños detalles */
  --coral-suave: #fdebe4;
  /* Color — texto */
  --tinta: #2e2730;
  --gris: #6f6670;
  --linea: #efe7de;
  --sobre-morado: #ffffff;
  --wa: #25d366;
  --sombra: 0 18px 40px -24px rgba(70, 45, 30, .35);

  /* Tipografía */
  --f-display: "Bodoni Moda", "Didot", Georgia, serif;
  --f-texto: "Nunito Sans", "Segoe UI", system-ui, sans-serif;
  --f-mano: "Caveat", "Segoe Print", cursive;

  /* Escala */
  --t-xs: .8125rem;
  --t-s: .9375rem;
  --t-m: 1.0625rem;
  --t-l: clamp(1.5rem, 1.1rem + 1.6vw, 2.25rem);
  --t-xl: clamp(2.35rem, 1.5rem + 3.6vw, 4rem);

  --radio: 18px;
  --ancho: 1180px;
  --gutter: clamp(16px, 4vw, 40px);

  color-scheme: light;
}

@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #171416; --crema: #201c1f; --foto-fondo: #262124; --ph-sombra: #3a3236; --ph-luz: #4a4146;
    --lila: #392c46; --morado: #c6a2e8; --morado-hondo: #d8bdf0;
    --coral: #f2987c; --coral-suave: #3d2620;
    --tinta: #f5efe9; --gris: #bdb3ad; --linea: #332d30; --sobre-morado: #1a1220;
    --sombra: 0 18px 40px -22px rgba(0, 0, 0, .7);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #171416; --crema: #201c1f; --foto-fondo: #262124; --ph-sombra: #3a3236; --ph-luz: #4a4146;
  --lila: #392c46; --morado: #c6a2e8; --morado-hondo: #d8bdf0;
  --coral: #f2987c; --coral-suave: #3d2620;
  --tinta: #f5efe9; --gris: #bdb3ad; --linea: #332d30; --sobre-morado: #1a1220;
  --sombra: 0 18px 40px -22px rgba(0, 0, 0, .7);
  color-scheme: dark;
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 90px; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-size: var(--t-m);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; }
h1, h2, h3 { font-family: var(--f-display); font-weight: 500; line-height: 1.08; margin: 0; text-wrap: balance; }
h2 { font-size: var(--t-l); }
p { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--morado); outline-offset: 3px; border-radius: 6px; }

.antetitulo {
  font-size: var(--t-xs);
  font-weight: 800;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--coral);
}
.nota-mano {
  font-family: var(--f-mano);
  font-size: 1.5rem;
  line-height: 1;
  color: var(--coral);
}

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .4em;
  flex-wrap: wrap;
  min-height: 52px;
  padding: .8rem 1.5rem;
  border-radius: 999px;
  font-weight: 800;
  font-size: var(--t-s);
  letter-spacing: .04em;
  text-decoration: none;
  text-align: center;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform .2s ease, background-color .2s ease, color .2s ease, box-shadow .2s ease;
}
.btn:hover { transform: translateY(-2px); }
.btn--linea { border-color: var(--morado); color: var(--morado); background: transparent; text-transform: uppercase; }
.btn--linea:hover { background: var(--morado); color: var(--sobre-morado); }
.btn--wa {
  background: var(--morado);
  color: var(--sobre-morado);
  box-shadow: var(--sombra);
  font-weight: 600;
  letter-spacing: .01em;
}
.btn--wa strong { font-weight: 800; letter-spacing: .04em; text-transform: uppercase; }
.btn--wa:hover { background: var(--morado-hondo); color: var(--sobre-morado); }
.btn--blanco { background: #fff; color: #4f2b6e; }
.btn--peq { min-height: 44px; padding: .55rem 1.1rem; font-size: var(--t-xs); }

/* ---------- Aviso ---------- */
.aviso {
  background: var(--crema);
  color: var(--gris);
  border-bottom: 1px solid var(--linea);
  text-align: center;
  font-size: var(--t-xs);
  letter-spacing: .03em;
  padding: .55rem var(--gutter);
}

.aviso strong { color: var(--coral); }

/* ---------- Cabecera ---------- */
.cabecera {
  position: sticky;
  top: env(safe-area-inset-top, 0px);
  z-index: 40;
  background: color-mix(in srgb, var(--bg) 88%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--linea);
}
.cabecera__in {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: .7rem var(--gutter);
  display: flex;
  align-items: center;
  gap: 1rem;
}
.marca { display: inline-flex; align-items: baseline; gap: .35rem; text-decoration: none; color: var(--tinta); flex-shrink: 0; }
.marca img { height: 64px; width: auto; display: block; margin: -6px 0; }
.marca--pie img { height: 150px; margin: 0; }
.marca__nombre { font-family: var(--f-display); font-style: italic; font-size: 1.7rem; font-weight: 500; line-height: 1; }
.marca__la { font-family: var(--f-mano); font-size: 1.35rem; color: var(--morado); line-height: 1; }

.menu { display: flex; align-items: center; gap: 1.6rem; margin-left: auto; }
.menu a { text-decoration: none; font-weight: 600; font-size: var(--t-s); color: var(--gris); transition: color .2s; }
.menu a:hover { color: var(--morado); }
.menu .menu__ayuda {
  color: var(--morado);
  background: var(--lila);
  padding: .5rem 1rem;
  border-radius: 999px;
  font-weight: 800;
}
.cabecera__acciones { display: flex; align-items: center; gap: .4rem; }
.carrito-btn {
  position: relative;
  width: 46px; height: 46px;
  display: grid; place-items: center;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: var(--tinta);
  cursor: pointer;
}
.carrito-btn:hover { background: var(--crema); }
.carrito-btn svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linejoin: round; }
.carrito-btn__num {
  position: absolute; top: 4px; right: 2px;
  min-width: 20px; height: 20px; padding: 0 5px;
  border-radius: 999px;
  background: var(--coral); color: #fff;
  font-size: 11px; font-weight: 800; line-height: 20px; text-align: center;
  font-variant-numeric: tabular-nums;
  transition: transform .25s ease;
}
.carrito-btn__num.pop { transform: scale(1.35); }
.hamburguesa { display: none; }

/* ---------- Portada ---------- */
.portada {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(2rem, 5vw, 4.5rem) var(--gutter) clamp(2.5rem, 6vw, 5rem);
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  align-items: center;
  gap: clamp(2rem, 5vw, 4.5rem);
}
.portada__texto { min-width: 0; display: flex; flex-direction: column; gap: 1.2rem; }
.portada__saludo { font-family: var(--f-mano); font-size: 1.9rem; color: var(--morado); line-height: 1; }
.portada__titulo { font-size: var(--t-xl); letter-spacing: -.01em; }
.portada__titulo em { font-style: italic; color: var(--morado); }
.portada__frase { font-size: clamp(1.05rem, 1rem + .4vw, 1.25rem); color: var(--gris); max-width: 34ch; }
.portada__botones { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: .6rem; }
.portada__sellos { list-style: none; padding: 0; margin: .6rem 0 0; display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.portada__sellos li { display: flex; align-items: center; gap: .45rem; font-size: var(--t-xs); font-weight: 700; color: var(--gris); }
.portada__sellos li::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.portada__foto { margin: 0; position: relative; isolation: isolate; justify-self: center; width: min(100%, 440px); }
.portada__foto::before {
  content: ""; position: absolute; z-index: 1;
  top: 6%; right: -4%;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--coral);
  opacity: .9;
}
.portada__foto::after {
  content: ""; position: absolute; z-index: -1;
  inset: 5% -7% -4% 9%;
  border-radius: 999px 999px var(--radio) var(--radio);
  border: 1.5px solid var(--lila);
}
.portada__foto .nota-mano {
  z-index: 2;
  position: absolute; left: -6%; bottom: 9%;
  background: var(--bg);
  padding: .55rem 1rem .65rem;
  border-radius: 999px;
  box-shadow: var(--sombra);
  transform: rotate(-5deg);
  font-size: 1.45rem;
}

/* Arcos para fotos */
.arco {
  position: relative;
  aspect-ratio: 4 / 5;
  max-width: 100%;
  border-radius: 999px 999px var(--radio) var(--radio);
  overflow: hidden;
  background: var(--foto-fondo);
}
.arco img { width: 100%; height: 100%; object-fit: cover; }
.arco--grande { aspect-ratio: 5 / 6.4; }
.arco--grande::after {
  content: "";
  position: absolute; inset: 12px;
  border-radius: 999px 999px calc(var(--radio) - 6px) calc(var(--radio) - 6px);
  border: 1px solid var(--ph-luz);
  pointer-events: none;
}

/* Imágenes provisionales */
.ph {
  width: 100%; height: 100%;
  display: grid; place-items: end center;
  padding-bottom: 12%;
  font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
}
#foto-portada .ph span { display: none; }
.ph span { background: var(--ph-luz); padding: .35rem .8rem; border-radius: 999px; }
.ph--sonia, .ph--b {
  background:
    radial-gradient(circle at 50% 38%, var(--ph-luz) 0 16%, transparent 16.5%),
    radial-gradient(ellipse 46% 40% at 50% 84%, var(--ph-luz) 0 99%, transparent 100%),
    linear-gradient(165deg, var(--foto-fondo), var(--ph-sombra));
}

/* ---------- Bloques ---------- */
.bloque {
  max-width: var(--ancho);
  margin: 0 auto;
  padding: clamp(3rem, 7vw, 5.5rem) var(--gutter);
}
.bloque--suave {
  max-width: none;
  background: var(--crema);
  padding-inline: max(var(--gutter), calc((100% - var(--ancho)) / 2 + var(--gutter)));
}
.bloque__cab { display: flex; flex-direction: column; gap: .6rem; margin-bottom: clamp(1.6rem, 4vw, 2.6rem); max-width: 60ch; }
.bloque__intro { color: var(--gris); }

/* ---------- Productos ---------- */
.productos {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: clamp(.9rem, 2vw, 1.4rem);
}
.prod { display: flex; flex-direction: column; gap: .8rem; min-width: 0; }
.prod__foto {
  position: relative;
  aspect-ratio: 3 / 4;
  border-radius: 999px 999px var(--radio) var(--radio);
  overflow: hidden;
  background: var(--foto-fondo);
  transition: transform .35s ease;
}
.prod:hover .prod__foto { transform: translateY(-4px); }
.prod__foto img { width: 100%; height: 100%; object-fit: cover; }
.prod__ph {
  width: 100%; height: 100%;
  display: grid; place-items: center;
  position: relative;
}
.prod__ph::before {               /* silueta de bote provisional */
  content: "";
  width: 42%; aspect-ratio: 1 / 1.55;
  border-radius: 14px 14px 18px 18px;
  background: linear-gradient(180deg, var(--ph-sombra) 0 18%, var(--ph-luz) 18% 100%);
  box-shadow: 0 22px 30px -20px rgba(70, 45, 30, .45);
}
.prod__ph span {
  position: absolute; bottom: 9%;
  font-size: 10px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase;
  color: var(--gris);
}

.prod__cat { font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--morado); min-height: 1.3em; }
.prod__nombre { font-size: 1.3rem; }
.prod__desc { font-size: var(--t-s); color: var(--gris); }
.prod__pie { margin-top: auto; display: flex; flex-direction: column; gap: .6rem; }
.precio { font-weight: 800; font-size: 1.1rem; font-variant-numeric: tabular-nums; }
.precio--pend { font-weight: 600; font-size: var(--t-s); color: var(--gris); font-style: italic; }
.btn-carrito {
  min-height: 44px;
  border-radius: 999px;
  border: 1.5px solid var(--linea);
  background: var(--bg);
  color: var(--tinta);
  font: 800 var(--t-xs)/1 var(--f-texto);
  letter-spacing: .08em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background .2s, color .2s, border-color .2s;
}
.btn-carrito:hover { background: var(--morado); border-color: var(--morado); color: var(--sobre-morado); }
.prod__info { font-size: var(--t-xs); font-weight: 700; color: var(--morado); text-decoration: none; text-align: center; }
.prod__info:hover { text-decoration: underline; }

/* ---------- Franja ayuda ---------- */
.franja-ayuda {
  position: relative;
  margin: 0 var(--gutter);
  border-radius: calc(var(--radio) + 10px);
  background:
    radial-gradient(circle at 92% 12%, var(--lila) 0 13%, transparent 13.5%),
    radial-gradient(circle at 4% 108%, var(--coral-suave) 0 22%, transparent 22.5%),
    var(--crema);
  border: 1px solid var(--linea);
  color: var(--tinta);
  overflow: hidden;
}
.franja-ayuda__in {
  max-width: 720px;
  margin: 0 auto;
  padding: clamp(2.8rem, 7vw, 4.5rem) clamp(1.2rem, 4vw, 2rem);
  display: flex; flex-direction: column; align-items: center; gap: 1rem;
  text-align: center;
}
.franja-ayuda h2 { font-size: var(--t-xl); }
.franja-ayuda h2 em { font-style: italic; color: var(--morado); }
.franja-ayuda p:not(.nota-mano) { color: var(--gris); max-width: 46ch; }
.franja-ayuda .btn { margin-top: .6rem; }
.franja-ayuda .btn--blanco { background: var(--morado); color: var(--sobre-morado); box-shadow: var(--sombra); }
.franja-ayuda .btn--blanco:hover { background: var(--morado-hondo); }

/* ---------- Promos ---------- */
.promos { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: clamp(.8rem, 2vw, 1.2rem); }
.promo {
  position: relative;
  display: flex; flex-direction: column; gap: .5rem;
  padding: 1.4rem 1.2rem 1.2rem;
  border: 1.5px solid var(--linea);
  border-radius: var(--radio);
  background: var(--bg);
  min-width: 0;
  transition: border-color .2s, transform .2s;
}
.promo:hover { border-color: var(--morado); transform: translateY(-3px); }
.promo__cifra {
  font-family: var(--f-display);
  font-style: italic;
  font-size: 3.4rem;
  line-height: .9;
  color: var(--morado);
}
.promo__cifra small { font-family: var(--f-texto); font-style: normal; font-size: var(--t-xs); font-weight: 800; letter-spacing: .1em; text-transform: uppercase; margin-left: .3rem; }
.promo__nombre { font-family: var(--f-texto); font-size: var(--t-m); font-weight: 800; }
.promo__desc { font-size: var(--t-s); color: var(--gris); }
.promo__etiqueta {
  position: absolute; top: .9rem; right: .9rem;
  background: var(--coral-suave); color: var(--coral);
  font-size: 11px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase;
  padding: .25rem .6rem; border-radius: 999px;
}
.promo__precio { margin-top: auto; padding-top: .6rem; border-top: 1px dashed var(--linea); display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.promo__antes { text-decoration: line-through; color: var(--gris); font-size: var(--t-s); }
.promo .prod__info { text-align: left; }

/* ---------- Razones ---------- */
.razones { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: clamp(1.4rem, 3vw, 2.4rem); }
.razon { display: flex; flex-direction: column; gap: .55rem; min-width: 0; }
.razon__icono {
  width: 52px; height: 52px;
  display: grid; place-items: center;
  border-radius: 50% 50% 14px 14px;
  background: var(--bg);
  color: var(--morado);
  margin-bottom: .3rem;
}
.razon__icono svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.razon > div { display: flex; flex-direction: column; gap: .4rem; }
.razon h3 { font-size: 1.3rem; }
.razon p { color: var(--gris); font-size: var(--t-s); }

/* ---------- Sobre mí ---------- */
.sobre { display: grid; grid-template-columns: .8fr 1.2fr; gap: clamp(2rem, 6vw, 5rem); align-items: center; }
.sobre__foto { margin: 0; width: min(100%, 380px); justify-self: center; }
.sobre__texto { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.sobre__texto h2 { font-size: var(--t-xl); }
#sobre-parrafos { display: flex; flex-direction: column; gap: .9rem; color: var(--gris); max-width: 58ch; }
.firma { font-family: var(--f-mano); font-size: 2.4rem; color: var(--morado); line-height: 1; }
.sobre__botones { display: flex; flex-wrap: wrap; gap: .8rem; }

/* ---------- Pie ---------- */
.pie { background: var(--crema); border-top: 1px solid var(--linea); margin-top: clamp(2rem, 5vw, 4rem); }
.pie__in {
  max-width: var(--ancho); margin: 0 auto;
  padding: clamp(2.5rem, 6vw, 4rem) var(--gutter) 2rem;
  display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: 2rem;
}
.pie__marca { display: flex; flex-direction: column; gap: .8rem; }
.pie__marca p, .pie__col p { color: var(--gris); font-size: var(--t-s); }
.pie__col { display: flex; flex-direction: column; gap: .5rem; }
.pie__col h3 { font-family: var(--f-texto); font-size: var(--t-xs); font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: var(--morado); margin-bottom: .3rem; }
.pie__col a { text-decoration: none; color: var(--gris); font-size: var(--t-s); }
.pie__col a:hover { color: var(--morado); }
.pagos { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: .4rem; }
.pagos li { font-size: var(--t-xs); font-weight: 700; padding: .3rem .7rem; border-radius: 999px; background: var(--bg); border: 1px solid var(--linea); color: var(--tinta); }
.redes { display: flex; gap: .5rem; }
.redes a {
  width: 40px; height: 40px; display: grid; place-items: center;
  border-radius: 50%; background: var(--bg); border: 1px solid var(--linea);
  color: var(--morado); text-decoration: none; transition: background .2s, color .2s;
}
.redes a:hover { background: var(--morado); color: var(--sobre-morado); }
.redes svg { width: 18px; height: 18px; fill: currentColor; }
.pie__legal {
  max-width: var(--ancho); margin: 0 auto;
  padding: 1.2rem var(--gutter) calc(6rem + env(safe-area-inset-bottom, 0px));
  border-top: 1px solid var(--linea);
  font-size: var(--t-xs); color: var(--gris);
}

/* ---------- WhatsApp flotante ---------- */
.wa-flotante {
  position: fixed;
  right: max(16px, env(safe-area-inset-right, 0px));
  bottom: calc(16px + env(safe-area-inset-bottom, 0px));
  z-index: 50;
  display: flex; align-items: center; gap: .5rem;
  height: 58px; padding: 0 1.2rem 0 .9rem;
  border-radius: 999px;
  background: var(--wa); color: #fff;
  text-decoration: none; font-weight: 800; font-size: var(--t-s);
  box-shadow: 0 14px 30px -10px rgba(18, 140, 70, .6);
  transition: transform .2s;
}
.wa-flotante:hover { transform: scale(1.05); }
.wa-flotante svg { width: 32px; height: 32px; fill: #fff; flex-shrink: 0; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(90px + env(safe-area-inset-bottom, 0px));
  transform: translateX(-50%);
  z-index: 60;
  background: var(--tinta); color: var(--bg);
  padding: .75rem 1.2rem; border-radius: 999px;
  font-size: var(--t-s); font-weight: 700;
  box-shadow: var(--sombra);
  max-width: calc(100vw - 32px);
  text-align: center;
}

/* =========================================================
   FASE 2 — catálogo, ficha, promociones, carrito
   ========================================================= */

/* ---------- Comunes ---------- */
.menu a[aria-current="page"] { color: var(--morado); }
.menu a[aria-current="page"]::after { content: ""; display: block; height: 2px; margin-top: 2px; border-radius: 2px; background: var(--coral); }
a.carrito-btn { text-decoration: none; }
.toast a { color: inherit; font-weight: 800; }
.mini-titulo { font-size: var(--t-xs); font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--gris); }
.pendiente { color: var(--gris); font-style: italic; }
.bloque__cab--fila { max-width: none; flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 1rem 2rem; flex-wrap: wrap; }
.bloque__cab--fila > div { display: flex; flex-direction: column; gap: .6rem; max-width: 60ch; }
.enlace-mas { font-weight: 800; font-size: var(--t-s); color: var(--morado); text-decoration: none; white-space: nowrap; }
.enlace-mas:hover { text-decoration: underline; }
.cab-pagina { padding-top: clamp(2rem, 5vw, 3.5rem); }
.cab-pagina h1, .carrito h1 { font-size: var(--t-xl); }
.nota-legal { margin-top: 1.6rem; font-size: var(--t-xs); color: var(--gris); }

/* Tarjetas: enlaces y precios */
a.prod__foto { display: block; }
.prod__nombre a { text-decoration: none; }
.prod__nombre a:hover { color: var(--morado); }
.prod__precio { display: flex; align-items: baseline; gap: .5rem; flex-wrap: wrap; }
.precio-antes { text-decoration: line-through; color: var(--gris); font-size: var(--t-s); font-variant-numeric: tabular-nums; }

/* Línea de ayuda compacta */
.ayuda-linea {
  display: flex; align-items: center; justify-content: space-between; gap: .8rem 1.2rem; flex-wrap: wrap;
  padding: .9rem 1rem .9rem 1.3rem;
  margin-bottom: clamp(1.6rem, 4vw, 2.4rem);
  border-radius: 999px;
  background: var(--crema);
  border: 1px solid var(--linea);
}
.ayuda-linea p { font-size: var(--t-s); color: var(--gris); }
.ayuda-linea strong { color: var(--tinta); }

/* ---------- Catálogo ---------- */
.catalogo { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: clamp(1.6rem, 3vw, 2.6rem) clamp(1rem, 2.5vw, 2rem); }
.catalogo .prod__nombre { font-size: 1.5rem; }
.aviso-promos {
  margin-top: clamp(2rem, 5vw, 3rem);
  display: flex; align-items: center; gap: .6rem 1rem; flex-wrap: wrap;
  padding: 1rem 1.3rem;
  border-radius: var(--radio);
  border: 1.5px dashed var(--coral);
  background: var(--coral-suave);
  text-decoration: none; color: var(--tinta); font-size: var(--t-s);
}
.aviso-promos span:nth-child(2) { flex: 1 1 16rem; min-width: 0; }
.aviso-promos span:last-child { font-weight: 800; color: var(--coral); }
.aviso-promos__punto { width: 10px; height: 10px; border-radius: 50%; background: var(--coral); flex-shrink: 0; }

/* ---------- Ficha de producto ---------- */
.migas { display: flex; flex-wrap: wrap; gap: .4rem; font-size: var(--t-xs); color: var(--gris); margin-bottom: clamp(1.2rem, 3vw, 2rem); }
.migas a { color: var(--gris); text-decoration: none; }
.migas a:hover { color: var(--morado); }
.migas [aria-current] { color: var(--tinta); font-weight: 700; }
.ficha__grid { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(2rem, 5vw, 4.5rem); align-items: start; }
.ficha__galeria { display: flex; flex-direction: column; gap: .8rem; width: min(100%, 460px); justify-self: center; }
.ficha__foto {
  aspect-ratio: 4 / 5; max-width: 100%;
  border-radius: 999px 999px var(--radio) var(--radio);
  overflow: hidden; background: var(--foto-fondo);
}
.ficha__foto img { width: 100%; height: 100%; object-fit: cover; }
.ficha__miniaturas { display: flex; gap: .6rem; overflow-x: auto; }
.ficha__mini { flex: 0 0 64px; height: 64px; padding: 0; border-radius: 12px; overflow: hidden; border: 2px solid transparent; background: var(--foto-fondo); cursor: pointer; }
.ficha__mini.activa { border-color: var(--morado); }
.ficha__mini img { width: 100%; height: 100%; object-fit: cover; }
.ficha__info { display: flex; flex-direction: column; gap: 1rem; min-width: 0; }
.ficha__nombre { font-size: var(--t-xl); }
.ficha__formato { color: var(--gris); font-weight: 600; }
.ficha__precio { display: flex; align-items: baseline; gap: .6rem; flex-wrap: wrap; }
.ficha__precio .precio { font-size: 1.7rem; }
.ficha__resumen { color: var(--gris); max-width: 52ch; }
.ficha__compra { display: flex; gap: .8rem; flex-wrap: wrap; align-items: stretch; margin-top: .4rem; }
.ficha__anadir { flex: 1 1 14rem; }
.ficha__sonia {
  display: flex; gap: 1rem; align-items: flex-start;
  padding: 1.1rem 1.2rem;
  border-radius: var(--radio);
  background: var(--crema);
  border: 1px solid var(--linea);
}
.ficha__sonia p { font-size: var(--t-s); color: var(--gris); }
.ficha__sonia strong { color: var(--tinta); }
.ficha__sonia div { display: flex; flex-direction: column; gap: .3rem; min-width: 0; }
.ficha__sonia .prod__info { text-align: left; }
.ficha__sonia-sello {
  flex-shrink: 0; width: 46px; height: 46px; display: grid; place-items: center;
  border-radius: 50%; background: var(--lila); color: var(--morado);
  font-family: var(--f-display); font-style: italic; font-size: 1.5rem;
}
.ficha__envio { font-size: var(--t-xs); font-weight: 700; color: var(--gris); display: flex; align-items: center; gap: .45rem; }
.ficha__envio::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--coral); }

.ficha__detalles { margin-top: clamp(2.5rem, 6vw, 4rem); max-width: 820px; border-top: 1px solid var(--linea); }
.ficha__seccion { border-bottom: 1px solid var(--linea); }
.ficha__seccion summary {
  list-style: none; cursor: pointer;
  display: flex; justify-content: space-between; align-items: center; gap: 1rem;
  padding: 1.15rem 0;
  font-family: var(--f-display); font-size: 1.35rem;
}
.ficha__seccion summary::-webkit-details-marker { display: none; }
.ficha__seccion summary::after {
  content: "+"; font-family: var(--f-texto); font-size: 1.5rem; font-weight: 400; color: var(--morado);
  width: 34px; height: 34px; display: grid; place-items: center; border-radius: 50%; background: var(--lila); flex-shrink: 0;
  transition: transform .2s;
}
.ficha__seccion[open] summary::after { content: "−"; }
.ficha__cuerpo { padding: 0 0 1.4rem; display: flex; flex-direction: column; gap: .8rem; color: var(--gris); max-width: 68ch; }
.ficha__cuerpo .prod__info { text-align: left; }
.ficha__lista { margin: 0; padding-left: 1.1rem; display: flex; flex-direction: column; gap: .35rem; }
.ficha__lista li::marker { color: var(--coral); }
.ficha__promos { margin-top: clamp(2rem, 5vw, 3rem); display: flex; flex-direction: column; gap: 1rem; }

/* Selector de cantidad */
.cantidad { display: inline-flex; align-items: center; border: 1.5px solid var(--linea); border-radius: 999px; background: var(--bg); }
.cantidad button {
  width: 46px; height: 50px; border: 0; background: transparent; color: var(--tinta);
  font-size: 1.3rem; cursor: pointer; border-radius: 999px;
}
.cantidad button:hover:not(:disabled) { color: var(--morado); }
.cantidad button:disabled { opacity: .35; cursor: default; }
.cantidad input, .cantidad output {
  width: 40px; text-align: center; border: 0; background: transparent; color: var(--tinta);
  font: 800 1rem var(--f-texto); font-variant-numeric: tabular-nums; -moz-appearance: textfield;
}
.cantidad input::-webkit-outer-spin-button, .cantidad input::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.cantidad--peq button { width: 36px; height: 38px; font-size: 1.1rem; }
.cantidad--peq output { width: 28px; }

/* ---------- Promociones (página) ---------- */
.promos--pagina { grid-template-columns: repeat(auto-fill, minmax(min(100%, 260px), 1fr)); gap: clamp(1rem, 2.5vw, 1.6rem); }
.promo--completa { padding: 1.8rem 1.5rem 1.4rem; gap: .7rem; }
.promo--completa .promo__cifra { font-size: 4.2rem; }
.promo--completa .promo__nombre { font-size: 1.15rem; }
.promo__foto { margin: -1.8rem -1.5rem .4rem; aspect-ratio: 16 / 10; overflow: hidden; border-radius: var(--radio) var(--radio) 0 0; background: var(--foto-fondo); }
.promo__foto img { width: 100%; height: 100%; object-fit: cover; }
.promo__fecha { font-size: var(--t-xs); font-weight: 700; color: var(--coral); }
.promo__incluye { display: flex; flex-direction: column; gap: .4rem; padding: .8rem 0; border-top: 1px solid var(--linea); }
.incluye { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .3rem; font-size: var(--t-s); }
.incluye a { text-decoration: none; font-weight: 700; }
.incluye a:hover { color: var(--morado); }
.incluye__cant { color: var(--morado); font-weight: 800; font-variant-numeric: tabular-nums; }
.incluye--pend, .incluye--texto { color: var(--gris); font-style: italic; }
.incluye--texto { font-style: normal; }
.ahorro { font-size: 11px; font-weight: 800; letter-spacing: .04em; text-transform: uppercase; color: var(--coral); background: var(--coral-suave); padding: .25rem .6rem; border-radius: 999px; }
.promo__boton { width: 100%; margin-top: .4rem; }
.promo--completa .prod__info { text-align: center; }
.promo--resaltada { border-color: var(--morado); box-shadow: var(--sombra); }

/* ---------- Carrito ---------- */
.carrito__grid { display: grid; grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); gap: clamp(1.6rem, 4vw, 3.5rem); align-items: start; }
.carrito__principal { display: flex; flex-direction: column; gap: clamp(2rem, 5vw, 3rem); min-width: 0; }
.lineas { list-style: none; margin: 0; padding: 0; border-top: 1px solid var(--linea); }
.linea {
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) auto auto 34px;
  grid-template-areas: "foto info cant total quitar";
  align-items: center; gap: .6rem 1rem;
  padding: 1rem 0; border-bottom: 1px solid var(--linea);
}
.linea__foto { grid-area: foto; display: block; width: 76px; height: 92px; border-radius: 40px 40px 10px 10px; overflow: hidden; background: var(--foto-fondo); }
.linea__foto img { width: 100%; height: 100%; object-fit: cover; }
.linea__foto .prod__ph span { display: none; }
.linea__ph--promo { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--f-display); font-style: italic; font-size: 2.2rem; color: var(--morado); background: var(--lila); }
.linea__info { grid-area: info; display: flex; flex-direction: column; gap: .15rem; min-width: 0; }
.linea__tipo { font-size: 10px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--coral); }
.linea__nombre { font-weight: 800; text-decoration: none; }
.linea__nombre:hover { color: var(--morado); }
.linea__unidad { font-size: var(--t-xs); color: var(--gris); font-variant-numeric: tabular-nums; }
.linea .cantidad { grid-area: cant; }
.linea__total { grid-area: total; font-weight: 800; font-variant-numeric: tabular-nums; min-width: 4.5rem; text-align: right; }
.linea__quitar { grid-area: quitar; width: 34px; height: 34px; border: 0; border-radius: 50%; background: transparent; color: var(--gris); cursor: pointer; display: grid; place-items: center; }
.linea__quitar:hover { background: var(--coral-suave); color: var(--coral); }
.linea__quitar svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; fill: none; stroke-linecap: round; }

.resumen { position: sticky; top: calc(90px + env(safe-area-inset-top, 0px)); }
.resumen__caja { display: flex; flex-direction: column; gap: 1rem; padding: 1.5rem; border-radius: calc(var(--radio) + 4px); background: var(--crema); border: 1px solid var(--linea); }
.resumen__titulo { font-size: 1.6rem; }
.envio-barra { height: 8px; border-radius: 999px; background: var(--linea); overflow: hidden; }
.envio-barra span { display: block; height: 100%; border-radius: 999px; background: var(--coral); transition: width .4s ease; }
.envio-barra--ok span { background: var(--morado); }
.envio-msg { font-size: var(--t-s); color: var(--gris); margin-top: -.3rem; }
.envio-msg strong { color: var(--coral); }
.envio-msg--ok { color: var(--morado); font-weight: 800; }
.resumen__filas { margin: 0; display: flex; flex-direction: column; gap: .55rem; }
.resumen__filas div { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-s); }
.resumen__filas dt { color: var(--gris); }
.resumen__filas dd { margin: 0; font-weight: 700; font-variant-numeric: tabular-nums; text-align: right; }
.resumen__filas dd.gratis { color: var(--morado); }
.resumen__total { padding-top: .7rem; border-top: 1px solid var(--linea); }
.resumen__total dt { color: var(--tinta) !important; font-weight: 800; }
.resumen__total dd { font-size: 1.35rem; font-weight: 800 !important; }
.resumen__total small { display: block; font-size: var(--t-xs); font-weight: 600; color: var(--gris); }
.resumen__aviso { font-size: var(--t-xs); color: var(--gris); background: var(--bg); border-radius: 12px; padding: .7rem .9rem; }
.resumen__boton { width: 100%; }
.resumen .prod__info { text-align: center; }

/* Formulario de compra */
.compra { display: flex; flex-direction: column; gap: 1.2rem; }
.compra__titulo { font-size: 1.5rem; display: flex; align-items: center; gap: .7rem; }
.compra__titulo span {
  width: 32px; height: 32px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%;
  background: var(--lila); color: var(--morado); font: 800 var(--t-s) var(--f-texto);
}
.campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .9rem 1rem; margin-bottom: 1rem; }
.campo { display: flex; flex-direction: column; gap: .35rem; min-width: 0; }
.campo--ancho { grid-column: 1 / -1; }
.campo span { font-size: var(--t-xs); font-weight: 700; color: var(--gris); }
.campo em { color: var(--coral); font-style: normal; }
.campo input, .campo textarea {
  width: 100%; min-height: 50px; padding: .75rem 1rem;
  border: 1.5px solid var(--linea); border-radius: 14px;
  background: var(--bg); color: var(--tinta);
  font: 400 1rem var(--f-texto);
}
.campo textarea { resize: vertical; min-height: 90px; }
.campo input:focus, .campo textarea:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 3px var(--lila); }
.campo--error input { border-color: var(--coral); }
.pagos-opciones { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
.pago-op { position: relative; cursor: pointer; }
.pago-op input { position: absolute; opacity: 0; pointer-events: none; }
.pago-op__caja {
  height: 100%; display: flex; flex-direction: column; gap: .3rem;
  padding: 1rem 1.1rem 1rem 2.8rem;
  border: 1.5px solid var(--linea); border-radius: 16px; background: var(--bg);
  transition: border-color .2s, background .2s;
}
.pago-op__caja::before {
  content: ""; position: absolute; left: 1.05rem; top: 1.15rem;
  width: 18px; height: 18px; border-radius: 50%; border: 2px solid var(--linea); background: var(--bg);
}
.pago-op input:checked + .pago-op__caja { border-color: var(--morado); background: var(--crema); }
.pago-op input:checked + .pago-op__caja::before { border: 5px solid var(--morado); }
.pago-op input:focus-visible + .pago-op__caja { outline: 2px solid var(--morado); outline-offset: 2px; }
.pago-op__nombre { font-weight: 800; }
.pago-op__info { font-size: var(--t-xs); color: var(--gris); }
.compra__error { color: var(--coral); font-weight: 700; font-size: var(--t-s); }
.compra__boton { align-self: flex-start; min-width: 16rem; }
.compra__nota { font-size: var(--t-xs); color: var(--gris); margin-top: -.4rem; }

.confirmacion { display: flex; flex-direction: column; gap: .9rem; padding: clamp(1.4rem, 4vw, 2rem); border-radius: calc(var(--radio) + 4px); border: 1.5px solid var(--morado); background: var(--bg); }
.confirmacion:focus { outline: none; }
.confirmacion h2 { font-size: var(--t-l); }
.confirmacion > p:not(.nota-mano) { color: var(--gris); }
.confirmacion__texto {
  margin: 0; padding: 1rem 1.1rem; border-radius: 14px; background: var(--crema);
  font: 400 var(--t-xs)/1.6 var(--f-texto); color: var(--tinta);
  white-space: pre-wrap; overflow-wrap: anywhere;
}
.confirmacion__botones { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Estados vacíos */
.vacio { display: flex; flex-direction: column; gap: 1.2rem; align-items: flex-start; padding: clamp(1.6rem, 4vw, 2.4rem); border-radius: calc(var(--radio) + 4px); background: var(--crema); border: 1px solid var(--linea); }
.vacio p { color: var(--gris); max-width: 52ch; }
.cab-pagina.vacio { background: none; border: 0; max-width: var(--ancho); margin: 0 auto; padding-inline: var(--gutter); }
.vacio__botones { display: flex; flex-wrap: wrap; gap: .8rem; }

/* Ebooks */
.ebooks { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr)); gap: 1.6rem; }
.ebook { display: flex; flex-direction: column; gap: 1rem; }
.ebook__portada { aspect-ratio: 3 / 4; border-radius: var(--radio); overflow: hidden; background: var(--foto-fondo); }
.ebook__portada img { width: 100%; height: 100%; object-fit: cover; }
.ebook__info { display: flex; flex-direction: column; gap: .6rem; }
.ebook__info h3 { font-size: 1.5rem; }
.ebook__sub { color: var(--coral); font-weight: 700; font-size: var(--t-s); }
.ebook__info p { color: var(--gris); font-size: var(--t-s); }
.ebook__pie { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-top: .4rem; }

/* =========================================================
   RESPONSIVE
   ========================================================= */
@media (max-width: 1080px) {
  .productos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .promos { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .razones { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .pie__in { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 860px) {
  /* Menú móvil */
  .hamburguesa {
    display: grid; place-content: center; gap: 5px;
    width: 46px; height: 46px; border: 0; border-radius: 50%;
    background: var(--crema); cursor: pointer;
  }
  .hamburguesa span { width: 20px; height: 2px; border-radius: 2px; background: var(--tinta); transition: transform .25s, opacity .25s; }
  .hamburguesa[aria-expanded="true"] span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
  .hamburguesa[aria-expanded="true"] span:nth-child(2) { opacity: 0; }
  .hamburguesa[aria-expanded="true"] span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }
  .cabecera__acciones { margin-left: auto; }
  .menu {
    position: absolute; left: 0; right: 0; top: 100%;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--bg);
    border-bottom: 1px solid var(--linea);
    padding: .5rem var(--gutter) 1.2rem;
    box-shadow: var(--sombra);
    display: none;
  }
  .menu.abierto { display: flex; }
  .menu a { padding: .9rem 0; border-bottom: 1px solid var(--linea); font-size: var(--t-m); color: var(--tinta); }
  .menu .menu__ayuda { margin-top: 1rem; border-bottom: 0; text-align: center; padding: .9rem; }

  /* Portada: foto arriba, texto abajo */
  .portada { grid-template-columns: 1fr; padding-top: 1.5rem; }
  .portada__foto { order: -1; width: min(78%, 340px); }
  .portada__foto .nota-mano { left: -12%; font-size: 1.25rem; }
  .portada__texto { text-align: center; align-items: center; }
  .portada__botones { flex-direction: column; width: 100%; }
  .portada__botones .btn { width: 100%; }
  .portada__sellos { justify-content: center; }

  .sobre { grid-template-columns: 1fr; }
  .sobre__foto { width: min(70%, 300px); }
}

@media (max-width: 640px) {
  /* Productos y promos: carrusel deslizable con el dedo */
  .productos, .promos {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    margin: 0 calc(-1 * var(--gutter));
    padding: .3rem var(--gutter) 1rem;
    scroll-padding-inline: var(--gutter);
    scrollbar-width: none;
  }
  .productos::-webkit-scrollbar, .promos::-webkit-scrollbar { display: none; }
  .prod { flex: 0 0 66%; scroll-snap-align: start; }
  .promo { flex: 0 0 62%; scroll-snap-align: start; }
  .deslizar { display: flex; }
  .razones { grid-template-columns: 1fr; gap: 1.6rem; }
  .razon { flex-direction: row; align-items: flex-start; gap: 1rem; }
  .razon__icono { flex-shrink: 0; margin: 0; }
  .pie__in { grid-template-columns: 1fr; }
  .wa-flotante__txt { display: none; }
  .wa-flotante { width: 60px; height: 60px; padding: 0; justify-content: center; }
  .marca__nombre { font-size: 1.5rem; }
  .marca__la { font-size: 1.2rem; }
}

.deslizar { display: none; align-items: center; gap: .4rem; margin-top: .4rem; font-size: var(--t-xs); font-weight: 700; color: var(--gris); }

/* ---------- Responsive Fase 2 ---------- */
@media (max-width: 1080px) {
  .catalogo { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .menu a[aria-current="page"]::after { display: none; }
  .ficha__grid { grid-template-columns: 1fr; }
  .ficha__galeria { width: min(82%, 380px); }
  .carrito__grid { grid-template-columns: 1fr; }
  .resumen { position: static; order: -1; }
}
@media (max-width: 640px) {
  .catalogo { gap: 1.6rem .8rem; }
  .catalogo .prod__nombre { font-size: 1.15rem; }
  .catalogo .btn-carrito { letter-spacing: .03em; font-size: 11px; }
  .catalogo .prod__desc { font-size: var(--t-xs); }
  .promos--pagina { display: grid; overflow: visible; margin: 0; padding: 0; grid-template-columns: 1fr; }
  .promos--pagina .promo { flex: none; }
  .ayuda-linea { border-radius: var(--radio); }
  .ayuda-linea .btn { width: 100%; }
  .linea {
    grid-template-columns: 64px minmax(0, 1fr) auto;
    grid-template-areas: "foto info quitar" "foto cant total";
    align-items: start;
  }
  .linea__foto { width: 64px; height: 80px; }
  .linea__total { align-self: center; min-width: 0; }
  .linea__quitar { justify-self: end; }
  .linea .cantidad { justify-self: start; }
  .campos, .pagos-opciones { grid-template-columns: 1fr; }
  .compra__boton { width: 100%; min-width: 0; }
  .confirmacion__botones .btn { width: 100%; }
  .bloque__cab--fila { align-items: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { transition: none !important; animation: none !important; }
}

/* ---------- Zonas de envío ---------- */
.zona { display: flex; flex-direction: column; gap: .4rem; }
.zona select {
  width: 100%; min-height: 48px; padding: .6rem 2.4rem .6rem 1rem;
  border: 1.5px solid var(--linea); border-radius: 14px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a4a9e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center / 18px;
  color: var(--tinta); font: 700 1rem var(--f-texto);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.zona select:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 3px var(--lila); }
.envio-msg--zona { color: var(--tinta); background: var(--coral-suave); border-radius: 12px; padding: .7rem .9rem; margin-top: 0; }
.pie__zonas { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .5rem; font-size: var(--t-s); color: var(--gris); }
.pie__zonas strong { color: var(--tinta); }
.ficha__envio--otras { font-weight: 600; margin-top: -.6rem; }
.ficha__envio--otras::before { background: var(--linea); }

/* ---------- Datos reales: formato, grupos de promos ---------- */
.prod__formato { font-size: var(--t-xs); font-weight: 700; color: var(--gris); margin-top: -.5rem; }
.grupo-promos { display: flex; flex-direction: column; gap: 1rem; }
.grupo-promos + .grupo-promos { margin-top: clamp(2.5rem, 6vw, 4rem); }
.grupo-promos__titulo { font-size: var(--t-l); }
@media (min-width: 641px) {
  #lista-promos { grid-template-columns: repeat(auto-fit, minmax(min(100%, 170px), 1fr)); }
}

/* ---------- Promos a elegir ---------- */
.promo__eleccion { gap: .5rem; }
.eleccion select {
  width: 100%; min-height: 44px; padding: .5rem 2.2rem .5rem .9rem;
  border: 1.5px solid var(--linea); border-radius: 12px;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237a4a9e' stroke-width='2' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") no-repeat right .8rem center / 16px;
  color: var(--tinta); font: 600 var(--t-s) var(--f-texto);
  -webkit-appearance: none; appearance: none; cursor: pointer;
}
.eleccion select:focus { outline: none; border-color: var(--morado); box-shadow: 0 0 0 3px var(--lila); }
.linea__detalle { font-size: var(--t-xs); color: var(--gris); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }

/* ---------- Tabla nutricional ---------- */
.tabla-nutri { overflow-x: auto; }
.tabla-nutri table { width: 100%; max-width: 480px; border-collapse: collapse; font-size: var(--t-s); }
.tabla-nutri th, .tabla-nutri td { padding: .55rem .2rem; border-bottom: 1px solid var(--linea); text-align: left; }
.tabla-nutri th { font-weight: 600; color: var(--tinta); }
.tabla-nutri td { text-align: right; font-weight: 700; color: var(--tinta); font-variant-numeric: tabular-nums; white-space: nowrap; }

/* ---------- Fotos de producto (envases recortados: se muestran enteros) ---------- */
.prod__foto img,
.ficha__foto img,
.ficha__mini img,
.linea__foto img {
  object-fit: contain;
  padding: 12% 10% 10%;
  filter: drop-shadow(0 14px 14px rgba(60, 40, 30, .18));
}
.ficha__mini img, .linea__foto img { padding: 8%; filter: none; }
.ficha__foto img[src*="etiqueta"] { padding: 4%; filter: none; }

/* ---------- Pedidos: casilla de privacidad y página legal ---------- */
.acepto { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-s); line-height: 1.45; cursor: pointer; }
.acepto input { width: 1.15rem; height: 1.15rem; margin-top: .15rem; flex: none; accent-color: var(--morado); }
.acepto a { color: var(--morado); font-weight: 700; }
.acepto--error span { color: var(--coral); }
.legal { max-width: 46rem; }
.legal h2 { font-size: var(--t-l); margin: 2rem 0 .6rem; }
.legal p { margin-bottom: .8rem; }
.legal mark.pendiente { background: var(--lila); color: var(--tinta); padding: 0 .3em; border-radius: 4px; }
.pie__legal a { color: inherit; }

/* Logo en móvil */
@media (max-width: 760px) { .cabecera .marca img { height: 54px; margin: -4px 0; } .marca--pie img { height: 130px; } }

/* ---------- Catálogo: fotos más pequeñas (3 por fila cómodas en ordenador) ---------- */
.catalogo .prod__foto { aspect-ratio: 5 / 4; }
.catalogo .prod__foto img { padding: 9% 14% 7%; }
/* solo ordenador: fotos aún más bajas (en móvil se quedan como están) */
@media (min-width: 861px) {
  .catalogo .prod__foto { aspect-ratio: 16 / 10; }
  .catalogo .prod__foto img { padding: 8% 22% 6%; }
}
@media (min-width: 1100px) { .catalogo { max-width: 1080px; margin-inline: auto; } }

/* ---------- Promociones: fotos de los envases incluidos ---------- */
.promo__fotos {
  margin: -1.8rem -1.5rem .3rem;
  padding: 1.2rem 1rem 1rem;
  height: 170px;
  display: flex; align-items: center; justify-content: center; gap: .35rem;
  background: var(--foto-fondo);
  border-radius: var(--radio) var(--radio) 0 0;
  position: relative;
}
.pf { position: relative; height: 100%; flex: 0 1 auto; min-width: 0; display: flex; align-items: center; justify-content: center; }
.pf img { height: 100%; width: auto; max-width: 100%; object-fit: contain; filter: drop-shadow(0 10px 10px rgba(60, 40, 30, .18)); }
.promo__fotos:not(.promo__fotos--pila) .pf { flex: 1 1 0; }
.pf__mas { font-family: var(--f-display); font-size: 1.8rem; color: var(--morado); flex: none; line-height: 1; }
.pf__cant {
  position: absolute; right: 2px; bottom: 4px;
  background: var(--morado); color: #fff; font-weight: 800; font-size: 12px;
  padding: .15rem .45rem; border-radius: 999px; box-shadow: 0 2px 6px rgba(0,0,0,.15);
}
.promo__fotos--muchos { gap: .1rem; padding-inline: .6rem; }
.promo__fotos--muchos .pf img { height: auto; max-height: 82%; }
/* un solo producto: envases apilados */
.pf--pila { width: 62%; height: 100%; }
.pf__capa { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.pf__capa img { height: 88%; }
.pf--capas2 .pf__capa--1 { transform: translate(-16%, -5%) scale(.9); opacity: .55; }
.pf--capas3 .pf__capa--1 { transform: translate(-14%, -4%) scale(.92); opacity: .65; }
.pf--capas3 .pf__capa--2 { transform: translate(-28%, -8%) scale(.84); opacity: .4; }
.pf--capas2 .pf__capa--0, .pf--capas3 .pf__capa--0 { transform: translateX(10%); }
.pf__unidades {
  position: absolute; right: 1rem; bottom: .9rem;
  background: var(--morado); color: #fff;
  font-size: var(--t-xs); font-weight: 700; letter-spacing: .04em;
  padding: .3rem .75rem; border-radius: 999px; box-shadow: 0 3px 10px rgba(80, 40, 110, .25);
}
.pf__unidades b { font-size: 1.15rem; font-weight: 800; margin-right: .1rem; }
.pf__ph { display: block; height: 80%; aspect-ratio: 3 / 4; border-radius: 12px; border: 2px dashed var(--linea); background: var(--bg); }
.promo--completa .promo__etiqueta { z-index: 2; }
@media (max-width: 600px) {
  .promo__fotos { height: 140px; padding: 1rem .8rem .8rem; }
  .promo--completa { padding: 1.5rem 1.2rem 1.2rem; gap: .55rem; }
  .promo--completa .promo__fotos { margin: -1.5rem -1.2rem .2rem; }
  .pf__unidades { right: .8rem; bottom: .7rem; }
}

/* ---------- Condiciones de compra ---------- */
.legal h3 { font-size: var(--t-m); margin: 1.2rem 0 .4rem; }
.legal ul, .legal ol { margin: 0 0 .8rem; padding-left: 1.3rem; }
.legal li { margin-bottom: .4rem; }
.legal__nota { font-weight: 400; color: var(--gris); font-size: var(--t-s); }

/* ---------- Inicio: promos con fotos de los envases ---------- */
.promo--fotos .promo__fotos { margin: -1.4rem -1.2rem .3rem; height: 140px; padding: 1rem .8rem .8rem; }
.promo--fotos .promo__etiqueta { z-index: 2; }
.promo--fotos .pf__unidades { right: .7rem; bottom: .6rem; padding: .25rem .6rem; }
.promo--fotos .pf__unidades b { font-size: 1rem; }
.promo--fotos .pf__mas { font-size: 1.4rem; }
.confirmacion__vaciar { margin-top: 1rem; font-size: var(--t-s); }
