/* =============================================================
   CAPRICHO BISUTERÍA — styles.css
   Archetype: Editorial Light Cream (adaptado, acento dorado/bronce)
   1. Tokens  2. Reset  3. Utilities  4. Typography  5. Components
   6. Sections  7. Effects  8. Responsive  9. Reduced-motion
   ============================================================= */

/* =============================================================
   1. Tokens
   ============================================================= */
:root {
  --bg:        #f6f0e6;
  --bg-2:      #ecdfc9;
  --paper:     #fffdf9;
  --ink:       #1c1a17;
  --ink-soft:  #35302a;
  --ink-mute:  #7a7167;
  --accent:    #a8763f;   /* bronce/oro del logo */
  --accent-2:  #8a5e2e;   /* bronce oscuro */
  --accent-soft: #d9b98a;
  --gold-line: #c79a5f;
  --line:      rgba(28,26,23,0.12);
  --success:   #3f7a4d;
  --whatsapp:  #25D366;
  --whatsapp-dark: #128C4A;

  --serif: "Fraunces", "Playfair Display", Georgia, serif;
  --script: "Alex Brush", "Segoe Script", cursive;
  --sans: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;

  --ease-out:  cubic-bezier(0.16, 1, 0.3, 1);
  --ease-soft: cubic-bezier(0.25, 0.46, 0.45, 0.94);
  --ease-bounce: cubic-bezier(0.34, 1.56, 0.64, 1);

  --container: 1240px;
  --radius: 18px;
  --radius-sm: 10px;
  --nav-h: 76px;
}

/* =============================================================
   2. Reset & base
   ============================================================= */
*, *::before, *::after { box-sizing: border-box; margin: 0; }
html {
  -webkit-text-size-adjust: 100%;
  tab-size: 2;
  scroll-behavior: smooth;
  overflow-x: clip;
}
body {
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink-soft);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
  overscroll-behavior-y: none;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
button { font: inherit; color: inherit; cursor: pointer; border: 0; background: none; }
a { color: inherit; text-decoration: none; }
p { text-wrap: pretty; }
ul { list-style: none; padding: 0; }
h1, h2, h3, h4 { text-wrap: balance; line-height: 1.08; font-family: var(--serif); color: var(--ink); }
::selection { background: var(--accent-soft); color: var(--ink); }

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

/* =============================================================
   3. Utilities
   ============================================================= */
.skip-link {
  position: fixed; top: -100px; left: 1rem;
  padding: .6rem 1rem; background: var(--ink); color: var(--paper);
  z-index: 9999; border-radius: 8px; font-weight: 500; font-size: .9rem;
  transition: top .3s var(--ease-out);
}
.skip-link:focus { top: 1rem; }

.container {
  width: 100%;
  max-width: var(--container);
  margin-inline: auto;
  padding-inline: 1.25rem;
}
@media (min-width: 720px) { .container { padding-inline: 2rem; } }
@media (min-width: 1280px) { .container { padding-inline: 2.5rem; } }

