/* ============================================================
   CHARMELIA — styles.css
   Base: propuesta A "Crema editorial" + 3 piezas de B
   (Cómo pedir en tarjetas con ícono, etiqueta negra, aviso en píldora).
   Paleta medida del logo: ver charmelia-trabajo/diseno/GUIA-DISENO.md
   ============================================================ */

:root {
  /* fondos */
  --bg:          #FBF7F2;
  --surface:     #FFFFFF;
  --bg-lila:     #F3EEF8;
  --line:        #E8E0D6;

  /* tinta */
  --ink:         #111111;
  --ink-soft:    #6B6470;
  --cream:       #F4EEE6;   /* texto sobre --ink */

  /* lila (del logo) */
  --accent:      #9A7FB4;
  --accent-dk:   #6D568E;
  --accent-deep: #5B4678;
  --accent-soft: #E9E1F2;

  /* oliva (del eslogan) */
  --accent-2:    #ADB066;
  --accent-2-dk: #6E7038;

  /* pendientes del dueño */
  --pend-bg:     #FFF3B0;
  --pend-ink:    #3A3200;

  /* forma */
  --radius-sm: 8px;
  --radius:    16px;
  --radius-lg: 24px;
  --radius-pill: 999px;
  --shadow-sm: 0 1px 2px rgba(17,17,17,.04), 0 2px 8px rgba(17,17,17,.04);
  --shadow:    0 2px 4px rgba(17,17,17,.04), 0 12px 32px rgba(109,86,142,.10);
  --shadow-lg: 0 24px 60px rgba(109,86,142,.16);

  /* tipografía */
  --font-head:   "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --font-body:   "Jost", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-script: "Pinyon Script", cursive;

  /* ritmo */
  --gutter: 24px;
  --section: 96px;
  --header-h: 96px;
  --ease: 180ms ease;
}

@media (max-width: 759px) {
  :root { --gutter: 16px; --section: 64px; --header-h: 72px; }
}

