/* aeon | nutrición — tienda.
   Lenguaje de comercio, no de dirección de arte: Open Sans (la del logo) en todo,
   blanco y negro, grises claros de fondo, bordes suaves. Tokens por rol. */

:root {
  --ink: #111;
  --text: #2b2b2b;
  --text-2: #6b6b6b;
  --paper: #fff;
  --soft: #f4f4f4;
  --soft-2: #ebebeb;
  --line: #e2e2e2;
  --line-2: #c9c9c9;
  --danger: #b3261e;

  --f: "Open Sans", "Segoe UI", Arial, sans-serif;
  --t-xs: 0.75rem;    /* 12 */
  --t-s: 0.875rem;    /* 14 */
  --t-m: 1rem;        /* 16 */
  --t-l: 1.25rem;     /* 20 */
  --t-xl: 1.75rem;    /* 28 */
  --t-xxl: clamp(1.75rem, 1.3rem + 1.6vw, 2.5rem);

  --r: 8px;
  --r-s: 6px;
  --gutter: clamp(1rem, 0.5rem + 2vw, 2rem);
  --max: 1360px;

  color-scheme: light;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-padding-top: 140px; }
body { margin: 0; font-family: var(--f); font-size: var(--t-m); line-height: 1.5; color: var(--text); background: var(--paper); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4, p { margin: 0; }
h1, h2, h3 { color: var(--ink); text-wrap: balance; }
ul, ol { margin: 0; padding: 0; list-style: none; }
a, button, input, select, label { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.saltar { position: absolute; left: 1rem; top: -100px; z-index: 100; background: #000; color: #fff; padding: .6rem 1rem; border-radius: var(--r-s); }
.saltar:focus { top: .5rem; }
.contenedor { width: 100%; max-width: var(--max); margin-inline: auto; padding-inline: var(--gutter); }
.cifra { font-variant-numeric: tabular-nums; }

.titulo { font-weight: 700; font-size: var(--t-xl); line-height: 1.2; letter-spacing: -0.01em; }
.titulo-sec { font-weight: 700; font-size: var(--t-l); line-height: 1.25; }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  min-height: 46px; padding: 0 1.25rem; border: 1px solid var(--ink); border-radius: var(--r-s);
  background: var(--ink); color: #fff; font-weight: 600; font-size: var(--t-s); text-decoration: none; cursor: pointer;
  transition: background-color .15s, border-color .15s, color .15s; touch-action: manipulation;
}
.btn:hover { background: #333; border-color: #333; }
.btn-linea { background: var(--paper); color: var(--ink); border-color: var(--line-2); }
.btn-linea:hover { background: var(--soft); border-color: var(--ink); }
.btn-blanco { background: #fff; color: #000; border-color: #fff; }
.btn-blanco:hover { background: #e6e6e6; border-color: #e6e6e6; }
.btn[disabled] { background: var(--soft); color: var(--text-2); border-color: var(--line); cursor: not-allowed; }
.btn svg { width: 18px; height: 18px; flex: none; }
.btn-ancho { width: 100%; }
.enlace { font-weight: 600; font-size: var(--t-s); text-decoration: underline; text-underline-offset: .2em; white-space: nowrap; }
.enlace:hover { color: #000; text-decoration-thickness: 2px; }

/* ---------- Barra de aviso + cabecera ---------- */
.aviso-sup { background: #000; color: #fff; font-size: var(--t-xs); }
.aviso-sup .contenedor { display: flex; justify-content: center; gap: 2.5rem; padding-block: .5rem; }
.aviso-sup span { display: inline-flex; align-items: center; gap: .4rem; white-space: nowrap; }
.aviso-sup svg { width: 15px; height: 15px; }
@media (max-width: 760px) { .aviso-sup span:not(:first-child) { display: none; } }

.cabecera { position: sticky; top: 0; z-index: 40; background: var(--paper); border-bottom: 1px solid var(--line); }
.cabecera-fila { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2.5rem); height: 72px; }
.logo { font-family: "Open Sans", sans-serif; font-weight: 400; font-size: 1.45rem; color: #000; text-decoration: none; white-space: nowrap; letter-spacing: .005em; }
.logo .barra { margin: 0 .25em; }
.cab-buscar { flex: 1; max-width: 640px; position: relative; }
.cab-buscar input { width: 100%; height: 44px; border: 1px solid var(--soft-2); border-radius: var(--r-s); background: var(--soft); padding: 0 1rem 0 2.6rem; font-size: var(--t-s); }
.cab-buscar input:hover { border-color: var(--line-2); }
.cab-buscar input:focus-visible { outline: none; background: #fff; border-color: var(--ink); }
.cab-buscar svg { position: absolute; left: .85rem; top: 50%; translate: 0 -50%; width: 18px; height: 18px; color: var(--text-2); pointer-events: none; }
.cab-acciones { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.cab-link { display: inline-flex; align-items: center; gap: .45rem; padding: .5rem .7rem; border-radius: var(--r-s); text-decoration: none; font-size: var(--t-s); font-weight: 600; color: var(--ink); }
.cab-link:hover { background: var(--soft); }
.cab-link svg { width: 20px; height: 20px; }
.btn-carrito { display: inline-flex; align-items: center; gap: .5rem; height: 44px; padding: 0 .9rem; border-radius: var(--r-s); background: var(--ink); color: #fff; border: 0; cursor: pointer; font-weight: 600; font-size: var(--t-s); }
.btn-carrito:hover { background: #333; }
.btn-carrito svg { width: 20px; height: 20px; }
.btn-carrito .burbuja { min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px; background: #fff; color: #000; font-size: var(--t-xs); font-weight: 700; display: grid; place-items: center; }

.nav { border-top: 1px solid var(--line); }
.nav ul { display: flex; gap: .25rem; overflow-x: auto; scrollbar-width: none; }
.nav ul::-webkit-scrollbar { display: none; }
.nav a { display: block; padding: .7rem .8rem; font-size: var(--t-s); font-weight: 600; text-decoration: none; color: var(--text); white-space: nowrap; border-bottom: 2px solid transparent; }
.nav a:hover { color: #000; border-bottom-color: var(--line-2); }
.nav a[aria-current="page"] { color: #000; border-bottom-color: #000; }
.nav li:first-child a { padding-left: 0; }

@media (max-width: 900px) {
  .cabecera-fila { flex-wrap: wrap; height: auto; padding-top: .6rem; row-gap: .5rem; }
  .cab-link span { display: none; }
  .cab-buscar { order: 3; flex-basis: 100%; max-width: none; margin-bottom: .6rem; }
  .logo { font-size: 1.25rem; }
}
@media (max-width: 600px) {
  .btn-carrito > span:not(.burbuja) { display: none; }
  .cabecera-fila { gap: .5rem; }
}

/* ---------- Banners del inicio ---------- */
.banners { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); gap: 1rem; padding-top: 1.25rem; }
.slider { position: relative; border-radius: var(--r); overflow: hidden; min-height: 440px; background: #000; }
.slide { position: absolute; inset: 0; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); align-items: center; gap: 1rem; padding: clamp(1.5rem, 3vw, 3rem); padding-bottom: 4.5rem; text-decoration: none; opacity: 0; visibility: hidden; transition: opacity .5s ease, visibility 0s linear .5s; }
.slide.activo { opacity: 1; visibility: visible; transition: opacity .5s ease, visibility 0s; z-index: 1; }
.slide-negro { background: #000; color: #fff; }
.slide-negro h2 { color: #fff; }
.slide-gris { background: var(--soft); color: var(--text); }
.slide-texto { display: grid; gap: .7rem; align-content: center; max-width: 32ch; }
.slide-texto .sobre { font-size: var(--t-s); opacity: .75; }
.slide-texto h2 { font-size: clamp(1.9rem, 1.2rem + 2.2vw, 3rem); font-weight: 800; line-height: 1.05; letter-spacing: -0.02em; }
.slide-texto p { opacity: .85; }
.slide-texto .desde { font-size: var(--t-s); opacity: 1; }
.slide-texto .desde strong { font-size: var(--t-l); }
.slide-texto .btn { justify-self: start; margin-top: .4rem; }
.slide-fotos { position: relative; height: 100%; min-height: 300px; }
.slide-fotos img { position: absolute; bottom: 0; width: auto; max-width: none; filter: drop-shadow(0 16px 18px rgb(0 0 0 / .22)); }
.slide-negro .slide-fotos img { filter: drop-shadow(0 18px 24px rgb(0 0 0 / .7)); }
.slider-ctrl { position: absolute; z-index: 3; left: clamp(1.5rem, 3vw, 3rem); bottom: 1.2rem; display: flex; align-items: center; gap: .4rem; }
.slider-ctrl > button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid currentColor; background: transparent; cursor: pointer; display: grid; place-items: center; color: inherit; }
.slider-ctrl > button:hover { background: rgb(128 128 128 / .25); }
.slider-ctrl svg { width: 16px; height: 16px; }
.slider-ctrl .puntos { display: flex; gap: .1rem; margin-left: .3rem; }
.slider-ctrl .puntos button { width: 24px; height: 24px; border: 0; background: none; cursor: pointer; display: grid; place-items: center; color: inherit; }
.slider-ctrl .puntos button span { width: 8px; height: 8px; border-radius: 50%; background: currentColor; opacity: .35; }
.slider-ctrl .puntos button[aria-current="true"] span { opacity: 1; }
.slider[data-tono="negro"] .slider-ctrl { color: #fff; }
.slider[data-tono="gris"] .slider-ctrl { color: #000; }

.banners-lado { display: grid; grid-template-rows: 1fr 1fr; gap: 1rem; }
.banner-chico { position: relative; border-radius: var(--r); background: var(--soft); overflow: hidden; display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, .85fr); align-items: center; gap: .5rem; padding: 1.25rem 1.4rem; text-decoration: none; min-height: 210px; transition: background-color .15s; }
.banner-chico:hover { background: var(--soft-2); }
.banner-chico h2 { font-size: var(--t-l); font-weight: 800; line-height: 1.15; }
.banner-chico p { font-size: var(--t-s); color: var(--text-2); margin-top: .3rem; }
.banner-chico .ver { display: inline-block; margin-top: .8rem; font-weight: 600; font-size: var(--t-s); text-decoration: underline; text-underline-offset: .2em; }
.banner-chico .fotos { position: relative; align-self: stretch; min-height: 170px; }
.banner-chico .fotos img { position: absolute; bottom: 0; width: auto; max-width: none; filter: drop-shadow(0 10px 12px rgb(0 0 0 / .16)); }

@media (max-width: 960px) {
  .banners { grid-template-columns: 1fr; }
  .banners-lado { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
}
@media (max-width: 640px) {
  .slider { min-height: 610px; }
  .slide { grid-template-columns: 1fr; grid-template-rows: auto 1fr; align-items: start; }
  .slide-fotos { min-height: 210px; transform: scale(.82); transform-origin: bottom center; }
  .slide-texto { gap: .5rem; }
  .banners-lado { grid-template-columns: 1fr; }
}

/* ---------- Beneficios ---------- */
.beneficios { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1rem; padding-block: 1.6rem; border-bottom: 1px solid var(--line); }
.beneficio { display: flex; gap: .8rem; align-items: flex-start; }
.beneficio svg { width: 28px; height: 28px; flex: none; color: #000; }
.beneficio strong { display: block; font-size: var(--t-s); color: var(--ink); }
.beneficio span { font-size: var(--t-xs); color: var(--text-2); }
@media (max-width: 900px) { .beneficios { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* ---------- Secciones ---------- */
.seccion { padding-block: clamp(1rem, 2vw, 1.5rem); }
.beneficios + .seccion { padding-top: clamp(1.5rem, 3vw, 2.25rem); }
.seccion-cab { display: flex; justify-content: space-between; align-items: center; gap: 1rem; margin-bottom: 1rem; }
.seccion-cab .acciones { display: flex; align-items: center; gap: .9rem; }

.categorias { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .9rem; }
.categoria { text-decoration: none; text-align: center; }
.categoria .img { display: block; background: var(--soft); border-radius: var(--r); padding: 14%; aspect-ratio: 1; transition: background-color .15s; }
.categoria img { width: 100%; height: 100%; object-fit: contain; }
.categoria:hover .img { background: var(--soft-2); }
.categoria strong { display: block; margin-top: .55rem; font-size: var(--t-s); font-weight: 600; color: var(--ink); line-height: 1.3; }
.categoria small { color: var(--text-2); font-size: var(--t-xs); }
@media (max-width: 1000px) { .categorias { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .categorias { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: .7rem; margin-inline: calc(var(--gutter) * -1); padding-inline: var(--gutter); scrollbar-width: none; } .categoria { flex: 0 0 36%; scroll-snap-align: start; } }

.objetivos { display: flex; flex-wrap: wrap; gap: .5rem; }
.objetivos a { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid var(--line-2); border-radius: 999px; padding: .5rem 1rem; text-decoration: none; font-size: var(--t-s); font-weight: 600; color: var(--ink); background: #fff; }
.objetivos a span { color: var(--text-2); font-weight: 400; }
.objetivos a:hover { border-color: #000; background: var(--soft); }

.riel-flechas { display: flex; gap: .35rem; }
.riel-flechas button { width: 36px; height: 36px; border-radius: 50%; border: 1px solid var(--line-2); background: #fff; cursor: pointer; display: grid; place-items: center; }
.riel-flechas button:hover:not([disabled]) { border-color: #000; }
.riel-flechas button[disabled] { opacity: .35; cursor: default; }
.riel-flechas svg { width: 16px; height: 16px; }
.riel { display: grid; grid-auto-flow: column; grid-auto-columns: calc((100% - 4 * 1rem) / 5); gap: 1rem; overflow-x: auto; scroll-snap-type: x mandatory; scroll-behavior: smooth; scrollbar-width: none; overscroll-behavior-x: contain; padding: 2px 0 8px; }
.riel::-webkit-scrollbar { display: none; }
.riel > * { scroll-snap-align: start; }
@media (max-width: 1100px) { .riel { grid-auto-columns: calc((100% - 3 * 1rem) / 4); } }
@media (max-width: 800px) { .riel { grid-auto-columns: calc((100% - 2 * .75rem) / 2.3); gap: .75rem; } .riel-flechas { display: none; } }

/* ---------- Tarjeta de producto ---------- */
.grilla { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 1rem; }
.grilla-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 1000px) { .grilla-4 { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
@media (max-width: 640px) { .grilla, .grilla-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; } }
.card { position: relative; display: flex; flex-direction: column; min-width: 0; background: #fff; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; transition: border-color .15s, box-shadow .15s; }
.card:hover { border-color: var(--line-2); box-shadow: 0 6px 18px rgb(0 0 0 / .07); }
.card-foto { display: block; aspect-ratio: 1; background: #fff; padding: 7%; }
.card-foto img { width: 100%; height: 100%; object-fit: contain; }
.card .badge { position: absolute; top: .6rem; left: .6rem; z-index: 1; background: var(--soft); color: var(--ink); font-size: var(--t-xs); font-weight: 600; padding: .15rem .55rem; border-radius: 999px; pointer-events: none; }
.card-cuerpo { display: flex; flex-direction: column; flex: 1; padding: .1rem .9rem .9rem; }
.card .marca { font-size: var(--t-xs); color: var(--text-2); }
.card h3 { font-size: var(--t-s); font-weight: 600; line-height: 1.35; margin-top: .1rem; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.card h3 a { text-decoration: none; }
.card h3 a::after { content: ""; position: absolute; inset: 0; }
.card .present { font-size: var(--t-xs); color: var(--text-2); margin-top: .15rem; }
.card-pie { margin-top: auto; padding-top: .7rem; display: grid; gap: .6rem; }
.precio { font-weight: 700; font-size: var(--t-l); color: var(--ink); }
.agregar { position: relative; z-index: 2; height: 40px; border-radius: var(--r-s); border: 1px solid var(--ink); background: #fff; color: var(--ink); font-weight: 600; font-size: var(--t-s); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: .4rem; transition: background-color .15s, color .15s; touch-action: manipulation; }
.agregar:hover, .agregar.ok { background: var(--ink); color: #fff; }
.agregar svg { width: 16px; height: 16px; }

/* ---------- Marcas ---------- */
.marcas { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: .75rem; }
.marcas a { display: grid; place-items: center; height: 96px; border: 1px solid var(--line); border-radius: var(--r); padding: 1rem 1.25rem; transition: border-color .15s; }
.marcas a:hover { border-color: #000; }
.marcas img { max-height: 54px; width: auto; max-width: 100%; object-fit: contain; }
@media (max-width: 1000px) { .marcas { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
@media (max-width: 560px) { .marcas { grid-template-columns: repeat(3, minmax(0, 1fr)); } .marcas a { height: 76px; padding: .6rem; } }

/* ---------- Pie ---------- */
.pie { background: var(--soft); margin-top: 2rem; padding-block: 2.5rem 1.5rem; font-size: var(--t-s); }
.pie-grilla { display: grid; grid-template-columns: minmax(0, 1.6fr) repeat(3, minmax(0, 1fr)); gap: 2rem; }
.pie .logo { font-size: 1.6rem; }
.pie p { color: var(--text-2); margin-top: .6rem; max-width: 36ch; }
.pie h2 { font-size: var(--t-s); font-weight: 700; margin-bottom: .5rem; }
.pie li { padding: .18rem 0; }
.pie a { color: var(--text-2); text-decoration: none; overflow-wrap: anywhere; }
.pie a:hover { color: #000; text-decoration: underline; }
.pie-legal { display: flex; justify-content: space-between; align-items: center; gap: 1rem; flex-wrap: wrap; border-top: 1px solid var(--line-2); margin-top: 2rem; padding-top: 1rem; color: var(--text-2); font-size: var(--t-xs); }
.pie-legal p { margin: 0; max-width: 80ch; font-size: var(--t-xs); }
.pagos { display: flex; gap: .4rem; flex-wrap: wrap; }
.pagos span { border: 1px solid var(--line-2); border-radius: 4px; padding: .15rem .45rem; background: #fff; color: var(--ink); font-weight: 600; }
@media (max-width: 800px) { .pie-grilla { grid-template-columns: repeat(2, minmax(0, 1fr)); } .pie-grilla > :first-child { grid-column: 1 / -1; } }

/* ---------- Tienda ---------- */
.migas { font-size: var(--t-xs); padding-top: 1rem; display: flex; flex-wrap: wrap; gap: .35rem; color: var(--text-2); }
.migas a { color: var(--text-2); }
.migas a:hover { color: #000; }
.tienda { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 2rem; padding-block: .75rem 3rem; }
.tienda-cab { grid-column: 1 / -1; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
.filtros { align-self: start; }
.filtros-cab { display: flex; justify-content: space-between; align-items: center; padding-bottom: .4rem; border-bottom: 1px solid var(--line); }
.filtros h2 { font-size: var(--t-m); font-weight: 700; }
.filtros fieldset { border: 0; margin: 0; padding: .8rem 0; border-bottom: 1px solid var(--line); min-width: 0; }
.filtros legend { font-weight: 700; font-size: var(--t-s); color: var(--ink); padding: 0; margin-bottom: .35rem; }
.opcion { display: flex; align-items: center; gap: .55rem; padding: .3rem 0; cursor: pointer; font-size: var(--t-s); }
.opcion .cifra { margin-left: auto; color: var(--text-2); font-size: var(--t-xs); }
.opcion input { width: 17px; height: 17px; accent-color: #000; margin: 0; }
.opcion:has(input:disabled) { color: #aaa; cursor: default; }
.barra-resultados { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: 1rem; flex-wrap: wrap; }
.barra-resultados .buscar-local { position: relative; flex: 1; max-width: 380px; }
.barra-resultados input[type="search"] { width: 100%; height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 1rem 0 2.4rem; background: #fff; font-size: var(--t-s); }
.barra-resultados .buscar-local svg { position: absolute; left: .8rem; top: 50%; translate: 0 -50%; width: 17px; height: 17px; color: var(--text-2); }
.barra-resultados select { height: 42px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 .75rem; background: #fff; font-size: var(--t-s); }
.conteo { font-size: var(--t-s); color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: .4rem; margin-bottom: 1rem; }
.chips:empty { display: none; }
.chip { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-2); border-radius: 999px; background: #fff; padding: .3rem .7rem; font-size: var(--t-xs); font-weight: 600; cursor: pointer; }
.chip:hover { border-color: #000; }
.chip svg { width: 13px; height: 13px; }
.vacio { border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; text-align: center; }
.vacio h2 { font-size: var(--t-l); font-weight: 700; }
.vacio p { margin: .5rem auto 1.25rem; color: var(--text-2); max-width: 50ch; }
.btn-filtros { display: none; }
.filtros .cerrar-filtros { display: none; }
@media (max-width: 900px) {
  .tienda { grid-template-columns: 1fr; }
  .filtros { display: none; position: fixed; inset: 0; z-index: 60; max-height: none; background: #fff; padding: 1rem var(--gutter) 2rem; }
  .filtros.abiertos { display: block; }
  .filtros.abiertos .cerrar-filtros { display: inline-flex; margin-top: 1rem; }
  .filtros.abiertos .btn-cerrar.cerrar-filtros { display: grid; margin-top: 0; }
  .btn-filtros { display: inline-flex; }
}

/* ---------- Producto ---------- */
.producto { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3.5rem); padding-block: 1rem 3rem; }
.prod-foto { border: 1px solid var(--line); border-radius: var(--r); background: #fff; position: sticky; top: 140px; align-self: start; padding: 4%; }
.prod-foto img { width: 100%; aspect-ratio: 1; object-fit: contain; }
.prod-info .marca { font-size: var(--t-s); }
.prod-info .marca a { color: var(--text-2); }
.prod-info h1 { font-size: var(--t-xxl); font-weight: 700; line-height: 1.15; letter-spacing: -0.015em; margin: .2rem 0 .35rem; }
.prod-info .present { color: var(--text-2); }
.prod-precio { display: flex; align-items: baseline; gap: .75rem; margin-top: 1.1rem; }
.prod-precio .precio { font-size: 2rem; }
.prod-precio small { color: var(--text-2); font-size: var(--t-xs); }
.variantes { margin-top: 1.1rem; }
.variantes p { font-weight: 600; font-size: var(--t-s); margin-bottom: .45rem; color: var(--ink); }
.variantes div { display: flex; flex-wrap: wrap; gap: .45rem; }
.variante { border: 1px solid var(--line-2); border-radius: var(--r-s); padding: .5rem .9rem; text-decoration: none; font-size: var(--t-s); font-weight: 600; background: #fff; }
.variante:hover { border-color: #000; }
.variante[aria-current="true"] { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.comprar { display: grid; grid-template-columns: auto minmax(0, 1fr); gap: .6rem; margin-top: 1.25rem; }
.cantidad { display: flex; align-items: center; border: 1px solid var(--line-2); border-radius: var(--r-s); height: 48px; }
.cantidad button { width: 42px; height: 100%; background: none; border: 0; cursor: pointer; display: grid; place-items: center; border-radius: var(--r-s); }
.cantidad button:hover:not([disabled]) { background: var(--soft); }
.cantidad button[disabled] { color: #bbb; cursor: default; }
.cantidad button svg { width: 16px; height: 16px; }
.cantidad output { min-width: 2.4ch; text-align: center; font-weight: 700; }
.comprar .btn { min-height: 48px; font-size: var(--t-m); }
.comprar .btn-linea { grid-column: 1 / -1; }
.prod-beneficios { margin-top: 1.25rem; border: 1px solid var(--line); border-radius: var(--r); }
.prod-beneficios li { display: flex; gap: .7rem; align-items: center; padding: .7rem .9rem; font-size: var(--t-s); }
.prod-beneficios li + li { border-top: 1px solid var(--line); }
.prod-beneficios svg { width: 20px; height: 20px; flex: none; }
.ficha { margin-top: 1.75rem; }
.ficha h2 { font-size: var(--t-m); font-weight: 700; margin-bottom: .5rem; }
.ficha dl { margin: 0; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.ficha .fila { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr); gap: 1rem; padding: .6rem .9rem; font-size: var(--t-s); }
.ficha .fila:nth-child(odd) { background: var(--soft); }
.ficha dt { color: var(--text-2); }
.ficha dd { margin: 0; color: var(--ink); font-weight: 600; }
.ficha .desc { margin-top: 1.25rem; }
.ficha .aviso { font-size: var(--t-xs); color: var(--text-2); margin-top: 1rem; }
.etiquetas-obj { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: 1rem; }
.etiquetas-obj a { font-size: var(--t-xs); font-weight: 600; border: 1px solid var(--line-2); border-radius: 999px; padding: .3rem .7rem; text-decoration: none; }
.etiquetas-obj a:hover { border-color: #000; }
@media (max-width: 900px) { .producto { grid-template-columns: 1fr; } .prod-foto { position: static; } }

/* ---------- Carrito (panel) ---------- */
.panel-fondo { position: fixed; inset: 0; background: rgb(0 0 0 / .45); z-index: 80; opacity: 0; transition: opacity .2s; }
.panel { position: fixed; top: 0; right: 0; bottom: 0; z-index: 81; width: min(440px, 100%); background: #fff; display: flex; flex-direction: column; transform: translateX(100%); transition: transform .25s ease; overscroll-behavior: contain; box-shadow: -10px 0 30px rgb(0 0 0 / .12); }
.panel.abierto { transform: none; }
.panel-fondo.abierto { opacity: 1; }
.panel-cab { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem; border-bottom: 1px solid var(--line); }
.panel-cab h2 { font-size: var(--t-l); font-weight: 700; }
.btn-cerrar { width: 40px; height: 40px; display: grid; place-items: center; background: none; border: 0; border-radius: var(--r-s); cursor: pointer; }
.btn-cerrar:hover { background: var(--soft); }
.btn-cerrar svg { width: 20px; height: 20px; }
.panel-lista { flex: 1; overflow: auto; padding: 0 1.1rem; overscroll-behavior: contain; }
.item { display: grid; grid-template-columns: 72px minmax(0, 1fr) auto; gap: .8rem; padding: .9rem 0; border-bottom: 1px solid var(--line); align-items: start; }
.item img { width: 72px; height: 72px; object-fit: contain; border: 1px solid var(--line); border-radius: var(--r-s); padding: 4px; background: #fff; }
.item h3 { font-size: var(--t-s); font-weight: 600; line-height: 1.3; }
.item h3 a { text-decoration: none; }
.item .present { font-size: var(--t-xs); color: var(--text-2); }
.item .controles { display: flex; align-items: center; gap: .7rem; margin-top: .45rem; }
.item .cantidad { height: 34px; }
.item .cantidad button { width: 32px; }
.item .cantidad output { font-size: var(--t-s); }
.item .quitar { background: none; border: 0; padding: .3rem 0; font-size: var(--t-xs); text-decoration: underline; cursor: pointer; color: var(--text-2); }
.item .quitar:hover { color: #000; }
.item .subtotal { font-weight: 700; font-size: var(--t-s); }
.panel-pie { border-top: 1px solid var(--line); padding: 1rem 1.1rem calc(1.1rem + env(safe-area-inset-bottom)); }
.meta-envio { font-size: var(--t-s); margin-bottom: .9rem; }
.meta-barra { height: 6px; border-radius: 3px; background: var(--soft-2); margin-top: .45rem; overflow: hidden; }
.meta-barra span { display: block; height: 100%; background: #000; border-radius: 3px; transition: width .3s; }
.total { display: flex; justify-content: space-between; align-items: baseline; font-weight: 700; font-size: var(--t-l); color: var(--ink); margin-bottom: .9rem; }
.panel .vacio { border: 0; padding: 2.5rem 0; }

.aviso-flotante { position: fixed; left: 50%; bottom: calc(1.25rem + env(safe-area-inset-bottom)); z-index: 90; translate: -50% 0; max-width: calc(100vw - 2rem); background: #111; color: #fff; border-radius: var(--r); padding: .8rem 1.1rem; font-size: var(--t-s); display: flex; gap: 1rem; align-items: center; box-shadow: 0 10px 30px rgb(0 0 0 / .25); opacity: 0; transform: translateY(12px); pointer-events: none; transition: opacity .2s, transform .2s; }
.aviso-flotante.visible { opacity: 1; transform: none; pointer-events: auto; }
.aviso-flotante button { background: none; border: 0; color: #fff; text-decoration: underline; cursor: pointer; font-weight: 700; padding: 0; white-space: nowrap; }

/* ---------- Checkout ---------- */
.checkout { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: clamp(1.5rem, 4vw, 3rem); padding-block: 1.5rem 3rem; }
.checkout > h1 { grid-column: 1 / -1; }
.bloque { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1.3rem; margin-bottom: 1rem; }
.bloque h2 { font-size: var(--t-m); font-weight: 700; margin-bottom: .9rem; }
.campos { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem 1rem; }
.campos[hidden] { display: none; }
.campo { display: flex; flex-direction: column; gap: .3rem; }
.campo.ancho { grid-column: 1 / -1; }
.campo label { font-weight: 600; font-size: var(--t-s); color: var(--ink); }
.campo input, .campo select, .campo textarea { height: 46px; border: 1px solid var(--line-2); border-radius: var(--r-s); padding: 0 .8rem; background: #fff; font-size: var(--t-m); }
.campo textarea { height: auto; min-height: 84px; padding: .6rem .8rem; resize: vertical; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: none; border-color: #000; box-shadow: 0 0 0 1px #000; }
.campo .error { color: var(--danger); font-size: var(--t-xs); font-weight: 600; }
.campo [aria-invalid="true"] { border-color: var(--danger); box-shadow: 0 0 0 1px var(--danger); }
.radios { display: grid; gap: .5rem; }
.radio { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .8rem; align-items: center; padding: .85rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-s); cursor: pointer; font-size: var(--t-s); }
.radio input { width: 18px; height: 18px; accent-color: #000; margin: 0; }
.radio strong { display: block; color: var(--ink); }
.radio small { color: var(--text-2); font-size: var(--t-xs); }
.radio:has(input:checked) { border-color: #000; box-shadow: inset 0 0 0 1px #000; }
.radio:has(input:disabled) { opacity: .5; cursor: not-allowed; }
.resumen { border: 1px solid var(--line); border-radius: var(--r); padding: 1.1rem 1.2rem 1.3rem; align-self: start; position: sticky; top: 140px; background: var(--soft); }
.resumen h2 { font-size: var(--t-m); font-weight: 700; margin-bottom: .6rem; }
.resumen .fila { display: flex; justify-content: space-between; gap: 1rem; padding: .4rem 0; font-size: var(--t-s); border-bottom: 1px solid var(--line-2); }
.resumen .total { margin: .9rem 0; }
.resumen .nota { font-size: var(--t-xs); color: var(--text-2); margin-top: .7rem; }
.confirmado { grid-column: 1 / -1; border: 1px solid var(--line); border-radius: var(--r); padding: 2rem; max-width: 680px; }
.confirmado .ok-icono { width: 48px; height: 48px; border-radius: 50%; background: #000; color: #fff; display: grid; place-items: center; margin-bottom: 1rem; }
.confirmado .ok-icono svg { width: 26px; height: 26px; }
.confirmado h2 { font-size: var(--t-xl); font-weight: 700; }
.confirmado p { margin-top: .6rem; max-width: 60ch; }
.confirmado .acciones { display: flex; gap: .6rem; flex-wrap: wrap; margin-top: 1.25rem; }
@media (max-width: 900px) { .checkout { grid-template-columns: 1fr; } .resumen { position: static; } .campos { grid-template-columns: 1fr; } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}

/* ===================================================================
   Feedback de la reunión con Mauro (12-10-2026)
   =================================================================== */

/* Fondos para comparar: la tarjeta de producto sigue blanca, así la foto se
   separa del fondo de la página. Se eligen con ?fondo=… (o el selector de
   ?opciones). */
body { background: var(--bg, var(--paper)); }
.cabecera { background: var(--bg, var(--paper)); }
:root[data-fondo="hueso"] { --bg: #f7f4ee; --soft: #ece7dd; --soft-2: #e3dccf; --line: #e2ddd2; --line-2: #c9c2b4; }
:root[data-fondo="beige"] { --bg: #f2ebdf; --soft: #e7dccb; --soft-2: #ddd0bb; --line: #ddd3c3; --line-2: #c4b8a4; }
:root[data-fondo="gris"]  { --bg: #f2f2f0; --soft: #e6e6e3; --soft-2: #dcdcd8; --line: #dfdfdb; --line-2: #c4c4bf; }
.categoria .img, .banner-chico, .slide-gris { transition: background-color .2s; }

.selector-fondo {
  position: fixed; left: 1rem; bottom: 1rem; z-index: 70;
  display: flex; align-items: center; gap: .35rem; flex-wrap: wrap;
  background: #fff; border: 1px solid var(--line-2); border-radius: 999px; padding: .35rem .45rem .35rem .9rem;
  box-shadow: 0 8px 24px rgb(0 0 0 / .12); font-size: var(--t-xs); font-weight: 600;
}
.selector-fondo button { display: inline-flex; align-items: center; gap: .35rem; border: 1px solid var(--line-2); background: #fff; border-radius: 999px; padding: .3rem .65rem; cursor: pointer; font-size: var(--t-xs); font-weight: 600; }
.selector-fondo button span { width: 14px; height: 14px; border-radius: 50%; border: 1px solid rgb(0 0 0 / .2); }
.selector-fondo button[aria-pressed="true"] { border-color: #000; box-shadow: inset 0 0 0 1px #000; }

/* Barra de mensajes arriba del logo: uno por vez */
.aviso-sup .contenedor { position: relative; height: 38px; padding-block: 0; }
.aviso-msj {
  position: absolute; inset: 0; display: grid; place-items: center; text-align: center;
  font-size: var(--t-s); font-weight: 600; color: #fff; text-decoration: none; padding-inline: var(--gutter);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility 0s linear .4s;
}
.aviso-msj.activo { opacity: 1; visibility: visible; transition: opacity .4s, visibility 0s; }
.aviso-msj:hover { text-decoration: underline; text-underline-offset: .2em; }
@media (max-width: 560px) { .aviso-msj { font-size: var(--t-xs); } }

/* Botón de categorías + menú lateral */
.btn-categorias {
  display: inline-flex; align-items: center; gap: .45rem; height: 100%;
  padding: .7rem .9rem .7rem 0; border: 0; background: none; cursor: pointer;
  font-size: var(--t-s); font-weight: 700; color: #000; border-bottom: 2px solid transparent;
}
.btn-categorias svg { width: 20px; height: 20px; }
.btn-categorias:hover { border-bottom-color: var(--line-2); }
.nav li:nth-child(2) a { padding-left: .8rem; }
.panel-izq { right: auto; left: 0; transform: translateX(-100%); box-shadow: 10px 0 30px rgb(0 0 0 / .12); width: min(360px, 88vw); }
.panel-izq.abierto { transform: none; }
.menu-lista { padding-block: .5rem 1.5rem; }
.menu-rubros a { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; align-items: center; gap: .75rem; padding: .55rem .4rem; border-radius: var(--r-s); text-decoration: none; font-weight: 600; font-size: var(--t-s); color: var(--ink); }
.menu-rubros a:hover { background: var(--soft); }
.menu-rubros img { width: 40px; height: 40px; object-fit: contain; background: #fff; border-radius: 6px; }
.menu-rubros small { color: var(--text-2); font-weight: 400; }
.menu-rubros .menu-todos { grid-column: 1 / 3; text-decoration: underline; text-underline-offset: .2em; }
.menu-grupo { border-top: 1px solid var(--line); margin-top: .6rem; }
.menu-grupo summary { cursor: pointer; padding: .9rem .4rem; font-weight: 700; font-size: var(--t-s); color: var(--ink); list-style: none; display: flex; justify-content: space-between; }
.menu-grupo summary::-webkit-details-marker { display: none; }
.menu-grupo summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; line-height: 1; }
.menu-grupo[open] summary::after { content: "−"; }
.menu-grupo li a { display: block; padding: .45rem .4rem; font-size: var(--t-s); text-decoration: none; color: var(--text); border-radius: var(--r-s); }
.menu-grupo li a:hover { background: var(--soft); color: #000; }

/* Descuento de registrados en carrito y checkout */
.linea-desc { display: flex; justify-content: space-between; gap: 1rem; font-size: var(--t-s); font-weight: 600; color: var(--ok, #1d6b3a); margin-bottom: .5rem; }
.linea-desc-promo { font-size: var(--t-xs); color: var(--text-2); margin-bottom: .7rem; }
.linea-desc-promo a { color: #000; font-weight: 700; }

/* WhatsApp flotante: solo en computadora (en el celular a Mauro le resulta invasivo) */
.wa-flotante {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 70;
  width: 54px; height: 54px; border-radius: 50%; background: #000; color: #fff;
  display: grid; place-items: center; box-shadow: 0 8px 22px rgb(0 0 0 / .25);
  transition: transform .15s, background-color .15s;
}
.wa-flotante:hover { background: #222; transform: translateY(-2px); }
.wa-flotante svg { width: 26px; height: 26px; }
@media (max-width: 900px) { .wa-flotante { display: none; } }

/* En el celular los rieles pasan a grilla vertical de 2 columnas */
@media (max-width: 800px) {
  .riel { grid-auto-flow: row; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-columns: auto; overflow: visible; scroll-snap-type: none; }
  .riel > :nth-child(n+5) { display: none; }
}

/* Filtros de la tienda que se abren y se cierran */
.filtros details { border-bottom: 1px solid var(--line); }
.filtros summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; padding: .8rem 0; font-weight: 700; font-size: var(--t-s); color: var(--ink); }
.filtros summary::-webkit-details-marker { display: none; }
.filtros summary::after { content: "+"; font-weight: 400; font-size: 1.2rem; line-height: 1; }
.filtros details[open] summary::after { content: "−"; }
.filtros details > div { padding-bottom: .7rem; }

/* Cuenta */
.cuenta { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 1.25rem; padding-block: 1.5rem 3rem; max-width: 980px; }
.cuenta > h1 { grid-column: 1 / -1; }
.cuenta .bloque { margin: 0; background: #fff; }
.cuenta .bloque p { color: var(--text-2); font-size: var(--t-s); margin-bottom: 1rem; }
.cuenta .campos { grid-template-columns: 1fr; }
.cuenta .btn { margin-top: 1rem; }
.beneficios-cuenta li { display: flex; gap: .6rem; align-items: flex-start; padding: .45rem 0; font-size: var(--t-s); }
.beneficios-cuenta svg { width: 20px; height: 20px; flex: none; }
@media (max-width: 760px) { .cuenta { grid-template-columns: 1fr; } }
.check { display: flex; gap: .6rem; align-items: flex-start; font-size: var(--t-s); cursor: pointer; margin-top: .9rem; }
.check input { width: 18px; height: 18px; accent-color: #000; margin: .15rem 0 0; flex: none; }
.check small { display: block; color: var(--text-2); font-size: var(--t-xs); }