.section { padding-block: clamp(3.5rem, 8vw, 6.5rem); position: relative; }
.section-head {
  max-width: 640px;
  margin-bottom: clamp(2rem, 5vw, 3.25rem);
}
.section-head.center { margin-inline: auto; text-align: center; }
.kicker {
  display: inline-flex; align-items: center; gap: .55rem;
  font-size: .78rem; letter-spacing: .18em; text-transform: uppercase;
  color: var(--accent-2); font-weight: 600; margin-bottom: .9rem;
}
.kicker::before {
  content: ""; width: 22px; height: 1px; background: var(--accent);
}
.section-title { font-size: clamp(1.9rem, 4vw, 2.9rem); font-style: italic; font-weight: 500; }
.section-sub { margin-top: .9rem; color: var(--ink-mute); font-size: 1.05rem; max-width: 52ch; }
.center .section-sub { margin-inline: auto; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  padding: .85rem 1.6rem; border-radius: 999px; font-weight: 600; font-size: .95rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out), background .3s var(--ease-out);
  white-space: nowrap;
}
.btn-primary {
  background: var(--ink); color: var(--paper);
  box-shadow: 0 10px 26px rgba(28,26,23,0.18);
}
.btn-primary:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(28,26,23,0.24); }
.btn-gold {
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  color: var(--ink);
  box-shadow: 0 10px 26px rgba(168,118,63,0.3);
}
.btn-gold:hover { transform: translateY(-3px); box-shadow: 0 16px 34px rgba(168,118,63,0.4); }
.btn-ghost {
  background: transparent; color: var(--ink); border: 1.5px solid var(--line);
}
.btn-ghost:hover { border-color: var(--ink); transform: translateY(-2px); }
.btn-wa {
  background: var(--whatsapp); color: #fff;
  box-shadow: 0 8px 20px rgba(37,211,102,0.35);
}
.btn-wa:hover { background: var(--whatsapp-dark); transform: translateY(-3px); box-shadow: 0 14px 28px rgba(37,211,102,0.45); }
.btn-sm { padding: .6rem 1.1rem; font-size: .82rem; }
.btn-block { width: 100%; }
.btn svg { width: 18px; height: 18px; flex-shrink: 0; }

.badge {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .3rem .7rem; border-radius: 999px;
  background: var(--paper); border: 1px solid var(--line);
  font-size: .72rem; font-weight: 600; letter-spacing: .03em; color: var(--ink-soft);
}
.badge-discount {
  background: #b23b3b; color: #fff; border: none;
  font-size: .72rem; padding: .3rem .65rem;
}

.reveal { opacity: 0; transform: translateY(32px); transition: opacity .8s var(--ease-out), transform .8s var(--ease-out); }
.reveal.is-visible { opacity: 1; transform: none; }
.reveal[data-split] { opacity: 1; transform: none; }
.reveal-delay-1 { transition-delay: .08s; }
.reveal-delay-2 { transition-delay: .16s; }
.reveal-delay-3 { transition-delay: .24s; }

.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}

/* =============================================================
   4. Typography accents
   ============================================================= */
.script { font-family: var(--script); font-weight: 400; }
.italic-accent { font-style: italic; color: var(--accent-2); }

/* =============================================================
   5. Components
   ============================================================= */

/* --- Nav --- */
.nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 500;
  height: var(--nav-h);
  display: flex; align-items: center;
  background: rgba(246,240,230,0);
  border-bottom: 1px solid transparent;
  transition: background .4s var(--ease-out), border-color .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.nav.is-scrolled {
  background: rgba(246,240,230,0.92);
  backdrop-filter: blur(14px) saturate(160%);
  -webkit-backdrop-filter: blur(14px) saturate(160%);
  border-bottom-color: var(--line);
  box-shadow: 0 8px 24px rgba(28,26,23,0.06);
}
.nav-inner { display: flex; align-items: center; justify-content: space-between; width: 100%; }
.brand-logo { display: flex; flex-direction: column; line-height: 1; gap: .1rem; }
.brand-logo .brand-name {
  font-family: var(--script); font-size: 1.9rem; color: var(--ink);
  display: flex; align-items: baseline;
}
.brand-logo .brand-name .c-ring { position: relative; color: var(--accent); font-family: var(--script); }
.brand-logo .brand-sub {
  font-size: .62rem; letter-spacing: .32em; text-transform: uppercase; color: var(--accent-2); margin-left: .15rem;
}
.nav-links { display: none; gap: 2rem; align-items: center; }
.nav-links a {
  font-size: .88rem; font-weight: 600; color: var(--ink-soft); position: relative; padding-block: .3rem;
}
.nav-links a::after {
  content: ""; position: absolute; left: 0; right: 100%; bottom: -2px; height: 1.5px; background: var(--accent);
  transition: right .35s var(--ease-out);
}
.nav-links a:hover::after, .nav-links a.is-active::after { right: 0; }
.nav-actions { display: flex; align-items: center; gap: .7rem; }
.nav-burger {
  display: inline-flex; width: 44px; height: 44px; align-items: center; justify-content: center;
  border-radius: 50%; border: 1px solid var(--line);
}
.nav-burger span, .nav-burger::before, .nav-burger::after { content: ""; }
.burger-icon { width: 18px; height: 12px; position: relative; }
.burger-icon span {
  position: absolute; left: 0; width: 100%; height: 1.6px; background: var(--ink);
  transition: transform .3s var(--ease-out), opacity .3s var(--ease-out), top .3s var(--ease-out);
}
.burger-icon span:nth-child(1) { top: 0; }
.burger-icon span:nth-child(2) { top: 5px; }
.burger-icon span:nth-child(3) { top: 10px; }
.nav-burger.is-open .burger-icon span:nth-child(1) { top: 5px; transform: rotate(45deg); }
.nav-burger.is-open .burger-icon span:nth-child(2) { opacity: 0; }
.nav-burger.is-open .burger-icon span:nth-child(3) { top: 5px; transform: rotate(-45deg); }