/* ---------- base ---------- */
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; }
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
@media (max-width: 759px) { body { font-size: 16px; } }
img { max-width: 100%; height: auto; display: block; }
a { color: var(--accent-dk); text-underline-offset: 3px; }
a:hover { color: var(--accent-deep); }
h1, h2, h3 { font-family: var(--font-head); font-weight: 600; line-height: 1.1; letter-spacing: -0.01em; margin: 0; }
p { margin: 0 0 1em; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
section[id], main[id] { scroll-margin-top: calc(var(--header-h) + 8px); }

:focus-visible { outline: 2px solid var(--accent-dk); outline-offset: 3px; border-radius: 4px; }
.footer :focus-visible { outline-color: var(--accent-soft); }

.sr-only {
  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-link {
  position: absolute; left: 16px; top: -60px; z-index: 200;
  background: var(--ink); color: #fff; padding: 10px 16px; border-radius: var(--radius-sm);
  text-decoration: none; transition: top var(--ease);
}
.skip-link:focus { top: 12px; color: #fff; }

.ico {
  width: 22px; height: 22px; flex: none;
  fill: none; stroke: currentColor; stroke-width: 1.6;
  stroke-linecap: round; stroke-linejoin: round;
}
.ico-sm { width: 18px; height: 18px; }

.container { width: 100%; max-width: calc(1200px + 2 * var(--gutter)); margin: 0 auto; padding: 0 var(--gutter); }
.section { padding: var(--section) 0; }
.band-lila { background: var(--bg-lila); }

/* Pendientes del dueño: visibles a propósito */
.pendiente {
  background: var(--pend-bg);
  color: var(--pend-ink);
  border-radius: 4px;
  padding: 0 .3em;
  font-weight: 500;
  -webkit-box-decoration-break: clone;
  box-decoration-break: clone;
}

/* ---------- títulos de sección ---------- */
.sec-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.sec-head h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.5rem); }
.sec-head p { color: var(--ink-soft); margin: 14px 0 0; }
.hilo { display: block; width: 48px; height: 1px; background: var(--accent-2); margin: 14px auto 0; border: 0; }
.kicker {
  display: inline-block; font-size: 12px; font-weight: 500; letter-spacing: .14em;
  text-transform: uppercase; color: var(--accent-2-dk); margin-bottom: 14px;
}

/* ---------- botones ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  min-height: 48px; padding: 0 28px; border-radius: var(--radius-pill);
  font-family: var(--font-body); font-weight: 500; font-size: 15px; line-height: 1.2;
  text-decoration: none; text-align: center; border: 1.5px solid transparent;
  transition: background-color var(--ease), color var(--ease), box-shadow var(--ease), border-color var(--ease);
}
.btn-primary { background: var(--accent-dk); color: #fff; }
.btn-primary:hover { background: var(--accent-deep); color: #fff; box-shadow: var(--shadow); }
.btn-primary:focus-visible { outline: none; box-shadow: 0 0 0 3px var(--accent-soft), 0 0 0 5px var(--accent-dk); }
.btn-outline { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: #fff; }
.btn-dark { background: var(--ink); color: #fff; }
.btn-dark:hover { background: #2a2a2a; color: #fff; box-shadow: var(--shadow); }
.btn-lg { min-height: 56px; padding: 0 32px; font-size: 16px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .45; cursor: not-allowed; box-shadow: none; }
.btn-row { display: flex; flex-wrap: wrap; gap: 12px; }

/* ---------- barra superior ---------- */
.topbar {
  background: var(--ink); color: var(--cream);
  font-size: 13px; line-height: 1.4; text-align: center;
  padding: 9px var(--gutter); min-height: 36px;
}
.topbar a { color: var(--cream); text-decoration: none; }
.topbar a:hover { text-decoration: underline; color: #fff; }

/* ---------- encabezado ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  transition: box-shadow var(--ease);
}
.header.is-scrolled { box-shadow: var(--shadow-sm); }
.header-inner {
  display: grid; grid-template-columns: auto 1fr auto; align-items: center; gap: 24px;
  min-height: var(--header-h);
}
.logo { display: inline-flex; align-items: center; }
.logo img { height: 64px; width: auto; }
.nav { justify-self: end; }
.nav ul { list-style: none; display: flex; gap: 28px; margin: 0; padding: 0; }
.nav a { color: var(--ink); text-decoration: none; font-size: 15px; padding: 6px 0; border-bottom: 1px solid transparent; }
.nav a:hover { border-bottom-color: var(--accent-2); color: var(--ink); }
.header-actions { display: flex; align-items: center; gap: 10px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center;
  width: 44px; height: 44px; border-radius: 50%;
  background: transparent; border: 0; color: var(--ink);
  transition: background-color var(--ease);
}
.icon-btn:hover { background: var(--accent-soft); }
.cart-count {
  position: absolute; top: 2px; right: 0;
  min-width: 20px; height: 20px; padding: 0 5px; border-radius: 10px;
  background: var(--accent-dk); color: #fff; font-size: 11px; font-weight: 500;
  display: grid; place-items: center; line-height: 1;
}
.btn-wa-head { min-height: 40px; padding: 0 20px; font-size: 14px; }
.menu-btn { display: none; }

.mobile-nav {
  display: none;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.mobile-nav ul { list-style: none; margin: 0; padding: 8px var(--gutter) 16px; }
.mobile-nav a {
  display: block; padding: 12px 4px; color: var(--ink); text-decoration: none;
  font-size: 17px; border-bottom: 1px solid var(--line);
}
.mobile-nav li:last-child a { border-bottom: 0; }

@media (max-width: 899px) {
  .header-inner { grid-template-columns: 44px 1fr 44px; gap: 8px; }
  .menu-btn { display: inline-grid; }
  .logo { justify-self: center; }
  .logo img { height: 48px; }
  .nav, .btn-wa-head { display: none; }
  .header-actions { justify-self: end; }
  .mobile-nav.is-open { display: block; }
}

/* ---------- hero ---------- */
.hero { position: relative; background: #F6EEEA; overflow: hidden; }
.hero-media { position: absolute; inset: 0; }
.hero-media img { width: 100%; height: 100%; object-fit: cover; object-position: 70% center; }
.hero-media::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(90deg, rgba(251,247,242,.94) 0%, rgba(251,247,242,.78) 36%, rgba(251,247,242,0) 62%);
}
.hero-inner { position: relative; z-index: 1; min-height: 560px; display: flex; align-items: center; padding-top: 64px; padding-bottom: 64px; }
.hero-text { max-width: 540px; }
.hero h1 { font-size: clamp(2.4rem, 1.5rem + 3vw, 4rem); margin-bottom: 20px; }
.hero h1 em {
  font-family: var(--font-script); font-style: normal; font-weight: 400;
  color: var(--accent-dk); font-size: 1.12em; letter-spacing: 0; padding: 0 .04em;
}
.hero-sub { font-size: 18px; color: #3a3540; margin-bottom: 28px; max-width: 480px; }

@media (max-width: 899px) {
  .hero { background: var(--bg); }
  .hero-media { position: relative; inset: auto; height: clamp(240px, 56vw, 420px); }
  .hero-media img { object-position: 78% center; }
  .hero-media::after { background: linear-gradient(180deg, rgba(251,247,242,0) 70%, rgba(251,247,242,.9) 100%); }
  .hero-inner { min-height: 0; padding-top: 28px; padding-bottom: 8px; text-align: center; justify-content: center; }
  .hero-text { margin: 0 auto; }
  .hero-sub { font-size: 16px; margin-left: auto; margin-right: auto; }
  .hero .btn-row { justify-content: center; }
}
@media (max-width: 479px) {
  .hero .btn-row .btn { width: 100%; }
}

/* ---------- aviso independiente ---------- */
.aviso { display: flex; align-items: center; gap: 20px; padding: 40px 0 0; }
.aviso::before, .aviso::after { content: ""; flex: 1 1 40px; height: 1px; background: var(--accent-2); min-width: 16px; }
.aviso-pill {
  display: inline-flex; align-items: center; gap: 10px; flex: 0 1 auto;
  background: var(--bg-lila); color: var(--ink);
  border-radius: var(--radius-lg); padding: 10px 20px;
  font-size: 14px; line-height: 1.45; max-width: 640px;
}
.aviso-pill .ico { color: var(--accent); width: 24px; height: 24px; }
@media (max-width: 599px) {
  .aviso::before, .aviso::after { display: none; }
  .aviso { justify-content: center; padding-top: 28px; }
  .aviso-pill { padding: 12px 16px; }
}

/* ---------- categorías ---------- */
.cat-grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.cat-card {
  display: flex; flex-direction: column; align-items: center; text-align: center;
  text-decoration: none; color: var(--ink); height: 100%;
}
.cat-card img {
  width: 160px; height: 160px; border-radius: 50%; object-fit: cover;
  box-shadow: var(--shadow-sm); transition: transform var(--ease), box-shadow var(--ease);
}
.cat-card:hover img { transform: translateY(-3px); box-shadow: var(--shadow); }
.cat-card:hover { color: var(--ink); }
.cat-name { font-family: var(--font-head); font-size: 24px; font-weight: 600; margin-top: 16px; line-height: 1.15; }
.cat-frase { font-size: 14px; color: var(--ink-soft); margin: 6px 0 0; max-width: 220px; }

@media (max-width: 759px) {
  .cat-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
  .cat-card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); overflow: hidden; }
  .cat-card img { width: 100%; height: auto; aspect-ratio: 4 / 3; border-radius: 0; box-shadow: none; }
  .cat-card:hover img { transform: none; }
  .cat-name { font-size: 20px; margin: 10px 8px 12px; }
  .cat-frase { display: none; }
}

/* ---------- ofertas ---------- */
.campana-chip {
  display: inline-block; vertical-align: middle; margin-left: 10px;
  font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .04em;
  background: var(--ink); color: #fff; border-radius: var(--radius-pill); padding: 3px 12px;
  position: relative; top: -4px;
}
.tasa-line {
  display: inline-flex; align-items: center; gap: 8px; margin-top: 16px;
  font-size: 14px; color: var(--ink-soft);
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-pill);
  padding: 6px 14px; font-variant-numeric: tabular-nums;
}
.tasa-line .ico { color: var(--accent-2-dk); }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 20px; margin-bottom: 24px; }
.chips {
  display: flex; gap: 8px; overflow-x: auto; padding: 2px 2px 6px; margin: 0;
  list-style: none; scrollbar-width: thin; max-width: 100%; min-width: 0; flex: 1 1 420px;
}
.chip {
  flex: none; min-height: 40px; padding: 0 16px; border-radius: var(--radius-pill);
  background: var(--surface); border: 1px solid var(--line); color: var(--ink);
  font-size: 14px; font-weight: 400; white-space: nowrap;
  transition: background-color var(--ease), color var(--ease), border-color var(--ease);
}
.chip:hover { border-color: var(--accent-dk); }
.chip[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: #fff; }
.search { position: relative; flex: 0 1 300px; min-width: 0; }
.search .ico { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--ink-soft); pointer-events: none; }
.search input {
  width: 100%; min-height: 44px; padding: 0 16px 0 44px;
  border: 1px solid var(--line); border-radius: var(--radius-pill); background: var(--surface);
  font-size: 15px;
}
.search input:focus-visible { outline: 2px solid var(--accent-dk); outline-offset: 1px; }
@media (max-width: 759px) {
  .toolbar { flex-direction: column-reverse; align-items: stretch; }
  .search { flex-basis: auto; }
  .chips { flex-basis: auto; }
}

