/* ============================================
   YoSoy222 — Velas Artesanales
   Design System: warm candle palette, Explore surface
   ============================================ */

/* --- Reset & Tokens --- */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

:root {
  /* Earth palette: warm white → cream */
  --bg: #F3EDE4;
  --bg-raised: #FAF9F6;
  --bg-card: #FAF9F6;
  --bg-card-hover: #F3EDE4;
  --surface: #F0E8DF;
  --border: rgba(211,178,131,0.10);
  --border-strong: rgba(211,178,131,0.18);

  /* Text */
  --text: #3b3125;
  --text-muted: #66584A;
  --text-faint: #71654B;

  /* New palette: gold bronze AA for titles/ritual phrases, pearl gray for body */
  --gold-matte: #7A6134;
  --pearl-gray: #66584A;

  /* Accent (earth amber, candle flame) — canónico pre-rediseño, AA 5.77:1 sobre crema */
  --accent: #854f19;
  --accent-hover: #6e3e10;
  --accent-glow: rgba(133,79,25,0.16);

  /* Functional */
  /* Verde oscuro oficial de WhatsApp: blanco encima alcanza 7.88:1 (AAA),
     corrigiendo el único fallo de accesibilidad de la auditoría Lighthouse. */
  --whatsapp: #075e36;
  --whatsapp-hover: #06512d;
  --danger: #c0392b;

  /* Layout */
  --radius: 14px;
  --radius-sm: 8px;
  --radius-full: 999px;
  --shadow: 0 6px 24px rgba(201,168,120,0.08);
  --shadow-lg: 0 12px 40px rgba(201,168,120,0.09);
  --ease: cubic-bezier(0.4, 0, 0.2, 1);
  --duration: 0.28s;
}

html { scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }

body {
  font-family: 'Inter', system-ui, -apple-system, sans-serif;
  background: var(--bg);
  color: var(--pearl-gray);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', Georgia, serif; font-weight: 600; color: var(--gold-matte); }
a { color: inherit; text-decoration: none; }
img { max-width: 100%; display: block; }
button { cursor: pointer; border: none; background: none; font-family: inherit; color: inherit; }
input { font-family: inherit; }

.container { max-width: 1140px; margin: 0 auto; padding: 0 1.5rem; }
/* El "222" del wordmark: Playfair Display solo trae cifras oldstyle (altura de
   minúscula) y sin feature lnum en el subset de Google Fonts. Se escala 1.29em
   (factor medido tinta mayúscula/dígito = 71/55) para que iguale la altura de
   las mayúsculas; line-height 0 evita que crezca el interlineado de la línea. */
.accent { color: var(--accent); font-size: 1.29em; line-height: 0; }
/* Serif elegante Cursiva para frases */
em { font-style: italic; color: var(--gold-matte); font-family: 'Playfair Display', Georgia, serif; }

/* --- Eyebrow (small section label) --- */
.eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.75rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
  margin-bottom: 0.5rem;
}

/* --- Buttons --- */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 500;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
  gap: 0.5rem;
}
.btn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.btn-primary {
  background: var(--accent); color: #fffdf7;
}
.btn-primary:hover { background: var(--accent-hover); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }

.btn-ghost {
  background: transparent; color: var(--text-muted);
  border: 1px solid var(--border);
}
.btn-ghost:hover { border-color: var(--border-strong); color: var(--text); }

.btn-whatsapp { background: var(--whatsapp); color: #fff; }
.btn-whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(7,94,54,0.3); }

.btn-full { width: 100%; }

/* ============================================
   HEADER
   ============================================ */
.header {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(243,237,228,0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
  transition: background var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.header.scrolled { background: rgba(250,249,246,0.97); box-shadow: 0 2px 20px rgba(101,71,35,0.12); }

.header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
}

/* Logo */
.logo { display: flex; align-items: center; gap: 0.45rem; }
.logo-mark { font-size: 1.35rem; line-height: 1; }
.logo-text { font-family: 'Playfair Display', serif; font-size: 1.2rem; font-weight: 600; }

/* Nav */
.nav { display: flex; gap: 1.75rem; }
.nav-link {
  font-size: 0.85rem; font-weight: 400; color: var(--text-muted);
  transition: color var(--duration) var(--ease);
  position: relative;
}
.nav-link:hover, .nav-link.active { color: var(--text); }
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0;
  width: 0; height: 1.5px; background: var(--accent);
  transition: width var(--duration) var(--ease);
}
.nav-link:hover::after, .nav-link.active::after { width: 100%; }