.mobile-menu {
  position: fixed; inset: 0; z-index: 490;
  background: var(--bg);
  display: flex; flex-direction: column;
  padding: calc(var(--nav-h) + 2rem) 1.5rem 2rem;
  transform: translateY(-100%);
  transition: transform .5s var(--ease-out);
}
.mobile-menu.is-open { transform: translateY(0); }
.mobile-menu a {
  font-family: var(--serif); font-style: italic; font-size: 1.7rem; padding-block: .7rem;
  border-bottom: 1px solid var(--line); color: var(--ink);
}
.mobile-menu .btn { margin-top: 1.5rem; }

@media (min-width: 960px) {
  .nav-links { display: flex; }
  .nav-burger { display: none; }
  .mobile-menu { display: none; }
}

/* --- Floating WhatsApp button --- */
.wa-float {
  position: fixed; right: 1.1rem; bottom: 1.1rem; z-index: 600;
  width: 62px; height: 62px; border-radius: 50%;
  background: var(--whatsapp); color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 10px 30px rgba(37,211,102,0.5);
  animation: waPulse 2.6s ease-in-out infinite;
}
.wa-float svg { width: 30px; height: 30px; }
.wa-float:hover { background: var(--whatsapp-dark); }
@keyframes waPulse {
  0%, 100% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 0 rgba(37,211,102,0.55); }
  50% { box-shadow: 0 10px 30px rgba(37,211,102,0.5), 0 0 0 14px rgba(37,211,102,0); }
}
.wa-tooltip {
  position: absolute; right: 74px; bottom: 10px;
  background: var(--ink); color: var(--paper);
  padding: .6rem .9rem; border-radius: 10px; font-size: .82rem; font-weight: 600;
  white-space: nowrap;
  opacity: 0; transform: translateX(8px);
  transition: opacity .3s var(--ease-out), transform .3s var(--ease-out);
  pointer-events: none;
}
.wa-float:hover .wa-tooltip { opacity: 1; transform: none; }

/* --- Trust bar --- */
.trust-bar {
  background: var(--ink); color: var(--paper);
  padding-block: .55rem;
  overflow: hidden;
  white-space: nowrap;
}
.trust-track {
  display: inline-flex; gap: 3rem;
  animation: marquee 26s linear infinite;
}
.trust-track span { display: inline-flex; align-items: center; gap: .5rem; font-size: .82rem; letter-spacing: .04em; color: var(--accent-soft); }
.trust-track span::before { content: "✦"; color: var(--accent); }
@keyframes marquee {
  from { transform: translateX(0); }
  to { transform: translateX(-50%); }
}

