/* ==========================================================
   KAENIA · Estilos
   ========================================================== */
:root {
  /* Paleta kaeniashop: rose quartz #F9CBD6 · blush #F2AFBC · red wine #9E182B · oat milk #F2E0D2
     Los colores principal/acento los aplica js/theme.js (Ajustes → Estilo). Por defecto: vino + rosa cuarzo. */
  --wine: #9E182B;          /* red wine: color principal */
  --wine-2: #861322;        /* hover */
  --wine-hi: #B52036;       /* brillo del degradado */
  --wine-deep: #5C0D18;     /* fondo oscuro (pie de página) */
  --wine-rgb: 158 24 43;
  --deep-rgb: 60 8 18;
  --beige: #F9CBD6;         /* color claro sobre fondo vino (logo, botones claros) */
  --beige-rgb: 249 203 214;
  --brown: #B33A50;         /* acento sobre fondo claro (etiquetas, íconos) */
  --gray: #C9A9B0;
  --ivory: #FFF6F8;         /* fondo de la página */
  --ivory-rgb: 255 246 248;
  --paper: #FCE7EC;         /* superficies suaves */
  --ink: #3B1218;
  --ink-soft: #5E3A40;
  --muted: #8A6870;
  --line: #F4D3DB;
  --radius: 14px;
  --shadow: 0 18px 50px -20px rgb(var(--deep-rgb) / .35);
  --head: "Bodoni Moda", "Didot", Georgia, serif;   /* títulos: editorial, como el logo */
  --label: "Jost", system-ui, sans-serif;           /* etiquetas, botones y menú */
  --body: "Jost", system-ui, sans-serif;
  --max: 1240px;
  /* Color principal y de acento (los reemplaza js/theme.js según Ajustes → Estilo) */
  --primary: #9E182B; --primary-rgb: 158 24 43;
  --primary-2: #861422; --primary-hi: #AB3344; --primary-deep: #5C0E19; --primary-deep-rgb: 92 14 25;
  --banner: #A9374C;
  --on-primary: #FFF6F8; --on-primary-rgb: 255 246 248;
  --soft-on-primary: #F9CBD6; --soft-on-primary-rgb: 249 203 214;
  --accent: #F9CBD6; --accent-rgb: 249 203 214; --on-accent: #9E182B;
  --hero-btn: #F9CBD6; --on-hero-btn: #9E182B;
}


*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 84px; }
body {
  margin: 0;
  font-family: var(--body);
  font-weight: 300;
  color: var(--ink);
  background: var(--ivory);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; cursor: pointer; background: none; border: 0; }
h1, h2, h3 { font-family: var(--head); font-weight: 500; margin: 0; letter-spacing: .01em; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
use, symbol { stroke: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--brown); outline-offset: 2px; }

.eyebrow {
  font-family: var(--label);
  text-transform: uppercase;
  letter-spacing: .28em;
  font-size: .74rem;
  color: var(--brown);
  margin: 0 0 .7rem;
}
.eyebrow--light { color: var(--soft-on-primary); }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .95rem 1.8rem;
  border-radius: 999px;
  font-family: var(--label);
  font-size: .82rem;
  letter-spacing: .18em;
  text-transform: uppercase;
  transition: background .25s, color .25s, transform .2s, border-color .25s;
  border: 1px solid transparent;
}
.btn:active { transform: scale(.98); }
.btn--wine { background: var(--primary); color: var(--on-primary); }
.btn--wine:hover { background: var(--primary-2); }
.btn--light { background: var(--hero-btn); color: var(--on-hero-btn); }
.btn--light:hover { background: var(--ivory); color: var(--wine); }
.btn--ghost-light { border-color: rgb(var(--soft-on-primary-rgb) / .6); color: var(--on-primary); }
.btn--ghost-light:hover { background: rgb(var(--on-primary-rgb) / .1); }
.btn--text { color: var(--muted); padding: .7rem; }
.btn--text:hover { color: var(--wine); }
.btn--block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; }
.btn__icon { width: 18px; height: 18px; }

.icon-btn {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border-radius: 50%;
  transition: background .2s;
}
.icon-btn:hover { background: rgb(var(--wine-rgb) / .06); }
.icon-btn svg { width: 22px; height: 22px; }