/* Header actions */
.header-actions { display: flex; align-items: center; gap: 0.75rem; }

.cart-btn {
  position: relative; display: flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: var(--radius-sm);
  transition: background var(--duration) var(--ease);
  color: var(--text-muted);
}
.cart-btn:hover { background: rgba(59,49,37,0.06); color: var(--text); }
.cart-btn svg { flex-shrink: 0; }
.cart-count {
  position: absolute; top: 2px; right: 2px;
  background: var(--accent); color: #fffdf7;
  font-size: 0.75rem; font-weight: 700; font-family: 'Inter', sans-serif;
  min-width: 18px; height: 18px; border-radius: var(--radius-full);
  display: flex; align-items: center; justify-content: center;
  padding: 0 4px;
  transition: transform var(--duration) var(--ease);
}
.cart-count.bump { transform: scale(1.25); }

/* Mobile menu toggle */
.menu-toggle {
  display: none; flex-direction: column; gap: 5px;
  width: 40px; height: 40px; align-items: center; justify-content: center;
}
.menu-toggle span {
  display: block; width: 20px; height: 1.5px; background: var(--text);
  border-radius: 2px; transition: transform var(--duration) var(--ease), opacity var(--duration) var(--ease);
}
.menu-toggle.active span:nth-child(1) { transform: rotate(45deg) translate(4px, 4px); }
.menu-toggle.active span:nth-child(2) { opacity: 0; }
.menu-toggle.active span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ============================================
   HERO — Decide/Learn entry for Explore surface
   ============================================ */
.hero {
  padding-top: 110px; padding-bottom: 4rem;
  overflow: hidden;
}
.hero-inner {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
}
.hero-copy { max-width: 540px; }
.hero h1 {
  font-size: clamp(2.4rem, 5.2vw, 3.6rem);
  line-height: 1.12;
  margin-bottom: 1.25rem;
  color: var(--gold-matte);
}
.hero-brand {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: var(--gold-matte);
}
.hero-lead {
  font-size: 1.15rem; color: var(--gold-matte);
  line-height: 1.7; margin-bottom: 1.75rem;
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
}
.hero-categories-pills {
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
  margin-bottom: 2rem;
}
.hero-pill-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1.05rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  border: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 0.84rem;
  font-weight: 500;
  box-shadow: 0 2px 8px rgba(101,71,35,0.04);
  transition: all var(--duration) var(--ease);
}
.hero-pill-btn:hover {
  border-color: var(--accent);
  color: var(--accent);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: 0 4px 14px rgba(133,79,25,0.08);
}
.hero-actions { display: flex; gap: 0.75rem; flex-wrap: wrap; }

/* Hero visual — asymmetric collage */
.hero-visual {
  position: relative;
  display: flex;
  justify-content: flex-end;
}
.hero-img {
  border-radius: var(--radius);
  overflow: hidden;
}
.hero-img-main {
  width: 320px; height: 380px;
  box-shadow: var(--shadow-lg);
}
.hero-img-main img {
  width: 100%; height: 100%; object-fit: cover;
}
.hero-img-float {
  position: absolute;
  bottom: -20px; left: 0;
  width: 160px; height: 160px;
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 3px solid var(--bg);
}
.hero-img-float img {
  width: 100%; height: 100%; object-fit: cover;
}

/* ============================================
   MANIFIESTO DE BIENVENIDA
   ============================================ */