/* --- Hero --- */
.hero {
  position: relative;
  min-height: 100svh;
  display: flex; align-items: center;
  padding-top: calc(var(--nav-h) + 2rem);
  padding-bottom: 3rem;
  overflow: clip;
}
.hero-mesh {
  position: absolute; inset: -10% -10% -30% -10%; z-index: 0;
  background:
    radial-gradient(38% 32% at 18% 22%, rgba(199,154,95,0.45), transparent 70%),
    radial-gradient(45% 40% at 85% 15%, rgba(168,118,63,0.3), transparent 70%),
    radial-gradient(50% 45% at 55% 90%, rgba(217,185,138,0.4), transparent 70%);
  filter: blur(60px) saturate(130%);
  animation: meshDrift 22s ease-in-out infinite;
}
@keyframes meshDrift {
  0%, 100% { transform: scale(1) rotate(0deg); }
  50% { transform: scale(1.15) rotate(8deg); }
}
.hero-grain {
  position: absolute; inset: 0; z-index: 1; opacity: .05; mix-blend-mode: multiply; pointer-events: none;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='120' height='120'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='2' stitchTiles='stitch'/></filter><rect width='100%25' height='100%25' filter='url(%23n)'/></svg>");
}
.hero-inner {
  position: relative; z-index: 2;
  display: grid; gap: 2.5rem; align-items: center;
  grid-template-columns: 1fr;
}
.hero-copy { max-width: 640px; }
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: .6rem;
  font-size: .8rem; letter-spacing: .16em; text-transform: uppercase; color: var(--accent-2); font-weight: 700;
  margin-bottom: 1.1rem;
}
.hero-eyebrow .dot { width: 7px; height: 7px; border-radius: 50%; background: var(--success); box-shadow: 0 0 0 3px rgba(63,122,77,0.2); }
.hero-title {
  font-size: clamp(2.6rem, 6.6vw, 4.6rem);
  font-style: italic; font-weight: 500;
  max-width: 15ch;
}
.hero-title em { color: var(--accent-2); font-family: var(--script); font-style: normal; font-size: 1.06em; }
.hero-sub {
  margin-top: 1.3rem; font-size: 1.12rem; color: var(--ink-mute); max-width: 46ch;
}
.hero-actions { display: flex; flex-wrap: wrap; gap: .9rem; margin-top: 2rem; }
.hero-stats { display: flex; gap: 2.2rem; margin-top: 2.6rem; flex-wrap: wrap; }
.hero-stat b { display: block; font-family: var(--serif); font-style: italic; font-size: 1.7rem; color: var(--ink); }
.hero-stat span { font-size: .78rem; color: var(--ink-mute); letter-spacing: .02em; }

.hero-visual {
  position: relative;
  display: flex; align-items: center; justify-content: center;
  perspective: 1200px;
}
.hero-card {
  position: relative;
  width: min(360px, 82vw);
  aspect-ratio: 4/5;
  border-radius: 28px;
  background: linear-gradient(160deg, #fffdf9, #eee0c8);
  box-shadow: 0 40px 70px -20px rgba(120,86,44,0.35), 0 2px 0 rgba(255,255,255,0.6) inset;
  display: flex; align-items: center; justify-content: center;
  transform-style: preserve-3d;
  transition: transform .25s var(--ease-out);
  will-change: transform;
}
.hero-card svg { width: 58%; height: 58%; }
.hero-card::after {
  content: ""; position: absolute; inset: 14px; border-radius: 20px; border: 1px solid rgba(168,118,63,0.35);
  pointer-events: none;
}
.hero-float-badge {
  position: absolute; padding: .7rem 1rem; border-radius: 14px;
  background: var(--paper); box-shadow: 0 14px 30px rgba(28,26,23,0.14);
  font-size: .8rem; font-weight: 700; display: flex; align-items: center; gap: .5rem;
  animation: floatY 4.5s ease-in-out infinite;
}
.hero-float-badge.b1 { top: 6%; left: -6%; animation-delay: 0s; }
.hero-float-badge.b2 { bottom: 10%; right: -8%; animation-delay: 1.2s; }
@keyframes floatY {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}

@media (min-width: 960px) {
  .hero-inner { grid-template-columns: 1.05fr .95fr; gap: 2rem; }
}

/* --- Cómo comprar (trust process) --- */
.steps-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: 1fr;
}
@media (min-width: 720px) { .steps-grid { grid-template-columns: repeat(3, 1fr); } }
.step-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.9rem 1.6rem;
  position: relative;
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.step-card:hover { transform: translateY(-6px); box-shadow: 0 24px 40px rgba(28,26,23,0.1); }
.step-num {
  font-family: var(--serif); font-style: italic; font-size: 2.2rem; color: var(--accent-soft);
  margin-bottom: .6rem;
}
.step-card h3 { font-size: 1.15rem; font-style: italic; margin-bottom: .5rem; }
.step-card p { font-size: .92rem; color: var(--ink-mute); }