/* ---------- Ticker ---------- */
.ticker { background: var(--primary); color: var(--soft-on-primary); overflow: hidden; white-space: nowrap; }
.ticker__track { display: inline-flex; animation: ticker 32s linear infinite; }
.ticker__track span {
  padding: .6rem 2.2rem;
  font-family: var(--label);
  font-size: .72rem; letter-spacing: .24em; text-transform: uppercase;
}
.ticker__track span::after { content: "•"; margin-left: 4.4rem; opacity: .5; position: absolute; transform: translateX(-2.4rem); }
@keyframes ticker { to { transform: translateX(-50%); } }
@media (prefers-reduced-motion: reduce) { .ticker__track { animation: none; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: env(safe-area-inset-top, 0px); z-index: 30;
  background: rgb(var(--ivory-rgb) / .92);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--line);
}
.header__inner {
  max-width: var(--max); margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  padding: .7rem 24px; gap: 1rem;
}
.header__logo img { width: 170px; height: auto; }
.menu-btn { display: none; color: var(--wine); }
.nav { display: flex; gap: 2.4rem; align-items: center; }
.nav > a, .nav__drop-btn {
  font-family: var(--label); font-size: .8rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink); padding: .6rem 0; position: relative;
}
.nav > a::after, .nav__drop-btn::after {
  content: ""; position: absolute; left: 0; bottom: .2rem; height: 1px; width: 0;
  background: var(--wine); transition: width .3s;
}
.nav > a:hover::after, .nav__drop:hover .nav__drop-btn::after { width: 100%; }
.nav__drop { position: relative; }
.nav__drop-btn span { font-size: .6rem; margin-left: .2rem; }
.nav__menu {
  position: absolute; top: 100%; left: -1.2rem;
  min-width: 240px; padding: .8rem;
  background: var(--ivory); border: 1px solid var(--line); border-radius: var(--radius);
  box-shadow: var(--shadow);
  opacity: 0; visibility: hidden; transform: translateY(6px);
  transition: .25s;
}
.nav__drop:hover .nav__menu, .nav__drop:focus-within .nav__menu { opacity: 1; visibility: visible; transform: none; }
.nav__menu a { display: flex; justify-content: space-between; padding: .55rem .7rem; border-radius: 8px; font-size: .95rem; }
.nav__menu a:hover { background: var(--paper); color: var(--wine); }
.nav__menu small { color: var(--muted); }
.cart-btn { position: relative; color: var(--wine); }
.cart-count {
  position: absolute; top: 4px; right: 2px;
  min-width: 18px; height: 18px; padding: 0 5px;
  border-radius: 9px; background: var(--primary); color: var(--on-primary);
  font-size: .68rem; font-weight: 500; display: grid; place-items: center;
  transition: transform .3s;
}
.cart-count.bump { transform: scale(1.35); }

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  background: radial-gradient(120% 140% at 85% 30%, var(--primary-hi) 0%, var(--primary) 45%, var(--primary-deep) 100%);
  color: var(--soft-on-primary);
  display: grid; grid-template-columns: 1.1fr .9fr; align-items: center;
  min-height: min(78vh, 680px);
  padding: 4rem max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
.hero h1 { font-size: clamp(2.8rem, 7vw, 5.6rem); line-height: 1.02; color: var(--on-primary); }
.hero__sub { max-width: 440px; font-size: 1.1rem; line-height: 1.65; margin: 1.6rem 0 2.2rem; color: rgb(var(--on-primary-rgb) / .85); }
.hero__ctas { display: flex; gap: .9rem; flex-wrap: wrap; }
.hero__art { display: grid; place-items: center; }
.hero__k { width: min(36vw, 420px); aspect-ratio: 1; fill: var(--soft-on-primary); opacity: .95; animation: float 7s ease-in-out infinite; }
@keyframes float { 50% { transform: translateY(-14px) rotate(-1.5deg); } }
@media (prefers-reduced-motion: reduce) { .hero__k { animation: none; } }

/* ---------- Carrusel de fotos en la portada ---------- */
.hero__text { position: relative; z-index: 2; }
.hero__slides { position: absolute; inset: 0; z-index: 0; }
.hero__slide {
  position: absolute; inset: 0; width: 100%; height: 100%; max-width: none; object-fit: cover; object-position: center;
  opacity: 0; transform: scale(1.06); transition: opacity 1.2s ease, transform 6s ease-out;
}
.hero__slide.is-on { opacity: 1; transform: scale(1); }
.hero--photos::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(90deg, rgb(var(--primary-deep-rgb) / .9) 0%, rgb(var(--primary-rgb) / .62) 42%, rgb(var(--primary-rgb) / .12) 100%);
}
.hero--photos .hero__art { display: none; }
.hero__dots { position: absolute; z-index: 3; right: max(24px, calc((100vw - var(--max)) / 2 + 24px)); bottom: 22px; display: flex; gap: 8px; }
.hero__dots button { width: 9px; height: 9px; border-radius: 999px; background: rgb(var(--on-primary-rgb) / .5); padding: 0; transition: width .3s, background .3s; }
.hero__dots button[aria-current="true"] { width: 26px; background: var(--soft-on-primary); }
@media (prefers-reduced-motion: reduce) { .hero__slide { transition: opacity .3s; transform: none; } }

