/* NAKAR · tienda propia (diseño B, sin Shopify). Misma identidad de DESIGN.md: crema, café y un dorado;
   Cormorant Garamond 500 para títulos, Inter para texto y cifras. Ritmo tomado de referencias editoriales
   (base 8 px, mucho aire entre secciones, una sola acción principal por vista). */
:root {
  --bg: #faf6f0; --bg-2: #f4ede3; --card: #ffffff; --ink: #3e1e00; --ink-2: #5b4433; --muted: #7d6a5a; --line: #eadfce; --line-2: #dccdb8;
  --dorado: #b08a4e; --dorado-txt: #7a5a22; --acento: #3e1e00; --acento-h: #5a3414; --acento-ink: #fbf6ee; --suave: #f6efe3;
  --ok: #1f7a4d; --aviso: #8a5a00; --bad: #b42318;
  --sh-foto: 0 2px 6px rgba(62, 30, 0, .06), 0 18px 40px -22px rgba(62, 30, 0, .35);
  --sh-btn: 0 1px 2px rgba(62, 30, 0, .22), inset 0 1px 0 rgba(255, 255, 255, .08);
  --r: 14px; --r-in: 10px; --e: cubic-bezier(.23, 1, .32, 1); --e-io: cubic-bezier(.645, .045, .355, 1);
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --g: 16px; --ancho: 1360px; --sec: clamp(72px, 10vw, 136px);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0e0e0e; --bg-2: #161616; --card: #161616; --ink: #f2ede6; --ink-2: #cfc8bf; --muted: #9a948c; --line: #2c2926; --line-2: #3a3530;
    --dorado: #c9a988; --dorado-txt: #d6b994; --acento: #c9a988; --acento-h: #d6b994; --acento-ink: #1f150c; --suave: #2b241d;
    --ok: #4cc38a; --aviso: #e0b25c; --bad: #fb7185;
    --sh-foto: 0 0 0 1px rgba(255, 255, 255, .05); --sh-btn: none;
    color-scheme: dark;
  }
}
@media (min-width: 768px) { :root { --g: 32px; } }
@media (min-width: 1280px) { :root { --g: 48px; } }