/* --- Category filter tabs --- */
.cat-tabs {
  display: flex; gap: .6rem; flex-wrap: wrap;
  margin-bottom: 2.4rem;
}
.cat-tab {
  padding: .6rem 1.2rem; border-radius: 999px; border: 1.5px solid var(--line);
  font-size: .86rem; font-weight: 600; color: var(--ink-soft);
  transition: all .3s var(--ease-out);
}
.cat-tab:hover { border-color: var(--accent); color: var(--accent-2); }
.cat-tab.is-active { background: var(--ink); border-color: var(--ink); color: var(--paper); }

/* --- Product grid & cards --- */
.product-grid {
  display: grid; gap: 1.4rem;
  grid-template-columns: repeat(2, 1fr);
}
@media (min-width: 720px) { .product-grid { grid-template-columns: repeat(3, 1fr); gap: 1.7rem; } }
@media (min-width: 1280px) { .product-grid { grid-template-columns: repeat(4, 1fr); } }

.product-card {
  background: var(--paper); border-radius: var(--radius); overflow: hidden;
  border: 1px solid var(--line);
  display: flex; flex-direction: column;
  transition: transform .1s linear, box-shadow .4s var(--ease-out);
  transform-style: preserve-3d;
  position: relative;
}
.product-card.is-hidden { display: none; }
.product-card:hover { box-shadow: 0 30px 50px -14px rgba(28,26,23,0.22); }
.product-media {
  position: relative; aspect-ratio: 1/1;
  background: linear-gradient(155deg, var(--bg-2), var(--paper) 70%);
  display: flex; align-items: center; justify-content: center;
  overflow: hidden;
}
.product-media svg { width: 46%; height: 46%; color: var(--accent-2); transition: transform .5s var(--ease-out); }
.product-card:hover .product-media svg { transform: scale(1.08) rotate(-3deg); }
.product-card .badge-discount { position: absolute; top: .7rem; left: .7rem; }
.product-cat-tag {
  position: absolute; bottom: .6rem; left: .6rem;
  font-size: .62rem; letter-spacing: .12em; text-transform: uppercase; font-weight: 700;
  color: var(--accent-2); background: rgba(255,253,249,0.85); padding: .25rem .55rem; border-radius: 999px;
}
.product-body { padding: 1.05rem 1.1rem 1.2rem; display: flex; flex-direction: column; gap: .55rem; flex: 1; }
.product-name { font-size: 1.02rem; font-style: italic; line-height: 1.25; }
.product-features { font-size: .78rem; color: var(--ink-mute); display: flex; flex-direction: column; gap: .2rem; }
.product-features li::before { content: "· "; color: var(--accent); font-weight: 700; }
.product-price-row { display: flex; align-items: baseline; gap: .5rem; margin-top: .2rem; }
.price-new { font-size: 1.2rem; font-weight: 800; color: var(--ink); }
.price-old { font-size: .85rem; color: var(--ink-mute); text-decoration: line-through; }
.product-actions { display: flex; flex-direction: column; gap: .5rem; margin-top: .5rem; }

/* --- Testimonials --- */
.testi-track {
  display: grid; gap: 1.4rem; grid-template-columns: 1fr;
}
@media (min-width: 860px) { .testi-track { grid-template-columns: repeat(3, 1fr); } }
.testi-card {
  background: var(--paper); border-radius: var(--radius); padding: 1.8rem 1.6rem;
  border: 1px solid var(--line);
  transition: transform .4s var(--ease-out), box-shadow .4s var(--ease-out);
}
.testi-card:hover { transform: translateY(-5px); box-shadow: 0 22px 40px rgba(28,26,23,0.1); }
.testi-stars { color: var(--accent); font-size: 1rem; letter-spacing: .12em; margin-bottom: .8rem; }
.testi-quote { font-size: .96rem; color: var(--ink-soft); font-style: italic; }
.testi-who { margin-top: 1.1rem; display: flex; align-items: center; gap: .7rem; }
.testi-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, var(--accent-soft), var(--accent));
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; color: #fff; font-weight: 700;
}
.testi-name { font-size: .85rem; font-weight: 700; }
.testi-loc { font-size: .74rem; color: var(--ink-mute); }