/* ---------- Perks ---------- */
.perks {
  max-width: var(--max); margin: 0 auto;
  display: grid; grid-template-columns: repeat(4, 1fr);
  border-bottom: 1px solid var(--line);
}
.perk { display: flex; gap: .9rem; align-items: center; padding: 1.6rem 24px; }
.perk svg { width: 30px; height: 30px; color: var(--brown); flex: none; }
.perk strong { display: block; font-weight: 500; font-size: .92rem; }
.perk span { font-size: .84rem; color: var(--muted); }

/* ---------- Sections ---------- */
.section { max-width: var(--max); margin: 0 auto; padding: 5rem 24px 1rem; }
.section__head { text-align: center; margin-bottom: 2.6rem; }
.section__head h2 { font-size: clamp(1.9rem, 3.6vw, 2.7rem); color: var(--wine); }

/* ---------- Categories ---------- */
.cats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.cat {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 4 / 3.4; padding: 1.3rem;
  display: flex; flex-direction: column; justify-content: flex-end; text-align: left;
  color: var(--ivory);
  transition: transform .35s;
}
.cat:hover { transform: translateY(-4px); }
.cat svg { position: absolute; right: -12%; top: -8%; width: 70%; aspect-ratio: 1; fill: currentColor; opacity: .13; transition: transform .6s; }
.cat:hover svg { transform: rotate(-8deg) scale(1.06); }
.cat strong { font-family: var(--head); font-weight: 500; font-size: 1.15rem; position: relative; }
.cat span { font-size: .82rem; opacity: .8; position: relative; }