.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; list-style: none; margin: 0; padding: 0; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; } }
@media (min-width: 1100px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 24px; } }

.card {
  display: flex; flex-direction: column; height: 100%; min-width: 0;
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  overflow: hidden; transition: box-shadow var(--ease), transform var(--ease);
}
.card:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.card-media { position: relative; aspect-ratio: 1 / 1; background: var(--bg); }
.card-media img { width: 100%; height: 100%; object-fit: contain; }
.card-media.is-cat img { object-fit: cover; }
.card-tag {
  position: absolute; top: 10px; left: 10px; max-width: calc(100% - 20px);
  background: var(--ink); color: #fff; border-radius: var(--radius-sm);
  font-size: 12px; font-weight: 500; line-height: 1.3; padding: 4px 9px;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.card-ref {
  position: absolute; bottom: 8px; left: 8px;
  background: rgba(255,255,255,.88); color: var(--ink-soft);
  font-size: 11px; line-height: 1.3; padding: 2px 8px; border-radius: var(--radius-sm);
}
.card-body { display: flex; flex-direction: column; flex: 1; padding: 14px 16px 16px; }
.card-brand { font-size: 12px; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--accent-2-dk); margin: 0 0 4px; }
.card-name {
  font-family: var(--font-body); font-size: 15px; font-weight: 400; line-height: 1.35; letter-spacing: 0;
  margin: 0 0 10px; min-height: 2.7em;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden;
  overflow-wrap: anywhere;
}
.card-price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; font-variant-numeric: tabular-nums; }
.price-main { font-size: 20px; font-weight: 500; color: var(--ink); line-height: 1.2; }
.price-old { font-size: 14px; color: var(--ink-soft); }
.price-sub { font-size: 12px; color: var(--ink-soft); margin: 4px 0 14px; line-height: 1.4; font-variant-numeric: tabular-nums; }
.card .btn { margin-top: auto; min-height: 44px; padding: 0 12px; }
.card .btn.is-added { background: var(--ink); color: #fff; }
@media (max-width: 479px) {
  .card-body { padding: 12px; }
  .price-main { font-size: 18px; }
}

.estado {
  text-align: center; max-width: 620px; margin: 0 auto; padding: 40px 24px;
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm);
}
.estado p { color: #3a3540; }
.estado .btn-row { justify-content: center; margin-top: 8px; }
.mas-wrap { text-align: center; margin-top: 32px; }
.grid-count { font-size: 14px; color: var(--ink-soft); margin: 0 0 16px; }

/* ---------- catálogo digital ---------- */
.catalogo-wrap { display: grid; grid-template-columns: 1.1fr 1fr; gap: 56px; align-items: center; }
.catalogo-img img { border-radius: var(--radius-lg); box-shadow: var(--shadow); width: 100%; aspect-ratio: 3 / 2; object-fit: cover; }
.catalogo-text h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.5rem); }
.catalogo-text .hilo { margin: 14px 0 18px; }
.catalogo-text p { color: #3a3540; }
.catalogo-btns { display: flex; flex-direction: column; gap: 12px; margin-top: 24px; max-width: 420px; }
@media (max-width: 899px) {
  .catalogo-wrap { grid-template-columns: 1fr; gap: 28px; }
  .catalogo-text { text-align: center; }
  .catalogo-text .hilo { margin-left: auto; margin-right: auto; }
  .catalogo-btns { margin-left: auto; margin-right: auto; max-width: none; }
}

/* ---------- cómo pedir ---------- */
.pasos { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; list-style: none; margin: 0; padding: 0; }
.paso {
  background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm);
  padding: 32px 28px; height: 100%;
}
.paso-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 20px; }
.paso-ico { width: 60px; height: 60px; border-radius: 50%; background: var(--accent-soft); color: var(--accent-dk); display: grid; place-items: center; }
.paso-ico .ico { width: 28px; height: 28px; }
.paso-num { font-family: var(--font-head); font-size: 44px; font-weight: 500; color: var(--accent); line-height: 1; }
.paso h3 { font-size: 26px; margin-bottom: 10px; }
.paso p { color: #3a3540; margin: 0; font-size: 16px; }
@media (max-width: 899px) { .pasos { grid-template-columns: 1fr; gap: 16px; } .paso { padding: 24px 20px; } }

/* ---------- nosotros ---------- */
.nosotros-wrap { display: grid; grid-template-columns: 1.2fr 1fr; gap: 56px; align-items: center; }
.nosotros-text h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.5rem); }
.nosotros-text .hilo { margin: 14px 0 20px; }
.nosotros-text p { color: #3a3540; }
.nosotros-card {
  background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow);
  padding: 48px 32px; display: grid; place-items: center; text-align: center; gap: 16px;
}
.nosotros-card img { width: min(320px, 100%); }
.lema { font-family: var(--font-script); color: var(--accent); font-size: 34px; line-height: 1.2; margin: 0; }
@media (max-width: 899px) { .nosotros-wrap { grid-template-columns: 1fr; gap: 28px; } }