/* --- Stats strip --- */
.stats-strip {
  display: grid; grid-template-columns: repeat(2,1fr); gap: 1.6rem;
  background: var(--ink); color: var(--paper); border-radius: 24px;
  padding: 2.4rem 1.6rem;
}
@media (min-width: 720px) { .stats-strip { grid-template-columns: repeat(4,1fr); } }
.stat-item { text-align: center; }
.stat-item b { display: block; font-family: var(--serif); font-style: italic; font-size: clamp(1.8rem, 3vw, 2.4rem); color: var(--accent-soft); }
.stat-item span { font-size: .78rem; color: rgba(255,253,249,0.72); }

/* --- FAQ --- */
.faq-list { max-width: 760px; margin-inline: auto; display: flex; flex-direction: column; gap: .8rem; }
.faq-item { background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; }
.faq-q {
  width: 100%; display: flex; align-items: center; justify-content: space-between;
  padding: 1.1rem 1.3rem; font-weight: 700; font-size: .98rem; text-align: left;
}
.faq-q .plus { font-size: 1.3rem; color: var(--accent); transition: transform .35s var(--ease-out); flex-shrink: 0; margin-left: 1rem; }
.faq-item.is-open .faq-q .plus { transform: rotate(45deg); }
.faq-a {
  max-height: 0; overflow: hidden; transition: max-height .4s var(--ease-out);
  padding-inline: 1.3rem;
  color: var(--ink-mute); font-size: .92rem;
}
.faq-item.is-open .faq-a { max-height: 240px; padding-bottom: 1.2rem; }