.manifiesto-section {
  padding: 2.5rem 0 3.5rem;
}
.manifiesto-card {
  background: linear-gradient(135deg, #FAF9F6 0%, #F3EDE4 100%);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 3rem 2rem;
  text-align: center;
  box-shadow: 0 10px 30px rgba(101,71,35,0.06);
  position: relative;
  overflow: hidden;
}
.manifiesto-ornament {
  display: inline-block;
  font-family: 'Playfair Display', serif;
  font-size: 0.85rem;
  letter-spacing: 0.25em;
  color: var(--gold-matte);
  margin-bottom: 0.75rem;
  text-transform: uppercase;
}
.manifiesto-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(1.6rem, 3.5vw, 2.4rem);
  color: var(--gold-matte);
  margin-bottom: 2rem;
  font-weight: 600;
}
.manifiesto-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  max-width: 900px;
  margin: 0 auto;
}
.manifiesto-item {
  padding: 1.85rem 1.25rem;
  background: rgba(243,237,228,0.85);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
  border-radius: var(--radius);
  border: 1px solid rgba(133, 79, 25, 0.12);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.manifiesto-item:hover {
  transform: translateY(-3px);
  box-shadow: 0 8px 24px rgba(101,71,35,0.08);
}
.manifiesto-verse {
  font-size: 0.95rem;
  color: var(--pearl-gray);
  margin-bottom: 0.25rem;
}
.manifiesto-emp {
  font-family: 'Playfair Display', Georgia, serif;
  font-size: 1.25rem;
  font-style: italic;
  color: var(--gold-matte);
  font-weight: 600;
}

/* ============================================
   PILARES — LO QUE ENCONTRARÁS AQUÍ
   ============================================ */
.pilares-section {
  padding: 3.5rem 0 4rem;
}
.section-head {
  max-width: 640px;
  margin: 0 auto 2.5rem;
}
.text-center { text-align: center; }
.section-title {
  font-size: clamp(1.75rem, 3.5vw, 2.4rem);
  margin-bottom: 0.5rem;
  color: var(--gold-matte);
}
.section-subtitle {
  font-size: 0.95rem;
  color: var(--pearl-gray);
  line-height: 1.55;
}
.pilares-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  margin-bottom: 2.5rem;
}
.pilar-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 2.5rem 1.75rem;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}
.pilar-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: 0 12px 32px rgba(201,168,120,0.08);
}
.pilar-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.pilar-title {
  font-size: 1.35rem;
  margin-bottom: 0.75rem;
  color: var(--gold-matte);
}
.pilar-desc {
  font-size: 0.9rem;
  color: var(--pearl-gray);
  line-height: 1.6;
  margin-bottom: 1.5rem;
  max-width: 320px;
  flex-grow: 1;
}
.pilar-link {
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--accent);
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  transition: transform var(--duration) var(--ease);
}
.pilar-link:hover {
  transform: translateX(4px);
  color: var(--accent-hover);
}
.btn-lg {
  padding: 0.9rem 2.5rem;
  font-size: 1rem;
}

/* ============================================
   RITUALES COTIDIANOS
   ============================================ */
.rituales-section {
  padding: 4.5rem 0;
  background: var(--surface);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.rituales-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.ritual-card {
  background: var(--bg-card);
  border: 1px solid rgba(133, 79, 25, 0.15);
  border-radius: 18px;
  padding: 2.5rem 1.75rem;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  justify-content: center;
  transition: all var(--duration) var(--ease);
}
.ritual-card:hover {
  transform: translateY(-4px);
  border-color: var(--accent);
  box-shadow: 0 14px 36px rgba(101,71,35,0.08);
}
.ritual-num {
  font-family: 'Playfair Display', serif;
  font-size: 0.75rem;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--gold-matte);
  font-weight: 600;
  margin-bottom: 0.85rem;
}
.ritual-title {
  font-size: 1.35rem;
  margin-bottom: 0.85rem;
  color: var(--gold-matte);
}
.ritual-text {
  font-size: 0.92rem;
  color: var(--gold-matte);
  line-height: 1.65;
  margin-bottom: 1.5rem;
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  max-width: 320px;
  flex-grow: 1;
}
.ritual-footer {
  padding-top: 0.85rem;
  border-top: 1px solid var(--border);
  width: 100%;
}
.ritual-element {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-faint);
  font-weight: 500;
}

/* ============================================
   CATÁLOGO — Explore surface core
   ============================================ */
.catalogo { padding: 4rem 0 3rem; }

.catalogo-head {
  display: flex; align-items: flex-end; justify-content: space-between;
  gap: 1.5rem; margin-bottom: 1.5rem;
  flex-wrap: wrap;
}
.catalogo-head h2 {
  font-size: clamp(1.6rem, 3.5vw, 2.2rem);
  margin-bottom: 0;
}

/* Search */
.search {
  display: flex; align-items: center; gap: 0.5rem;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  padding: 0.5rem 1rem;
  min-width: 240px;
  transition: border-color var(--duration) var(--ease);
}
.search:focus-within { border-color: var(--accent); }
.search svg { color: var(--text-faint); flex-shrink: 0; }
.search input {
  border: none; background: none; outline: none;
  color: var(--text); font-size: 0.85rem; width: 100%;
}
.search input::placeholder { color: var(--text-faint); }

