/* Miss Elegance · tienda. Sistema visual de la maqueta v3 (estilo Apple). Mobile first. */

:root {
  /* Identidad Miss Elegance (kit 2026-12, versión A). Los nombres viejos se conservan
     para no tocar cada regla: --verde* ahora es la tinta de la marca y --oro el dorado del monograma. */
  --marfil: #FAF7EF;
  --menta: #45CC8C;
  --menta-suave: #E6F3E6;
  --blanco: #FFFFFF;
  --gris: #F2EEE3;
  --arena: #E6F3E6;
  --verde: #1F2420;
  --verde-h: #36403A;
  --verde-osc: #151916;
  --oro: #C99A2E;
  --oro-claro: #E2BC5A;
  --oro-texto: #8A6E2A;
  --tinta: #1F2420;
  --sec: #66705F;
  --texto2: #3F4840;
  --linea: rgba(34, 42, 36, .10);
  --f-titulo: "Cormorant Garamond", Georgia, serif;
  --f-texto: Manrope, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --nav-h: 52px;
  --gutter: 16px;
  --max: 1280px;
  --press: transform 100ms ease-out;
}

*, *::before, *::after { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; scroll-padding-top: var(--nav-h); }

body {
  margin: 0;
  background: var(--marfil);
  color: var(--tinta);
  font-family: var(--f-texto);
  font-optical-sizing: auto;
  font-size: 16px;
  line-height: 1.5;
  letter-spacing: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-tap-highlight-color: transparent;
  overflow-x: hidden;
}
body.menu-abierto { overflow: hidden; }

a { color: inherit; text-decoration: none; }
img { max-width: 100%; }
button { font: inherit; color: inherit; }
h1, h2, h3, p { margin: 0; }
ul { list-style: none; margin: 0; padding: 0; }

:focus-visible { outline: 2px solid var(--verde); outline-offset: 2px; border-radius: 4px; }