/* --- Final CTA --- */
.cta-final {
  background: linear-gradient(160deg, var(--ink), #2b241c);
  color: var(--paper); border-radius: 28px;
  padding: clamp(2.4rem, 6vw, 4rem);
  text-align: center;
  position: relative; overflow: clip;
}
.cta-final::before {
  content: ""; position: absolute; inset: -60% -10% -60% -10%;
  background: radial-gradient(45% 40% at 50% 40%, rgba(199,154,95,0.35), transparent 70%);
  filter: blur(60px);
}
.cta-final h2 { color: var(--paper); position: relative; }
.cta-final p { color: rgba(255,253,249,0.75); margin-top: .8rem; position: relative; max-width: 50ch; margin-inline: auto; }
.cta-final .btn { margin-top: 1.8rem; position: relative; }

/* --- Footer --- */
.footer { padding-block: 3rem 2rem; border-top: 1px solid var(--line); margin-top: 2rem; }
.footer-grid {
  display: grid; gap: 2rem; grid-template-columns: 1fr;
}
@media (min-width: 720px) { .footer-grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.footer-brand .brand-name { font-family: var(--script); font-size: 1.8rem; }
.footer-brand p { margin-top: .8rem; color: var(--ink-mute); font-size: .9rem; max-width: 32ch; }
.footer-col h4 { font-size: .8rem; letter-spacing: .1em; text-transform: uppercase; color: var(--ink-soft); margin-bottom: .9rem; font-family: var(--sans); font-style: normal; }
.footer-col a, .footer-col p { display: block; font-size: .9rem; color: var(--ink-mute); margin-bottom: .55rem; }
.footer-col a:hover { color: var(--accent-2); }
.footer-social { display: flex; gap: .7rem; margin-top: .5rem; }
.footer-social a {
  width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line);
  display: flex; align-items: center; justify-content: center;
}
.footer-social a:hover { border-color: var(--accent); }
.footer-social svg { width: 17px; height: 17px; }
.footer-bottom {
  margin-top: 2.4rem; padding-top: 1.6rem; border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: .5rem;
  font-size: .78rem; color: var(--ink-mute);
}
@media (min-width: 720px) { .footer-bottom { flex-direction: row; justify-content: space-between; } }

/* --- Modal (product detail) --- */
.modal-overlay {
  position: fixed; inset: 0; z-index: 800;
  background: rgba(28,26,23,0.55);
  backdrop-filter: blur(4px);
  display: flex; align-items: center; justify-content: center;
  padding: 1rem;
  opacity: 0; pointer-events: none;
  transition: opacity .35s var(--ease-out);
}
.modal-overlay.is-open { opacity: 1; pointer-events: auto; }
.modal-box {
  background: var(--paper); border-radius: 24px; max-width: 640px; width: 100%;
  max-height: 88vh; overflow-y: auto;
  display: grid; grid-template-columns: 1fr;
  transform: translateY(30px) scale(.97); transition: transform .4s var(--ease-out);
  position: relative;
}
.modal-overlay.is-open .modal-box { transform: none; }
@media (min-width: 640px) { .modal-box { grid-template-columns: 1fr 1fr; } }
.modal-media {
  background: linear-gradient(155deg, var(--bg-2), var(--paper) 70%);
  display: flex; align-items: center; justify-content: center; padding: 2.4rem;
  min-height: 220px;
}
.modal-media svg { width: 55%; height: 55%; color: var(--accent-2); }
.modal-body { padding: 1.8rem 1.7rem 2rem; display: flex; flex-direction: column; gap: .8rem; }
.modal-close {
  position: absolute; top: .8rem; right: .8rem; z-index: 2;
  width: 38px; height: 38px; border-radius: 50%; background: var(--paper);
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 16px rgba(28,26,23,0.18);
}
.modal-close svg { width: 16px; height: 16px; }
.modal-cat { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--accent-2); font-weight: 700; }
.modal-name { font-size: 1.5rem; font-style: italic; }
.modal-price-row { display: flex; align-items: baseline; gap: .6rem; }
.modal-price-row .price-new { font-size: 1.6rem; }
.modal-features { font-size: .92rem; color: var(--ink-mute); display: flex; flex-direction: column; gap: .35rem; margin-top: .3rem; }
.modal-features li::before { content: "✓ "; color: var(--success); font-weight: 700; }
.modal-desc { font-size: .92rem; color: var(--ink-mute); }
.modal-actions { display: flex; flex-direction: column; gap: .6rem; margin-top: .6rem; }
.modal-trust { font-size: .76rem; color: var(--ink-mute); display: flex; align-items: center; gap: .4rem; margin-top: .3rem; }

/* =============================================================
   7. Effects — reduced motion (ONLY intrusive)
   ============================================================= */
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .hero-mesh { animation: none; }
  .trust-track { animation-duration: 60s; }
  .hero-float-badge { animation: none; }
  .wa-float { animation: none; }
}

/* =============================================================
   8. Responsive helpers
   ============================================================= */
@media (max-width: 539px) {
  .hero-float-badge { display: none; }
}

/* --- Catalog toolbar (search + count) --- */
.catalog-toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1.6rem;
}
.search-field {
  position: relative; flex: 1 1 280px; max-width: 420px;
}
.search-field svg {
  position: absolute; left: 14px; top: 50%; transform: translateY(-50%);
  width: 18px; height: 18px; color: var(--ink-mute); pointer-events: none;
}
.search-field input {
  width: 100%; padding: .75rem 1rem .75rem 2.6rem;
  border-radius: 999px; border: 1.5px solid var(--line);
  background: var(--paper); font-family: var(--sans); font-size: .92rem;
  color: var(--ink); transition: border-color .3s var(--ease-out);
}
.search-field input:focus { border-color: var(--accent); outline: none; }
.result-count {
  font-size: .82rem; color: var(--ink-mute); font-weight: 600; white-space: nowrap;
}
.catalog-noscript {
  text-align: center; padding: 2rem 1rem; background: var(--paper);
  border-radius: var(--radius); border: 1px solid var(--line); color: var(--ink-mute);
}
.catalog-noscript a { color: var(--accent-2); font-weight: 700; }
.badge-avail {
  background: var(--success); color: #fff; border: none;
}
.product-grid:empty::after {
  content: "Cargando catálogo...";
  grid-column: 1 / -1; text-align: center; color: var(--ink-mute);
  padding: 3rem 0; font-size: .95rem;
}