* { box-sizing: border-box; }
html { -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; -webkit-text-size-adjust: 100%; -webkit-tap-highlight-color: transparent; scroll-padding-top: 88px; scrollbar-color: #cdbca5 transparent; }
html.lenis, html.lenis body { height: auto; }
.lenis.lenis-smooth { scroll-behavior: auto !important; }
.lenis.lenis-stopped { overflow: hidden; }
body { margin: 0; background: var(--bg); color: var(--ink-2); font: 16px/1.6 var(--sans); }
img { display: block; max-width: 100%; }
a { color: inherit; }
button, input, select { font: inherit; color: inherit; }
::selection { background: color-mix(in srgb, var(--dorado) 34%, transparent); color: var(--ink); }
:focus-visible { outline: 2px solid var(--dorado); outline-offset: 3px; box-shadow: 0 0 0 1px var(--ink); border-radius: 10px; }
h1, h2, h3 { font-family: var(--serif); font-weight: 500; color: var(--ink); margin: 0; text-wrap: balance; letter-spacing: -.005em; }
p { margin: 0; text-wrap: pretty; }
.env { width: min(var(--ancho), 100%); margin-inline: auto; padding-inline: max(var(--g), env(safe-area-inset-left)); }
.vh { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.salto { position: fixed; left: 16px; top: -64px; z-index: 100; padding: 10px 14px; border-radius: 10px; background: var(--acento); color: var(--acento-ink); text-decoration: none; transition: top .16s ease; }
.salto:focus { top: 12px; }
.ico { width: 22px; height: 22px; flex: none; }

/* botones */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid var(--line-2);
  background: transparent; color: var(--ink); font: 600 15px/1 var(--sans); text-decoration: none; cursor: pointer; white-space: nowrap;
  transition-property: background-color, border-color, color, scale; transition-duration: .16s; transition-timing-function: ease; }
.btn:active { scale: .97; }
.btn.p { background: var(--acento); border-color: var(--acento); color: var(--acento-ink); box-shadow: var(--sh-btn); }
.btn.claro { background: var(--acento-ink); border-color: var(--acento-ink); color: #3e1e00; }
.btn.ancho { width: 100%; }
.btn .ico { width: 18px; height: 18px; }
@media (hover: hover) { .btn:hover { border-color: var(--dorado); } .btn.p:hover { background: var(--acento-h); border-color: var(--acento-h); } .btn.claro:hover { background: #fff; } }
.enlace { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; color: var(--ink); font-weight: 600; font-size: 15px; text-decoration: none; }
.enlace span { background: linear-gradient(currentColor 0 0) 0 100% / 0 1px no-repeat; transition: background-size .3s var(--e); padding-bottom: 2px; }
.enlace .ico { width: 18px; height: 18px; transition: translate .3s var(--e); }
@media (hover: hover) { .enlace:hover span { background-size: 100% 1px; } .enlace:hover .ico { translate: 3px 0; } }
.enlace.sub span { background-size: 100% 1px; }
button.enlace { padding: 0; border: 0; background: none; cursor: pointer; }
button.enlace span { background-size: 100% 1px; }

/* encabezado */
.top { position: fixed; inset: 0 0 auto 0; z-index: 50; transition: background-color .3s ease, box-shadow .3s ease, translate .3s var(--e); }
.top .env { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; height: 64px; }
.top.solido, .top.claro { background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: saturate(1.3) blur(14px); box-shadow: 0 1px 0 var(--line); }
.top nav ul { list-style: none; margin: 0; padding: 0; display: none; gap: 28px; }
.top nav a { display: inline-block; padding: 10px 0; font-size: 14px; font-weight: 500; color: var(--ink); text-decoration: none; background: linear-gradient(var(--dorado) 0 0) 0 calc(100% - 6px) / 0 1px no-repeat; transition: background-size .3s var(--e); }
@media (hover: hover) { .top nav a:hover { background-size: 100% 1px; } }
.top nav a[aria-current="page"] { background-size: 100% 1px; }
.marca { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); justify-self: center; min-height: 44px; }
.marca img { width: 28px; height: auto; }
.marca span { font-family: var(--serif); font-size: 21px; font-weight: 500; letter-spacing: .42em; margin-right: -.42em; line-height: 1; }
.acc { display: flex; justify-content: flex-end; gap: 2px; }
.ib { position: relative; width: 44px; height: 44px; display: grid; place-items: center; padding: 0; border: 0; border-radius: 999px; background: none; color: var(--ink); cursor: pointer; text-decoration: none; transition: background-color .16s ease; }
@media (hover: hover) { .ib:hover { background: color-mix(in srgb, var(--ink) 7%, transparent); } }
.ib b { position: absolute; top: 5px; right: 4px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 99px; background: var(--acento); color: var(--acento-ink); font: 600 11px/18px var(--sans); text-align: center; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) {
  .top .env { height: 80px; }
  .top .menu { display: none; }
  .top nav ul { display: flex; }
  .marca img { width: 34px; } .marca span { font-size: 25px; }
}

/* menú móvil (panel) */
.panel { position: fixed; inset: 0; z-index: 60; display: grid; grid-template-columns: min(86vw, 380px); background: rgba(31, 21, 12, .36); opacity: 0; visibility: hidden; transition: opacity .2s ease, visibility 0s linear .2s; }
.panel[data-abierto] { opacity: 1; visibility: visible; transition: opacity .2s ease; }
.panel > div { background: var(--bg); padding: 16px 24px 32px; display: flex; flex-direction: column; translate: -100% 0; transition: translate .32s var(--e); overflow-y: auto; }
.panel[data-abierto] > div { translate: 0 0; }
.panel ul { list-style: none; margin: 16px 0 0; padding: 0; }
.panel li a { display: flex; justify-content: space-between; align-items: center; min-height: 56px; border-bottom: 1px solid var(--line); font-family: var(--serif); font-size: 28px; color: var(--ink); text-decoration: none; }
.panel li small { font-family: var(--sans); font-size: 13px; color: var(--muted); }
.panel .pie-panel { margin-top: auto; padding-top: 24px; display: grid; gap: 8px; font-size: 14px; }

/* portada */
.hero, .top:not(.solido):not(.claro) { --bg: #faf6f0; --ink: #3e1e00; --ink-2: #5b4433; --muted: #7d6a5a; --dorado: #b08a4e; --dorado-txt: #7a5a22; --acento: #3e1e00; --acento-h: #5a3414; --acento-ink: #fbf6ee; --sh-btn: 0 1px 2px rgba(62, 30, 0, .22); color-scheme: light; }
.hero { position: relative; height: 100svh; min-height: 600px; max-height: 920px; overflow: hidden; background: #efe3d2; }
.hero > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 60% 50%; scale: 1.06; animation: respira 1.8s var(--e) .1s both; }
@keyframes respira { to { scale: 1; } }
.hero .txt { position: relative; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: clamp(32px, 7vh, 72px); }
.hero h1 { font-size: clamp(46px, 11.5vw, 112px); line-height: .96; max-width: 9.5ch; letter-spacing: -.015em; }
.hero p { margin-top: 18px; max-width: 34ch; font-size: clamp(16px, 1.4vw, 19px); color: var(--ink-2); }
.hero .cta { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 24px; margin-top: 28px; }
.hero .promesas { list-style: none; margin: 32px 0 0; padding: 18px 0 0; border-top: 1px solid color-mix(in srgb, var(--ink) 16%, transparent); display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 13px; font-weight: 500; color: var(--ink-2); max-width: 520px; }
.hero .promesas li { display: inline-flex; align-items: center; gap: 8px; }
.hero .promesas .ico { width: 17px; height: 17px; color: var(--dorado-txt); }
@media (max-width: 1023px) {
  .hero > img { object-position: 64% 50%; }
  .hero::after { content: ""; position: absolute; inset: auto 0 0 0; height: 62%; background: linear-gradient(to top, rgba(250, 246, 240, .96) 30%, rgba(250, 246, 240, .7) 62%, rgba(250, 246, 240, 0)); pointer-events: none; }
  .hero .txt { z-index: 1; }
  .hero h1 { max-width: 8ch; }
}
@media (min-width: 768px) and (max-width: 1023px) { .hero > img { object-position: 78% 50%; } .hero::after { height: 70%; } .hero h1 { max-width: 9ch; } }
@media (min-width: 1024px) { .hero > img { object-position: 74% 50%; } .hero .txt { justify-content: center; padding-top: 80px; padding-bottom: 40px; } .hero .promesas { position: absolute; bottom: 32px; } }
/* título que aparece palabra por palabra (efecto BlurText de React Bits, en CSS) */
.palabras .w { display: inline-block; animation: aparece .9s var(--e) both; animation-delay: calc(var(--i) * 80ms + 150ms); }
@keyframes aparece { from { opacity: .2; filter: blur(8px); translate: 0 .28em; } }

.sec { padding-block: var(--sec) 0; }
.sec-cab { display: grid; gap: 12px; margin-bottom: clamp(28px, 4vw, 48px); }
.sec-cab h2 { font-size: clamp(34px, 4.6vw, 60px); line-height: 1.02; }
.sec-cab p { max-width: 46ch; color: var(--muted); font-size: 16px; }
@media (min-width: 900px) { .sec-cab { grid-template-columns: 1fr auto; align-items: end; } .sec-cab p { text-align: right; } }

/* líneas: la foto es el botón */
.lineas { display: grid; grid-auto-flow: column; grid-auto-columns: 78%; gap: 12px; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; padding-inline: max(var(--g), env(safe-area-inset-left)); margin-inline: calc(-1 * max(var(--g), env(safe-area-inset-left))); }
.lineas::-webkit-scrollbar { display: none; }
.linea { position: relative; display: block; aspect-ratio: 3 / 4; border-radius: var(--r); overflow: hidden; scroll-snap-align: start; text-decoration: none; background: var(--bg-2); isolation: isolate; }
.linea img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: scale .8s var(--e); }
.linea::after { content: ""; position: absolute; inset: 45% 0 0 0; background: linear-gradient(to top, rgba(31, 18, 6, .62), rgba(31, 18, 6, 0)); z-index: 0; }
.linea .rot { position: absolute; left: 20px; right: 20px; bottom: 18px; z-index: 1; display: flex; justify-content: space-between; align-items: end; color: #fbf6ee; }
.linea .rot b { font-family: var(--serif); font-weight: 500; font-size: clamp(28px, 2.6vw, 36px); line-height: 1; }
.linea .rot small { font-size: 13px; opacity: .9; display: block; margin-top: 6px; }
.linea .flecha { width: 44px; height: 44px; border-radius: 999px; display: grid; place-items: center; background: rgba(251, 246, 238, .16); border: 1px solid rgba(251, 246, 238, .45); backdrop-filter: blur(6px); transition: background-color .3s ease, color .3s ease; flex: none; }
@media (hover: hover) { .linea:hover img { scale: 1.05; } .linea:hover .flecha { background: #fbf6ee; color: #3e1e00; } }
@media (min-width: 900px) { .lineas { grid-auto-flow: row; grid-template-columns: repeat(4, 1fr); overflow: visible; margin-inline: 0; padding-inline: 0; gap: 16px; } }

/* tarjetas de producto: sin botón pesado; la acción es un «+» discreto */
.grilla { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 28px 12px; }
@media (min-width: 900px) { .grilla { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 48px 24px; } }
.tj { position: relative; display: flex; flex-direction: column; gap: 12px; }
.tj .foto { position: relative; aspect-ratio: 1; border-radius: var(--r); overflow: hidden; background: var(--bg-2); }
.tj .foto img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: opacity .45s ease, scale .8s var(--e); }
.tj .foto::after { content: ""; position: absolute; inset: 0; border-radius: inherit; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .06); pointer-events: none; }
.tj .foto .alt { opacity: 0; }
@media (hover: hover) { .tj:hover .foto .alt { opacity: 1; } .tj:hover .foto img { scale: 1.03; } }
.tj h3 { font-size: clamp(19px, 1.6vw, 22px); line-height: 1.15; }
.tj h3 a { text-decoration: none; }
.tj h3 a::after { content: ""; position: absolute; inset: 0; z-index: 1; }
.tj .mat { margin-top: 4px; font-size: 13px; color: var(--muted); }
.tj .precio { margin-top: 6px; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.tj .mas { position: absolute; z-index: 2; right: 10px; bottom: 10px; width: 44px; height: 44px; border-radius: 999px; border: 0; display: grid; place-items: center; background: var(--acento-ink); color: #3e1e00; box-shadow: 0 6px 16px -8px rgba(62, 30, 0, .5); cursor: pointer; transition: scale .16s ease, background-color .16s ease, opacity .25s ease, translate .25s var(--e); }
.tj .mas:active { scale: .92; }
@media (hover: hover) and (pointer: fine) { .tj .mas { opacity: 0; translate: 0 6px; } .tj:hover .mas, .tj .mas:focus-visible { opacity: 1; translate: 0 0; } .tj .mas:hover { background: #fff; } }
.tj .sello { position: absolute; z-index: 2; left: 10px; top: 10px; padding: 5px 10px; border-radius: 99px; background: rgba(250, 246, 240, .94); color: var(--ink); font-size: 12px; font-weight: 600; }
.tj.agotado .foto img { filter: grayscale(.6); opacity: .72; }
.tj.agotado .precio { color: var(--muted); font-weight: 500; }
.ver-todo { margin-top: 40px; display: flex; justify-content: center; }

/* combina tu cartera con tus joyas (módulo propio de NAKAR) */
.combina { display: grid; gap: 24px; align-items: center; }
.combina .foto-grande { position: relative; border-radius: var(--r); overflow: hidden; aspect-ratio: 4 / 5; box-shadow: var(--sh-foto); }
.combina .foto-grande img { width: 100%; height: 100%; object-fit: cover; }
.combina h2 { font-size: clamp(34px, 4.4vw, 58px); line-height: 1.02; }
.combina .intro { margin: 14px 0 22px; max-width: 42ch; color: var(--ink-2); }
.tonos { display: inline-flex; padding: 4px; gap: 4px; border-radius: 999px; background: var(--bg-2); border: 1px solid var(--line); }
.tonos button { min-height: 40px; padding: 0 16px; border-radius: 999px; border: 0; background: none; color: var(--ink-2); font-size: 14px; font-weight: 600; cursor: pointer; display: inline-flex; align-items: center; gap: 8px; transition: background-color .2s ease, color .2s ease; }
.tonos button[aria-pressed="true"] { background: var(--card); color: var(--ink); box-shadow: 0 1px 2px rgba(62, 30, 0, .12); }
.tonos .pinta { width: 14px; height: 14px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
.trio { list-style: none; margin: 22px 0 0; padding: 0; display: grid; gap: 10px; }
.trio li a { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: center; padding: 10px; border-radius: var(--r); background: var(--card); text-decoration: none; box-shadow: 0 1px 2px rgba(62, 30, 0, .05); transition: box-shadow .2s ease, translate .2s var(--e); }
@media (hover: hover) { .trio li a:hover { box-shadow: 0 10px 24px -14px rgba(62, 30, 0, .3); translate: 0 -1px; } }
.trio img { width: 72px; height: 72px; border-radius: var(--r-in); object-fit: cover; }
.trio b { display: block; font-family: var(--serif); font-weight: 500; font-size: 20px; color: var(--ink); line-height: 1.1; }
.trio small { color: var(--muted); font-size: 13px; }
.trio .precio { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; font-size: 15px; }
.trio[hidden] { display: none; }
@media (min-width: 900px) { .combina { grid-template-columns: 1.05fr .95fr; gap: clamp(40px, 6vw, 96px); } }

/* la verdad del material */
.verdad dl { margin: 0; display: grid; border-top: 1px solid var(--line); }
.verdad .fila { display: grid; gap: 6px 32px; padding: 24px 0; border-bottom: 1px solid var(--line); }
.verdad dt { font-family: var(--serif); font-size: clamp(26px, 2.6vw, 34px); color: var(--ink); line-height: 1.1; }
.verdad dd { margin: 0; color: var(--ink-2); max-width: 58ch; }
.verdad dd small { display: block; margin-top: 4px; color: var(--muted); font-size: 14px; }
@media (min-width: 900px) { .verdad .fila { grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); align-items: baseline; } }

/* regalo */
.regalo { position: relative; margin-top: var(--sec); background: var(--acento); color: var(--acento-ink); overflow: hidden; }
.regalo .env { display: grid; gap: 32px; padding-block: clamp(56px, 8vw, 104px); align-items: center; }
.regalo h2 { color: var(--acento-ink); font-size: clamp(36px, 4.8vw, 64px); line-height: 1.02; }
.regalo p { margin: 16px 0 28px; max-width: 40ch; color: color-mix(in srgb, var(--acento-ink) 82%, var(--acento)); font-size: 17px; }
.regalo .fotos { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.regalo .fotos img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; border-radius: var(--r); }
.regalo .fotos img:last-child { margin-top: 48px; }
@media (min-width: 900px) { .regalo .env { grid-template-columns: 1fr 1fr; gap: clamp(40px, 6vw, 96px); } }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .regalo { background: #1f1a15; } :root:not([data-theme="light"]) .regalo h2 { color: #f2ede6; } }

/* persona por WhatsApp */
.persona { text-align: center; }
.persona h2 { font-size: clamp(32px, 4vw, 52px); line-height: 1.05; }
.persona p { margin: 12px auto 24px; max-width: 44ch; color: var(--muted); }

/* pie */
.pie { margin-top: var(--sec); background: var(--bg-2); border-top: 1px solid var(--line); padding-block: 56px calc(28px + env(safe-area-inset-bottom)); font-size: 15px; }
.pie .cols { display: grid; grid-template-columns: 1fr 1fr; gap: 32px 16px; }
.pie .cols > .club { grid-column: 1 / -1; }
.pie h3 { font-family: var(--sans); font-size: 13px; font-weight: 600; color: var(--ink); margin-bottom: 8px; }
.pie ul { list-style: none; margin: 0; padding: 0; }
.pie li a { display: inline-flex; align-items: center; min-height: 40px; color: var(--ink-2); text-decoration: none; }
@media (hover: hover) { .pie li a:hover { color: var(--ink); text-decoration: underline; text-underline-offset: 4px; } }
.club p { color: var(--ink-2); margin-bottom: 14px; max-width: 36ch; }
.club form { display: flex; gap: 8px; max-width: 420px; }
.club input { flex: 1; min-width: 0; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid #8f7d6b; background: var(--card); font-size: 16px; }
.club input::placeholder { color: var(--muted); }
.pie .legal { margin-top: 40px; padding-top: 20px; border-top: 1px solid var(--line-2); display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; color: var(--muted); font-size: 13px; }
@media (min-width: 900px) { .pie .cols { grid-template-columns: 1.5fr 1fr 1fr 1fr; } .pie .cols > .club { grid-column: auto; } }

/* aparición suave al bajar (efecto AnimatedContent de React Bits, en CSS + IntersectionObserver) */
.js [data-entra] { opacity: 0; translate: 0 28px; transition: opacity .8s var(--e), translate .9s var(--e); transition-delay: calc(var(--d, 0) * 90ms); }
.js [data-entra].visto { opacity: 1; translate: 0 0; }

/* ficha */
.migas { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 96px; font-size: 13px; color: var(--muted); }
.migas { align-items: center; }
.migas a { color: var(--muted); text-decoration: none; display: inline-flex; align-items: center; min-height: 44px; } .migas a:hover { color: var(--ink); }
.ficha { display: grid; gap: 28px; margin-top: 16px; }
.galeria { display: grid; gap: 10px; }
.galeria .principal { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none; border-radius: var(--r); background: var(--bg-2); }
.galeria .principal::-webkit-scrollbar { display: none; }
.galeria .principal img { flex: 0 0 100%; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; scroll-snap-align: start; }
.galeria .contador { justify-self: end; font-size: 13px; color: var(--muted); font-variant-numeric: tabular-nums; }
.galeria .mini { display: none; }
.info h1 { font-size: clamp(34px, 3.6vw, 48px); line-height: 1.04; }
.info .mat { margin-top: 8px; color: var(--muted); font-size: 14px; }
.info .fila-precio { display: flex; align-items: center; gap: 16px; margin: 18px 0 24px; }
.info .precio { font-size: 24px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.estado { display: inline-flex; align-items: center; gap: 7px; font-size: 13px; font-weight: 500; }
.estado::before { content: ""; width: 7px; height: 7px; border-radius: 99px; background: currentColor; }
.estado.ok { color: var(--ok); } .estado.pocas { color: var(--aviso); }
fieldset { border: 0; margin: 0 0 20px; padding: 0; min-width: 0; }
legend { width: 100%; display: flex; justify-content: space-between; align-items: center; padding: 0; margin-bottom: 10px; font-size: 14px; color: var(--ink-2); }
legend b { color: var(--ink); font-weight: 600; }
.ops { display: flex; flex-wrap: wrap; gap: 8px; }
.op { min-width: 52px; min-height: 48px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font-size: 15px; font-weight: 500; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; gap: 10px; font-variant-numeric: tabular-nums; transition: border-color .16s ease, background-color .16s ease, color .16s ease, scale .16s ease; }
.op:active { scale: .97; }
.op[aria-pressed="true"] { border-color: var(--ink); box-shadow: inset 0 0 0 1px var(--ink); color: var(--ink); }
.op .pinta { width: 18px; height: 18px; border-radius: 99px; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, .15); }
@media (hover: hover) { .op:hover { border-color: var(--dorado); } }
.comprar { display: grid; gap: 4px; margin: 8px 0 24px; }
.garantias { list-style: none; margin: 0 0 8px; padding: 0; border-top: 1px solid var(--line); }
.garantias li { display: grid; grid-template-columns: 22px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.garantias b { display: block; color: var(--ink); font-weight: 600; }
.garantias .ico { color: var(--dorado-txt); }
details { border-bottom: 1px solid var(--line); }
summary { list-style: none; display: flex; justify-content: space-between; align-items: center; min-height: 56px; cursor: pointer; font-weight: 600; color: var(--ink); }
summary::-webkit-details-marker { display: none; }
summary .ico { width: 18px; height: 18px; color: var(--muted); transition: rotate .25s var(--e); }
details[open] summary .ico { rotate: 45deg; }
details p { padding-bottom: 16px; font-size: 15px; }
.barra { position: fixed; z-index: 40; inset: auto 0 0 0; padding: 10px max(16px, env(safe-area-inset-left)) calc(10px + env(safe-area-inset-bottom)); background: color-mix(in srgb, var(--bg) 94%, transparent); backdrop-filter: blur(12px); box-shadow: 0 -1px 0 var(--line); display: flex; align-items: center; gap: 12px; translate: 0 110%; transition: translate .3s var(--e); }
.barra.ver { translate: 0 0; }
.barra .t { flex: 1; min-width: 0; font-size: 14px; line-height: 1.25; }
.barra .t b { display: block; font-family: var(--serif); font-weight: 500; font-size: 18px; color: var(--ink); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (min-width: 900px) {
  .migas { padding-top: 112px; }
  .ficha { grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(40px, 5vw, 80px); align-items: start; }
  .galeria { grid-template-columns: 76px 1fr; position: sticky; top: 104px; }
  .galeria .mini { display: grid; gap: 10px; align-content: start; }
  .galeria .mini button { padding: 0; border: 0; background: none; border-radius: var(--r-in); cursor: pointer; }
  .galeria .mini img { width: 76px; height: 76px; border-radius: var(--r-in); object-fit: cover; opacity: .7; transition: opacity .2s ease; }
  .galeria .mini [aria-current="true"] img { opacity: 1; box-shadow: 0 0 0 1px var(--bg), 0 0 0 2px var(--ink); }
  .galeria .contador { display: none; }
  .barra { display: none; }
}

/* guía de tallas */
dialog { width: min(460px, calc(100vw - 32px)); padding: 0; border: 0; border-radius: var(--r); background: var(--card); color: var(--ink-2); box-shadow: 0 30px 80px -30px rgba(31, 18, 6, .55); }
dialog::backdrop { background: rgba(31, 21, 12, .45); }
dialog[open] { animation: abre .22s var(--e); }
@keyframes abre { from { opacity: 0; scale: .96; } }
dialog .cab { display: flex; justify-content: space-between; align-items: center; padding: 18px 12px 6px 24px; }
dialog h2 { font-size: 30px; }
dialog .cuerpo { padding: 0 24px 24px; }
table { width: 100%; border-collapse: collapse; margin: 12px 0; font-variant-numeric: tabular-nums; }
th { text-align: left; font-size: 12px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 0 8px 8px 0; }
td { padding: 12px 8px 12px 0; border-top: 1px solid var(--line); color: var(--ink); }

/* colección */
.col-cab { padding-top: 112px; display: grid; gap: 12px; }
.col-cab h1 { font-size: clamp(44px, 7vw, 88px); line-height: .98; }
.col-cab p { color: var(--muted); max-width: 52ch; }
.filtros { position: sticky; top: 64px; z-index: 20; margin: 28px 0 32px; padding: 12px 0; background: color-mix(in srgb, var(--bg) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.filtros .env { display: flex; gap: 8px; align-items: center; overflow-x: auto; scrollbar-width: none; }
.filtros .env::-webkit-scrollbar { display: none; }
.chip { flex: none; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card); color: var(--ink-2); font-size: 14px; font-weight: 500; cursor: pointer; white-space: nowrap; transition: background-color .16s ease, border-color .16s ease, color .16s ease, scale .16s ease; }
.chip[aria-pressed="true"] { background: var(--acento); border-color: var(--acento); color: var(--acento-ink); }
.chip:active { scale: .97; }
.filtros .sep { flex: none; width: 1px; height: 24px; background: var(--line-2); margin: 0 4px; }
.filtros select { flex: none; min-height: 44px; padding: 0 36px 0 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237d6a5a' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; appearance: none; font-size: 14px; color: var(--ink); }
.conteo { margin-bottom: 20px; color: var(--muted); font-size: 14px; font-variant-numeric: tabular-nums; }
@media (min-width: 1024px) { .filtros { top: 80px; } }

.nota { margin-top: 32px; text-align: center; color: var(--muted); font-size: 12px; }

/* WhatsApp: en la portada y la colección; en la ficha va dentro de la compra */
.wa { position: fixed; right: max(16px, env(safe-area-inset-right)); bottom: calc(16px + env(safe-area-inset-bottom)); z-index: 45; width: 56px; height: 56px; border-radius: 999px; display: grid; place-items: center; background: var(--acento); color: var(--acento-ink); box-shadow: 0 10px 24px -10px rgba(62, 30, 0, .6); transition: scale .16s ease, background-color .16s ease; }
.wa svg { width: 26px; height: 26px; }
.wa:active { scale: .94; }
@media (hover: hover) { .wa:hover { background: var(--acento-h); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .palabras .w { opacity: 1; filter: none; translate: none; }
  .js [data-entra] { opacity: 1; translate: none; }
  .hero > img { scale: 1; }
}

/* ---------- tienda propia: estados con datos reales ---------- */
.aviso-demo { position: fixed; z-index: 70; left: 12px; bottom: calc(12px + env(safe-area-inset-bottom)); max-width: min(360px, calc(100% - 96px)); margin: 0; padding: 10px 14px; border-radius: 12px; background: var(--suave); color: var(--dorado-txt); font-size: 12px; line-height: 1.4; box-shadow: 0 8px 24px -12px rgba(62, 30, 0, .4); }
body[data-pagina="producto"] .aviso-demo { bottom: calc(84px + env(safe-area-inset-bottom)); }
body[data-pagina="producto"] .wa { display: none; }   /* la ficha ya tiene su botón de WhatsApp */
.wa { transition: scale .16s ease, background-color .16s ease, opacity .25s ease, translate .25s var(--e); }
.wa.esconde { opacity: 0; translate: 0 12px; pointer-events: none; }
.aviso-demo a { color: inherit; font-weight: 600; }
.linea.pronto { cursor: default; }
.linea.pronto img { filter: saturate(.85); }
.linea .pill { display: table; margin-top: 8px; padding: 4px 10px; border-radius: 99px; background: rgba(251, 246, 238, .94); color: #3e1e00; font-size: 12px; font-weight: 600; }
.tj .sin-foto { position: absolute; inset: 0; display: grid; place-items: center; background: var(--bg-2); }
.tj .sin-foto img { position: static; width: 44px; height: auto; opacity: .35; }
.tj .desde { font-weight: 500; color: var(--muted); }
.esqueleto .foto { background: linear-gradient(100deg, var(--bg-2) 30%, color-mix(in srgb, var(--bg-2) 60%, #fff) 50%, var(--bg-2) 70%) 0 0 / 300% 100%; animation: brillo 1.4s ease-in-out infinite; }
.esqueleto .linea-gris { height: 14px; margin-top: 10px; border-radius: 6px; background: var(--bg-2); }
.esqueleto .linea-gris.corta { width: 40%; }
@keyframes brillo { to { background-position: -150% 0; } }
.vacio { display: grid; justify-items: center; gap: 14px; padding: 56px 16px; text-align: center; color: var(--muted); }
.vacio h2 { font-size: clamp(28px, 4vw, 40px); color: var(--ink); }
.vacio p { max-width: 44ch; }
.op.no { color: var(--muted); text-decoration: line-through; text-decoration-color: color-mix(in srgb, var(--muted) 60%, transparent); }
.op.no[aria-pressed="true"] { text-decoration: line-through; }
.nota-compra { margin: 6px 0 0; color: var(--muted); font-size: 13px; text-align: center; }
.estado.agotado { color: var(--bad); }
.btn[aria-disabled="true"] { opacity: .55; pointer-events: none; }
.acc .ib.wa-top { color: var(--ink); }
@media (prefers-reduced-motion: reduce) { .esqueleto .foto { animation: none; } }

/* ---------- etapa 2: carro y pago ---------- */
.acc .ib b { pointer-events: none; }
dialog.carro-panel { margin: 0 0 0 auto; width: min(440px, 100vw); max-width: 100vw; height: 100dvh; max-height: 100dvh; padding: 0; border: 0; border-radius: 0; background: var(--bg); color: var(--ink-2); box-shadow: -24px 0 60px -30px rgba(62, 30, 0, .45); overscroll-behavior: contain; }
dialog.carro-panel[open] { display: flex; flex-direction: column; animation: carroEntra .32s var(--e); }
@keyframes carroEntra { from { translate: 100% 0; } }
dialog.carro-panel::backdrop { background: rgba(31, 21, 12, .36); }
.carro-panel .cab { display: flex; justify-content: space-between; align-items: center; padding: 14px 12px 6px 20px; border-bottom: 1px solid var(--line); }
.carro-panel .cab h2 { font-size: 28px; }
.carro-panel .cuerpo { flex: 1; overflow-y: auto; padding: 8px 20px calc(24px + env(safe-area-inset-bottom)); display: flex; flex-direction: column; gap: 14px; }
.carro-lista { list-style: none; margin: 0; padding: 0; }
.cl { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cl.sin-foto { grid-template-columns: 1fr auto; }
.cl img, .cl-sin { width: 72px; height: 72px; border-radius: var(--r-in); object-fit: cover; background: var(--bg-2); }
.cl-txt { display: grid; gap: 3px; min-width: 0; }
.cl-txt b { font-family: var(--serif); font-weight: 500; font-size: 19px; line-height: 1.15; color: var(--ink); }
.cl-txt small { color: var(--muted); font-size: 13px; }
.cl-aviso { color: var(--bad) !important; font-weight: 500; }
.cl.no img { opacity: .5; }
.cl-der { display: grid; justify-items: end; gap: 4px; }
.cl-der .precio { font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.cl-quitar { min-height: 32px; font-size: 13px; font-weight: 500; color: var(--muted); }
.cant { display: inline-flex; align-items: center; margin-top: 6px; border: 1px solid var(--line-2); border-radius: 999px; width: max-content; }
.cant button { width: 40px; height: 40px; display: grid; place-items: center; border: 0; background: none; color: var(--ink); cursor: pointer; border-radius: 999px; }
.cant button:disabled { color: var(--line-2); cursor: default; }
.cant .ico { width: 16px; height: 16px; }
.cant span { min-width: 22px; text-align: center; font-variant-numeric: tabular-nums; font-weight: 600; color: var(--ink); }
.resumen { margin: 6px 0 0; display: grid; gap: 8px; }
.resumen div { display: flex; justify-content: space-between; gap: 12px; font-size: 15px; }
.resumen dd { margin: 0; font-variant-numeric: tabular-nums; color: var(--ink); }
.resumen .tot { padding-top: 10px; border-top: 1px solid var(--line-2); font-size: 18px; font-weight: 600; color: var(--ink); }
.falta { margin: 0; padding: 10px 12px; border-radius: var(--r-in); background: var(--suave); color: var(--dorado-txt); font-size: 13px; }
.pago-grid { display: grid; gap: 32px; padding-top: 104px; }
.pago-grid h1 { font-size: clamp(34px, 4vw, 48px); line-height: 1.04; }
.pago-grid .sub { margin: 8px 0 24px; color: var(--muted); max-width: 52ch; }
.campos { display: grid; grid-template-columns: 1fr; gap: 14px 16px; margin-bottom: 20px; }
.campo { display: grid; gap: 6px; }
.campo label { font-size: 14px; font-weight: 500; color: var(--ink); }
.campo .opc { color: var(--muted); font-weight: 400; }
.campo input, .campo select, .campo textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--r-in); background: var(--card); color: var(--ink); font-size: 16px; transition: border-color .16s ease, box-shadow .16s ease; }
.campo textarea { min-height: 72px; resize: vertical; }
.campo select { appearance: none; background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' fill='none' stroke='%237d6a5a' stroke-width='1.6'%3E%3Cpath d='m1 1 5 5 5-5'/%3E%3C/svg%3E") no-repeat right 14px center; padding-right: 36px; }
.campo input:focus-visible, .campo select:focus-visible, .campo textarea:focus-visible { outline: 2px solid var(--dorado-txt); outline-offset: 1px; border-color: var(--dorado-txt); }
.campo input:user-invalid, .campo select:user-invalid { border-color: var(--bad); }
.trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.error-form { margin: 0 0 14px; padding: 12px 14px; border-radius: var(--r-in); background: color-mix(in srgb, var(--bad) 9%, var(--card)); color: var(--bad); font-size: 14px; font-weight: 500; }
.btn:disabled { opacity: .55; cursor: default; }
.pago-resumen { align-self: start; padding: 20px; border-radius: var(--r); background: var(--card); box-shadow: 0 1px 2px rgba(62, 30, 0, .05), 0 18px 40px -28px rgba(62, 30, 0, .35); display: grid; gap: 10px; }
.pago-resumen h2 { font-size: 26px; }
@media (min-width: 768px) { .campos { grid-template-columns: 1fr 1fr; } .campo.full { grid-column: 1 / -1; } }
@media (min-width: 1024px) { .pago-grid { grid-template-columns: minmax(0, 1.25fr) minmax(0, .9fr); gap: 56px; padding-top: 128px; } .pago-resumen { position: sticky; top: 104px; } }
.gracias { max-width: 640px; margin: 0 auto; padding-top: 120px; display: grid; gap: 20px; }
.gracias-cab { display: grid; gap: 12px; justify-items: start; }
.gracias-cab h1 { font-size: clamp(36px, 5vw, 56px); line-height: 1.02; }
.gracias-cab p { color: var(--ink-2); max-width: 54ch; }
.sello-ok { width: 52px; height: 52px; border-radius: 999px; display: grid; place-items: center; background: color-mix(in srgb, var(--ok) 14%, var(--card)); color: var(--ok); }
.sello-ok .ico { width: 26px; height: 26px; }
.gracias-acc { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 20px; margin-top: 8px; }
@media (prefers-reduced-motion: reduce) { dialog.carro-panel[open] { animation: none; } }