/* Filters */
.filters {
  display: flex; gap: 0.5rem; flex-wrap: wrap;
  margin-bottom: 1.25rem;
}
.filter-btn {
  padding: 0.55rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 0.82rem; font-weight: 500;
  border: 1px solid var(--border);
  transition: all var(--duration) var(--ease);
}
.filter-btn:hover { border-color: var(--border-strong); color: var(--text); }
.filter-btn.active {
  background: var(--accent); color: #fffdf7;
  border-color: var(--accent);
}

/* Category Intro Banner */
.category-intro-box {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius-sm);
  padding: 0.85rem 1.25rem;
  margin-bottom: 1.5rem;
  transition: all var(--duration) var(--ease);
}
.category-intro {
  font-size: 0.86rem;
  color: var(--pearl-gray);
  line-height: 1.55;
  margin: 0;
}

.results-count {
  font-size: 0.8rem; color: var(--text-faint);
  margin-bottom: 1.25rem;
  min-height: 1.2em;
}

/* Products grid — Explore surface */
.products-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 1rem;
}

.product-card {
  background: var(--bg-card);
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border);
  transition: transform var(--duration) var(--ease), border-color var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.product-card:hover {
  transform: translateY(-3px);
  border-color: var(--border-strong);
  box-shadow: 0 8px 28px rgba(101,71,35,0.10);
}
.product-card.hidden { display: none; }

.product-image {
  position: relative; display: block; width: 100%; margin: 0; padding: 0;
  aspect-ratio: 1; overflow: hidden; background: var(--bg-raised);
  border: 0; font: inherit; color: inherit; text-align: left;
  cursor: pointer; -webkit-appearance: none; appearance: none;
  z-index: 0; /* stacking context: el fallback (::after z:-1) queda detras del <img> */
}
.product-image:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.product-image img {
  width: 100%; height: 100%; object-fit: cover;
  transition: transform 0.45s var(--ease);
}
.product-card:hover .product-image img { transform: scale(1.04); }

/* Missing-image fallback: show product name as placeholder */
.product-image::after {
  content: attr(data-name);
  position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center;
  text-align: center; padding: 1rem;
  font-family: 'Playfair Display', serif;
  font-size: 1rem; color: var(--text-faint);
  background: var(--surface);
  z-index: -1;
}

.product-badge {
  position: absolute; top: 10px; left: 10px;
  background: var(--accent); color: #fffdf7;
  padding: 0.2rem 0.6rem; border-radius: var(--radius-full);
  font-size: 0.75rem; font-weight: 700; letter-spacing: 0.04em;
  text-transform: uppercase;
}

.product-info { padding: 1rem; }
.product-info h3 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.9rem; margin-bottom: 0.15rem;
}
.product-category {
  font-size: 0.75rem; color: var(--text-faint);
  margin-bottom: 0.35rem;
}
.product-desc {
  font-size: 0.75rem; color: var(--pearl-gray);
  line-height: 1.4; margin-bottom: 0.5rem;
  display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical;
  overflow: hidden;
}
.product-footer {
  display: flex; align-items: center; justify-content: space-between;
}
.product-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem; font-weight: 600; color: var(--gold-matte);
}
/* El $ de Playfair asciende ~1.5x la altura de sus dígitos oldstyle (medido:
   13px vs 8-9px a 15.2px). Se reduce al factor dígito/símbolo (~0.65) y con
   line-height 0 comparte baseline: símbolo y número quedan a la misma altura
   óptica. Aplica a todos los precios ($ tarjetas, lightbox, carrito). */
.currency {
  font-size: 0.65em;
  line-height: 0;
  vertical-align: baseline;
}
.add-cart-btn {
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-full);
  background: rgba(133,79,25,0.10);
  color: var(--accent);
  font-size: 0.75rem; font-weight: 600;
  border: 1px solid rgba(201,168,120,0.25);
  transition: all var(--duration) var(--ease);
}
.add-cart-btn:hover {
  background: var(--accent); color: #fffdf7;
  border-color: var(--accent);
}
.add-cart-btn.added {
  background: var(--whatsapp); color: #fff;
  border-color: var(--whatsapp);
}

/* Empty state */
.empty-state {
  text-align: center; padding: 4rem 0;
  color: var(--text-muted);
}
.empty-state p { margin-bottom: 1.25rem; }

/* ============================================
   CÓMO COMPRAR — legit flow content
   ============================================ */
.como-comprar {
  padding: 4rem 0;
  background: var(--surface);
}
.como-comprar-head { text-align: center; margin-bottom: 2.5rem; }
.como-comprar-head h2 { font-size: clamp(1.6rem, 3.5vw, 2.2rem); margin-bottom: 0.5rem; color: var(--gold-matte); }
.como-comprar-head p { color: var(--text-muted); max-width: 440px; margin: 0 auto; }

.steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
  list-style: none;
  max-width: 800px; margin: 0 auto 2rem;
}
.step {
  text-align: center;
  padding: 1.5rem 1rem;
}
.step-num {
  display: inline-flex; align-items: center; justify-content: center;
  width: 40px; height: 40px; border-radius: 50%;
  background: rgba(133,79,25,0.06); color: var(--gold-matte);
  font-family: 'Playfair Display', serif; font-weight: 700;
  font-size: 1.1rem; margin-bottom: 0.75rem;
}
.step h3 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.95rem; margin-bottom: 0.35rem;
  color: var(--gold-matte);
}
.step p { font-size: 0.82rem; color: var(--pearl-gray); line-height: 1.6; }

.como-comprar-note {
  text-align: center; font-size: 0.85rem; color: var(--text-faint);
  max-width: 480px; margin: 0 auto;
}

/* ============================================
   NOSOTROS — editorial two-column
   ============================================ */
.nosotros { padding: 4rem 0; }
.nosotros-inner {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 3rem;
  align-items: center;
}
.nosotros-copy h2 {
  font-size: clamp(1.8rem, 3.5vw, 2.4rem);
  margin-bottom: 1.25rem;
  color: var(--gold-matte);
}
.marca-quote {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-left: 3px solid var(--accent);
  border-radius: var(--radius);
  padding: 1.75rem 1.5rem;
  box-shadow: var(--shadow);
}
.marca-p {
  color: var(--pearl-gray);
  line-height: 1.75;
  margin-bottom: 0.85rem;
  font-size: 0.96rem;
}
.marca-highlight {
  font-family: 'Playfair Display', Georgia, serif;
  font-style: italic;
  font-size: 1.2rem;
  color: var(--gold-matte);
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
}

.nosotros-imgs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 0.75rem;
}
.nosotros-imgs img {
  width: 100%; height: 240px; object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}
.nosotros-imgs img:first-child { transform: translateY(16px); }

/* ============================================
   CONTACTO — SVG icon rows & CTA
   ============================================ */
.contacto { padding: 4.5rem 0; background: var(--surface); }
.contacto-head { text-align: center; margin-bottom: 1.5rem; }
.contacto-head h2 { font-size: clamp(1.75rem, 3.5vw, 2.4rem); margin-bottom: 0.5rem; color: var(--gold-matte); }
.contacto-lead {
  font-size: 1.05rem;
  color: var(--gold-matte);
  font-style: italic;
  font-family: 'Playfair Display', Georgia, serif;
  max-width: 500px;
  margin: 0 auto;
}
.contacto-cta-wrap {
  margin: 2rem 0 2.5rem;
}

.contact-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1rem;
  max-width: 680px;
  margin: 0 auto;
}
@media (max-width: 640px) {
  .contact-list {
    grid-template-columns: 1fr;
    max-width: 280px;
  }
}
.contact-link {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.65rem;
  padding: 0.95rem 1rem;
  min-height: 52px;
  background: var(--bg-card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  text-decoration: none;
  color: var(--pearl-gray);
  box-shadow: var(--shadow-sm);
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.contact-link:hover {
  border-color: var(--accent);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}
.contact-link svg {
  flex-shrink: 0;
  color: var(--text-muted);
  transition: color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.contact-link:hover svg {
  color: var(--accent);
  transform: scale(1.1);
}
.contact-name {
  display: block;
  font-family: 'Inter', sans-serif;
  font-weight: 600;
  font-size: 0.92rem;
  white-space: nowrap;
}

/* ============================================
   CART DRAWER
   ============================================ */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(0,0,0,0.55);
  z-index: 200; opacity: 0; visibility: hidden;
  transition: opacity var(--duration) var(--ease), visibility var(--duration) var(--ease);
}
.cart-overlay.open { opacity: 1; visibility: visible; }

.cart-drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: 380px; max-width: 90vw;
  background: var(--bg-card);
  z-index: 201;
  display: flex; flex-direction: column;
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.32s var(--ease), visibility 0.32s var(--ease);
  box-shadow: -6px 0 30px rgba(0,0,0,0.4);
}
.cart-drawer.open { transform: translateX(0); visibility: visible; }

.cart-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 1rem 1.25rem;
  border-bottom: 1px solid var(--border);
}
.cart-header h3 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 1rem;
}
.cart-close {
  display: flex; align-items: center; justify-content: center;
  width: 32px; height: 32px; border-radius: var(--radius-sm);
  color: var(--text-muted);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
}
.cart-close:hover { background: rgba(59,49,37,0.06); color: var(--text); }