/* ---------- Filters ---------- */
.filters { display: flex; gap: .5rem; flex-wrap: wrap; justify-content: center; margin-bottom: 2.2rem; }
.filter {
  padding: .5rem 1.1rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .88rem; transition: .2s;
}
.filter:hover { border-color: var(--wine); }
.filter[aria-selected="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }

/* ---------- Product grid ---------- */
.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 28px 20px; }
.card { display: flex; flex-direction: column; cursor: pointer; }
.card__media {
  position: relative; overflow: hidden; border-radius: var(--radius);
  aspect-ratio: 3 / 4; margin-bottom: .9rem;
}
.ph {
  position: absolute; inset: 0;
  display: grid; place-items: center;
  transition: transform .7s cubic-bezier(.2, .7, .2, 1);
}
.ph svg { width: 42%; aspect-ratio: 1; fill: currentColor; opacity: .2; }
.ph img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.card:hover .ph { transform: scale(1.05); }
.badges { position: absolute; top: 12px; left: 12px; display: flex; gap: 6px; z-index: 1; }
.badge {
  font-family: var(--label); font-size: .66rem; letter-spacing: .16em; text-transform: uppercase;
  padding: .38rem .65rem; border-radius: 999px; background: var(--ivory); color: var(--wine);
}
.badge--sale { background: var(--primary); color: var(--on-primary); }
.badge--out { background: var(--ink); color: var(--ivory); }
.card__quick {
  position: absolute; left: 12px; right: 12px; bottom: 12px; z-index: 1;
  padding: .75rem; border-radius: 999px;
  background: rgb(var(--ivory-rgb) / .95); color: var(--wine);
  font-family: var(--label); font-size: .72rem; letter-spacing: .18em; text-transform: uppercase;
  opacity: 0; transform: translateY(8px); transition: .3s;
}
.card:hover .card__quick, .card:focus-within .card__quick { opacity: 1; transform: none; }
.card__cat { font-size: .74rem; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.card__name { font-size: 1.02rem; font-weight: 400; margin: .25rem 0 .4rem; line-height: 1.35; }
.card__dots { display: flex; gap: 5px; margin-top: .55rem; }
.dot { width: 12px; height: 12px; border-radius: 50%; border: 1px solid rgba(0, 0, 0, .12); }
.card.is-out .ph { filter: grayscale(.6); opacity: .7; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .6rem; }
.price__now { font-weight: 500; color: var(--wine); font-size: 1.05rem; }
.price__old { color: var(--muted); text-decoration: line-through; font-size: .9rem; }
.price__bs { width: 100%; font-size: .8rem; color: var(--muted); }

.empty { grid-column: 1 / -1; text-align: center; color: var(--muted); padding: 2rem; }

/* ---------- Banner ---------- */
.banner {
  position: relative; overflow: hidden;
  max-width: var(--max); margin: 5rem auto 0;
  background: var(--banner); color: var(--on-primary);
  border-radius: 22px;
  padding: 4rem clamp(24px, 6vw, 80px);
  width: calc(100% - 48px);
}
.banner h2 { font-size: clamp(1.8rem, 3.6vw, 2.8rem); max-width: 520px; margin-bottom: 1.8rem; }
.banner__k { position: absolute; right: -4%; top: 50%; translate: 0 -50%; width: min(44vw, 420px); aspect-ratio: 1; fill: var(--soft-on-primary); opacity: .22; }

/* ---------- Contact / footer ---------- */
.contact {
  margin-top: 6rem;
  background: var(--primary); color: var(--soft-on-primary);
  display: grid; grid-template-columns: 1.2fr 1fr 1fr; gap: 2rem;
  padding: 4rem max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
.contact__logo { width: 200px; height: auto; }
.contact h3 { font-size: .8rem; letter-spacing: .24em; text-transform: uppercase; color: var(--on-primary); margin: 0 0 .8rem; font-weight: 400; }
.contact h3:not(:first-child) { margin-top: 1.6rem; }
.contact p { margin: 0 0 .45rem; line-height: 1.6; }
.contact a:hover { color: var(--on-primary); text-decoration: underline; text-underline-offset: 4px; }
.footer {
  background: var(--primary-deep); color: rgb(var(--soft-on-primary-rgb) / .8);
  display: flex; justify-content: space-between; flex-wrap: wrap; gap: .5rem;
  font-size: .8rem;
  padding: 1.1rem max(24px, calc((100vw - var(--max)) / 2 + 24px));
}
.footer p { margin: 0; }

/* ---------- Overlay / modal / drawer ---------- */
.overlay { position: fixed; inset: 0; z-index: 40; background: rgb(var(--deep-rgb) / .45); backdrop-filter: blur(2px); animation: fade .25s; }
@keyframes fade { from { opacity: 0; } }
.modal {
  position: fixed; z-index: 50; left: 50%; top: 50%; translate: -50% -50%;
  width: min(980px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
  background: var(--ivory); border-radius: 20px; box-shadow: var(--shadow);
  animation: pop .3s cubic-bezier(.2, .8, .2, 1);
}
.modal--narrow { width: min(520px, calc(100% - 32px)); }
@keyframes pop { from { opacity: 0; transform: translateY(16px) scale(.98); } }
.modal__close { position: absolute; top: 10px; right: 10px; z-index: 2; background: rgb(var(--ivory-rgb) / .9); }

.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm__media { position: relative; min-height: 460px; border-radius: 20px 0 0 20px; overflow: hidden; }
.pm__media .ph { transition: background .4s; }
.pm__thumbs { position: absolute; left: 12px; right: 12px; bottom: 12px; display: flex; gap: 8px; z-index: 1; overflow-x: auto; }
.pm__thumbs button { flex: none; width: 54px; height: 68px; border-radius: 8px; overflow: hidden; border: 2px solid transparent; background: var(--ivory); padding: 0; }
.pm__thumbs button[aria-pressed="true"] { border-color: var(--ivory); box-shadow: 0 0 0 2px var(--wine); }
.pm__thumbs img { width: 100%; height: 100%; object-fit: cover; }
.pm__info { padding: 2.6rem 2.4rem 2.2rem; display: flex; flex-direction: column; gap: .2rem; }
.pm__cat { margin: 0; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pm__info h3 { font-size: 1.8rem; color: var(--wine); line-height: 1.2; margin: .3rem 0 0; }
.pm__code { margin: .2rem 0 1rem; font-size: .8rem; color: var(--muted); }
.pm__info .price__now { font-size: 1.5rem; }
.pm__desc { line-height: 1.65; color: var(--ink-soft); margin: 1rem 0 .6rem; }
.pm__group { margin-top: .9rem; }
.pm__label { display: block; font-size: .74rem; letter-spacing: .16em; text-transform: uppercase; margin-bottom: .5rem; }
.pm__stock { font-size: .82rem; color: var(--brown); margin: .5rem 0 0; min-height: 1.2em; }
.pm__actions { display: flex; gap: .8rem; margin-top: 1.4rem; }
.pm__msg { font-size: .85rem; color: var(--wine); min-height: 1.2em; margin: .6rem 0 0; }

.chips { display: flex; flex-wrap: wrap; gap: .45rem; }
.chip {
  min-width: 46px; padding: .5rem .9rem; border-radius: 999px;
  border: 1px solid var(--line); font-size: .88rem; display: inline-flex; align-items: center; gap: .45rem;
  transition: .2s;
}
.chip:hover:not([disabled]) { border-color: var(--wine); }
.chip[aria-pressed="true"] { background: var(--primary); color: var(--on-primary); border-color: var(--primary); }
.chip[disabled] { opacity: .4; text-decoration: line-through; cursor: not-allowed; }
.chip .dot { width: 14px; height: 14px; }

.qty { display: flex; align-items: center; border: 1px solid var(--line); border-radius: 999px; }
.qty button { width: 40px; height: 46px; font-size: 1.2rem; color: var(--wine); }
.qty span { min-width: 26px; text-align: center; }
.qty--sm button { width: 30px; height: 32px; font-size: 1rem; }

.drawer {
  position: fixed; z-index: 50; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--ivory); box-shadow: var(--shadow);
  display: flex; flex-direction: column;
  animation: slide .35s cubic-bezier(.2, .8, .2, 1);
}
@keyframes slide { from { transform: translateX(100%); } }
.drawer__head { display: flex; justify-content: space-between; align-items: center; padding: 1rem 1.4rem; border-bottom: 1px solid var(--line); }
.drawer__head h3 { font-size: 1.3rem; color: var(--wine); }
.drawer__body { flex: 1; overflow: auto; padding: 1rem 1.4rem; }
.drawer__foot { padding: 1.2rem 1.4rem 1.4rem; border-top: 1px solid var(--line); display: grid; gap: .5rem; }
.totals { display: grid; gap: .3rem; margin-bottom: .6rem; }
.totals div { display: flex; justify-content: space-between; }
.totals strong { font-size: 1.3rem; color: var(--wine); font-weight: 500; }
.totals__bs { font-size: .85rem; color: var(--muted); }

.line { display: grid; grid-template-columns: 74px 1fr auto; gap: .9rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.line__media { position: relative; border-radius: 10px; overflow: hidden; aspect-ratio: 3 / 4; }
.line__media .ph svg { width: 55%; }
.line__name { font-weight: 400; margin: 0 0 .15rem; }
.line__meta { font-size: .8rem; color: var(--muted); margin: 0 0 .5rem; }
.line__right { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; }
.line__price { color: var(--wine); font-weight: 500; }
.line__rm { font-size: .78rem; color: var(--muted); text-decoration: underline; }
.cart-empty { text-align: center; color: var(--muted); padding: 3rem 1rem; }
.cart-empty svg { width: 70px; height: 70px; fill: var(--accent); margin: 0 auto 1rem; display: block; }

/* ---------- Checkout ---------- */
.co { padding: 2.2rem 2rem 2rem; display: grid; gap: 1rem; }
.co h3 { font-size: 1.6rem; color: var(--wine); }
.co__intro { margin: -.3rem 0 .3rem; color: var(--muted); line-height: 1.55; font-size: .92rem; }
.co label { display: grid; gap: .35rem; font-size: .85rem; }
.co input:not([type="radio"]) {
  font: inherit; font-weight: 400; padding: .8rem 1rem; border: 1px solid var(--line); border-radius: 10px; background: #fff;
}
.co input:focus { outline: none; border-color: var(--wine); }
.co fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: .45rem; }
.co legend { font-size: .85rem; margin-bottom: .45rem; }
.radio { display: flex !important; grid-auto-flow: column; align-items: center; gap: .6rem !important; font-size: .93rem !important; }
.radio input { accent-color: var(--wine); width: 17px; height: 17px; }
.co__summary { background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; font-size: .88rem; line-height: 1.6; }
.co__summary strong { color: var(--wine); }
.co__msg {
  margin: 0; white-space: pre-wrap; word-break: break-word;
  font: 400 .86rem/1.6 var(--body);
  background: var(--paper); border-radius: 12px; padding: 1rem 1.1rem; max-height: 260px; overflow: auto;
}
.co__wa { margin: 0; text-align: center; font-size: .82rem; color: var(--muted); user-select: all; }
.co__error { color: #A3122F; font-size: .85rem; margin: 0; min-height: 1em; }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 24px; translate: -50% 0; z-index: 60;
  background: var(--ink); color: var(--ivory); padding: .85rem 1.4rem; border-radius: 999px; font-size: .9rem;
  opacity: 0; transform: translateY(10px); transition: .3s; pointer-events: none;
}
.toast.show { opacity: 1; transform: none; }

/* ---------- Responsive ---------- */
@media (max-width: 1024px) {
  .grid, .cats { grid-template-columns: repeat(3, 1fr); }
  .perks { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 820px) {
  .menu-btn { display: grid; }
  .header { backdrop-filter: none; background: var(--ivory); }
  .header:has(.nav.open) { z-index: 55; }
  .header__inner { padding: .5rem 12px; }
  .header__logo { margin-right: auto; }
  .header__logo img { width: 140px; }
  .nav {
    position: fixed; top: 0; left: 0; bottom: 0; width: min(320px, 85%); z-index: 50;
    flex-direction: column; align-items: stretch; gap: 0;
    background: var(--ivory); padding: 5rem 1.6rem 2rem; box-shadow: var(--shadow);
    transform: translateX(-105%); transition: transform .35s cubic-bezier(.2, .8, .2, 1);
    overflow: auto;
  }
  .nav.open { transform: none; }
  .nav > a, .nav__drop-btn { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); }
  .nav > a::after, .nav__drop-btn::after { display: none; }
  .nav__menu { position: static; opacity: 1; visibility: visible; transform: none; box-shadow: none; border: 0; padding: .3rem 0 .6rem .6rem; background: none; min-width: 0; }
  .hero { grid-template-columns: 1fr; text-align: left; padding-top: 3rem; padding-bottom: 3rem; min-height: auto; }
  .hero__art { position: absolute; right: -60px; bottom: -40px; opacity: .25; }
  .hero__k { width: 300px; }
  .hero__text { position: relative; z-index: 2; }
  .hero--photos { min-height: 560px; align-content: end; padding-bottom: 4rem; }
  .hero--photos::after { background: linear-gradient(180deg, rgb(var(--primary-deep-rgb) / .35) 0%, rgb(var(--primary-deep-rgb) / .55) 45%, rgb(var(--primary-deep-rgb) / .9) 100%); }
  .hero__dots { left: 24px; right: auto; bottom: 18px; }
  .pm { grid-template-columns: 1fr; }
  .pm__media { min-height: 0; aspect-ratio: 4 / 4; border-radius: 20px 20px 0 0; }
  .pm__info { padding: 1.6rem 1.4rem 1.6rem; }
  .contact { grid-template-columns: 1fr; }
}
@media (max-width: 600px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 22px 12px; }
  .cats { grid-template-columns: repeat(2, 1fr); gap: 10px; }
  .perks { grid-template-columns: 1fr; }
  .perk { padding: 1rem 16px; }
  .section { padding: 3.5rem 16px 0; }
  .filters { flex-wrap: nowrap; overflow-x: auto; justify-content: flex-start; margin: 0 -16px 1.6rem; padding: 0 16px 4px; scrollbar-width: none; }
  .filter { flex: none; }
  .card__quick { display: none; }
  .card__name { font-size: .93rem; }
  .banner { width: calc(100% - 32px); padding: 3rem 24px; }
  .pm__actions { flex-direction: column; }
  .qty { align-self: flex-start; }
  .co { padding: 1.8rem 1.2rem 1.4rem; }
}

/* ---------- Espacio para la etiqueta fija del hosting ("Powered by Netlify") ----------
   Se activa con hostBadge: true en js/config.js (agrega la clase .has-host-badge). */
:root { --host-badge: 0px; }
html.has-host-badge { --host-badge: 66px; }
html.has-host-badge .drawer__foot { padding-bottom: calc(1.4rem + var(--host-badge)); }
html.has-host-badge .pm__info { padding-bottom: calc(2.2rem + var(--host-badge)); }
html.has-host-badge .co { padding-bottom: calc(2rem + var(--host-badge)); }
html.has-host-badge .toast { bottom: calc(24px + var(--host-badge)); }
html.has-host-badge .footer { padding-bottom: calc(1.1rem + var(--host-badge)); }
@media (max-width: 820px) {
  html.has-host-badge .pm__info { padding-bottom: calc(1.6rem + var(--host-badge)); }
}
@media (max-width: 600px) {
  html.has-host-badge .co { padding-bottom: calc(1.4rem + var(--host-badge)); }
}
.radio > span { display: grid; gap: .1rem; line-height: 1.35; }
.radio__hint { font-size: .8rem; color: var(--muted); }

/* Botón Compartir en la ficha de producto */
.pm__share {
  align-self: flex-start; display: inline-flex; align-items: center; gap: .45rem;
  margin: 0 0 .9rem; padding: .45rem .9rem; border-radius: 999px; border: 1px solid var(--line);
  font-size: .84rem; color: var(--wine); transition: border-color .2s, background .2s;
}
.pm__share:hover { border-color: var(--wine); background: rgb(var(--wine-rgb) / .04); }
.pm__share svg { width: 16px; height: 16px; }
.pm__code[hidden] + .pm__share { margin-top: .6rem; }

/* ---------- Marca kaeniashop ---------- */
.header__logo img { width: 168px; height: auto; }
.contact__logo { width: 230px; height: auto; }
.contact__tag { margin: .7rem 0 0; font-family: var(--label); font-size: .72rem; letter-spacing: .28em; text-transform: uppercase; color: rgb(var(--soft-on-primary-rgb) / .8); }
@media (max-width: 820px) { .header__logo img { width: 136px; } }
.hero h1 { font-weight: 500; letter-spacing: -.005em; }

/* ---------- Política de cambios ---------- */
.policies { max-width: 820px; }
.policy-list { counter-reset: p; list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.policy-list li {
  counter-increment: p; position: relative; padding: 1rem 1.2rem 1rem 3.4rem;
  background: var(--paper); border-radius: var(--radius); line-height: 1.6; color: var(--ink-soft);
}
.policy-list li::before {
  content: counter(p); position: absolute; left: 1.1rem; top: 1rem;
  width: 1.6rem; height: 1.6rem; border-radius: 50%; display: grid; place-items: center;
  background: var(--primary); color: var(--on-primary); font: 500 .8rem/1 var(--label);
}
.policy-list strong { color: var(--wine); font-weight: 500; }
.co__terms { margin: 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.co__terms a, .footer__link { text-decoration: underline; text-underline-offset: 3px; }
.co__terms a { color: var(--wine); }

.contact h3 { font-family: var(--label); font-weight: 500; }

/* ---------- Página de políticas ---------- */
.back-link { font-family: var(--label); font-size: .78rem; letter-spacing: .16em; text-transform: uppercase; color: var(--wine); }
.back-link:hover { text-decoration: underline; text-underline-offset: 4px; }
.policies__title { font-size: clamp(2rem, 4.2vw, 3rem); color: var(--wine); }
.policy { margin-top: 2rem; }
.policy h2 { font-size: clamp(1.4rem, 2.6vw, 1.8rem); color: var(--wine); margin-bottom: 1.1rem; }
.policy-help { margin: 2.4rem 0 4rem; text-align: center; color: var(--muted); }
.policy-help a { color: var(--wine); text-decoration: underline; text-underline-offset: 3px; }

/* Índice y secciones de la página de políticas */
.policy-index { display: flex; flex-wrap: wrap; justify-content: center; gap: .5rem; margin: -1rem 0 1rem; }
.policy-index a {
  padding: .5rem 1rem; border-radius: 999px; border: 1px solid var(--line); background: var(--ivory);
  font-family: var(--label); font-size: .85rem; color: var(--wine); transition: background .2s, border-color .2s;
}
.policy-index a:hover { border-color: var(--wine); background: var(--paper); }
.policy { margin-top: 3rem; scroll-margin-top: 90px; }
.size-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.size-list li { padding: .85rem 1.1rem; background: var(--paper); border-radius: 12px; color: var(--ink-soft); }
.faq { display: grid; gap: 10px; }
.faq details { background: var(--paper); border-radius: var(--radius); padding: 0 1.2rem; }
.faq summary {
  cursor: pointer; list-style: none; padding: 1rem 2rem 1rem 0; position: relative;
  font-weight: 500; color: var(--ink);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: "+"; position: absolute; right: 0; top: 50%; translate: 0 -50%; font-size: 1.4rem; color: var(--wine); font-weight: 300; }
.faq details[open] summary::after { content: "−"; }
.faq details p { margin: 0 0 1.1rem; line-height: 1.65; color: var(--ink-soft); }

/* ---------- Precio REF USD (pagando en divisas) ---------- */
.price__ref {
  width: 100%; display: inline-flex; align-items: center; gap: .45rem; margin-top: .25rem;
  font-weight: 500; color: var(--wine); font-size: .95rem;
}
.price__ref b, .tag-ref {
  font: 500 .64rem/1 var(--label); letter-spacing: .12em; padding: .28rem .5rem; border-radius: 999px;
  background: var(--paper); color: var(--wine); border: 1px solid var(--line);
}
.pm__refnote { margin: .5rem 0 0; font-size: .82rem; color: var(--muted); line-height: 1.5; }
.pm__info .price__ref { font-size: 1.15rem; }
.line__ref { font-size: .76rem; color: var(--wine); }
.totals__ref { margin-top: .35rem; padding: .6rem .8rem; border-radius: 10px; background: var(--paper); align-items: center; }
.totals__ref span { display: grid; gap: .1rem; }
.totals__ref b { font: 500 .72rem/1 var(--label); letter-spacing: .14em; color: var(--wine); }
.totals__ref small { font-size: .74rem; color: var(--muted); }
.totals__ref strong { font-size: 1.15rem !important; }
.co__refmsg { display: block; margin-top: .35rem; font-size: .8rem; color: var(--muted); line-height: 1.45; }

/* ---------- Página Sobre nosotros ---------- */
.about { max-width: var(--max); margin: 0 auto; padding: 0 24px; }
.about__intro { max-width: 760px; margin: 0 auto; padding: 4.5rem 0 3rem; text-align: center; }
.about__intro h1 { font-size: clamp(2.2rem, 5vw, 3.6rem); color: var(--wine); line-height: 1.08; text-wrap: balance; }
.about__lead { margin: 1.4rem auto 0; max-width: 600px; font-size: 1.15rem; line-height: 1.7; color: var(--ink-soft); }
.about__story { display: grid; grid-template-columns: 1fr 1.15fr; gap: clamp(24px, 5vw, 64px); align-items: center; padding: 1rem 0 4rem; }
.about__photo {
  margin: 0; aspect-ratio: 4 / 5; border-radius: 22px; overflow: hidden; position: relative;
  background: radial-gradient(120% 140% at 85% 20%, var(--primary-hi) 0%, var(--primary) 50%, var(--primary-deep) 100%);
  display: grid; place-items: center; max-width: 100%;
}
.about__photo svg { width: 58%; aspect-ratio: 1; fill: var(--soft-on-primary); opacity: .9; }
.about__photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.about__text { min-width: 0; }
.about__text p { margin: 0 0 1.2rem; font-size: 1.06rem; line-height: 1.8; color: var(--ink-soft); max-width: 62ch; }
.about__text p:first-child::first-letter {
  font-family: var(--head); font-size: 3.4em; line-height: .8; float: left; margin: .08em .1em 0 0; color: var(--wine);
}
.about__values { padding: 3.5rem 0; border-top: 1px solid var(--line); }
.about__values h2 { text-align: center; font-size: clamp(1.8rem, 3.4vw, 2.5rem); color: var(--wine); margin-bottom: 2.2rem; }
.values { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.value { background: var(--paper); border-radius: var(--radius); padding: 1.5rem 1.3rem; border-top: 3px solid var(--primary); min-width: 0; }
.value h3 { font-size: 1.25rem; color: var(--wine); margin-bottom: .5rem; }
.value p { margin: 0; line-height: 1.6; color: var(--ink-soft); font-size: .95rem; }
.about__cta {
  margin: 1rem 0 4rem; padding: 3rem 1.5rem; border-radius: 22px; text-align: center;
  background: var(--primary); color: var(--on-primary);
}
.about__closing { margin: 0 0 1.6rem; font-family: var(--head); font-size: clamp(1.5rem, 3vw, 2.1rem); color: var(--on-primary); }
.about__btns { display: flex; gap: .8rem; justify-content: center; flex-wrap: wrap; }
@media (max-width: 900px) {
  .values { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 700px) {
  .about { padding: 0 16px; }
  .about__intro { padding: 3rem 0 2rem; }
  .about__story { grid-template-columns: 1fr; }
  .about__photo { aspect-ratio: 4 / 3.4; }
  .values { grid-template-columns: 1fr; }
}

/* ---------- Contacto con logos (WhatsApp, ubicación y redes) ---------- */
.contact .si { width: 19px; height: 19px; fill: currentColor; stroke: none; flex: none; }
.contact .si--line { fill: none; stroke: currentColor; stroke-width: 1.6; }
.contact__row { display: flex; align-items: center; gap: .7rem; }
.contact__row a { display: inline-flex; align-items: center; gap: .7rem; }
.social { display: flex; gap: .6rem; margin: .2rem 0 .7rem; }
.social a {
  width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center;
  border: 1px solid rgb(var(--soft-on-primary-rgb) / .55); color: var(--soft-on-primary);
  transition: background .2s, color .2s, border-color .2s;
}
.social a:hover { background: var(--soft-on-primary); color: var(--primary); border-color: var(--soft-on-primary); text-decoration: none; }
.social .si { width: 19px; height: 19px; }
.social__handle { font-size: .9rem; opacity: .85; }