/* ============ MULTI-PAGE: breadcrumb, category grid, product detail ============ */
.breadcrumb {
  display: flex; align-items: center; gap: .5rem; flex-wrap: wrap;
  font-size: .9rem; color: var(--ink-mute); margin-bottom: 1.6rem;
}
.breadcrumb a { color: var(--ink-mute); text-decoration: none; }
.breadcrumb a:hover { color: var(--accent-2); text-decoration: underline; }
.breadcrumb-sep { color: var(--line); }
.breadcrumb [data-crumb-current] { color: var(--ink); font-weight: 600; }

.product-link { display: block; color: inherit; text-decoration: none; }

.cat-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 1.1rem; margin-top: 1.6rem;
}
.cat-card {
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 1.6rem 1.2rem; text-align: center; text-decoration: none; color: var(--ink);
  display: flex; flex-direction: column; align-items: center; gap: .6rem;
  transition: transform .35s var(--ease-out), box-shadow .35s var(--ease-out);
}
.cat-card:hover { transform: translateY(-6px); box-shadow: 0 30px 50px -18px rgba(28,26,23,0.25); }
.cat-card-icon {
  width: 56px; height: 56px; border-radius: 50%; background: var(--bg-2);
  display: flex; align-items: center; justify-content: center; color: var(--accent-2);
}
.cat-card-icon svg { width: 50%; height: 50%; }
.cat-card h3 { font-size: 1rem; font-style: italic; margin: 0; }
.cat-card-count { font-size: .8rem; color: var(--ink-mute); }

/* ---------- Product detail page ---------- */
.product-detail {
  display: grid; grid-template-columns: minmax(0, 380px) minmax(0, 1fr);
  gap: 2.6rem; align-items: start; margin-top: 1rem;
}
@media (max-width: 780px) {
  .product-detail { grid-template-columns: 1fr; }
}
.pd-media {
  position: relative; overflow: hidden;
  aspect-ratio: 1 / 1; background: var(--bg-2); border-radius: var(--radius);
  border: 1px solid var(--line); display: flex; align-items: center; justify-content: center;
}
.pd-media svg { width: 44%; height: 44%; color: var(--accent-2); }
.pd-body { display: flex; flex-direction: column; gap: .9rem; }
.pd-cat-tag { position: static; display: inline-flex; width: fit-content; }
.pd-name { font-size: clamp(1.5rem, 3vw, 2.1rem); font-style: italic; }
.pd-price-row { display: flex; align-items: baseline; gap: .8rem; flex-wrap: wrap; }
.pd-price-new { font-size: 2rem; font-weight: 800; color: var(--ink); }
.pd-price-old { font-size: 1.1rem; color: var(--ink-mute); text-decoration: line-through; }
.pd-desc { color: var(--ink-mute); line-height: 1.6; max-width: 60ch; }
.pd-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: .5rem; }
.pd-features li { padding-left: 1.4rem; position: relative; color: var(--ink-soft); font-size: .95rem; }
.pd-features li::before {
  content: "✓"; position: absolute; left: 0; color: var(--accent-2); font-weight: 800;
}
.pd-actions { margin-top: .4rem; max-width: 420px; }

.related-wrap { margin-top: 4rem; }

.not-found-box {
  text-align: center; padding: 4rem 1rem; max-width: 640px; margin: 0 auto;
}


/* ---------- Fotos reales de producto (opcional, con respaldo al icono) ---------- */
.product-photo, .pd-photo {
  position: absolute; inset: 0; width: 100%; height: 100%;
  object-fit: cover; display: none;
}
.product-photo.is-loaded, .pd-photo.is-loaded { display: block; }