.cart-items { flex: 1; overflow-y: auto; padding: 0.75rem 1.25rem; }

.cart-empty {
  display: flex; flex-direction: column; align-items: center;
  justify-content: center; text-align: center;
  height: 100%; min-height: 200px;
  color: var(--text-muted); gap: 1rem;
}
.cart-empty-icon { font-size: 2.5rem; opacity: 0.4; }
.cart-empty p { font-size: 0.9rem; }

.cart-item {
  display: flex; gap: 0.75rem; align-items: flex-start;
  padding: 0.85rem 0;
  border-bottom: 1px solid var(--border);
}
.cart-item:last-child { border-bottom: none; }
.cart-item-info { flex: 1; min-width: 0; }
.cart-item-info h4 {
  font-family: 'Inter', sans-serif; font-weight: 600;
  font-size: 0.85rem; margin-bottom: 0.15rem;
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.cart-item-meta {
  display: flex; align-items: center; gap: 0.5rem;
  margin-top: 0.35rem;
}

/* Quantity steppers */
.qty-stepper {
  display: inline-flex; align-items: center;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  overflow: hidden;
}
.qty-btn {
  width: 26px; height: 26px;
  display: flex; align-items: center; justify-content: center;
  font-size: 0.85rem; color: var(--text-muted);
  transition: background var(--duration) var(--ease), color var(--duration) var(--ease);
  background: transparent;
}
.qty-btn:hover { background: rgba(59,49,37,0.06); color: var(--text); }
.qty-value {
  width: 28px; text-align: center;
  font-size: 0.8rem; font-weight: 500;
  font-family: 'Inter', sans-serif;
}

.cart-item-remove {
  font-size: 0.75rem; color: var(--danger);
  cursor: pointer; background: none; border: none;
  font-family: inherit;
  transition: opacity var(--duration) var(--ease);
}
.cart-item-remove:hover { opacity: 0.7; }

.cart-item-price {
  font-size: 0.85rem; font-weight: 600; color: var(--accent);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}

.cart-footer {
  padding: 1rem 1.25rem;
  border-top: 1px solid var(--border);
}
.cart-subtotal {
  display: flex; justify-content: space-between; align-items: center;
  font-size: 1rem; font-weight: 600; margin-bottom: 0.5rem;
}
.cart-subtotal span:last-child {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem; color: var(--accent);
}
.cart-note {
  font-size: 0.75rem; color: var(--text-faint);
  margin-bottom: 0.85rem; line-height: 1.5;
}

/* ============================================
   WHATSAPP FLOAT — no infinite pulse
   ============================================ */
.whatsapp-float {
  position: fixed; bottom: 1.5rem; right: 1.5rem;
  width: 54px; height: 54px;
  background: var(--whatsapp);
  border-radius: 50%; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(7,94,54,0.35);
  z-index: 50;
  transition: transform var(--duration) var(--ease), box-shadow var(--duration) var(--ease);
}
.whatsapp-float:hover { transform: scale(1.08); box-shadow: 0 6px 22px rgba(7,94,54,0.45); }

/* ============================================
   FOOTER
   ============================================ */
.footer {
  background: var(--surface);
  border-top: 1px solid var(--border);
  padding-top: 3rem;
}
.footer-inner {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 2.5rem;
  padding-bottom: 2.5rem;
}
.footer-brand p {
  color: var(--pearl-gray); font-size: 0.85rem;
  margin-top: 0.5rem; max-width: 260px; line-height: 1.6;
}
.footer-col h3, .footer-col h4 {
  font-family: 'Inter', sans-serif; font-size: 0.75rem;
  text-transform: uppercase; letter-spacing: 0.1em;
  color: var(--accent); margin-bottom: 0.75rem;
}
.footer-col a {
  display: block; font-size: 0.85rem; color: var(--pearl-gray);
  padding: 0.25rem 0;
  transition: color var(--duration) var(--ease);
}
.footer-col a:hover { color: var(--text); }

.footer-bottom {
  border-top: 1px solid var(--border);
  padding: 1.25rem 0; text-align: center;
}
.footer-bottom p { font-size: 0.75rem; color: var(--pearl-gray); }

/* ============================================
   RESPONSIVE
   ============================================ */
@media (max-width: 900px) {
  .nav {
    display: none; position: fixed; top: 64px; left: 0; right: 0;
    background: rgba(250,246,239,0.98);
    flex-direction: column; align-items: center;
    padding: 1.5rem; gap: 1.25rem;
    border-bottom: 1px solid var(--border);
    z-index: 99;
  }
  .nav.open { display: flex; }
  .menu-toggle { display: flex; }

  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { justify-content: center; order: -1; }
  .hero-copy { text-align: center; max-width: none; }
  .hero-lead { margin-left: auto; margin-right: auto; }
  .hero-actions { justify-content: center; }

  .nosotros-inner { grid-template-columns: 1fr; }
  .nosotros-imgs { order: -1; }

  .manifiesto-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    gap: 1rem;
  }
  .pilares-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 1rem;
  }
  .rituales-grid {
    grid-template-columns: 1fr;
    max-width: 480px;
    margin-inline: auto;
    gap: 1rem;
  }

  .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
}