.sr {
  position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip {
  position: absolute; left: 12px; top: -60px; z-index: 100;
  background: var(--tinta); color: #fff; padding: 8px 14px; border-radius: 980px; font-size: 13px;
}
.skip:focus { top: 10px; }

/* ---------- Barra de navegación (fina, sticky, translúcida) ---------- */
.nav {
  position: sticky; top: 0; z-index: 50;
  height: var(--nav-h);
  background: rgba(250, 247, 239, .78);
  -webkit-backdrop-filter: saturate(180%) blur(20px);
  backdrop-filter: saturate(180%) blur(20px);
  border-bottom: 1px solid var(--linea);
  font-size: 12.5px;
  color: #3a3a3c;
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .nav { background: var(--marfil); }
}
@media (prefers-reduced-transparency: reduce) {
  .nav { background: var(--marfil); -webkit-backdrop-filter: none; backdrop-filter: none; }
}
.nav-in {
  max-width: var(--max); height: 100%; margin: 0 auto; padding: 0 var(--gutter);
  display: flex; align-items: center; gap: 34px;
}
.lg { display: flex; align-items: baseline; gap: 8px; margin-right: auto; white-space: nowrap; }
.lg b { font-family: var(--f-titulo); font-weight: 500; font-size: 22px; color: var(--oro); letter-spacing: .02em; }
.lg span { font-size: 13px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--tinta); }
.lg img { display: block; height: 28px; width: auto; }
.nav .r { display: flex; align-items: center; gap: 14px; margin-left: auto; }
.nav a { transition: color .2s; }
.nav a:hover { color: var(--tinta); }
.nav-ic { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; padding: 0 4px; }
.nav-ic .txt { display: none; }
.pill { background: var(--tinta); color: #fff !important; border-radius: 980px; padding: 5px 12px; font-weight: 500; display: inline-flex; align-items: center; gap: 6px; transition: var(--press); }
.pill:active { transform: scale(.97); }
.pill-n { background: #fff; color: var(--tinta); border-radius: 980px; min-width: 18px; padding: 0 5px; font-size: 11px; line-height: 18px; text-align: center; }
.pill-n[hidden] { display: none; }
.solo-desk { display: none; }

.menu-btn {
  width: 40px; height: 40px; margin-right: -8px; border: 0; background: transparent; cursor: pointer;
  display: inline-flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px;
}
.menu-btn span { display: block; width: 18px; height: 1.5px; background: var(--tinta); border-radius: 2px; transition: transform .25s ease; }
.nav.abierta .menu-btn span:first-child { transform: translateY(3.75px) rotate(45deg); }
.nav.abierta .menu-btn span:last-child { transform: translateY(-3.75px) rotate(-45deg); }

/* Menú colapsado (móvil y tablet): panel bajo la barra */
.nav-links {
  display: none;
  position: absolute; top: 100%; left: 0; right: 0;
  height: calc(100vh - var(--nav-h)); height: calc(100dvh - var(--nav-h));
  overflow-y: auto; background: #fff; padding: 20px var(--gutter) 40px;
}
.nav.abierta .nav-links { display: block; animation: menu-in .2s ease-out; }
.nav-links a { display: block; padding: 10px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--tinta); }
@keyframes menu-in { from { opacity: 0; transform: translateY(-6px); } to { opacity: 1; transform: none; } }

@media (min-width: 1024px) {
  .nav-in { padding: 0 48px; }
  .nav-links { display: block; position: static; height: auto; overflow: visible; background: none; padding: 0; animation: none !important; }
  .nav-links ul { display: flex; gap: 34px; }
  .nav-links a { display: inline; padding: 0; font-size: inherit; font-weight: 400; letter-spacing: inherit; color: inherit; }
  .nav-links .solo-movil { display: none; }
  .nav .r { gap: 22px; }
  .nav-ic .txt { display: inline; }
  .solo-desk { display: inline; }
  .menu-btn { display: none; }
}

/* ---------- Aviso superior ---------- */
.ribbon { text-align: center; font-size: 12.5px; color: var(--sec); padding: 10px var(--gutter); background: var(--gris); }
.ribbon a:hover { color: var(--tinta); }
.ribbon .chev { color: var(--verde); font-weight: 500; }

/* ---------- Botones y enlaces de acción ---------- */
.ctas { display: flex; flex-wrap: wrap; gap: 14px; justify-content: center; align-items: center; }
.btn {
  display: inline-block; background: var(--verde); color: #fff; border-radius: 980px;
  padding: 11px 22px; font-size: 15px; font-weight: 500; line-height: 1.2;
  transition: var(--press), background .2s;
}
.btn:hover { background: var(--verde-h); }
.btn:active, .tile:active, .cat:active, .add:active, .wa-flotante:active { transform: scale(.97); }
.lnk { color: var(--verde); font-size: 15px; font-weight: 500; white-space: nowrap; }
.lnk::after { content: " ›"; }
.lnk:hover { text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Slider de banners (hero) ---------- */
.slider { position: relative; overflow: hidden; background: var(--arena); }
.slides { display: flex; touch-action: pan-y; transition: transform .55s cubic-bezier(.25, .1, .25, 1); will-change: transform; }
.slides.arrastrando { transition: none; user-select: none; }
.slides img, .slides a { -webkit-user-drag: none; }
.slide {
  flex: 0 0 100%; min-width: 0;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-end;
  text-align: center; background: var(--arena); padding: 40px var(--gutter) 0;
}
.slide-txt { max-width: 760px; margin: 0 auto; }
.slide:not(:has(.shot)) { padding-bottom: 72px; justify-content: center; }
.eyebrow { font-size: 13px; font-weight: 600; color: var(--oro); letter-spacing: .02em; margin: 0 0 8px; }
.hero-t { font-size: 40px; line-height: 1.06; letter-spacing: -.035em; font-weight: 600; text-wrap: balance; }
.hero-s { font-size: 17px; line-height: 1.38; letter-spacing: -.01em; color: var(--texto2); margin: 10px 0 20px; text-wrap: balance; }
.slide-txt > .hero-t:last-child { margin-bottom: 4px; }
.shot { display: block; width: min(720px, 100%); margin: 28px auto 0; }
.shot img {
  display: block; width: 100%; height: clamp(220px, 62vw, 340px);
  object-fit: cover; object-position: center 38%; border-radius: 18px 18px 0 0;
}
.tema-oscuro { background: var(--verde-osc); color: #f5f5f7; }
.tema-oscuro .hero-s { color: #b9c7bd; }
.tema-oscuro .eyebrow, .tema-oscuro .lnk { color: var(--oro-claro); }
.tema-oscuro .btn { background: var(--oro-claro); color: var(--verde-osc); }
.tema-oscuro .btn:hover { background: #e4cb8e; }

.slider-ctl {
  position: absolute; left: 50%; bottom: 14px; transform: translateX(-50%);
  display: flex; align-items: center; gap: 2px; padding: 3px;
  background: rgba(255, 255, 255, .72);
  -webkit-backdrop-filter: saturate(180%) blur(20px); backdrop-filter: saturate(180%) blur(20px);
  border-radius: 980px; box-shadow: 0 1px 2px rgba(0, 0, 0, .06);
}
@media (prefers-reduced-transparency: reduce) { .slider-ctl { background: #fff; -webkit-backdrop-filter: none; backdrop-filter: none; } }
.sl-flecha, .sl-pausa, .sl-punto { border: 0; background: transparent; cursor: pointer; color: var(--tinta); }
.sl-flecha, .sl-pausa { width: 32px; height: 32px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; transition: background .2s, var(--press); }
.sl-flecha:hover, .sl-pausa:hover { background: rgba(0, 0, 0, .06); }
.sl-flecha:active, .sl-pausa:active { transform: scale(.94); }
.sl-puntos { display: flex; align-items: center; }
.sl-punto { width: 18px; height: 32px; padding: 0; display: inline-flex; align-items: center; justify-content: center; }
.sl-punto::before { content: ""; width: 7px; height: 7px; border-radius: 980px; background: rgba(0, 0, 0, .28); transition: width .3s ease, background .3s ease; }
.sl-punto[aria-current="true"] { width: 28px; }
.sl-punto[aria-current="true"]::before { width: 20px; background: var(--tinta); }
.sl-pausa .ic-play { display: none; }
.slider.detenido .sl-pausa .ic-pausa { display: none; }
.slider.detenido .sl-pausa .ic-play { display: inline; }

/* ---------- Secciones ---------- */
.sec { max-width: var(--max); margin: 0 auto; padding: 48px var(--gutter) 0; }
.sec h2 { font-size: 28px; line-height: 1.12; letter-spacing: -.028em; font-weight: 600; text-wrap: balance; }
.sec h2 span { color: var(--sec); }
.row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; margin-bottom: 20px; }

/* Categorías */
.cats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.cat {
  display: block; height: 100%; background: var(--gris); border-radius: 18px; padding: 16px 8px 12px;
  text-align: center; font-size: 13px; font-weight: 500; transition: var(--press);
}
.cat img, .cat-ini { width: 56px; height: 56px; display: block; margin: 0 auto 10px; }
.cat img { object-fit: contain; mix-blend-mode: multiply; }
.cat-ini { display: flex; align-items: center; justify-content: center; border-radius: 50%; background: #fff; color: var(--oro); box-shadow: inset 0 0 0 1px rgba(168, 135, 63, .18); font-family: var(--f-titulo); font-size: 28px; line-height: 1; }

/* Grilla de productos */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.tile {
  background: var(--gris); border-radius: 18px; padding: 14px 12px 14px;
  display: flex; flex-direction: column; transition: var(--press);
}
.t-a { display: flex; flex-direction: column; flex: 1; }
.tile .im { aspect-ratio: 1; display: flex; align-items: center; justify-content: center; margin-bottom: 10px; }
.tile .im img { width: 82%; height: 82%; object-fit: contain; mix-blend-mode: multiply; }
.tile .nw { font-size: 12px; font-weight: 600; color: var(--oro); min-height: 16px; line-height: 16px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile .nw.tag { color: var(--verde); }
.tile .br { font-size: 12px; color: var(--sec); margin-top: 2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tile h3 {
  font-size: 15px; line-height: 1.24; letter-spacing: -.016em; font-weight: 600; margin: 2px 0 10px; min-height: 2.48em;
  display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; line-clamp: 3; overflow: hidden;
}
.tile .ft { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: auto; }
.tile .pr { font-size: 14px; }
.pr s { color: var(--sec); font-size: 13px; margin-left: 6px; display: inline-block; }
.add {
  width: 34px; height: 34px; flex: none; border: 0; border-radius: 50%; cursor: pointer;
  background: var(--verde); color: #fff; display: inline-flex; align-items: center; justify-content: center;
  font-size: 20px; line-height: 1; transition: var(--press), background .2s;
}
.add:hover { background: var(--verde-h); }
.add.off { background: #c7c7cc; cursor: default; }
.tile.agotado .im img { opacity: .55; }
.step { display: flex; align-items: center; gap: 4px; background: #fff; border-radius: 980px; padding: 3px 3px 3px 8px; font-size: 14px; }
.step-b { width: 22px; height: 28px; border: 0; background: transparent; color: var(--sec); cursor: pointer; font-size: 16px; padding: 0; }
.step-n { width: 2.2em; border: 0; background: transparent; text-align: center; font: inherit; color: var(--tinta); padding: 0; -moz-appearance: textfield; appearance: textfield; }
.step-n::-webkit-outer-spin-button, .step-n::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.step .add { width: 28px; height: 28px; font-size: 15px; }

/* Dúo de tarjetas grandes */
.duo { display: grid; grid-template-columns: 1fr; gap: 12px; }
.feat {
  position: relative; overflow: hidden; border-radius: 22px; min-height: 300px; padding: 36px 20px;
  display: flex; flex-direction: column; justify-content: flex-start; text-align: center; background: var(--gris);
}
.feat.con-img { padding-bottom: 190px; }
.feat h3 { font-size: 28px; letter-spacing: -.025em; line-height: 1.1; font-weight: 600; margin: 0 0 6px; text-wrap: balance; }
.feat p { margin: 0 0 16px; color: var(--texto2); text-wrap: balance; }
.feat .ctas { margin-bottom: 12px; }
.feat img { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); height: 170px; width: auto; max-width: 90%; object-fit: contain; mix-blend-mode: multiply; }
.feat-oscuro { background: var(--verde-osc); color: #f5f5f7; }
.feat-oscuro p { color: #b9c7bd; }
.feat-oscuro .lnk { color: var(--oro-claro); }
.feat-oscuro .btn { background: var(--oro-claro); color: var(--verde-osc); }
.feat-oscuro .btn:hover { background: #e4cb8e; }
.feat-oscuro img { mix-blend-mode: normal; }

/* Bloque de texto */
.sec-texto { text-align: center; }
.sec-texto .sub { font-size: 19px; color: var(--sec); margin-top: 6px; }
.sec-texto p:not(.sub) { font-size: 17px; color: var(--texto2); margin: 14px 0 22px; }

/* ---------- Pie ---------- */
.foot { margin-top: 56px; background: var(--gris); border-top: 1px solid var(--linea); font-size: 12px; color: var(--sec); padding-bottom: 72px; }
.foot-in { max-width: var(--max); margin: 0 auto; padding: 36px var(--gutter) 20px; display: grid; grid-template-columns: 1fr 1fr; gap: 28px 20px; }
.foot-marca { grid-column: 1 / -1; }
/* Logo centrado (vertical) del kit, armado con texto real para que la bajada se lea nítida. */
.lg-v { display: inline-flex; flex-direction: column; align-items: center; text-align: center; }
.lg-v img { display: block; height: 72px; width: auto; margin-bottom: 14px; }
.foot .lg-v p { margin: 0; line-height: 1.2; }
.foot .lg-v .lg-vn { font-family: var(--f-titulo); font-weight: 700; font-size: 24px; letter-spacing: .1em; text-transform: uppercase; color: var(--tinta); }
.foot .lg-v .lg-vb { margin-top: 7px; font-family: var(--f-texto); font-weight: 600; font-size: 9.5px; letter-spacing: .3em; text-transform: uppercase; color: var(--oro-texto); }
.slogan { font-family: var(--f-titulo); font-size: 18px; color: var(--oro); margin-top: 2px; }
.foot h2 a { color: inherit; }
.foot h2 { font-size: 12px; font-weight: 600; color: var(--tinta); margin-bottom: 8px; letter-spacing: 0; }
.foot p, .foot li { line-height: 1.7; }
.foot p + p { margin-top: 8px; }
.foot strong { color: var(--tinta); font-weight: 500; }
.foot a:hover { color: var(--tinta); text-decoration: underline; text-underline-offset: 2px; }
.foot-base {
  max-width: var(--max); margin: 0 auto; padding: 16px var(--gutter);
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px;
  border-top: 1px solid var(--linea);
}

/* Botón flotante de WhatsApp */
.wa-flotante {
  position: fixed; z-index: 40; right: 16px; bottom: calc(16px + env(safe-area-inset-bottom));
  width: 54px; height: 54px; border-radius: 50%; display: flex; align-items: center; justify-content: center;
  background: var(--verde); color: #fff; box-shadow: 0 6px 20px rgba(15, 46, 31, .28); transition: var(--press), background .2s;
}
.wa-flotante:hover { background: var(--verde-h); }

/* ---------- Tablet ---------- */
@media (min-width: 768px) {
  :root { --gutter: 32px; }
  .hero-t { font-size: 56px; }
  .hero-s { font-size: 21px; margin: 10px 0 22px; }
  .slide { padding-top: 56px; }
  .shot { margin-top: 40px; }
  .shot img { border-radius: 22px 22px 0 0; }
  .sec { padding-top: 64px; }
  .sec h2 { font-size: 34px; }
  .row { margin-bottom: 26px; }
  .cats { grid-template-columns: repeat(6, 1fr); gap: 14px; }
  .cat { padding: 18px 10px 14px; }
  .cat img, .cat-ini { width: 72px; height: 72px; }
  .cat-ini .ic { width: 34px; height: 34px; }
  .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
  .tile { border-radius: 20px; padding: 22px 20px; }
  .tile .im { margin-bottom: 16px; }
  .tile h3 { font-size: 17px; -webkit-line-clamp: 2; line-clamp: 2; }
  .tile .pr { font-size: 15px; }
  .duo { grid-template-columns: 1fr 1fr; gap: 18px; }
  .feat { min-height: 360px; padding: 40px; border-radius: 24px; }
  .feat.con-img { padding-bottom: 200px; }
  .feat h3 { font-size: 34px; }
  .feat img { height: 190px; }
  .foot { margin-top: 72px; padding-bottom: 0; }
  .foot-base { padding-right: 88px; } /* deja lugar al botón flotante de WhatsApp */
  .foot-in { grid-template-columns: 2fr 1fr 1fr 1fr; padding-top: 40px; }
  .foot-marca { grid-column: auto; }
}

/* ---------- Desktop ---------- */
@media (min-width: 1024px) {
  :root { --gutter: 48px; }
  .hero-t { font-size: 64px; line-height: 1.05; }
  .slide { padding-top: 64px; }
  .sec { padding-top: 72px; }
  .sec h2 { font-size: 40px; line-height: 1.1; }
  .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
  .foot-base { padding: 22px var(--gutter); }
}

@media (prefers-reduced-motion: reduce) {
  .btn, .tile, .cat, .add, .pill, .wa-flotante, .slides, .sl-punto::before, .menu-btn span, .sl-flecha, .sl-pausa { transition: none; }
  .nav.abierta .nav-links { animation: none; }
}

/* ---------- Listados y búsqueda ---------- */
.lst-cab { padding-bottom: 0; }
.lst-t { font-size: 32px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; }
.lst-n { color: var(--sec); margin-top: 4px; }
.buscador { display: flex; gap: 8px; margin-top: 16px; max-width: 560px; }
.buscador input {
  flex: 1; min-width: 0; height: 44px; border: 0; border-radius: 980px; background: var(--gris);
  padding: 0 18px; font: inherit; font-size: 16px; color: var(--tinta);
}
.buscador .btn { border: 0; cursor: pointer; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 16px; }
.chip {
  display: inline-flex; align-items: center; min-height: 36px; padding: 0 16px; border: 0; border-radius: 980px;
  background: var(--gris); color: var(--tinta); font-size: 14px; font-weight: 500; cursor: pointer; transition: var(--press), background .2s;
}
.chip:hover { background: #ebebe6; }
.chip:active { transform: scale(.97); }
.chip[aria-pressed="true"] { background: var(--tinta); color: #fff; }
.lst { padding-top: 20px; }
.lst-bar { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 16px; }
.orden { display: flex; align-items: center; gap: 8px; margin-left: auto; font-size: 13px; color: var(--sec); }
.orden select {
  height: 36px; border: 0; border-radius: 980px; background: var(--gris); color: var(--tinta);
  padding: 0 12px; font: inherit; font-size: 14px; font-weight: 500; cursor: pointer;
}
.vacio { text-align: center; padding: 56px 0 24px; color: var(--sec); }
.vacio-t { font-size: 20px; font-weight: 600; letter-spacing: -.02em; color: var(--tinta); margin-bottom: 6px; }
.vacio .ctas { margin-top: 20px; }

/* Filtros: sin JS quedan como bloque; con JS, hoja inferior en móvil */
.filtros { background: var(--gris); border-radius: 18px; padding: 16px; margin-bottom: 20px; }
.filtros-cab { display: flex; justify-content: space-between; align-items: center; margin-bottom: 4px; }
.filtros-cab h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; }
.filtros-x { display: none; width: 36px; height: 36px; border: 0; border-radius: 50%; background: rgba(0, 0, 0, .06); font-size: 22px; line-height: 1; cursor: pointer; }
.f-grupo { border: 0; margin: 0; padding: 14px 0 0; min-width: 0; }
.f-grupo legend { padding: 0; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.f-lista { display: flex; flex-direction: column; max-height: 220px; overflow-y: auto; }
.f-op { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: 14px; cursor: pointer; }
.f-op input { accent-color: var(--verde); width: 18px; height: 18px; margin: 0; flex: none; }
.f-op em { font-style: normal; color: var(--sec); font-size: 12.5px; }
.f-precio { display: flex; align-items: center; gap: 8px; }
.f-precio input { width: 100%; min-width: 0; height: 40px; border: 0; border-radius: 12px; background: #fff; padding: 0 12px; font: inherit; font-size: 16px; }
.filtros-pie { display: flex; align-items: center; gap: 16px; margin-top: 18px; }
.filtros-pie .btn { border: 0; cursor: pointer; }
.chip-filtros { display: none; }

body.js-filtros .chip-filtros { display: inline-flex; }
body.js-filtros .filtros-x { display: inline-flex; align-items: center; justify-content: center; }
body.js-filtros .filtros-fondo { position: fixed; inset: 0; z-index: 60; background: rgba(0, 0, 0, .35); }
body.js-filtros .filtros-fondo[hidden] { display: none; }
body.js-filtros .filtros {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 61; margin: 0;
  max-height: 85vh; max-height: 85dvh; overflow-y: auto; border-radius: 22px 22px 0 0; background: #fff;
  padding: 18px var(--gutter) calc(20px + env(safe-area-inset-bottom));
  transform: translateY(100%); visibility: hidden; transition: transform .28s cubic-bezier(.25, .1, .25, 1), visibility 0s .28s;
}
body.js-filtros .filtros.abierta { transform: none; visibility: visible; transition: transform .28s cubic-bezier(.25, .1, .25, 1); }
body.filtros-abiertos { overflow: hidden; }

/* Paginación */
.pag { display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 8px 14px; margin-top: 32px; font-size: 14px; }
.pag ul { display: flex; align-items: center; gap: 4px; }
.pag-n {
  min-width: 40px; height: 40px; padding: 0 8px; border-radius: 980px; display: inline-flex; align-items: center; justify-content: center;
  font-weight: 500; transition: background .2s;
}
a.pag-n:hover { background: var(--gris); }
.pag-n.act { background: var(--tinta); color: #fff; }
.pag-gap { color: var(--sec); padding: 0 2px; }
.pag-f { color: var(--verde); font-weight: 500; padding: 8px 4px; }
.pag-f:hover { text-decoration: underline; text-underline-offset: 3px; }

.cats-marcas { display: grid; }
.cats-marcas li { display: block; }

/* ---------- Ficha de producto ---------- */
.prod { display: grid; gap: 24px; padding-top: 16px; }
.gal { min-width: 0; }
.gal-main {
  display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; -webkit-overflow-scrolling: touch;
  background: var(--gris); border-radius: 22px;
}
.gal-main::-webkit-scrollbar { display: none; }
.gal-main img {
  flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; padding: 8%;
  scroll-snap-align: center; mix-blend-mode: multiply; -webkit-user-drag: none;
}
.gal-vacia { aspect-ratio: 1; background: var(--gris); border-radius: 22px; display: flex; align-items: center; justify-content: center; }
.gal-vacia span { font-family: var(--f-titulo); font-size: 96px; color: var(--oro); }
.gal-th { display: flex; gap: 10px; margin-top: 12px; overflow-x: auto; scrollbar-width: none; }
.gal-t { flex: none; width: 64px; height: 64px; padding: 6px; border: 2px solid transparent; border-radius: 14px; background: var(--gris); cursor: pointer; transition: border-color .2s; }
.gal-t[aria-current="true"] { border-color: var(--tinta); }
.gal-t img { display: block; width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }

.info { min-width: 0; }
.info-marca { font-size: 13px; font-weight: 600; color: var(--oro); letter-spacing: .02em; text-transform: uppercase; }
.info-marca a:hover { text-decoration: underline; text-underline-offset: 3px; }
.info-t { font-size: 30px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; margin-top: 4px; text-wrap: balance; }
.info-corta { color: var(--texto2); font-size: 16px; margin-top: 8px; }
.info-pr { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 16px; }
.info-pr-n { font-size: 28px; font-weight: 600; letter-spacing: -.025em; }
.info-pr s { color: var(--sec); font-size: 16px; }
.tag-rev { flex-basis: 100%; font-size: 12px; font-weight: 600; color: var(--verde); }
.disp { display: inline-flex; align-items: center; gap: 8px; margin-top: 8px; font-size: 14px; font-weight: 500; }
.disp-p { width: 8px; height: 8px; border-radius: 50%; background: #2e8b57; }
.disp-ultimas .disp-p { background: var(--oro); }
.disp-ultimas { color: var(--oro); }
.disp-sin_stock .disp-p { background: #c7c7cc; }
.disp-sin_stock { color: var(--sec); }

.var { border: 0; margin: 20px 0 0; padding: 0; min-width: 0; }
.var legend { padding: 0; font-size: 13px; font-weight: 600; margin-bottom: 8px; }
.var-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.var-chip { min-height: 40px; }
.var-msg { font-size: 13px; color: var(--sec); margin-top: 8px; }
.var-msg[hidden] { display: none; }

.compra { display: flex; align-items: center; gap: 12px; margin-top: 22px; }
.step-lg { background: var(--gris); padding: 4px 6px; }
.step-lg .step-b { width: 36px; height: 40px; font-size: 20px; }
.step-lg .step-n { width: 2.6em; font-size: 16px; }
.btn-add { flex: 1; border: 0; cursor: pointer; padding: 14px 22px; font-size: 16px; }
.btn-add:disabled { background: #c7c7cc; cursor: not-allowed; }
.btn-add:disabled:active { transform: none; }
.compra-msg { min-height: 20px; margin-top: 8px; font-size: 13px; color: var(--verde); }

.info-desc, .info-attrs { margin-top: 28px; padding-top: 22px; border-top: 1px solid var(--linea); }
.info-desc h2, .info-attrs h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin-bottom: 10px; }
.info-desc p { color: var(--texto2); }
.info-desc p + p { margin-top: 10px; }
.info-attrs dl { margin: 0; }
.info-attrs dl > div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px solid var(--linea); font-size: 14px; }
.info-attrs dt { color: var(--sec); }
.info-attrs dd { margin: 0; font-weight: 500; text-align: right; }

@media (min-width: 768px) {
  .lst-t { font-size: 44px; }
  .lst-cab { padding-top: 48px; }
  .cats-marcas { grid-template-columns: repeat(4, 1fr); }
  .info-t { font-size: 40px; }
  .prod { padding-top: 40px; }
}

@media (min-width: 1024px) {
  .lst-t { font-size: 52px; }
  .lst-cab { padding-top: 56px; }
  .cats-marcas { grid-template-columns: repeat(6, 1fr); }
  .lst { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 40px; align-items: start; padding-top: 28px; }
  .chip-filtros, body.js-filtros .chip-filtros, .filtros-x, body.js-filtros .filtros-x { display: none; }
  body.js-filtros .filtros-fondo { display: none; }
  .filtros, body.js-filtros .filtros {
    position: sticky; top: calc(var(--nav-h) + 16px); z-index: auto; margin: 0; max-height: calc(100vh - var(--nav-h) - 32px); overflow-y: auto;
    border-radius: 18px; background: var(--gris); padding: 18px; transform: none; visibility: visible; transition: none;
  }
  .lst-bar { justify-content: flex-end; }
  .prod { grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 64px; align-items: start; padding-top: 48px; }
  .gal { position: sticky; top: calc(var(--nav-h) + 24px); }
  .info-t { font-size: 44px; }
}

@media (prefers-reduced-motion: reduce) {
  .chip, body.js-filtros .filtros { transition: none; }
}

/* ---------- Aviso breve (agregado al pedido) ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(20px + env(safe-area-inset-bottom)); z-index: 70;
  transform: translate(-50%, 12px); opacity: 0; pointer-events: none;
  background: var(--tinta); color: #fff; border-radius: 980px; padding: 10px 18px; font-size: 14px; white-space: nowrap;
  box-shadow: 0 8px 24px rgba(0, 0, 0, .18); transition: opacity .2s ease-out, transform .2s ease-out;
}
.toast.visible { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast a { color: var(--oro-claro); font-weight: 500; margin-left: 4px; }
.toast a:hover { text-decoration: underline; text-underline-offset: 2px; }

/* ---------- Pedido ---------- */
.ped { padding-top: 24px; }
.ped-cab { margin-bottom: 20px; }
.ped-cargando { color: var(--sec); padding: 32px 0; }
.ped-cargando[hidden], .ped-avisos[hidden], .ped-grid[hidden], .vacio[hidden] { display: none; }
.ped-avisos { background: var(--arena); border-radius: 18px; padding: 14px 18px; margin-bottom: 20px; font-size: 14px; }
.ped-avisos-t { font-weight: 600; margin-bottom: 4px; }
.ped-avisos ul { list-style: disc; padding-left: 18px; color: var(--texto2); }
.ped-avisos li + li { margin-top: 2px; }
.ped-grid { display: grid; gap: 24px; }
.ped-lineas { border-top: 1px solid var(--linea); }
.ped-linea { display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--linea); }
.ped-im { flex: none; width: 72px; height: 72px; border-radius: 14px; background: var(--gris); display: flex; align-items: center; justify-content: center; overflow: hidden; }
.ped-im img { width: 84%; height: 84%; object-fit: contain; mix-blend-mode: multiply; }
.ped-info { flex: 1; min-width: 0; }
.ped-n { font-weight: 600; letter-spacing: -.015em; line-height: 1.3; }
.ped-var { font-size: 13px; color: var(--texto2); margin-top: 2px; }
.ped-pu { font-size: 13px; color: var(--sec); margin-top: 2px; }
.ped-pie { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 10px; }
.ped-step { padding: 2px 4px; }
.ped-step .step-b { width: 32px; height: 34px; }
.ped-step .step-b:disabled { opacity: .35; cursor: default; }
.ped-step .step-n { width: 2.4em; font-size: 15px; }
.ped-sub { font-weight: 600; margin-left: auto; }
.ped-quitar { border: 0; background: transparent; padding: 6px 0; color: var(--verde); font-size: 13px; font-weight: 500; cursor: pointer; }
.ped-quitar:hover { text-decoration: underline; text-underline-offset: 3px; }
.ped-resumen { background: var(--gris); border-radius: 22px; padding: 20px; align-self: start; }
.ped-total { display: flex; justify-content: space-between; align-items: baseline; padding-bottom: 16px; margin-bottom: 16px; border-bottom: 1px solid var(--linea); }
.ped-total span { font-size: 15px; color: var(--texto2); }
.ped-total strong { font-size: 26px; font-weight: 600; letter-spacing: -.025em; }
.campo { margin-bottom: 14px; }
.campo label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.campo input {
  width: 100%; height: 46px; border: 1px solid transparent; border-radius: 12px; background: #fff;
  padding: 0 14px; font: inherit; font-size: 16px; color: var(--tinta); transition: border-color .2s;
}
.campo input:focus-visible { outline: none; border-color: var(--verde); }
.campo input[aria-invalid="true"] { border-color: #b3261e; }
.campo-err { font-size: 12.5px; color: #b3261e; margin-top: 4px; min-height: 0; }
.campo-err:empty { display: none; }
.ped-cuenta { background: var(--verde-osc); color: #f5f5f7; border-radius: 16px; padding: 14px 16px; margin-bottom: 16px; }
.ped-cuenta-t { font-size: 12px; font-weight: 600; color: var(--oro-claro); margin-bottom: 2px; }
.ped-cuenta-s { color: #b9c7bd; font-size: 14px; }
/* Selector de consultora: tarjetas de un toque (radio nativo, accesible por teclado). */
.ped-cons { border: 0; margin: 4px 0 18px; padding: 0; min-width: 0; }
.ped-cons-t { font-size: 13px; font-weight: 600; padding: 0; }
.ped-cons-s { font-size: 12.5px; color: var(--sec); margin: 2px 0 10px; }
.ped-cons-lista { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
.ped-con {
  position: relative; display: flex; flex-direction: column; align-items: center; gap: 6px;
  background: #fff; border-radius: 14px; padding: 10px 2px 8px; cursor: pointer; text-align: center;
  box-shadow: inset 0 0 0 1px transparent; transition: box-shadow .2s, var(--press);
  -webkit-tap-highlight-color: transparent;
}
.ped-con:active { transform: scale(.97); }
.ped-con input { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.ped-con-av { width: 44px; height: 44px; border-radius: 50%; object-fit: cover; display: block; background: var(--gris); }
.ped-con-ini {
  display: flex; align-items: center; justify-content: center; color: var(--oro);
  box-shadow: inset 0 0 0 1px rgba(168, 135, 63, .18);
  font-family: var(--f-titulo); font-size: 24px; line-height: 1;
}
.ped-con-n { font-size: 11.5px; font-weight: 500; line-height: 1.2; letter-spacing: -.01em; color: var(--texto2); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ped-con:has(input:checked) { box-shadow: inset 0 0 0 2px var(--verde); }
.ped-con:has(input:checked) .ped-con-n { color: var(--tinta); font-weight: 600; }
.ped-con:has(input:checked) .ped-con-ini { background: var(--verde); color: #fff; box-shadow: none; }
.ped-con:has(input:focus-visible) { outline: 2px solid var(--verde); outline-offset: 2px; }
/* Con link vigente, "Cualquiera" va a la del link: el aviso aparece solo con "Cualquiera" marcada. */
.ped-cons-aviso { display: none; font-size: 12.5px; color: var(--sec); margin: 8px 2px 0; }
.ped-cons:has(input[name="consultora_id"][value="0"]:checked) .ped-cons-aviso { display: block; }
.ped-listo-cons { color: var(--verde); font-weight: 600; margin-bottom: 4px; }
.ped-enviar { width: 100%; }
.ped-enviar:disabled { opacity: .6; cursor: progress; }
.ped-msg { min-height: 20px; margin-top: 10px; font-size: 13px; color: var(--texto2); }
.ped-msg:empty { min-height: 0; margin: 0; }
.ped-nota { font-size: 12.5px; color: var(--sec); margin-top: 10px; }
.ped-listo { text-align: center; padding: 40px 0 16px; color: var(--sec); }
.ped-listo .ctas { margin-top: 20px; }

@media (min-width: 768px) {
  .ped { padding-top: 48px; }
  .ped-im { width: 96px; height: 96px; }
  .ped-linea { gap: 20px; padding: 20px 0; }
}
@media (min-width: 1024px) {
  .ped-grid { grid-template-columns: minmax(0, 1fr) 360px; gap: 48px; align-items: start; }
  .ped-resumen { position: sticky; top: calc(var(--nav-h) + 24px); padding: 24px; }
}
@media (prefers-reduced-motion: reduce) {
  .toast, .campo input, .ped-con { transition: none; }
  .ped-con:active { transform: none; }
}

/* ---------- Revendedoras: aviso, nav, landing y formularios ---------- */
.ribbon-rev { background: var(--verde-osc); color: #d9e3dc; }
.nav-salir { display: none; margin: 0; }
.nav-salir button { border: 0; background: none; padding: 0; font: inherit; color: inherit; cursor: pointer; transition: color .2s; }
.nav-salir button:hover { color: var(--tinta); }
.nav-links .nav-salir { display: block; }
.nav-links .nav-salir button { display: block; padding: 10px 0; font-size: 24px; font-weight: 600; letter-spacing: -.02em; color: var(--tinta); }
.rev-hero { background: var(--verde-osc); color: #f5f5f7; padding: 56px var(--gutter) 60px; text-align: center; }
.rev-hero-in { max-width: 720px; margin: 0 auto; }
.rev-hero .eyebrow { color: var(--oro-claro); }
.rev-hero h1 { font-size: 34px; line-height: 1.08; letter-spacing: -.03em; font-weight: 600; text-wrap: balance; margin: 0 0 12px; }
.rev-lead { font-size: 17px; line-height: 1.4; color: #b9c7bd; margin: 0 0 26px; text-wrap: balance; }
.rev-hero .btn { background: var(--oro-claro); color: var(--verde-osc); }
.rev-hero .btn:hover { background: #e4cb8e; }
.rev-hero .lnk { color: var(--oro-claro); }
.rev-benef { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: 1fr; gap: 12px; }
.rev-benef li { background: var(--gris); border-radius: 22px; padding: 28px 24px; }
.rev-benef h2 { font-size: 20px; line-height: 1.15; letter-spacing: -.02em; font-weight: 600; margin: 0 0 8px; text-wrap: balance; }
.rev-benef p { margin: 0; color: var(--texto2); }
.auth { max-width: 460px; margin: 0 auto; padding: 40px var(--gutter) 0; }
.auth-form { background: var(--gris); border-radius: 22px; padding: 22px 20px; margin-top: 22px; }
.auth-enviar { width: 100%; border: 0; cursor: pointer; font: inherit; font-weight: 500; padding: 13px 20px; }
.auth-error { background: #fbeceb; color: #b3261e; border-radius: 12px; padding: 10px 14px; font-size: 14px; margin-bottom: 14px; }
.auth-pie { margin-top: 14px; font-size: 14px; color: var(--sec); text-align: center; }
@media (min-width: 768px) {
  .rev-hero { padding: 88px 48px 92px; }
  .rev-hero h1 { font-size: 52px; }
  .rev-benef { grid-template-columns: repeat(3, 1fr); gap: 18px; }
  .auth { padding-top: 64px; }
  .auth-form { padding: 28px; }
}
@media (min-width: 1024px) {
  .nav-salir.solo-desk { display: inline; }
}

/* ---------- Íconos (SVG inline propios, app/Core/Icono.php) ---------- */
.ic { display: inline-block; flex: none; vertical-align: middle; }
.nav-ic .ic { color: var(--tinta); }
.nav-links .nav-li-ic { display: flex; align-items: center; gap: 14px; }
.nav-links .nav-sep { margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--linea); }
.nav-links .nav-sep + .nav-sep { margin-top: 0; padding-top: 0; border-top: 0; }
.nav-li-ic .ic { color: var(--oro); }
.pill .ic { margin-left: -2px; }
.pill-t { display: none; }
@media (min-width: 400px) { .pill-t { display: inline; } }
@media (min-width: 1024px) { .nav-ic .ic { width: 15px; height: 15px; color: currentColor; } }
.add .ic { display: block; }
.step-b { display: inline-flex; align-items: center; justify-content: center; }
.step-b:hover:not(:disabled) { color: var(--tinta); }
.btn-add, .ped-enviar { display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.ped-t { display: flex; align-items: center; gap: 12px; }
.ped-t .ic { color: var(--oro); }
.vacio-ic { display: inline-flex; align-items: center; justify-content: center; width: 76px; height: 76px; border-radius: 50%; background: var(--gris); color: var(--verde); margin-bottom: 16px; }
.ped-total span { display: inline-flex; align-items: center; gap: 8px; }
.ped-total span .ic { color: var(--oro); }
.ped-quitar { display: inline-flex; align-items: center; gap: 4px; }
.ped-quitar .ic { width: 16px; height: 16px; }
.toast { display: flex; align-items: center; gap: 8px; }
.toast .ic { color: var(--oro-claro); }
.toast a { margin-left: 0; }
@media (min-width: 1024px) {
  .nav-ic.solo-desk { display: inline-flex; }
  .nav-links .nav-li-ic { display: inline; }
  .nav-links .nav-li-ic .ic { display: none; }
  .nav-links a, .nav .r a { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1199px) {
  .nav-in { padding: 0 24px; gap: 24px; }
  .nav-links ul { gap: 20px; }
  .nav .r { gap: 16px; }
}
.feat:not(.con-img) { justify-content: center; }
/* Listado con filtros al costado: en pantallas medianas, 3 columnas para que los nombres respiren */
@media (min-width: 1024px) and (max-width: 1279px) {
  .lst .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
/* Categorías en móvil: 2 columnas con el ícono al costado (sin huérfanas con 4 categorías) */
@media (max-width: 767px) {
  .cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cat { display: flex; align-items: center; gap: 12px; padding: 12px; text-align: left; line-height: 1.25; }
  .cat img, .cat-ini { flex: none; width: 44px; height: 44px; margin: 0; }
  .cat-ini .ic { width: 24px; height: 24px; }
}
@media (min-width: 768px) {
  .cats:not(.cats-marcas) { grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); }
}
/* En /pedido el botón principal ya es WhatsApp: el flotante tapaba el formulario en móvil */
@media (max-width: 1023px) {
  body:has([data-pedido-pagina]) .wa-flotante { display: none; }
}
.rev-ic { display: inline-flex; align-items: center; justify-content: center; width: 44px; height: 44px; border-radius: 50%; background: var(--verde-osc); color: var(--oro-claro); margin-bottom: 16px; }

/* ---- Identidad Miss Elegance: tipografía y acentos (guía visual del kit) ----
   Titulares en Cormorant Garamond 700; texto, menú y botones en Manrope.
   El dorado y el menta son acentos: el texto chico dorado usa --oro-texto para leerse sobre marfil. */
.hero-t, .sec h2, .feat h3, .lst-t, .info-t, .rev-hero h1,
h1, h2, h3 { font-family: var(--f-titulo); font-weight: 700; letter-spacing: -.005em; }
/* Texto chico de lectura y navegación: Manrope (la serif solo en titulares). */
.tile h3, .foot h2, .nav-links a, .nav-links .nav-salir button { font-family: var(--f-texto); letter-spacing: 0; }
.tile h3 { font-weight: 600; }
.nav-links a { font-weight: 600; }
.hero-t em, .lst-t em, .sec h2 em { font-style: italic; font-weight: 500; }
.info-pr-n, .ped-total strong { font-family: var(--f-texto); font-weight: 600; }
.eyebrow, .tile .nw, .info-marca, .disp-ultimas { color: var(--oro-texto); }
.pill, .btn, button { font-family: var(--f-texto); }
@media (min-width: 1024px) { .hero-t { font-size: 56px; line-height: 1.04; } .lst-t { font-size: 52px; } }
@media (max-width: 733px) { .hero-t { font-size: 40px; } .lst-t, .info-t, .rev-hero h1 { font-size: 34px; } }

/* Marca en la cabecera y el pie: monograma ME (versión para íconos, estrella grande) + nombre en
   Cormorant Garamond Bold mayúsculas, como el logo horizontal del kit. */
.lg { display: inline-flex; align-items: center; gap: 10px; color: var(--tinta); }
.lg-me { display: block; height: 26px; width: auto; }
/* Cabecera: logo horizontal del kit (monograma | nombre + bajada), con texto real para que se lea nítido. */
.lg .lg-div { display: block; width: 1px; height: 28px; background: var(--oro-claro); opacity: .7; flex: none; }
.lg .lg-t { display: flex; flex-direction: column; gap: 4px; font-size: inherit; letter-spacing: 0; }
.lg .lg-n { font-family: var(--f-titulo); font-weight: 700; font-size: 17px; letter-spacing: .08em; text-transform: uppercase; line-height: 1; white-space: nowrap; }
.lg .lg-b { font-family: var(--f-texto); font-weight: 600; font-size: 8px; letter-spacing: .2em; text-transform: uppercase; line-height: 1; white-space: nowrap; color: var(--oro-claro); }
.nav .lg-me { height: 30px; }
@media (min-width: 1024px) {
  .nav .lg-me { height: 36px; }
  .nav .lg .lg-div { height: 36px; }
  .nav .lg .lg-n { font-size: 20px; }
  .nav .lg .lg-b { font-size: 9px; letter-spacing: .26em; }
}
@media (max-width: 379px) { .nav .lg .lg-n { font-size: 15px; letter-spacing: .05em; } .nav .lg .lg-b { font-size: 7.5px; letter-spacing: .14em; } }
@media (max-width: 339px) { .nav .lg .lg-t, .nav .lg .lg-div { display: none; } }
/* La marca no se encoge: si falta lugar, el menú se acomoda (antes el nombre se montaba sobre "Perfumes"). */
.nav .lg { flex: none; }
@media (min-width: 1024px) and (max-width: 1199px) { .nav .lg .lg-n { font-size: 17px; letter-spacing: .06em; } .nav .lg .lg-b { font-size: 8px; letter-spacing: .2em; } }
/* Rótulos chicos (filtros, descripción, detalles): Manrope; la serif queda para titulares grandes. */
.filtros-cab h2, .info-desc h2, .info-attrs h2 { font-family: var(--f-texto); font-size: 16px; letter-spacing: 0; }


/* ======================================================================
   Estilo catálogo (referencia: tiendas de perfumería tipo Notino).
   Fondo blanco, tipografía sans en toda la interfaz (la serif queda para el logo y el titular del banner),
   esquinas casi rectas, cajas gris cálido, cabecera oscura con buscador y barra de categorías.
   ====================================================================== */
:root { --nav-h: 110px; --caja: #F6F4EF; --caja-b: #ECE8DE; --r: 4px; --sombra: 0 1px 2px rgba(34, 42, 36, .08), 0 1px 1px rgba(34, 42, 36, .04); }
body { background: #fff; }

/* Tipografía: sans para títulos de interfaz. */
h1, h2, h3, .sec h2, .feat h3, .lst-t, .info-t, .rev-hero h1 { font-family: var(--f-texto); font-weight: 700; letter-spacing: -.01em; }
.sec h2 { font-size: 22px; line-height: 1.2; }
.sec h2 span { display: block; margin-bottom: 4px; font-size: 14px; font-weight: 400; letter-spacing: 0; color: var(--sec); }
.lnk { font-size: 14px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
.btn { border-radius: var(--r); font-size: 14px; font-weight: 600; letter-spacing: .01em; }
@media (min-width: 768px) { .sec h2 { font-size: 26px; } .sec { padding-top: 56px; } }

/* ---- Cabecera ---- */
.nav {
  height: auto; background: var(--tinta); color: #F5F1E6; border-bottom: 0;
  -webkit-backdrop-filter: none; backdrop-filter: none;
}
.nav-in {
  display: grid; grid-template-columns: auto minmax(0, 1fr) auto; grid-template-areas: "lg . r" "bus bus bus";
  align-items: center; gap: 8px 12px; height: auto; padding: 8px var(--gutter) 10px;
}
.nav .lg { grid-area: lg; height: 44px; }
.nav .lg-n { color: #F5F1E6; }
.nav .r { grid-area: r; margin-left: 0; gap: 12px; }
.nav a:hover, .nav .nav-ic:hover { color: #fff; }
.nav-ic, .nav-salir button { color: #E9E4D6; font-size: 14px; }
.nav-buscar {
  grid-area: bus; display: flex; align-items: center; height: 40px; background: #fff; border-radius: var(--r); overflow: hidden;
}
.nav-buscar input {
  flex: 1; min-width: 0; height: 100%; border: 0; padding: 0 14px; background: transparent; color: var(--tinta);
  font: 15px/1 var(--f-texto);
}
.nav-buscar input::placeholder { color: #7A8276; }
.nav-buscar input:focus { outline: none; }
.nav-buscar:focus-within { box-shadow: 0 0 0 2px var(--oro-claro); }
.nav-buscar button { flex: none; width: 44px; height: 100%; border: 0; background: transparent; color: var(--tinta); cursor: pointer; display: inline-flex; align-items: center; justify-content: center; }
.pill { background: var(--oro-claro); color: var(--tinta) !important; border-radius: var(--r); padding: 8px 12px; font-weight: 600; font-size: 14px; }
.pill-n { background: var(--tinta); color: #fff; }
.menu-btn span { background: #F5F1E6; }
.nav-links { top: 100%; color: var(--tinta); }
@media (min-width: 1024px) {
  :root { --nav-h: 112px; }
  .nav-in { grid-template-columns: auto minmax(0, 640px) auto; grid-template-areas: "lg bus r"; justify-content: space-between; height: 68px; padding: 0 48px; column-gap: 32px; }
  .nav-buscar { height: 42px; }
  .nav-links { display: block; position: static; height: auto; background: var(--verde-osc); padding: 0; border-top: 1px solid rgba(255, 255, 255, .06); }
  .nav-links ul { max-width: var(--max); height: 44px; margin: 0 auto; padding: 0 48px; display: flex; align-items: center; gap: 28px; }
  .nav-links a { color: #E9E4D6; font-size: 14px; font-weight: 500; }
  .nav-links a:hover { color: var(--oro-claro); }
}
@media (min-width: 1024px) and (max-width: 1199px) { .nav-in { padding: 0 24px; column-gap: 20px; } .nav-links ul { padding: 0 24px; gap: 20px; } }

/* Aviso superior: franja fina y neutra. */
.ribbon { background: var(--caja); color: var(--texto2); font-size: 13px; }

/* ---- Banner principal ---- */
.slider {
  width: calc(100% - 2 * var(--gutter)); max-width: calc(var(--max) - 2 * var(--gutter));
  margin: 16px auto 0; border-radius: var(--r); background: var(--caja);
}
.slide { background: var(--caja); }
.slide:has(.vitrina) {
  display: grid; grid-template-columns: 1fr; align-items: center; gap: 20px;
  text-align: left; padding: 28px 20px 68px;
}
.slide:has(.vitrina) .slide-txt { margin: 0; max-width: 520px; }
.slide.tema-oscuro { background: var(--tinta); }
.eyebrow { font-family: var(--f-texto); font-size: 12px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--oro-texto); margin-bottom: 10px; }
.tema-oscuro .eyebrow { color: var(--oro-claro); }
.hero-t { font-family: var(--f-titulo); font-weight: 700; font-size: 36px; line-height: 1.05; letter-spacing: -.01em; }
.hero-s { font-size: 16px; max-width: 46ch; }
.vitrina { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.vt { position: relative; display: block; border-radius: var(--r); transition: transform .2s ease-out; }
.vt:hover { transform: translateY(-2px); }
.vt img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.tema-oscuro .vt { background: #fff; padding: 8px; }
.vt-p {
  position: absolute; left: 6px; bottom: 6px; padding: 3px 8px; border-radius: 2px;
  background: #fff; color: var(--tinta); font-size: 12px; font-weight: 700; font-variant-numeric: tabular-nums; box-shadow: var(--sombra);
}
@media (min-width: 900px) {
  .slide:has(.vitrina) { grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 40px; padding: 40px 56px 64px; min-height: 340px; }
  .hero-t { font-size: 48px; }
  .vitrina { gap: 16px; }
}
@media (prefers-reduced-motion: reduce) { .vt, .vt:hover { transition: none; transform: none; } }

/* ---- Tira de marcas ---- */
.marcas-tira { padding-top: 20px; }
.marcas-tira .row { margin: 0; }
.mt-lista { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; padding: 2px 2px 6px; }
.mt-lista::-webkit-scrollbar { display: none; }
.mt-lista li { flex: 0 0 132px; }
.mt {
  display: flex; align-items: center; justify-content: center; height: 72px; padding: 0 12px; text-align: center;
  background: var(--caja); border-radius: var(--r); box-shadow: var(--sombra); transition: box-shadow .2s;
}
.mt:hover { box-shadow: 0 0 0 1px var(--tinta); }
.mt img { max-height: 40px; width: auto; mix-blend-mode: multiply; }
.mt span { font-family: var(--f-titulo); font-weight: 700; font-size: 17px; line-height: 1.1; letter-spacing: .06em; text-transform: uppercase; }
.mt-todas { font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: #fff; box-shadow: inset 0 0 0 1px var(--caja-b); }
@media (min-width: 1024px) {
  .mt-lista { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); overflow: visible; }
}

/* ---- Banners de promo (dúo) ---- */
.duo { gap: 16px; }
.feat {
  display: grid; grid-template-columns: 1fr; align-content: center; gap: 16px;
  min-height: 220px; padding: 24px; border-radius: var(--r); text-align: left; background: var(--caja);
}
.feat.con-img { padding-bottom: 24px; }
.feat h3 { font-size: 22px; line-height: 1.2; margin-bottom: 6px; }
.feat p { font-size: 15px; text-wrap: pretty; }
.feat .feat-im img { position: static; left: auto; bottom: auto; transform: none; height: auto; max-width: none; }
.feat-fotos { display: flex; align-items: flex-end; justify-content: center; gap: 4px; }
.feat-fotos img { width: 33%; aspect-ratio: 1; object-fit: contain; mix-blend-mode: multiply; }
.feat-oscuro { background: var(--tinta); }
@media (min-width: 768px) {
  .feat { min-height: 240px; padding: 28px 32px; border-radius: var(--r); }
  .feat.con-img { grid-template-columns: 1fr 1.1fr; align-items: center; padding-bottom: 28px; }
  .feat h3 { font-size: 24px; }
}

/* ---- Filas deslizables ---- */
.fila { position: relative; }
.fila-b {
  position: absolute; top: 38%; z-index: 2; width: 40px; height: 40px; border: 0; border-radius: 50%;
  background: #fff; color: var(--tinta); box-shadow: 0 2px 10px rgba(34, 42, 36, .18); cursor: pointer;
  display: none; align-items: center; justify-content: center;
}
.fila-ant { left: -14px; }
.fila-ant .ic { transform: rotate(180deg); }
.fila-sig { right: -14px; }
@media (hover: hover) and (min-width: 768px) { .fila-b:not([hidden]) { display: inline-flex; } }
.accesos .fila-b { top: 30px; }

/* Accesos redondos a categorías */
.ac-lista { display: flex; gap: 16px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-bottom: 4px; }
.ac-lista::-webkit-scrollbar { display: none; }
.ac-lista li { flex: 0 0 auto; scroll-snap-align: start; }
.ac { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 88px; text-align: center; font-size: 13px; font-weight: 500; line-height: 1.25; }
.ac-c {
  width: 76px; height: 76px; border-radius: 50%; background: var(--caja); color: var(--oro-texto);
  display: flex; align-items: center; justify-content: center; overflow: hidden; transition: box-shadow .2s;
}
.ac-c img { width: 80%; height: 80%; object-fit: contain; mix-blend-mode: multiply; }
.ac:hover .ac-c { box-shadow: 0 0 0 2px var(--oro); }
@media (min-width: 768px) { .ac { width: 112px; } .ac-c { width: 96px; height: 96px; } .ac-lista { gap: 20px; } }

/* Fila de productos */
.grid.grid-fila {
  grid-template-columns: none; grid-auto-flow: column; grid-auto-columns: 46%;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; gap: 12px; padding-bottom: 4px;
}
.grid-fila::-webkit-scrollbar { display: none; }
.grid-fila > * { scroll-snap-align: start; }
@media (min-width: 768px) { .grid.grid-fila { grid-auto-columns: calc((100% - 3 * 16px) / 4); gap: 16px; } }
@media (min-width: 1024px) { .grid.grid-fila { grid-auto-columns: calc((100% - 4 * 20px) / 5); gap: 20px; } }

/* ---- Tarjeta de producto (en todo el sitio) ---- */
.tile { background: none; border-radius: 0; padding: 0; }
.tile .im { background: #fff; border-radius: var(--r); margin-bottom: 12px; }
.tile .im img { width: 88%; height: 88%; }
.tile .nw { min-height: 20px; line-height: 20px; font-size: 11px; font-weight: 600; }
.tile .nw:not(:empty) { display: inline-block; align-self: flex-start; max-width: 100%; padding: 0 6px; border-radius: 2px; background: var(--caja-b); color: var(--tinta); }
.tile .nw.tag { background: var(--tinta); color: #fff; }
.tile .br { font-size: 13px; color: var(--sec); margin-top: 6px; }
.tile h3 { font-family: var(--f-texto); font-size: 15px; font-weight: 600; letter-spacing: 0; line-height: 1.3; }
.tile .pr { font-size: 16px; font-weight: 700; font-variant-numeric: tabular-nums; }
.tile .ft { margin-top: 10px; }
.tile:hover h3 { text-decoration: underline; text-underline-offset: 3px; }

/* ---- Servicios ---- */
.sv-lista { display: grid; grid-template-columns: 1fr; gap: 12px; }
.sv { display: flex; flex-direction: column; gap: 6px; padding: 18px 20px; background: var(--caja); border-radius: var(--r); box-shadow: var(--sombra); }
.sv-t { display: flex; align-items: center; gap: 8px; font-size: 15px; font-weight: 700; }
.sv-t .ic { color: var(--oro-texto); flex: none; }
.sv-x { flex: 1; font-size: 14px; color: var(--texto2); }
.sv-a { align-self: flex-end; font-size: 13px; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }
@media (min-width: 768px) { .sv-lista { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; } }
@media (min-width: 1024px) { .sv-lista { grid-template-columns: repeat(4, minmax(0, 1fr)); } }

/* Bloque de texto final: caja gris. */
.sec-texto .tx-caja { background: var(--caja); border-radius: var(--r); padding: 36px 20px 40px; }
.sec-texto .tx-caja > * { max-width: 640px; margin-left: auto; margin-right: auto; }
.sec-texto .tx-caja p:last-child, .sec-texto .ctas:last-child { margin-bottom: 0; }
@media (min-width: 768px) { .sec-texto .tx-caja { padding: 48px 32px 52px; } }

/* Páginas internas: mismas esquinas casi rectas y cajas gris cálido que la portada. */
.filtros, .gal-main, .gal-vacia, .gal-t, .ped-avisos, .ped-im, .ped-resumen, .ped-cuenta, .rev-benef li, .auth-form, .vacio-ic { border-radius: var(--r); }
.chip, .orden select, .buscador input, .step { border-radius: var(--r); }
.gal-main, .gal-vacia { background: #fff; box-shadow: inset 0 0 0 1px var(--caja-b); }
.filtros, body.js-filtros .filtros { background: var(--caja); border-radius: var(--r); }
.chip { background: var(--caja); }

/* Tarjetas de producto como cards: borde, sombra suave y foto enmarcada, para que cada producto se lea separado. */
.tile {
  background: #fff; border: 1px solid var(--caja-b); border-radius: 12px; padding: 10px 12px 12px;
  box-shadow: 0 1px 2px rgba(34, 42, 36, .05); transition: box-shadow .2s ease-out, border-color .2s ease-out, transform .2s ease-out;
}
.tile:hover { border-color: #DAD4C6; box-shadow: 0 8px 24px -12px rgba(34, 42, 36, .28); }
.tile .im { margin: 0 -2px 12px; border-radius: 8px; background: #fff; }
.tile:hover h3 { text-decoration: none; }
@media (min-width: 768px) { .tile { padding: 12px 14px 14px; border-radius: 14px; } }
@media (prefers-reduced-motion: reduce) { .tile { transition: none; } }
/* Combos: las fotos proceden de los productos que los componen. */
.combo-intro { color: var(--sec); margin: 0 0 28px; }
.combo-mosaico, .tile .im.combo-mosaico { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); align-items: center; justify-items: center; gap: 6px; padding: 12px; background: #fff; }
.combo-mosaico.combo-fotos-1 { grid-template-columns: minmax(0, 1fr); }
.combo-mosaico.combo-fotos-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.combo-mosaico img, .tile .im.combo-mosaico img { width: 100%; height: 100%; max-height: 100%; min-width: 0; object-fit: contain; mix-blend-mode: multiply; }
.combo-ficha-mosaico { aspect-ratio: 1; border-radius: var(--r); min-width: 0; }
.combo-sin-foto { grid-column: 1 / -1; color: var(--sec); }
.combo-contenido { margin: 24px 0; }
.combo-contenido h2 { font-size: 20px; margin-bottom: 12px; }
.combo-contenido ul { list-style: none; padding: 0; margin: 0; }
.combo-contenido li { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--linea, #e7e4dc); }
.combo-contenido li img { flex: 0 0 60px; object-fit: contain; background: #fff; border-radius: 8px; }
.combo-contenido li span { min-width: 0; overflow-wrap: anywhere; }
.combo-ficha .info { min-width: 0; }
.combo-separado { color: var(--sec); font-size: 13px; line-height: 1.5; }
.combo-ficha .info > .combo-separado { margin-top: 18px; }
.combo-ficha .info > .combo-separado + .info-pr { margin-top: 2px; }
.combo-ahorro { color: #28613e; font-size: 14px; font-weight: 600; line-height: 1.5; margin-top: 4px; }
.combo-item-info { display: flex; flex-direction: column; gap: 3px; }
.combo-item-info strong { font-size: 14px; }
.combo-precios { flex: 1; min-width: 0; }
.tile .combo-ahorro { font-size: 12px; }

/* Referencia explícita de las fragancias alternativas. */
.tile .inspiracion { margin-top: 6px; color: var(--sec); font-size: 12px; line-height: 1.4; }