/* ---------- FAQ ---------- */
.faq { max-width: 820px; margin: 0 auto; }
.faq details { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow-sm); margin-bottom: 12px; }
.faq summary {
  list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; gap: 16px;
  padding: 18px 22px; font-weight: 500; font-size: 17px; border-radius: var(--radius);
}
.faq summary::-webkit-details-marker { display: none; }
.faq summary .ico { color: var(--accent-dk); transition: transform var(--ease); }
.faq details[open] summary .ico { transform: rotate(45deg); }
.faq .faq-r { padding: 0 22px 20px; color: #3a3540; }
.faq .faq-r p { margin: 0; }

/* ---------- CTA ---------- */
.cta {
  background: var(--accent-soft); border-radius: var(--radius-lg);
  text-align: center; padding: 56px 24px;
}
.cta h2 { font-size: clamp(1.9rem, 1.35rem + 1.7vw, 2.75rem); margin-bottom: 12px; }
.cta p { color: #3a3540; max-width: 520px; margin: 0 auto 24px; }

/* ---------- pie ---------- */
.footer { background: var(--ink); color: var(--cream); padding: 64px 0 32px; font-size: 15px; }
.footer a { color: var(--cream); }
.footer a:hover { color: #fff; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 40px; }
.footer-logo img { height: 80px; width: auto; }
.footer-frase { margin-top: 16px; color: #CFC7BE; max-width: 380px; }
.footer h2 { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: #CFC7BE; margin-bottom: 14px; }
.footer ul { list-style: none; padding: 0; margin: 0; }
.footer li { margin-bottom: 8px; }
.footer .tasa-foot { margin-top: 16px; font-size: 14px; color: #CFC7BE; font-variant-numeric: tabular-nums; }
.footer-bottom {
  margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(244,238,230,.16);
  font-size: 13px; color: #CFC7BE;
}
.footer-bottom p { margin: 0 0 8px; }
.footer-bottom strong { color: var(--cream); font-weight: 500; }
@media (max-width: 899px) { .footer-grid { grid-template-columns: 1fr 1fr; } .footer-brand { grid-column: 1 / -1; } }
@media (max-width: 559px) { .footer-grid { grid-template-columns: 1fr; gap: 28px; } .footer { padding-bottom: 96px; } }

/* ---------- WhatsApp flotante ---------- */
.wa-float {
  position: fixed; right: 24px; bottom: calc(24px + env(safe-area-inset-bottom, 0px)); z-index: 60;
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent-dk); color: #fff; display: grid; place-items: center;
  box-shadow: var(--shadow-lg); transition: background-color var(--ease), transform var(--ease);
}
.wa-float:hover { background: var(--accent-deep); color: #fff; transform: translateY(-2px); }
.wa-float .ico { width: 28px; height: 28px; }
@media (max-width: 759px) { .wa-float { right: 16px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); } }

/* ---------- carrito ---------- */
.cart-overlay { position: fixed; inset: 0; z-index: 90; background: rgba(17,17,17,.42); opacity: 0; transition: opacity 240ms ease; }
.cart-overlay.is-open { opacity: 1; }
.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0; z-index: 100;
  width: min(440px, 100%); background: var(--surface);
  display: flex; flex-direction: column;
  transform: translateX(100%); visibility: hidden;
  transition: transform 280ms ease, visibility 0s linear 280ms;
  box-shadow: var(--shadow-lg);
}
.cart-drawer.is-open { transform: none; visibility: visible; transition: transform 280ms ease; }
.cart-head { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--line); }
.cart-head h2 { font-size: 28px; }
.cart-items { flex: 1; overflow-y: auto; padding: 8px 20px; }
.cart-empty { color: var(--ink-soft); text-align: center; padding: 40px 0; }
.cart-row { display: grid; grid-template-columns: 64px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart-row img { width: 64px; height: 64px; border-radius: var(--radius-sm); object-fit: cover; background: var(--bg); }
.cart-row-name { font-size: 15px; line-height: 1.35; margin: 0 0 2px; overflow-wrap: anywhere; }
.cart-row-brand { font-size: 12px; color: var(--accent-2-dk); text-transform: uppercase; letter-spacing: .06em; margin: 0 0 4px; }
.cart-row-price { font-size: 14px; font-weight: 500; font-variant-numeric: tabular-nums; margin: 0; }
.cart-row-sub { font-size: 12px; color: var(--ink-soft); margin: 0 0 8px; font-variant-numeric: tabular-nums; }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: var(--radius-pill); }
.qty button { width: 36px; height: 36px; border: 0; background: transparent; border-radius: 50%; display: grid; place-items: center; }
.qty button:hover { background: var(--accent-soft); }
.qty span { min-width: 28px; text-align: center; font-variant-numeric: tabular-nums; }
.cart-remove { border: 0; background: transparent; color: var(--ink-soft); width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; }
.cart-remove:hover { background: var(--accent-soft); color: var(--ink); }
.cart-foot { border-top: 1px solid var(--line); padding: 16px 20px calc(20px + env(safe-area-inset-bottom, 0px)); background: var(--bg); }
.cart-total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 18px; font-weight: 500; font-variant-numeric: tabular-nums; }
.cart-total-bs { text-align: right; font-size: 14px; color: var(--ink-soft); margin: 2px 0 10px; font-variant-numeric: tabular-nums; }
.cart-note { font-size: 12px; color: var(--ink-soft); margin: 0 0 14px; line-height: 1.45; }
.cart-foot .btn + .btn { margin-top: 8px; }
.link-btn { background: none; border: 0; color: var(--ink-soft); text-decoration: underline; font-size: 14px; padding: 8px; display: block; margin: 6px auto 0; }

/* ---------- toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: 96px; z-index: 110;
  transform: translate(-50%, 20px); opacity: 0; pointer-events: none;
  background: var(--ink); color: #fff; font-size: 14px; padding: 10px 18px; border-radius: var(--radius-pill);
  box-shadow: var(--shadow-lg); transition: opacity 200ms ease, transform 200ms ease; max-width: calc(100% - 32px); text-align: center;
}
.toast.is-show { opacity: 1; transform: translate(-50%, 0); }

/* ---------- páginas internas (legales y contacto) ---------- */
.page { padding: 56px 0 var(--section); }
.prose { max-width: 760px; margin: 0 auto; background: var(--surface); border-radius: var(--radius-lg); box-shadow: var(--shadow-sm); padding: 48px 56px; }
.prose h1 { font-size: clamp(2rem, 1.5rem + 1.8vw, 2.75rem); margin-bottom: 8px; }
.prose h1 + p { color: var(--ink-soft); font-size: 15px; }
.prose h2, .prose h3 { font-size: 26px; margin: 32px 0 10px; }
.prose ul { padding-left: 1.2em; margin: 0 0 1em; }
.prose li { margin-bottom: 6px; }
.prose .hilo { margin: 14px 0 24px; }
@media (max-width: 759px) { .page { padding-top: 32px; } .prose { padding: 28px 20px; border-radius: var(--radius); } }

.contacto-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin: 24px 0 8px; }
.contacto-item { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; }
.contacto-item h2 { font-family: var(--font-body); font-size: 13px; font-weight: 500; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2-dk); margin: 0 0 6px; }
.contacto-item p { margin: 0; }
@media (max-width: 599px) { .contacto-grid { grid-template-columns: 1fr; } }
.form { display: grid; gap: 16px; margin-top: 16px; }
.field label { display: block; font-size: 14px; font-weight: 500; margin-bottom: 6px; }
.field input, .field textarea {
  width: 100%; border: 1px solid var(--line); border-radius: var(--radius-sm);
  background: var(--bg); padding: 12px 14px; font-size: 16px;
}
.field textarea { min-height: 140px; resize: vertical; }
.field input:focus-visible, .field textarea:focus-visible { outline: 2px solid var(--accent-dk); outline-offset: 1px; }
.form-note { font-size: 13px; color: var(--ink-soft); margin: 0; }

/* ---------- movimiento reducido ---------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important;
    transition-duration: .01ms !important; scroll-behavior: auto !important;
  }
  .card:hover, .cat-card:hover img, .wa-float:hover { transform: none; }
}

/* Producto sin TRM vigente: no hay precio que mostrar */
.price-consulta {
  font-size: 15px; font-weight: 500; line-height: 1.3; color: var(--accent-dk);
  text-decoration: underline; text-underline-offset: 3px;
}
.price-consulta:hover { color: var(--accent-deep); }