@media (max-width: 600px) {
  .catalogo-head { flex-direction: column; align-items: stretch; }
  .search { min-width: 0; }

  .products-grid { grid-template-columns: repeat(2, 1fr); gap: 0.75rem; }
  .product-info { padding: 0.75rem; }
  .product-info h3 { font-size: 0.8rem; }
  .product-price { font-size: 0.95rem; }
  .add-cart-btn { padding: 0.35rem 0.65rem; font-size: 0.75rem; }

  .steps { grid-template-columns: 1fr; gap: 0.75rem; }

  .contact-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.65rem;
  }
  .contact-link {
    padding: 0.85rem 0.5rem;
    min-height: 48px;
  }
  .contact-name {
    font-size: 0.85rem;
  }

  .hero-actions { flex-direction: column; }
  .hero-actions .btn { width: 100%; }

  .hero-img-main { width: 240px; height: 280px; }
  .hero-img-float { width: 120px; height: 120px; }
}

@media (max-width: 380px) {
  .products-grid { grid-template-columns: 1fr; }
  .contact-link {
    gap: 0.45rem;
    padding: 0.75rem 0.35rem;
  }
  .contact-name {
    font-size: 0.8rem;
  }
}

/* ============================================
   ACCESSIBILITY — focus-visible
   ============================================ */
:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}
a:focus-visible, button:focus-visible, input:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

/* ============================================
   REDUCED MOTION
   ============================================ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

/* ============================================
   LIGHTBOX
   ============================================ */
.lightbox {
  position: fixed; inset: 0; z-index: 300;
  background: rgba(0,0,0,0.92);
  display: flex; align-items: center; justify-content: center;
  overflow-y: auto; padding: 1.5rem;
  opacity: 0; visibility: hidden;
  transition: opacity 0.3s var(--ease), visibility 0.3s var(--ease);
}
.lightbox.active { opacity: 1; visibility: visible; }

.lightbox-close {
  position: fixed; top: 1.5rem; right: 1.5rem;
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration) var(--ease);
  z-index: 10;
}
.lightbox-close:hover { background: rgba(255,255,255,0.2); }

.lightbox-nav {
  position: fixed; top: 50%; transform: translateY(-50%);
  width: 48px; height: 48px; border-radius: 50%;
  background: rgba(255,255,255,0.1); color: #fff;
  display: flex; align-items: center; justify-content: center;
  transition: background var(--duration) var(--ease);
  z-index: 10;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.2); }
.lightbox-prev { left: 1.5rem; }
.lightbox-next { right: 1.5rem; }

.lightbox-content {
  display: flex; flex-direction: column; align-items: center;
  max-width: 90vw; margin: auto;
  text-align: center;
}

.lightbox-img {
  max-width: 100%; max-height: 55vh;
  object-fit: contain; border-radius: var(--radius-sm);
  box-shadow: 0 8px 40px rgba(0,0,0,0.5);
}

.lightbox-info {
  margin-top: 1rem; color: #fff;
}
.lightbox-info h3 {
  font-family: 'Inter', sans-serif; font-size: 1.2rem;
  font-weight: 600; margin-bottom: 0.35rem;
}
.lightbox-desc {
  font-size: 0.9rem; color: rgba(255,255,255,0.7);
  margin-bottom: 0.5rem; max-width: 500px;
}
.lightbox-price {
  font-family: 'Playfair Display', serif;
  font-size: 1.5rem; font-weight: 600;
  color: var(--accent); margin-bottom: 0.5rem;
}
.lightbox-counter {
  font-size: 0.8rem; color: rgba(255,255,255,0.5);
  margin-bottom: 0.75rem;
}

/* --- Variantes de color: selector circular dentro del lightbox --- */
.variant-dots {
  display: flex; gap: 0.5rem; justify-content: center; align-items: center;
  margin: 0 auto 0.9rem; flex-wrap: wrap;
}
.variant-dot {
  width: 44px; height: 44px; padding: 0;
  border-radius: 50%; overflow: hidden; cursor: pointer;
  border: 2px solid rgba(255,255,255,0.35);
  background: transparent;
  transition: border-color var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.variant-dot img {
  width: 100%; height: 100%; object-fit: cover; display: block;
}
.variant-dot:hover { border-color: rgba(255,255,255,0.7); transform: translateY(-2px); }
.variant-dot:focus-visible {
  outline: 2px solid #fff; outline-offset: 2px; border-color: #fff;
}
.variant-dot.active {
  border-color: #c9a878;
  box-shadow: 0 0 0 2px rgba(255,255,255,0.55);
}
@media (max-width: 600px) {
  .variant-dot { width: 38px; height: 38px; }
}

.lightbox-whatsapp {
  display: inline-flex; align-items: center; gap: 0.5rem;
  background: var(--whatsapp); color: #fff;
  padding: 0.75rem 1.5rem; border-radius: var(--radius-full);
  font-size: 0.9rem; font-weight: 500;
  transition: background var(--duration) var(--ease), transform var(--duration) var(--ease);
}
.lightbox-whatsapp:hover { background: var(--whatsapp-hover); transform: translateY(-2px); }

@media (max-width: 600px) {
  .lightbox-close { top: 1rem; right: 1rem; }
  .lightbox-nav { width: 40px; height: 40px; }
  .lightbox-prev { left: 0.5rem; }
  .lightbox-next { right: 0.5rem; }
  .lightbox-img { max-height: 45vh; }
  .lightbox-info h3 { font-size: 1rem; }
  .lightbox-price { font-size: 1.2rem; }
}

/* --- Offline UX: aviso no bloqueante (lightbox y checkout) --- */
.offline-note {
  font-size: 0.78rem;
  color: var(--text-muted);
  background: var(--bg-raised);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 0.45rem 0.6rem;
  margin: 0.4rem 0;
}

/* ============================================
   SECCIÓN LEGAL (shell del sitio)
   Enlaces del pie, aceptación en el checkout y aviso informativo
   de cookies (no bloqueante). Los documentos legales en sí viven
   en legal/ con sus propios estilos (css/legal.css).
   ============================================ */
.footer-legal {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.35rem 1.25rem;
  margin-bottom: 0.75rem;
  font-size: 0.78rem;
}
.footer-legal a { color: var(--text-muted); }
.footer-legal a:hover { color: var(--accent); text-decoration: underline; }

.cart-legal {
  font-size: 0.75rem;
  color: var(--text-faint);
  line-height: 1.5;
  margin-bottom: 0.6rem;
}
.cart-legal a { color: var(--text-muted); text-decoration: underline; }
.cart-legal a:hover { color: var(--accent); }

.legal-notice {
  position: fixed;
  left: 16px;
  bottom: 16px;
  z-index: 60; /* por debajo del carrito (200) y del lightbox (300) */
  max-width: min(430px, calc(100vw - 110px)); /* deja libre el flotante de WhatsApp */
  background: var(--bg-card);
  border: 1px solid var(--border-strong);
  border-radius: var(--radius, 14px);
  box-shadow: 0 10px 30px rgba(59, 49, 37, 0.12);
  padding: 0.9rem 1rem;
}
.legal-notice p {
  font-size: 0.78rem;
  line-height: 1.55;
  color: var(--text-muted);
  margin-bottom: 0.7rem;
}
.legal-notice a { color: var(--accent); text-decoration: underline; }
.legal-notice-accept {
  background: var(--accent);
  color: #fff;
  border: 0;
  border-radius: 999px;
  padding: 0.45rem 1.1rem;
  font-size: 0.78rem;
  font-weight: 600;
  font-family: inherit;
  cursor: pointer;
}
.legal-notice-accept:hover { background: var(--accent-hover); }

/* ============================================
   SCROLLBAR
   ============================================ */
::-webkit-scrollbar { width: 5px; }
::-webkit-scrollbar-track { background: var(--bg); }
::-webkit-scrollbar-thumb { background: rgba(201,168,120,0.25); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(169,111,45,0.4); }
