/* ===== LaFlori — Design tokens ===== */
:root {
  --bg: #f6f1ea;
  --bg-warm: #efe7db;
  --bg-card: #fbf8f2;
  --ink: #1c1f1b;
  --ink-soft: #3a3e37;
  --ink-mute: #5b5f54;
  --line: #d9d2c4;
  --line-soft: #e6dfd1;
  --olive: #2d3b2a;
  --olive-dark: #1f2a1c;
  --terra: #8a4a3d;
  --terra-soft: #b57562;
  --sand: #c9a87c;
  --cream: #faf5ea;
  --leaf: #5d6b47;

  --radius: 2px;
  --radius-lg: 6px;

  --serif: 'Cormorant Garamond', 'Garamond', Georgia, serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --mono: 'JetBrains Mono', ui-monospace, 'SF Mono', Menlo, monospace;

  --shadow-sm: 0 1px 2px rgba(28,31,27,0.04);
  --shadow-md: 0 6px 24px rgba(28,31,27,0.08);
  --shadow-lg: 0 20px 60px rgba(28,31,27,0.14);

  --container: 1280px;
  --page-x: clamp(16px, 4vw, 48px);
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--sans);
  color: var(--ink);
  background: var(--bg);
  font-size: 15px;
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; background: none; border: none; cursor: pointer; padding: 0; }
input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { font-family: var(--serif); font-weight: 400; letter-spacing: -0.01em; margin: 0; line-height: 1.05; }

/* ===== Accesibilidad: foco visible por teclado (WCAG 2.4.7) ===== */
:focus-visible { outline: 2px solid var(--olive); outline-offset: 2px; border-radius: 4px; }

/* ===== Diálogo de confirmación (reemplaza window.confirm) ===== */
.confirm-backdrop { display: flex; align-items: center; justify-content: center; }
.confirm-box { background: var(--bg-card); border: 1px solid var(--line); border-radius: 14px; padding: 24px 24px 20px; max-width: 380px; width: calc(100% - 40px); box-shadow: 0 24px 70px rgba(28, 31, 27, 0.28); margin: auto; }
.confirm-title { font-family: var(--serif); font-size: 22px; margin-bottom: 8px; }
.confirm-msg { color: var(--ink-mute); font-size: 14px; line-height: 1.5; margin-bottom: 20px; }
.confirm-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
.confirm-actions .btn-danger { background: var(--terra); border-color: var(--terra); color: #fff; }

/* ===== Layout ===== */
.container { max-width: var(--container); margin: 0 auto; padding: 0 var(--page-x); }
.stack > * + * { margin-top: var(--stack, 16px); }

/* ===== Topbar ===== */
.announce {
  background: var(--olive);
  color: var(--cream);
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 8px 0;
  overflow: hidden;
}
/* Teletipo (estil noticiari): una sola línia que es desplaça cap a la dreta,
   en bucle. El contingut es duplica al JSX per a un bucle continu. */
.announce-track {
  display: flex;
  align-items: center;
  width: max-content;
  flex-wrap: nowrap;
  white-space: nowrap;
  will-change: transform;
  animation: announce-scroll 45s linear infinite;
}
.announce:hover .announce-track { animation-play-state: paused; }
.announce-item { display: inline-flex; align-items: center; }
.announce-dot {
  width: 4px; height: 4px; border-radius: 50%;
  background: var(--sand);
  margin: 0 3.5rem;   /* bon espai entre missatges perquè no quedin enganxats */
  flex: none;
}
@keyframes announce-scroll {
  from { transform: translateX(-50%); }
  to   { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) {
  .announce-track { animation: none; transform: none; flex-wrap: wrap; justify-content: center; width: auto; gap: 12px 0; }
}

.nav {
  position: sticky; top: 0; z-index: 40;
  background: rgba(246,241,234,0.92);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line-soft);
}
.nav-inner {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  padding: 18px 0;
}
.nav-left, .nav-right { display: flex; align-items: center; gap: 22px; }
.nav-right { justify-content: flex-end; }
.nav-link {
  font-size: 12.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-soft);
  padding: 6px 0;
  position: relative;
  transition: color .2s;
}
.nav-link:hover, .nav-link.active { color: var(--olive); }
.nav-link.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -2px;
  height: 1px; background: var(--olive);
}
.brand {
  text-align: center;
  display: flex; flex-direction: column; align-items: center; gap: 2px;
  line-height: 1;
}
.brand-mark {
  font-family: var(--serif);
  font-size: 30px;
  font-style: italic;
  letter-spacing: -0.01em;
  color: var(--olive);
}
.brand-mark b { font-style: normal; font-weight: 500; }
.brand-tag {
  font-family: var(--mono);
  font-size: 8.5px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

.icon-btn {
  display: inline-flex; align-items: center; justify-content: center;
  width: 34px; height: 34px; border-radius: 50%;
  color: var(--ink-soft);
  position: relative;
  transition: background .2s, color .2s;
}
.icon-btn:hover { background: var(--line-soft); color: var(--olive); }
.icon-btn svg { width: 18px; height: 18px; stroke-width: 1.5; }
.icon-btn .pill {
  position: absolute; top: -2px; right: -2px;
  min-width: 16px; height: 16px; padding: 0 4px;
  border-radius: 10px;
  background: var(--terra); color: var(--cream);
  font-family: var(--mono); font-size: 9px; font-weight: 600;
  display: flex; align-items: center; justify-content: center;
  letter-spacing: 0;
}

/* Lang menu */
.lang-wrap { position: relative; }
.lang-btn {
  display: inline-flex; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.1em;
  padding: 6px 8px;
  color: var(--ink-soft);
  border: 1px solid transparent;
  border-radius: var(--radius);
  transition: border-color .2s;
}
.lang-btn:hover { border-color: var(--line); }
.lang-flag {
  width: 18px; height: 12px;
  border-radius: 1px;
  display: inline-block;
  overflow: hidden;
  box-shadow: 0 0 0 0.5px rgba(0,0,0,0.1);
}
.lang-menu {
  position: absolute; right: 0; top: calc(100% + 8px);
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  min-width: 160px;
  padding: 6px;
  z-index: 50;
}
.lang-item {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 8px 10px;
  border-radius: var(--radius);
  font-size: 13px;
  text-align: left;
}
.lang-item:hover { background: var(--bg-warm); }
.lang-item.active { background: var(--bg-warm); color: var(--olive); }
.lang-item .code { font-family: var(--mono); font-size: 10px; color: var(--ink-mute); margin-left: auto; letter-spacing: 0.1em; }

/* Mobile menu toggle */
.menu-toggle { display: none; }

@media (max-width: 900px) {
  .nav-inner { grid-template-columns: auto 1fr auto; padding: 14px 0; }
  .nav-left .nav-link, .nav-right .nav-link { display: none; }
  .menu-toggle { display: inline-flex; }
  .brand { align-items: flex-start; text-align: left; }
  .brand-mark { font-size: 24px; }
}

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  padding: 14px 22px;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  border-radius: var(--radius);
  transition: all .2s;
  cursor: pointer;
  white-space: nowrap;
}
.btn-primary { background: var(--olive); color: var(--cream); }
.btn-primary:hover { background: var(--olive-dark); }
.btn-outline { border: 1px solid var(--ink); color: var(--ink); }
.btn-outline:hover { background: var(--ink); color: var(--cream); }
.btn-ghost { color: var(--ink-soft); }
.btn-ghost:hover { color: var(--olive); }
.btn-terra { background: var(--terra); color: var(--cream); }
.btn-terra:hover { background: #6f3b30; }
.btn-sm { padding: 10px 16px; font-size: 11px; }
.btn-lg { padding: 18px 32px; font-size: 13px; }
.btn-block { width: 100%; }

/* ===== Forms ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field label {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.input, .select, .textarea {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 12px 14px;
  font-size: 14px;
  color: var(--ink);
  transition: border-color .15s, background .15s;
  width: 100%;
}
.input:focus, .select:focus, .textarea:focus {
  outline: none;
  border-color: var(--olive);
  background: #fff;
}
.textarea { resize: vertical; min-height: 100px; font-family: var(--sans); }

/* ===== Placeholder imagery ===== */
.ph {
  position: relative;
  background: var(--bg-warm);
  overflow: hidden;
  border-radius: var(--radius);
}
.ph::before {
  content: '';
  position: absolute; inset: 0;
  background-image:
    repeating-linear-gradient(135deg,
      transparent 0 14px,
      rgba(45,59,42,0.06) 14px 15px);
}
.ph::after {
  content: '';
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 30%, rgba(201,168,124,0.25), transparent 60%),
              radial-gradient(ellipse at 70% 80%, rgba(138,74,61,0.15), transparent 60%);
  pointer-events: none;
}
.ph-label {
  position: absolute;
  left: 12px; bottom: 12px;
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-soft);
  background: rgba(251,248,242,0.85);
  padding: 4px 8px;
  border-radius: var(--radius);
  backdrop-filter: blur(4px);
  z-index: 1;
}

/* variants */
.ph.olive { background: #e7e2d3; }
.ph.olive::after { background: radial-gradient(ellipse at 40% 30%, rgba(45,59,42,0.35), transparent 55%), radial-gradient(ellipse at 70% 80%, rgba(93,107,71,0.25), transparent 55%); }
.ph.terra { background: #ecdccf; }
.ph.terra::after { background: radial-gradient(ellipse at 40% 40%, rgba(138,74,61,0.4), transparent 55%), radial-gradient(ellipse at 70% 30%, rgba(181,117,98,0.3), transparent 55%); }
.ph.cream { background: #f4ecd9; }
.ph.cream::after { background: radial-gradient(ellipse at 50% 40%, rgba(201,168,124,0.4), transparent 55%); }
.ph.blush { background: #f0dcd4; }
.ph.blush::after { background: radial-gradient(ellipse at 40% 40%, rgba(181,117,98,0.3), transparent 55%), radial-gradient(ellipse at 70% 30%, rgba(232,180,188,0.5), transparent 55%); }
.ph.moss { background: #d5d8c5; }
.ph.moss::after { background: radial-gradient(ellipse at 40% 40%, rgba(93,107,71,0.4), transparent 55%), radial-gradient(ellipse at 70% 60%, rgba(45,59,42,0.25), transparent 55%); }

/* ===== Section heading ===== */
.eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  color: var(--terra);
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.eyebrow::before { content: ''; width: 24px; height: 1px; background: var(--terra); display: inline-block; }
.section-title {
  font-size: clamp(32px, 4.5vw, 56px);
  line-height: 1.02;
  letter-spacing: -0.015em;
}
.section-title em { font-style: italic; color: var(--terra); }

/* ===== Hero ===== */
.hero { padding: 48px 0 64px; }
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 48px;
  align-items: stretch;
}
.hero-copy { display: flex; flex-direction: column; justify-content: space-between; gap: 32px; }
.hero-title {
  font-size: clamp(48px, 8vw, 108px);
  line-height: 0.92;
  letter-spacing: -0.03em;
}
.hero-title em { font-style: italic; color: var(--terra); }
.hero-title .thin { font-weight: 300; }
.hero-lede {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.45;
  max-width: 52ch;
  color: var(--ink-soft);
}
.hero-meta {
  display: flex; flex-wrap: wrap; gap: 32px;
  border-top: 1px solid var(--line);
  padding-top: 20px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.hero-meta b { color: var(--ink); font-weight: 500; display: block; margin-top: 4px; font-size: 11.5px; }
.hero-visual { position: relative; aspect-ratio: 4/5; min-height: 460px; }
.hero-visual .ph { position: absolute; inset: 0; }
.hero-badge {
  position: absolute;
  right: -24px; top: 24px;
  width: 120px; height: 120px;
  background: var(--cream);
  border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic;
  color: var(--olive);
  text-align: center;
  box-shadow: var(--shadow-md);
  transform: rotate(-8deg);
  z-index: 2;
}
.hero-badge span { font-family: var(--mono); font-style: normal; font-size: 8.5px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin-top: 4px; }

@media (max-width: 900px) {
  .hero-grid { grid-template-columns: 1fr; gap: 32px; }
  .hero-visual { min-height: 380px; }
  .hero-badge { right: 12px; top: 12px; width: 92px; height: 92px; font-size: 14px; }
}

/* ===== Category grid ===== */
.cats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 14px;
}
.cat-card {
  position: relative;
  aspect-ratio: 3/4;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  transition: transform .3s ease;
}
.cat-card:hover { transform: translateY(-4px); }
.cat-card .ph { position: absolute; inset: 0; }
.cat-info {
  position: absolute;
  left: 16px; right: 16px; bottom: 16px;
  color: var(--cream);
  z-index: 2;
}
.cat-card::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(to top, rgba(28,31,27,0.65) 0%, transparent 50%);
  z-index: 1;
}
.cat-info h3 { font-size: 26px; color: var(--cream); margin-bottom: 4px; }
.cat-info .count { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; opacity: 0.8; }
@media (max-width: 900px) { .cats { grid-template-columns: repeat(2, 1fr); } }

/* ===== Product card ===== */
.product-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px 18px;
}
@media (max-width: 1100px) { .product-grid { grid-template-columns: repeat(3, 1fr); } }
@media (max-width: 750px) { .product-grid { grid-template-columns: repeat(2, 1fr); gap: 20px 12px; } }
@media (max-width: 430px) { .product-grid { grid-template-columns: repeat(2, 1fr); } }

.product-card {
  position: relative;
  cursor: pointer;
  display: flex; flex-direction: column; gap: 12px;
}
.product-card .media {
  position: relative;
  aspect-ratio: 3/4;
  overflow: hidden;
  border-radius: var(--radius);
}
.product-card .media .ph { position: absolute; inset: 0; transition: transform .6s ease; }
.product-card:hover .media .ph { transform: scale(1.04); }
/* Carrusel de fotos en la tarjeta: flechas semitransparentes a cada lado + puntos */
.product-card .media .card-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 30px; height: 30px; border-radius: 50%; border: 0; padding: 0;
  display: flex; align-items: center; justify-content: center;
  font-size: 22px; line-height: 1; cursor: pointer; z-index: 3;
  background: rgba(255,255,255,0.5); color: var(--ink);
  opacity: 0.65; transition: opacity .15s ease, background .15s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.product-card .media:hover .card-nav { opacity: 0.95; }
.product-card .media .card-nav:hover { background: rgba(255,255,255,0.92); opacity: 1; }
.product-card .media .card-nav.prev { left: 8px; }
.product-card .media .card-nav.next { right: 8px; }
.product-card .media .card-dots {
  position: absolute; bottom: 9px; left: 0; right: 0; z-index: 3;
  display: flex; gap: 5px; justify-content: center; pointer-events: none;
}
.product-card .media .card-dots span {
  width: 6px; height: 6px; border-radius: 50%;
  background: rgba(255,255,255,0.55); box-shadow: 0 0 2px rgba(0,0,0,0.25);
  transition: background .15s ease;
}
.product-card .media .card-dots span.on { background: #fff; }
.product-card .fav {
  position: absolute; top: 10px; right: 10px;
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(251,248,242,0.9);
  display: flex; align-items: center; justify-content: center;
  color: var(--ink-soft);
  z-index: 2;
  transition: color .2s, background .2s;
}
.product-card .fav:hover { color: var(--terra); }
.product-card .fav.active { color: var(--terra); }
.product-card .fav svg { width: 16px; height: 16px; }
.product-card .tag {
  position: absolute; top: 10px; left: 10px;
  background: var(--olive); color: var(--cream);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.15em;
  text-transform: uppercase;
  padding: 4px 8px; border-radius: var(--radius);
  z-index: 2;
}
.product-card .tag.terra { background: var(--terra); }
.product-card h4 {
  font-family: var(--serif);
  font-size: 20px;
  line-height: 1.1;
}
.product-card .meta {
  display: flex; justify-content: space-between; align-items: baseline;
  font-size: 13px;
  color: var(--ink-mute);
}
.product-card .price { font-family: var(--serif); font-size: 18px; color: var(--ink); }
.product-card .price s { color: var(--ink-mute); font-size: 14px; margin-right: 6px; }

/* ===== Catalog page ===== */
.catalog {
  display: grid;
  grid-template-columns: 260px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}
.filters {
  border-right: 1px solid var(--line-soft);
  padding-right: 24px;
}
.filter-group { padding: 20px 0; border-bottom: 1px solid var(--line-soft); }
.filter-group:first-child { padding-top: 0; }
.filter-group h5 {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--ink);
  margin: 0 0 14px;
  display: flex; justify-content: space-between; cursor: pointer;
}
.filter-group h5 .count { color: var(--ink-mute); }
.filter-list { display: flex; flex-direction: column; gap: 10px; }
.filter-item {
  display: flex; align-items: center; gap: 10px;
  font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  user-select: none;
}
.filter-item input { accent-color: var(--olive); width: 14px; height: 14px; }
.filter-item:hover { color: var(--olive); }
.filter-item .n { margin-left: auto; color: var(--ink-mute); font-family: var(--mono); font-size: 10px; }

.swatches { display: flex; flex-wrap: wrap; gap: 8px; }
.swatch {
  width: 22px; height: 22px; border-radius: 50%;
  border: 1.5px solid transparent;
  cursor: pointer;
  position: relative;
  box-shadow: inset 0 0 0 0.5px rgba(0,0,0,0.1);
}
.swatch.active { border-color: var(--olive); }
.swatch .label { position: absolute; inset: -20px; font-size: 0; }

.range {
  display: flex; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 11px; color: var(--ink-mute);
}
.range input[type="range"] { accent-color: var(--olive); width: 100%; }

.catalog-main { min-width: 0; }
.catalog-head {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 28px;
  flex-wrap: wrap; gap: 16px;
}
.catalog-head .count {
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-mute);
}
.catalog-head .tools { display: flex; gap: 12px; align-items: center; }

.mobile-filter-btn { display: none; }
/* Botón para desplegar filtros en escritorio: solo visible cuando están plegados */
.desktop-filter-btn { display: none; }
@media (min-width: 901px) {
  .catalog.filters-hidden { grid-template-columns: 1fr; }
  .catalog.filters-hidden .filters { display: none; }
  .catalog.filters-hidden .desktop-filter-btn { display: inline-flex; }
}
@media (max-width: 900px) {
  .catalog { grid-template-columns: 1fr; gap: 20px; }
  .filters { display: none; border: none; padding: 0; }
  .filters.open {
    display: block;
    position: fixed; inset: 0; z-index: 60;
    background: var(--bg); padding: 20px; overflow-y: auto;
  }
  .mobile-filter-btn { display: inline-flex; }
  /* En móvil mandan filtersOpen/drawer; el plegado de escritorio no debe ocultar el drawer */
  .catalog.filters-hidden .filters.open { display: block; }
}

/* ===== Product detail ===== */
.pdp {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 48px;
  padding: 32px 0 80px;
}
.pdp-gallery { display: flex; flex-direction: column; gap: 10px; }
.pdp-main-img {
  position: relative;
  aspect-ratio: 4/5;
  border-radius: var(--radius);
  overflow: hidden;
}
.pdp-thumbs { display: grid; grid-template-columns: repeat(4,1fr); gap: 10px; }
.pdp-thumb {
  aspect-ratio: 1;
  border: 1.5px solid transparent;
  border-radius: var(--radius);
  overflow: hidden;
  cursor: pointer;
  position: relative;
}
.pdp-thumb.active { border-color: var(--olive); }
/* El .ph base es position:relative y sin alto propio: dentro de la galería del
   PDP debe llenar su contenedor (igual que en .product-card .media). Sin esto la
   foto no se ve aunque sí aparezca en el catálogo. */
.pdp-main-img > .ph, .pdp-thumb > .ph { position: absolute; inset: 0; }
/* Flechas para pasar fotos en la ficha (visor grande) */
.pdp-main-img .pdp-nav {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 2;
  width: 42px; height: 42px; border-radius: 50%; border: 0; padding: 0; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  font-size: 26px; line-height: 1; color: var(--ink);
  background: rgba(255,255,255,0.55); opacity: 0.85;
  transition: opacity .15s ease, background .15s ease;
  -webkit-backdrop-filter: blur(2px); backdrop-filter: blur(2px);
}
.pdp-main-img:hover .pdp-nav { opacity: 1; }
.pdp-main-img .pdp-nav:hover { background: rgba(255,255,255,0.95); }
.pdp-main-img .pdp-nav.prev { left: 12px; }
.pdp-main-img .pdp-nav.next { right: 12px; }
.pdp-main-img .pdp-counter {
  position: absolute; bottom: 12px; right: 12px; z-index: 2;
  background: rgba(20,28,22,0.6); color: #fff;
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.06em;
  padding: 3px 9px; border-radius: 999px;
}

.pdp-info { display: flex; flex-direction: column; gap: 20px; position: sticky; top: 120px; align-self: start; }
.pdp-title { font-size: clamp(32px, 4vw, 52px); }
.pdp-price { font-family: var(--serif); font-size: 32px; color: var(--olive); }
.pdp-price s { color: var(--ink-mute); font-size: 22px; margin-right: 10px; }
.pdp-desc { color: var(--ink-soft); font-size: 15px; line-height: 1.7; border-top: 1px solid var(--line-soft); border-bottom: 1px solid var(--line-soft); padding: 20px 0; }
.pdp-options { display: flex; flex-direction: column; gap: 16px; }
.size-row { display: flex; gap: 8px; flex-wrap: wrap; }
.size-chip {
  padding: 10px 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--mono); font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer;
  transition: all .15s;
}
.size-chip:hover { border-color: var(--ink); }
.size-chip.active { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.qty {
  display: inline-flex; align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.qty button { width: 40px; height: 44px; font-size: 18px; }
.qty input { width: 40px; height: 44px; border: none; text-align: center; background: transparent; font-family: var(--mono); font-size: 13px; }
.qty input:focus { outline: none; }
.pdp-actions { display: flex; gap: 10px; margin-top: 8px; }
.pdp-delivery {
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 14px 16px;
  display: flex; align-items: flex-start; gap: 12px;
  font-size: 13px;
  color: var(--ink-soft);
}
.pdp-delivery svg { width: 20px; height: 20px; flex-shrink: 0; margin-top: 2px; color: var(--olive); }
.pdp-meta {
  display: flex; flex-direction: column; gap: 8px;
  font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--ink-mute);
}
.pdp-meta b { color: var(--ink); font-weight: 500; }

@media (max-width: 900px) {
  .pdp { grid-template-columns: 1fr; gap: 28px; }
  .pdp-info { position: static; }
}

/* ===== Editorial section ===== */
.editorial {
  padding: 80px 0;
  background: var(--bg-warm);
  margin-top: 40px;
}
.editorial-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 48px;
  align-items: center;
}
@media (max-width: 900px) { .editorial-grid { grid-template-columns: 1fr; gap: 28px; } }
.editorial-copy h2 { font-size: clamp(30px, 4vw, 48px); margin-bottom: 20px; }
.editorial-copy p { color: var(--ink-soft); line-height: 1.7; margin: 0 0 14px; max-width: 52ch; }
.editorial-visual { aspect-ratio: 4/5; position: relative; }

/* ===== Subscriptions ===== */
.sub-hero { padding: 48px 0 40px; text-align: center; }
.sub-hero h1 { font-size: clamp(44px, 7vw, 88px); line-height: 1; margin-bottom: 16px; }
.sub-hero p { max-width: 58ch; margin: 0 auto; font-family: var(--serif); font-size: 19px; color: var(--ink-soft); }
.plan-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  padding-bottom: 60px;
}
@media (max-width: 900px) { .plan-grid { grid-template-columns: 1fr; } }
.plan {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 28px;
  display: flex; flex-direction: column; gap: 18px;
  transition: border-color .2s, transform .3s;
  position: relative;
}
.plan:hover { border-color: var(--olive); transform: translateY(-4px); }
.plan.featured { background: var(--olive); color: var(--cream); border-color: var(--olive); }
.plan.featured h3, .plan.featured .plan-price { color: var(--cream); }
.plan.featured .plan-feature { border-color: rgba(250,245,234,0.15); color: var(--cream); }
.plan.featured .plan-feature svg { color: var(--sand); }
.plan-ribbon {
  position: absolute; top: -10px; left: 24px;
  background: var(--terra); color: var(--cream);
  font-family: var(--mono); font-size: 9px; letter-spacing: 0.2em; text-transform: uppercase;
  padding: 5px 10px; border-radius: var(--radius);
}
.plan-name { font-family: var(--mono); font-size: 10px; letter-spacing: 0.25em; text-transform: uppercase; color: var(--terra); }
.plan h3 { font-size: 36px; }
.plan-price { font-family: var(--serif); font-size: 48px; line-height: 1; }
.plan-price small { font-family: var(--sans); font-size: 13px; opacity: 0.7; font-weight: 400; }
.plan-features { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; }
.plan-feature {
  display: flex; gap: 10px; padding: 10px 0;
  font-size: 13.5px;
  border-top: 1px solid var(--line-soft);
}
.plan-feature svg { width: 14px; height: 14px; flex-shrink: 0; margin-top: 4px; color: var(--olive); }
/* Alinea el CTA al fondo de cada tarjeta para que todos los botones queden a la misma altura,
   independientemente del nº de features o longitud del footnote. */
.plan > button { margin-top: auto; }

.freq-toggle {
  display: inline-flex;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 4px;
  margin: 0 auto 40px;
}
.freq-toggle button {
  padding: 10px 20px;
  font-size: 12px; letter-spacing: 0.1em; text-transform: uppercase;
  border-radius: 100px;
  color: var(--ink-mute);
  transition: all .2s;
}
.freq-toggle button.active { background: var(--olive); color: var(--cream); }
.freq-wrap { display: flex; justify-content: center; }

/* ===== Wholesale ===== */
.wholesale-hero {
  background: var(--olive);
  color: var(--cream);
  padding: 80px 0;
  border-radius: var(--radius-lg);
  margin: 40px 0;
  overflow: hidden;
  position: relative;
}
.wholesale-hero::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at 80% 50%, rgba(201,168,124,0.2), transparent 50%);
  pointer-events: none;
}
.wholesale-hero-inner {
  display: grid; grid-template-columns: 1.2fr 1fr; gap: 48px; align-items: center;
  position: relative;
}
@media (max-width: 900px) { .wholesale-hero-inner { grid-template-columns: 1fr; } }
.wholesale-hero h1 { color: var(--cream); font-size: clamp(36px, 5vw, 64px); margin-bottom: 20px; }
.wholesale-hero h1 em { color: var(--sand); font-style: italic; }
.wholesale-hero p { max-width: 52ch; color: rgba(250,245,234,0.8); font-family: var(--serif); font-size: 18px; }
.wholesale-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-top: 32px; }
.wholesale-stats .stat { border-top: 1px solid rgba(250,245,234,0.2); padding-top: 14px; }
.wholesale-stats .stat b { font-family: var(--serif); font-size: 32px; display: block; color: var(--sand); }
.wholesale-stats .stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(250,245,234,0.7); }
.wholesale-card {
  background: var(--cream); color: var(--ink);
  border-radius: var(--radius-lg);
  padding: 28px;
  box-shadow: var(--shadow-lg);
}
.wholesale-card h3 { font-size: 24px; margin-bottom: 16px; }

.benefits-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 24px;
  padding: 60px 0;
}
@media (max-width: 900px) { .benefits-grid { grid-template-columns: 1fr; } }
.benefit { padding: 28px; border: 1px solid var(--line-soft); border-radius: var(--radius-lg); background: var(--bg-card); }
.benefit-icon { width: 40px; height: 40px; display: flex; align-items: center; justify-content: center; background: var(--bg-warm); border-radius: 50%; color: var(--olive); margin-bottom: 16px; }
.benefit-icon svg { width: 20px; height: 20px; }
.benefit h4 { font-size: 22px; margin-bottom: 8px; }
.benefit p { color: var(--ink-soft); font-size: 14px; line-height: 1.6; margin: 0; }

/* ===== Events ===== */
.events-list { display: flex; flex-direction: column; padding: 40px 0; }
.event-item {
  display: grid;
  grid-template-columns: 180px 1fr auto;
  gap: 32px;
  padding: 28px 0;
  border-top: 1px solid var(--line-soft);
  align-items: center;
  cursor: pointer;
  transition: background .2s;
}
.event-item:hover { background: var(--bg-warm); padding-left: 16px; padding-right: 16px; margin: 0 -16px; border-radius: var(--radius); }
.event-item:last-child { border-bottom: 1px solid var(--line-soft); }
.event-date { font-family: var(--serif); }
.event-date .d { font-size: 48px; line-height: 1; color: var(--olive); }
.event-date .m { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--terra); margin-top: 4px; }
.event-info h3 { font-size: 26px; margin-bottom: 6px; }
.event-info .meta { font-family: var(--mono); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); display: flex; gap: 16px; margin-bottom: 8px; flex-wrap: wrap; }
.event-info p { color: var(--ink-soft); margin: 0; font-size: 14px; max-width: 60ch; }
.event-cta { display: flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); }

@media (max-width: 700px) {
  .event-item { grid-template-columns: 80px 1fr; gap: 16px; }
  .event-date .d { font-size: 32px; }
  .event-cta { grid-column: 2; }
}

/* ===== Services (Bodas/Celebraciones/Condolencia) ===== */
.services-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  padding: 8px 0 60px;
}
/* En anchos medios (2 cards por fila), reducir el padding para que respiren */
@media (max-width: 1100px) and (min-width: 700px) {
  .services-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 699px) { .services-grid { grid-template-columns: 1fr; } }

.service-card {
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: 18px;
  padding: 36px 32px;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: transform .35s var(--ease), box-shadow .35s var(--ease), border-color .35s var(--ease);
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 18px 40px -28px rgba(60, 50, 40, 0.25);
  border-color: var(--terra);
}

.service-icon {
  width: 56px; height: 56px;
  display: flex; align-items: center; justify-content: center;
  background: var(--blush);
  border-radius: 14px;
  margin-bottom: 6px;
}

.service-title {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

.service-desc {
  color: var(--ink-mute);
  font-size: 14.5px;
  line-height: 1.6;
  margin: 0;
}

.service-bullets {
  list-style: none;
  margin: 6px 0 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.service-bullets li {
  font-size: 13.5px;
  color: var(--ink-soft);
  display: flex;
  align-items: center;
  gap: 10px;
}
.service-bullets .check {
  color: var(--terra);
  font-weight: 600;
  font-size: 13px;
  flex-shrink: 0;
}

/* Acciones de service-card · alineadas al fondo, ambos botones simétricos
   (misma altura, mismo padding, misma tipografía). */
.service-actions {
  margin-top: auto;        /* empuja al fondo → simetría entre las 3 tarjetas */
  padding-top: 18px;       /* separación visual del último bullet */
  display: flex;
  align-items: stretch;    /* botones igualan altura entre ellos */
  gap: 10px;
  flex-wrap: wrap;
}

.btn-service,
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  height: 42px;
  padding: 0 18px;
  border: none;
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 11.5px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  line-height: 1;
  white-space: nowrap;
  box-sizing: border-box;
  transition: background .25s var(--ease), color .25s var(--ease), transform .2s var(--ease), box-shadow .25s var(--ease);
}

.btn-service {
  background: var(--blush);
  color: var(--ink);
  flex: 1 1 auto;          /* ocupa el espacio sobrante */
}
.btn-service:hover {
  background: var(--terra);
  color: #fff;
  transform: translateY(-1px);
}

.btn-whatsapp {
  background: #25d366;
  color: #fff;
  flex: 0 0 auto;          /* compacto, justo lo necesario */
  box-shadow: 0 4px 14px -8px rgba(37, 211, 102, 0.6);
}
.btn-whatsapp:hover {
  background: #1ebe5d;
  transform: translateY(-1px);
  box-shadow: 0 8px 20px -10px rgba(37, 211, 102, 0.7);
}
.btn-whatsapp svg {
  width: 18px;
  height: 18px;
  stroke-width: 1.6;
  flex-shrink: 0;
}

/* Aviso de urgencia (WhatsApp · entregas de un día para otro) */
.events-urgent-hint {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin: 22px auto 0;
  padding: 10px 16px 10px 12px;
  background: rgba(37, 211, 102, 0.10);
  border: 1px solid rgba(37, 211, 102, 0.35);
  color: var(--ink-soft);
  border-radius: 999px;
  font-size: 13px;
  text-decoration: none;
  max-width: 56ch;
  transition: background .25s var(--ease), border-color .25s var(--ease), transform .2s var(--ease);
}
.events-urgent-hint:hover {
  background: rgba(37, 211, 102, 0.18);
  border-color: rgba(37, 211, 102, 0.55);
  transform: translateY(-1px);
}
.events-urgent-hint svg {
  width: 20px;
  height: 20px;
  color: #1ebe5d;
  flex-shrink: 0;
  stroke-width: 1.6;
}

@media (max-width: 480px) {
  .service-actions { flex-direction: column; align-items: stretch; }
  .service-actions .btn-service,
  .service-actions .btn-whatsapp { justify-content: center; text-align: center; }
  .events-urgent-hint { font-size: 12px; line-height: 1.35; }
}

.services-portfolio {
  padding: 60px 0;
  border-top: 1px solid var(--line-soft);
  margin-top: 20px;
}
.services-portfolio-head {
  display: flex;
  justify-content: space-between;
  align-items: end;
  margin-bottom: 8px;
}

/* ===== Weddings portfolio ===== */
.portfolio-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-auto-rows: 240px;
  gap: 12px;
  padding: 32px 0;
}
@media (max-width: 900px) { .portfolio-grid { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 200px; } }
.portfolio-item { position: relative; overflow: hidden; border-radius: var(--radius); cursor: pointer; }
.portfolio-item .ph { position: absolute; inset: 0; transition: transform .6s; }
.portfolio-item:hover .ph { transform: scale(1.05); }
.portfolio-item.tall { grid-row: span 2; }
.portfolio-item.wide { grid-column: span 2; }

/* ===== Cart drawer ===== */
.drawer-backdrop {
  position: fixed; inset: 0; z-index: 80;
  background: rgba(28,31,27,0.35);
  opacity: 0; visibility: hidden;
  transition: opacity .25s, visibility .25s;
}
.drawer-backdrop.open { opacity: 1; visibility: visible; }
.drawer {
  position: fixed; top: 0; right: 0; bottom: 0;
  width: min(420px, 100%);
  background: var(--bg);
  z-index: 90;
  transform: translateX(100%);
  transition: transform .3s ease;
  display: flex; flex-direction: column;
}
.drawer.open { transform: translateX(0); }
.drawer-head {
  padding: 20px 24px;
  border-bottom: 1px solid var(--line);
  display: flex; justify-content: space-between; align-items: center;
}
.drawer-head h3 { font-size: 24px; }
.drawer-body { flex: 1; overflow-y: auto; padding: 16px 24px; }
.drawer-foot { border-top: 1px solid var(--line); padding: 20px 24px; background: var(--bg-card); }

.cart-line { display: grid; grid-template-columns: 72px 1fr auto; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line-soft); }
.cart-line .thumb { aspect-ratio: 1; position: relative; border-radius: var(--radius); overflow: hidden; }
.cart-line h5 { font-family: var(--serif); font-size: 16px; margin-bottom: 4px; }
.cart-line .small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); }
.cart-line .qty-sm { display: inline-flex; border: 1px solid var(--line); border-radius: var(--radius); margin-top: 8px; }
.cart-line .qty-sm button { width: 26px; height: 26px; font-size: 14px; }
.cart-line .qty-sm span { width: 26px; text-align: center; line-height: 26px; font-family: var(--mono); font-size: 11px; }
.cart-line .line-price { font-family: var(--serif); font-size: 16px; text-align: right; }
.cart-line .remove { color: var(--ink-mute); font-size: 11px; text-decoration: underline; }
.cart-line .remove:hover { color: var(--terra); }
.cart-empty { text-align: center; padding: 60px 20px; color: var(--ink-mute); }
.cart-empty h4 { font-size: 24px; color: var(--ink); margin-bottom: 10px; }
.cart-total { display: flex; justify-content: space-between; font-family: var(--serif); font-size: 22px; margin-top: 6px; }
.cart-total span:last-child { color: var(--olive); }

/* ===== Cart drawer · refinamiento (ETA, ship progress, gift, coupon, crosssell, trust, payment) ===== */
.drawer-body { display: flex; flex-direction: column; gap: 0; }

/* Thumb visible siempre, incluso sin foto */
.cart-line .thumb {
  background: var(--bg-warm);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.cart-line .thumb .ph { width: 100%; height: 100%; }
.cart-line-mid { min-width: 0; }
.cart-line h5 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.25;
}
.cart-line-end { display: flex; flex-direction: column; align-items: flex-end; justify-content: space-between; gap: 8px; }

/* Botón eliminar como icono trash */
.remove-icon {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent; border: 1px solid transparent; border-radius: var(--radius);
  color: var(--ink-mute); cursor: pointer;
  transition: all .15s;
}
.remove-icon svg { width: 14px; height: 14px; }
.remove-icon:hover { background: rgba(180, 80, 60, 0.08); color: var(--terra); border-color: rgba(180, 80, 60, 0.18); }

/* ETA banner arriba del listado */
.cart-eta {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  font-family: var(--sans);
  font-size: 12px;
  color: var(--ink-soft);
  margin-bottom: 12px;
}
.cart-eta svg { width: 14px; height: 14px; color: var(--olive); flex-shrink: 0; }

/* Barra de progreso de envío gratis */
.ship-progress {
  padding: 12px 0 14px;
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 4px;
}
.ship-progress-text {
  display: flex; align-items: center; gap: 8px;
  font-family: var(--sans);
  font-size: 12.5px;
  color: var(--ink-soft);
  margin-bottom: 8px;
}
.ship-progress-text svg { width: 14px; height: 14px; color: var(--olive); flex-shrink: 0; }
.ship-progress.complete .ship-progress-text { color: var(--olive); }
.ship-progress.complete .ship-progress-text strong { font-family: var(--serif); font-size: 14px; }
.ship-progress-bar {
  height: 4px;
  background: var(--bg-warm);
  border-radius: 2px;
  overflow: hidden;
}
.ship-progress-bar span {
  display: block;
  height: 100%;
  background: linear-gradient(to right, var(--sand), var(--olive));
  transition: width .35s ease;
}
.ship-progress.complete .ship-progress-bar span { background: var(--olive); }

/* Bloque expandible (gift, coupon) */
.cart-extra {
  margin-top: 14px;
  padding: 0;
  border-top: 1px solid var(--line-soft);
}
.cart-extra:first-of-type { border-top: none; padding-top: 4px; }
.extra-toggle {
  width: 100%;
  display: flex; align-items: center; gap: 10px;
  padding: 12px 0;
  background: transparent; border: none;
  font-family: var(--sans); font-size: 13px;
  color: var(--ink-soft);
  cursor: pointer;
  text-align: left;
}
.extra-toggle:hover { color: var(--ink); }
.extra-toggle svg { width: 16px; height: 16px; color: var(--olive); flex-shrink: 0; }
.extra-toggle.active { color: var(--ink); }
.extra-toggle.active svg { color: var(--terra); }
.extra-check {
  margin-left: auto;
  width: 32px; height: 18px;
  background: var(--bg-warm);
  border: 1px solid var(--line);
  border-radius: 9px;
  position: relative;
  transition: all .2s;
}
.extra-check::before {
  content: '';
  position: absolute;
  top: 1px; left: 1px;
  width: 14px; height: 14px;
  background: var(--ink-mute);
  border-radius: 50%;
  transition: all .2s;
}
.extra-check.on { background: var(--olive); border-color: var(--olive); }
.extra-check.on::before { left: 15px; background: var(--cream); }

.extra-body { padding: 4px 0 12px; }
.extra-label {
  display: block;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 6px;
}
.extra-textarea {
  width: 100%;
  min-height: 64px;
  padding: 10px 12px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  font-family: var(--serif);
  font-size: 14px;
  color: var(--ink);
  resize: vertical;
}
.extra-textarea:focus { outline: none; border-color: var(--olive); }
.extra-hint {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-top: 6px;
}
.extra-error {
  margin-top: 6px;
  font-size: 12px;
  color: var(--terra);
}

/* Coupon */
.coupon-row {
  display: flex; gap: 8px;
}
.coupon-row .input-sm { flex: 1; }
.input-sm {
  padding: 8px 12px;
  font-size: 13px;
  font-family: var(--mono);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}
.btn-sm { padding: 8px 14px; font-size: 11px; }
.coupon-applied {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px;
  background: rgba(170, 130, 80, 0.08);
  border: 1px solid rgba(170, 130, 80, 0.2);
  border-radius: var(--radius);
  font-size: 12.5px;
  color: var(--ink-soft);
}
.coupon-applied svg { width: 15px; height: 15px; color: var(--terra); flex-shrink: 0; }
.coupon-applied strong { color: var(--ink); font-family: var(--mono); letter-spacing: 0.05em; }
.link-mini {
  margin-left: auto;
  background: transparent; border: none;
  font-size: 11px;
  color: var(--ink-mute);
  text-decoration: underline;
  cursor: pointer;
}
.link-mini:hover { color: var(--terra); }

/* Cross-sell */
.cart-crosssell {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--line-soft);
}
.crosssell-title {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 10px;
}
.crosssell-row {
  display: flex; flex-direction: column; gap: 8px;
}
.crosssell-card {
  display: grid;
  grid-template-columns: 44px 1fr auto;
  gap: 10px;
  align-items: center;
  padding: 8px;
  background: var(--bg-warm);
  border-radius: var(--radius);
  transition: background .15s;
}
.crosssell-card:hover { background: var(--bg-card); border: 1px solid var(--line-soft); padding: 7px; }
.crosssell-thumb {
  width: 44px; height: 44px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.crosssell-info { min-width: 0; }
.crosssell-name {
  font-family: var(--serif);
  font-size: 13px;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.crosssell-price {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--terra);
  margin-top: 2px;
}
.crosssell-add {
  width: 28px; height: 28px;
  display: inline-flex; align-items: center; justify-content: center;
  background: var(--olive); color: var(--cream);
  border: none; border-radius: 50%;
  font-size: 18px; font-weight: 300; line-height: 1;
  cursor: pointer;
  transition: transform .15s;
}
.crosssell-add:hover { transform: scale(1.1); }

/* Trust badges */
.cart-trust {
  display: flex; justify-content: space-around;
  gap: 8px;
  margin-top: 16px;
  padding: 14px 10px;
  border-top: 1px solid var(--line-soft);
}
.trust-item {
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  text-align: center;
  flex: 1;
}
.trust-item svg { width: 18px; height: 18px; color: var(--olive); }

/* Resumen del footer */
.cart-summary { margin-bottom: 14px; }
.cart-summary-row {
  display: flex; justify-content: space-between;
  padding: 6px 0;
  font-size: 13px;
  color: var(--ink-soft);
}
.cart-summary-row.discount { color: var(--terra); }
.cart-summary .cart-total { padding-top: 10px; border-top: 1px solid var(--line); }

/* Payment methods strip */
.payment-strip {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid var(--line-soft);
  text-align: center;
}
.payment-label {
  display: block;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--ink-mute);
  margin-bottom: 8px;
}
.payment-icons {
  display: flex; align-items: center; justify-content: center;
  gap: 6px;
  flex-wrap: wrap;
}
.payment-call {
  font-family: var(--sans);
  font-size: 11px;
  color: var(--ink-mute);
  margin-left: 4px;
}

/* ===== Checkout aside · refinamiento (mirrors drawer styles) ===== */
.checkout-aside {
  background: var(--bg-card);
  padding: 24px;
  border-radius: 6px;
}
.checkout-line {
  display: grid;
  grid-template-columns: 56px 1fr auto;
  gap: 12px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line-soft);
  align-items: flex-start;
}
.checkout-line-thumb {
  width: 56px; height: 56px;
  position: relative;
  border-radius: 4px;
  overflow: hidden;
  background: var(--bg-warm);
  box-shadow: inset 0 0 0 1px var(--line-soft);
}
.checkout-line-mid { min-width: 0; }
.checkout-line-name {
  font-family: var(--serif);
  font-size: 15px;
  line-height: 1.25;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.checkout-line-meta {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  color: var(--ink-mute);
  margin-top: 2px;
}
.checkout-line-end {
  display: flex; flex-direction: column; align-items: flex-end; gap: 6px;
}
.checkout-line-price { font-family: var(--serif); font-size: 15px; }

/* ===== Auth modal ===== */
/* El backdrop ES el contenedor scrolleable. Si el modal crece más que el
   viewport (zoom alto, formularios largos), el backdrop hace scroll y el
   modal nunca se "recorta" — todo el contenido es accesible bajando. */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 100;
  background: rgba(28,31,27,0.55);
  display: flex;
  align-items: flex-start;       /* arranca arriba, no centrado vertical */
  justify-content: center;
  padding: clamp(12px, 3vw, 32px);
  overflow-y: auto;              /* el backdrop scrollea si el modal no cabe */
  overflow-x: hidden;
  -webkit-overflow-scrolling: touch;
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
}
.modal-backdrop.open { opacity: 1; visibility: visible; }
.modal {
  background: var(--bg);
  border-radius: var(--radius-lg);
  width: min(920px, 100%);
  /* Sin max-height: el modal toma la altura natural de su contenido. El
     scroll está en el backdrop. */
  overflow: hidden;              /* clip a los bordes redondeados */
  display: grid;
  grid-template-columns: 1fr 1fr;
  box-shadow: var(--shadow-lg);
  transform: translateY(20px);
  transition: transform .3s;
  margin: auto 0;                /* si cabe vertical, centra; si no, arriba */
}
.modal-backdrop.open .modal { transform: translateY(0); }
.modal-visual {
  position: relative;
  min-height: 0;
  min-width: 0;
}
.modal-body {
  padding: clamp(20px, 4vw, 40px);
  display: flex; flex-direction: column;
  gap: clamp(12px, 2vw, 20px);
  min-width: 0;                  /* permite que los inputs no rompan el grid */
}
/* Botón de cerrar fijo al viewport: con backdrop scrolleable el modal puede
   ser más alto que la pantalla — `position: fixed` garantiza que la X
   siempre esté a un click de distancia, en la esquina superior derecha. */
.modal-close {
  position: fixed;
  top: 16px;
  right: 16px;
  z-index: 110;          /* sobre el modal (z-index 100 backdrop, 101 modal) */
  background: rgba(251, 248, 242, 0.95);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 50%;
  width: 38px;
  height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 10px rgba(28,31,27,0.18);
  transition: background .2s var(--ease), transform .15s var(--ease);
}
.modal-close:hover { background: #fff; transform: scale(1.05); }
.modal-close svg { width: 16px; height: 16px; }
/* El backdrop debe quedar por debajo del botón en stack */
.modal-backdrop { z-index: 100; }
.modal { position: relative; z-index: 101; }
.auth-tabs { display: flex; gap: 20px; border-bottom: 1px solid var(--line); }
.auth-tab {
  padding: 10px 0;
  font-family: var(--mono);
  font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-mute);
  position: relative;
}
.auth-tab.active { color: var(--olive); }
.auth-tab.active::after {
  content: ''; position: absolute; left: 0; right: 0; bottom: -1px;
  height: 2px; background: var(--olive);
}

/* Título del modal escalable */
.auth-h2 {
  font-size: clamp(22px, 3.2vw, 32px);
  margin: 0 0 6px;
  line-height: 1.1;
}

/* Pantallas estrechas o medio-anchas: una sola columna (el visual sería muy fino) */
@media (max-width: 820px) {
  .modal { grid-template-columns: 1fr; }
  .modal-visual { display: none; }
}

/* Pantallas con poca altura (laptops antiguos, landscape de móvil): comprimimos
   espacios para que el botón final siempre quepa o el scroll sea corto. */
@media (max-height: 700px) {
  .modal-body { padding: 18px 24px; gap: 10px; }
  .auth-h2 { font-size: 20px; }
  .modal-body p { margin: 0; font-size: 13px; }
  .auth-tabs { gap: 14px; }
  .auth-tab { font-size: 10px; padding: 8px 0; }
  .social-row { gap: 6px; }
  .btn-social { padding: 10px 6px; font-size: 12px; }
  .auth-divider { margin: 0; }
}

/* ===== Account ===== */
.account {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 40px;
  padding: 40px 0 80px;
}
.account-nav { display: flex; flex-direction: column; gap: 4px; }
.account-nav button {
  text-align: left;
  padding: 10px 14px;
  border-radius: var(--radius);
  font-size: 13px;
  color: var(--ink-soft);
  display: flex; align-items: center; gap: 10px;
}
.account-nav button:hover { background: var(--bg-warm); }
.account-nav button.active { background: var(--olive); color: var(--cream); }
.account-nav button svg { width: 16px; height: 16px; }
@media (max-width: 900px) { .account { grid-template-columns: 1fr; } .account-nav { flex-direction: row; overflow-x: auto; padding-bottom: 8px; } }

/* ===== Footer ===== */
.footer {
  background: var(--ink);
  color: var(--cream);
  margin-top: 80px;
  padding: 72px 0 32px;
}
.footer a { color: var(--cream); }
.footer-grid {
  display: grid;
  grid-template-columns: 1.4fr repeat(3, 1fr);
  gap: 40px;
  padding-bottom: 48px;
  border-bottom: 1px solid rgba(250,245,234,0.15);
}
@media (max-width: 900px) { .footer-grid { grid-template-columns: 1fr 1fr; gap: 32px; } }
.footer-brand .brand-mark { color: var(--cream); }
.footer-brand p { color: rgba(250,245,234,0.7); margin-top: 16px; max-width: 36ch; }
.footer h6 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: rgba(250,245,234,0.6); margin: 0 0 16px; }
.footer ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 10px; font-size: 13px; color: rgba(250,245,234,0.85); }
.footer ul a:hover { color: var(--sand); }
.footer-base {
  display: flex; justify-content: space-between; padding-top: 28px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: rgba(250,245,234,0.5);
  gap: 20px; flex-wrap: wrap;
}

/* ===== Toasts ===== */
.toasts {
  position: fixed; top: 90px; left: 50%; transform: translateX(-50%);
  z-index: 1000;
  display: flex; flex-direction: column; gap: 12px;
  pointer-events: none;
  max-width: 92vw;
}
.toast {
  background: var(--ink); color: var(--cream);
  padding: 16px 24px;
  border-radius: 12px;
  font-size: 15px; font-weight: 500; line-height: 1.35;
  box-shadow: 0 10px 32px rgba(0,0,0,0.22), 0 2px 6px rgba(0,0,0,0.12);
  animation: toast-in .28s cubic-bezier(.2,.8,.2,1);
  display: flex; align-items: center; gap: 12px;
  pointer-events: auto;
  border: 1px solid rgba(255,255,255,0.08);
}
.toast.success { background: var(--olive); }
.toast.error {
  background: #b85042;
  font-size: 16px;
  padding: 18px 26px;
  border-color: rgba(255,255,255,0.18);
}
.toast.error::before {
  content: '⚠';
  font-size: 20px; line-height: 1;
}

/* ===== WhatsApp FAB ===== */
.wa-fab-wrap {
  position: fixed; right: 22px; bottom: 22px; z-index: 150;
  display: flex; flex-direction: column; align-items: flex-end; gap: 10px;
  pointer-events: none;
}
.wa-fab {
  pointer-events: auto;
  width: 58px; height: 58px; border-radius: 50%;
  background: #25D366; color: #fff;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.35), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
  text-decoration: none;
  position: relative;
}
.wa-fab::before {
  content: ''; position: absolute; inset: -6px; border-radius: 50%;
  border: 2px solid rgba(37, 211, 102, 0.4);
  animation: wa-pulse 2.4s ease-out infinite;
}
@keyframes wa-pulse {
  0% { transform: scale(0.95); opacity: 0.7; }
  100% { transform: scale(1.4); opacity: 0; }
}
.wa-fab:hover { transform: scale(1.06); box-shadow: 0 12px 30px rgba(37, 211, 102, 0.45); }
.wa-fab-bubble {
  pointer-events: auto;
  background: var(--bg-card, #fff); color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 14px; padding: 14px 36px 14px 16px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.12), 0 2px 6px rgba(0,0,0,0.06);
  max-width: 240px; position: relative;
  font-size: 13px;
  animation: wa-bubble-in 0.3s ease-out;
}
@keyframes wa-bubble-in {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}
.wa-fab-bubble::after {
  content: ''; position: absolute; right: 22px; bottom: -7px;
  width: 14px; height: 14px; background: var(--bg-card, #fff);
  border-right: 1px solid var(--line); border-bottom: 1px solid var(--line);
  transform: rotate(45deg);
}
.wa-fab-bubble-title {
  font-family: var(--serif); font-size: 16px; line-height: 1.2;
  margin-bottom: 4px;
}
.wa-fab-bubble-cta {
  display: inline-block; margin-top: 4px;
  color: #25D366; font-weight: 500; text-decoration: none;
  font-size: 12.5px;
}
.wa-fab-bubble-cta:hover { text-decoration: underline; }
.wa-fab-close {
  position: absolute; top: 4px; right: 6px;
  background: none; border: 0; cursor: pointer;
  font-size: 18px; color: var(--ink-mute); line-height: 1;
  padding: 4px 8px;
}
.wa-fab-close:hover { color: var(--ink); }
@media (max-width: 600px) {
  .wa-fab-wrap { right: 14px; bottom: 14px; }
  .wa-fab { width: 52px; height: 52px; }
  .wa-fab svg { width: 26px; height: 26px; }
}
.toast svg { width: 16px; height: 16px; }
@keyframes toast-in { from { transform: translateY(10px); opacity: 0; } }

/* ===== Breadcrumb ===== */
.breadcrumb {
  padding: 20px 0;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--ink-mute);
  display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.breadcrumb a:hover { color: var(--olive); }
.breadcrumb .sep { opacity: 0.4; }

/* ===== Mobile menu ===== */
.mobile-menu {
  position: fixed; inset: 0; z-index: 70;
  background: var(--bg);
  transform: translateX(-100%);
  transition: transform .3s ease;
  padding: 80px 32px 32px;
  overflow-y: auto;
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-link {
  display: block;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: 28px;
  border-bottom: 1px solid var(--line-soft);
  color: var(--ink);
}
.mobile-menu-link.active { color: var(--terra); }

/* ===== Tweaks panel ===== */
.tweaks-panel {
  position: fixed; bottom: 20px; right: 20px; z-index: 150;
  width: 280px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-lg);
  padding: 16px;
  font-size: 13px;
  max-height: 80vh; overflow-y: auto;
}
.tweaks-panel h4 { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; color: var(--ink-mute); }
.tweak-row { margin-bottom: 14px; }
.tweak-row > label { font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--ink-mute); display: block; margin-bottom: 6px; }
.tweak-palette { display: grid; grid-template-columns: repeat(4,1fr); gap: 6px; }
.tweak-palette button { aspect-ratio: 1; border-radius: var(--radius); border: 1.5px solid transparent; }
.tweak-palette button.active { border-color: var(--ink); }

/* ===== Search overlay ===== */
.search-overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(246,241,234,0.97);
  backdrop-filter: blur(8px);
  opacity: 0; visibility: hidden; transition: opacity .2s, visibility .2s;
  padding: 80px 24px;
}
.search-overlay.open { opacity: 1; visibility: visible; }
.search-inner { max-width: 800px; margin: 0 auto; }
.search-input {
  width: 100%;
  border: none;
  border-bottom: 1px solid var(--ink);
  background: transparent;
  padding: 16px 0;
  font-family: var(--serif);
  font-size: clamp(32px, 5vw, 56px);
  color: var(--ink);
}
.search-input:focus { outline: none; }
.search-suggestions { margin-top: 32px; display: flex; flex-direction: column; gap: 12px; }
.search-sug-head { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; color: var(--ink-mute); margin-bottom: 6px; }
.search-sug {
  display: flex; align-items: center; gap: 14px;
  padding: 10px; border-radius: var(--radius);
  cursor: pointer;
}
.search-sug:hover { background: var(--bg-warm); }
.search-sug .thumb { width: 48px; height: 48px; position: relative; border-radius: var(--radius); overflow: hidden; }
.search-sug h6 { font-family: var(--serif); font-size: 18px; margin: 0; font-weight: 400; }

/* ===== Utility ===== */
.text-center { text-align: center; }
.muted { color: var(--ink-mute); }
.divider-soft { border: none; border-top: 1px solid var(--line-soft); margin: 48px 0; }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 6px 10px;
  background: var(--bg-warm);
  border-radius: 100px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--ink-soft);
}
.chip.active { background: var(--olive); color: var(--cream); }
.chip button { margin-left: 4px; font-size: 12px; }

/* ===== Newsletter ===== */
.newsletter {
  padding: 80px var(--page-x);
  text-align: center;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  margin: 40px var(--page-x) 0;
  max-width: calc(var(--container) - var(--page-x) * 2);
  margin-left: auto; margin-right: auto;
}
.newsletter h2 { font-size: clamp(32px, 4.5vw, 48px); margin-bottom: 12px; }
.newsletter p { color: var(--ink-soft); max-width: 48ch; margin: 0 auto 28px; }
.newsletter form { display: flex; gap: 10px; max-width: 480px; margin: 0 auto; }
.newsletter form .input { background: var(--bg-card); }
@media (max-width: 600px) { .newsletter form { flex-direction: column; } }
.newsletter-success { max-width: 480px; margin: 0 auto; }
.newsletter-thanks { display: inline-flex; align-items: center; gap: 6px; color: var(--olive); font-weight: 500; margin-bottom: 18px; }
.welcome-code {
  display: inline-flex; align-items: center; gap: 12px;
  background: var(--bg-card); border: 1px dashed var(--olive);
  border-radius: 12px; padding: 12px 14px 12px 18px;
}
.welcome-code code {
  font-family: var(--mono, monospace); font-size: 20px; font-weight: 600;
  letter-spacing: 0.12em; color: var(--olive);
}
.newsletter-code-hint { color: var(--ink-mute); font-size: 13px; margin: 12px auto 0; }

/* ===== Campana de notificaciones (nav) ===== */
.notif-wrap { position: relative; }
.pill-notif { background: var(--terra); }
.notif-menu {
  position: absolute; top: calc(100% + 10px); right: 0; z-index: 120;
  width: min(360px, 90vw);
  background: var(--bg-card); border: 1px solid var(--line);
  border-radius: var(--radius-lg, 14px); box-shadow: var(--shadow-lg);
  overflow: hidden;
}
.notif-menu-head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 16px; border-bottom: 1px solid var(--line-soft);
}
.notif-menu-head strong { font-size: 14px; }
.notif-list { max-height: 60vh; overflow-y: auto; }
.notif-empty { padding: 28px 16px; text-align: center; color: var(--ink-mute); font-size: 13px; }
.notif-item {
  display: flex; gap: 10px; align-items: flex-start; width: 100%;
  padding: 12px 16px; background: none; border: none; border-bottom: 1px solid var(--line-soft);
  text-align: left; cursor: pointer; transition: background .12s; position: relative;
}
.notif-item:last-child { border-bottom: none; }
.notif-item:hover { background: var(--bg-warm); }
.notif-item.unread { background: rgba(138,74,61,0.05); }
.notif-item-ico {
  flex-shrink: 0; width: 30px; height: 30px; border-radius: 50%;
  background: var(--bg-warm); color: var(--olive);
  display: flex; align-items: center; justify-content: center; margin-top: 2px;
}
.notif-item-body { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.notif-item-body strong { font-size: 13px; line-height: 1.3; }
.notif-item-body span { font-size: 12px; color: var(--ink-soft); line-height: 1.4; }
.notif-item-body time { font-size: 10px; color: var(--ink-mute); font-family: var(--mono); margin-top: 2px; }
.notif-dot {
  position: absolute; top: 14px; right: 14px;
  width: 8px; height: 8px; border-radius: 50%; background: var(--terra);
}

/* ===== Modal de suscripción iniciada ===== */
.sub-started {
  position: relative; background: var(--bg); border-radius: var(--radius-lg, 16px);
  width: min(440px, 100%); margin: auto 0; padding: 36px 28px 28px;
  text-align: center; box-shadow: var(--shadow-lg);
}
.sub-started-close { position: absolute; top: 14px; right: 14px; }
.sub-started-ico {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--olive); color: var(--cream);
  display: flex; align-items: center; justify-content: center; margin: 0 auto 16px;
}
.sub-started-ico svg { width: 26px; height: 26px; }
.sub-started h2 { font-size: 28px; margin: 0 0 4px; }
.sub-started-plan { font-family: var(--mono); font-size: 11px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--terra); margin: 0 0 14px; }
.sub-started-msg { color: var(--ink-soft); font-size: 14px; margin: 0 0 20px; }
.sub-started-actions { display: flex; flex-direction: column; gap: 10px; }
.sub-started-actions .btn { width: 100%; justify-content: center; gap: 8px; }
.sub-started-actions .btn svg { width: 16px; height: 16px; flex-shrink: 0; }

/* ===== Home spacing ===== */
section { padding: 72px 0; }
section.tight { padding: 48px 0; }
section.flush { padding-top: 0; }
.section-head { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 40px; flex-wrap: wrap; gap: 20px; }
.section-head .link { font-family: var(--mono); font-size: 11px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--olive); display: flex; gap: 6px; align-items: center; }
.section-head .link:hover { color: var(--terra); }


/* ===== Photo-backed placeholder ===== */
.ph.ph-photo::after {
  content: '';
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,31,27,0) 40%, rgba(28,31,27,0.18) 100%);
  pointer-events: none;
}
.ph.ph-photo { background-color: var(--bg-warm); }
.ph.ph-photo .ph-label { display: none; }

/* ===== Plan grid adapts to 3, 4 or 5 cards ===== */
.plan-grid.four { grid-template-columns: repeat(4, 1fr); }
@media (max-width: 1100px) { .plan-grid.four { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .plan-grid.four { grid-template-columns: 1fr; } }

/* 5 planes: flexbox centrado para que las filas incompletas (3+2, 2+2+1…)
   queden centradas, no pegadas a un lado. */
.plan-grid.five {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: stretch;
  gap: 16px;
}
/* Anchos por % (gap 16px) para 5 / 3 / 2 / 1 por fila. flex-grow:0 + justify
   center → las filas incompletas (3+2, 2+2+1) quedan centradas. */
.plan-grid.five > .plan { flex: 0 0 auto; width: calc(20% - 12.8px); max-width: 340px; }
@media (max-width: 1400px) { .plan-grid.five > .plan { width: calc(33.333% - 10.7px); } }
@media (max-width: 1000px) { .plan-grid.five > .plan { width: calc(50% - 8px); } }
@media (max-width: 600px)  { .plan-grid.five > .plan { width: 100%; max-width: none; } }

/* Programa LaFlori — nota bajo el precio */
.plan-footnote {
  font-family: var(--sans);
  font-size: 12px;
  line-height: 1.4;
  color: var(--ink-soft);
  margin-top: 6px;
  opacity: 0.85;
}

/* ===== FAQ ===== */
.faq-wrap { max-width: 880px; margin: 0 auto; padding: 0 var(--page-x); }
.faq-head { text-align: center; margin-bottom: 48px; }
.faq-head h2 { font-size: clamp(40px, 6vw, 64px); margin: 12px 0 16px; }
.faq-head p { color: var(--ink-mute); max-width: 52ch; margin: 0 auto; }
.faq-list { display: flex; flex-direction: column; }
.faq-item {
  border-top: 1px solid var(--line-soft);
  padding: 22px 0;
}
.faq-item:last-child { border-bottom: 1px solid var(--line-soft); }
.faq-q {
  width: 100%; text-align: left;
  display: flex; justify-content: space-between; align-items: center; gap: 24px;
  font-family: var(--serif); font-size: 22px; line-height: 1.25;
  color: var(--ink);
  transition: color .2s;
}
.faq-q:hover { color: var(--terra); }
.faq-q .faq-toggle {
  flex: 0 0 auto;
  width: 28px; height: 28px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: var(--terra); font-size: 18px; font-weight: 300;
  transition: transform .3s, background .2s;
}
.faq-item.open .faq-toggle { transform: rotate(45deg); background: var(--bg-warm); }
.faq-a {
  max-height: 0; overflow: hidden;
  transition: max-height .35s ease, margin .35s, opacity .3s;
  opacity: 0;
  color: var(--ink-soft); font-size: 15px; line-height: 1.65;
  max-width: 72ch;
}
.faq-item.open .faq-a { max-height: 400px; opacity: 1; margin-top: 14px; }
.faq-contact {
  margin-top: 48px; text-align: center;
  padding: 36px; background: var(--bg-card); border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
}
.faq-contact h4 { font-family: var(--serif); font-size: 26px; margin: 0 0 6px; }
.faq-contact p { margin: 0 0 18px; color: var(--ink-mute); }

/* ===== Reviews ===== */
.reviews-wrap { padding: 0 var(--page-x); max-width: var(--container); margin: 0 auto; }
.reviews-head { text-align: center; margin-bottom: 48px; }
.reviews-head h2 { font-size: clamp(40px, 6vw, 64px); margin: 12px 0 16px; }
.reviews-head p { color: var(--ink-mute); max-width: 52ch; margin: 0 auto; }
.reviews-stats {
  display: flex; justify-content: center; gap: clamp(24px, 6vw, 64px);
  margin: 32px 0 56px; flex-wrap: wrap;
}
.review-stat { text-align: center; }
.review-stat b { font-family: var(--serif); font-size: 36px; font-weight: 400; display: block; color: var(--olive); }
.review-stat span { font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em; text-transform: uppercase; color: var(--ink-mute); }
.reviews-grid {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px;
}
@media (max-width: 1100px) { .reviews-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 600px) { .reviews-grid { grid-template-columns: 1fr; } }
.review-card {
  background: var(--bg-card);
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  padding: 24px;
  display: flex; flex-direction: column; gap: 14px;
  position: relative;
  transition: transform .3s, border-color .2s, box-shadow .3s;
}
.review-card:hover { transform: translateY(-3px); border-color: var(--sand); box-shadow: var(--shadow-md); }
.review-card .quote-mark {
  position: absolute; top: 18px; right: 18px;
  font-family: var(--serif); font-size: 48px; line-height: 1; color: var(--line); opacity: 0.7;
}
.review-stars { color: var(--sand); display: flex; gap: 2px; font-size: 14px; letter-spacing: 1px; }
.review-text { font-family: var(--serif); font-size: 17px; line-height: 1.45; color: var(--ink-soft); font-style: italic; margin: 0; }
.review-author { display: flex; align-items: center; gap: 10px; margin-top: auto; }
.review-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--terra-soft); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-size: 16px;
}
.review-meta { display: flex; flex-direction: column; gap: 1px; }
.review-name { font-family: var(--sans); font-size: 13px; font-weight: 500; color: var(--ink); }
.review-city { font-family: var(--mono); font-size: 10px; letter-spacing: 0.1em; color: var(--ink-mute); text-transform: uppercase; }
.review-tag { font-size: 11px; color: var(--leaf); display: flex; align-items: center; gap: 4px; margin-top: 4px; }

/* ===== Auth modal side image ===== */
.auth-modal .modal-body { display: grid; grid-template-columns: 1fr; gap: 0; }
.auth-modal.has-visual .modal-body { grid-template-columns: 0.85fr 1fr; }
@media (max-width: 720px) { .auth-modal.has-visual .modal-body { grid-template-columns: 1fr; } }
@media (max-width: 720px) { .auth-modal-visual { display: none; } }
.auth-modal-visual {
  position: relative; min-height: 100%;
  background-size: cover; background-position: center;
  border-radius: var(--radius-lg) 0 0 var(--radius-lg);
  overflow: hidden;
}
.auth-modal-visual::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(28,31,27,0.1), rgba(28,31,27,0.55));
}
.auth-modal-visual .av-copy {
  position: absolute; bottom: 28px; left: 28px; right: 28px;
  color: var(--cream); z-index: 2;
}
.auth-modal-visual .av-copy small { font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.85; }
.auth-modal-visual .av-copy h3 { font-family: var(--serif); font-size: 28px; margin: 6px 0 0; color: var(--cream); font-weight: 400; line-height: 1.15; }
.auth-modal-pane { padding: 40px; display: flex; flex-direction: column; gap: 18px; }
@media (max-width: 720px) { .auth-modal-pane { padding: 28px; } }

/* ===== Hero and category photos ===== */
.cat-card .ph { transition: transform .6s ease; }
.cat-card:hover .ph { transform: scale(1.04); }


/* Fix: modal-visual needs its .ph to fill the frame */
.modal-visual { position: relative; min-height: 100%; }
.modal-visual .ph { position: absolute; inset: 0; border-radius: var(--radius-lg) 0 0 var(--radius-lg); }
@media (max-width: 720px) { .modal-visual .ph { border-radius: var(--radius-lg) var(--radius-lg) 0 0; min-height: 180px; position: relative; } }

/* Account avatar */
.account-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 500;
  color: #fff;
  flex-shrink: 0;
  box-shadow: 0 4px 18px rgba(60,50,40,0.15);
  letter-spacing: -0.02em;
}

/* ===== Social login buttons ===== */
.social-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
}
.btn-social {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 12px 10px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease);
  line-height: 1;
}
.btn-social:hover {
  border-color: var(--ink);
  background: var(--bg-warm);
}
.btn-social:active { transform: translateY(1px); }
.btn-social svg { flex-shrink: 0; }

@media (max-width: 480px) {
  .btn-social { padding: 10px 6px; font-size: 12px; gap: 6px; }
}

/* ===== Checkout · payment options ===== */
.pay-option {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  cursor: pointer;
  transition: border-color .15s var(--ease), background .15s var(--ease);
  background: transparent;
}
.pay-option + .pay-option { margin-top: 8px; }
.pay-option:hover { border-color: var(--terra-soft); }
.pay-option.active {
  border-color: var(--terra);
  background: rgba(138, 74, 61, 0.04);
}
.pay-option--disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.pay-option--disabled:hover { border-color: var(--line); }
.pay-option input[type="radio"] {
  margin-top: 2px;
  accent-color: var(--terra);
  flex-shrink: 0;
}
.pay-option-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.pay-option-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}
.pay-option-title {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.25;
}
.pay-option-detail {
  font-size: 13.5px;
  color: var(--ink-mute);
  line-height: 1.5;
}
.pay-bizum-logo {
  display: inline-flex;
  align-items: center;
  padding: 3px 9px;
  background: #00b3ee;       /* azul-cian característico de Bizum */
  color: #fff;
  border-radius: 4px;
  font-family: var(--sans);
  font-weight: 600;
  font-size: 11px;
  letter-spacing: 0.05em;
  flex-shrink: 0;
}
.pay-bizum-phone {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  margin-top: 6px;
  padding: 6px 10px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: 999px;
  font-family: var(--mono);
  font-size: 12.5px;
  color: var(--ink);
}
.pay-bizum-phone a {
  color: var(--olive);
  text-decoration: none;
  font-weight: 500;
}
.pay-bizum-phone a:hover { color: var(--terra); text-decoration: underline; }

/* Recap de Bizum en la pantalla de pedido confirmado */
.pay-bizum-recap {
  max-width: 440px;
  margin: 0 auto 28px;
  padding: 22px 24px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: center;
}
.pay-bizum-recap-head {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
}
.pay-bizum-recap-head strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 500;
}
.pay-bizum-recap p {
  margin: 0 0 12px;
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
}
.pay-bizum-figures {
  display: flex;
  gap: 10px;
  margin: 0 0 14px;
}
.pay-bizum-figure {
  flex: 1;
  background: var(--bg-warm);
  border-radius: var(--radius);
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 3px;
}
.pay-bizum-figure span {
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--ink-mute);
}
.pay-bizum-figure strong {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
}
.pay-bizum-figure strong.mono {
  font-family: var(--mono);
  font-size: 15px;
  letter-spacing: 0.08em;
}
@media (max-width: 480px) { .pay-bizum-figures { flex-direction: column; } }
.pay-bizum-steps-intro {
  margin: 0 0 8px !important;
  font-weight: 600;
  color: var(--ink) !important;
  text-align: left;
}
.pay-bizum-steps {
  margin: 0 0 14px;
  padding-left: 22px;
  text-align: left;
}
.pay-bizum-steps li {
  font-size: 14px;
  color: var(--ink-soft);
  line-height: 1.5;
  margin-bottom: 6px;
}
.pay-bizum-notify {
  margin: 4px 0 10px !important;
  font-weight: 600;
  color: var(--ink) !important;
}
.pay-bizum-wa {
  width: 100%;
  justify-content: center;
  margin-bottom: 4px;
}

/* ===== Selector de prefijo telefónico (checkout) ===== */
.phone-field { display: flex; gap: 8px; align-items: stretch; }
.phone-num { flex: 1; min-width: 0; }
.phone-cc { position: relative; flex: 0 0 auto; }
.phone-cc-btn {
  display: inline-flex; align-items: center; gap: 6px;
  height: 100%; padding: 0 10px; cursor: pointer;
  background: var(--bg-card, #fff); color: var(--ink);
  border: 1px solid var(--line); border-radius: var(--radius, 8px);
  font-size: 14px; font-family: inherit; white-space: nowrap;
}
.phone-cc-btn:disabled { opacity: 0.6; cursor: not-allowed; }
.phone-cc-btn:hover:not(:disabled) { border-color: var(--olive); }
.phone-flag { border-radius: 2px; object-fit: cover; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,0.08); }
.phone-dial { font-variant-numeric: tabular-nums; }
.phone-caret { font-size: 10px; color: var(--ink-mute); margin-left: 2px; }
.phone-cc-backdrop { position: fixed; inset: 0; z-index: 80; }
.phone-cc-menu {
  position: absolute; top: calc(100% + 6px); left: 0; z-index: 90;
  width: 300px; max-width: 86vw;
  background: var(--bg-card, #fff); border: 1px solid var(--line);
  border-radius: 10px; box-shadow: 0 12px 32px rgba(0,0,0,0.18); overflow: hidden;
}
.phone-cc-search {
  width: 100%; border: 0; border-bottom: 1px solid var(--line-soft);
  padding: 10px 12px; font-size: 14px; font-family: inherit;
  background: var(--bg-warm, #f6f1ea); color: var(--ink); outline: none;
}
.phone-cc-list { max-height: 260px; overflow-y: auto; }
.phone-cc-item {
  display: flex; align-items: center; gap: 10px; width: 100%;
  padding: 9px 12px; border: 0; background: transparent; cursor: pointer;
  font-size: 14px; font-family: inherit; color: var(--ink); text-align: left;
}
.phone-cc-item:hover { background: var(--bg-warm, #f0f4f0); }
.phone-cc-item.on { background: var(--bg-warm, #eaf0ea); font-weight: 600; }
.phone-cc-name { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.phone-cc-dial { color: var(--ink-mute); font-variant-numeric: tabular-nums; }
.phone-cc-empty { padding: 14px 12px; color: var(--ink-mute); font-size: 13px; text-align: center; }
@media (max-width: 480px) { .phone-cc-menu { width: 86vw; } }

/* ===== Perk banner (10% primera compra) ===== */
.perk-banner {
  display: flex;
  align-items: center;
  gap: 14px;
  width: 100%;
  padding: 12px 14px;
  margin-bottom: 14px;
  background: linear-gradient(95deg, var(--cream) 0%, var(--bg-card) 100%);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  color: var(--ink);
  cursor: pointer;
  text-align: left;
  font-family: var(--sans);
  transition: border-color .2s var(--ease), transform .15s var(--ease), box-shadow .25s var(--ease);
  position: relative;
  overflow: hidden;
}
.perk-banner::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(120deg, transparent 40%, rgba(138,74,61,0.06) 60%, transparent 80%);
  pointer-events: none;
}
.perk-banner:hover {
  border-color: var(--terra);
  transform: translateY(-1px);
  box-shadow: 0 8px 22px -16px rgba(138,74,61,0.4);
}
.perk-banner-pct {
  flex-shrink: 0;
  font-family: var(--serif);
  font-size: 26px;
  font-weight: 500;
  font-style: italic;
  color: var(--terra);
  line-height: 1;
  letter-spacing: -0.02em;
  min-width: 52px;
  text-align: center;
}
.perk-banner-copy {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.perk-banner-copy strong {
  font-family: var(--serif);
  font-size: 16px;
  font-weight: 500;
  color: var(--ink);
  line-height: 1.2;
}
.perk-banner-copy small {
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.35;
}
.perk-banner-arrow {
  flex-shrink: 0;
  width: 18px;
  height: 18px;
  color: var(--terra);
  transition: transform .25s var(--ease);
}
.perk-banner:hover .perk-banner-arrow { transform: translateX(3px); }

.perk-banner--checkout {
  margin-bottom: 28px;
}
.perk-banner--checkout .perk-banner-pct { font-size: 30px; min-width: 64px; }
.perk-banner--checkout .perk-banner-copy strong { font-size: 18px; }
.perk-banner--checkout .perk-banner-copy small { font-size: 12.5px; }

/* ===== Checkout · default address summary ===== */
.ship-default-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
}
.ship-default-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}
.ship-default-eyebrow {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--terra);
}
.ship-default-change {
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--olive);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 4px 0;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.ship-default-change:hover { color: var(--terra); }

/* ===== Checkout · address autocomplete ===== */
.addr-autocomplete { position: relative; }
.addr-suggestions {
  position: absolute;
  top: calc(100% + 4px);
  left: 0; right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-md);
  max-height: 320px;
  overflow-y: auto;
  padding: 4px;
}
.addr-sug-item {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  background: transparent;
  border: none;
  border-radius: var(--radius);
  text-align: left;
  cursor: pointer;
  transition: background .15s var(--ease);
}
.addr-sug-item + .addr-sug-item { margin-top: 2px; }
.addr-sug-item:hover,
.addr-sug-item:focus { background: var(--bg-warm); outline: none; }
.addr-sug-line1 {
  font-size: 14px;
  color: var(--ink);
  line-height: 1.3;
}
.addr-sug-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  letter-spacing: 0.05em;
  margin-top: 2px;
}
.addr-sug-status,
.addr-sug-empty {
  padding: 12px 14px;
  font-size: 13px;
  color: var(--ink-mute);
}
.addr-sug-manual {
  background: transparent;
  border: none;
  color: var(--olive);
  text-decoration: underline;
  cursor: pointer;
  padding: 0;
  font: inherit;
}

.addr-smart-hint {
  display: block;
  font-size: 12px;
  color: var(--ink-mute);
  line-height: 1.45;
  margin-top: 4px;
}
.link-inline {
  background: transparent;
  border: none;
  color: var(--olive);
  cursor: pointer;
  padding: 0;
  font: inherit;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.link-inline:hover { color: var(--terra); }
.link-inline:disabled { opacity: 0.5; cursor: not-allowed; }

/* ===== Account type selector (Auth modal) ===== */
.account-type-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.account-type-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 6px;
  padding: 14px 14px 13px;
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  text-align: left;
  cursor: pointer;
  transition: border-color .2s var(--ease), background .2s var(--ease), transform .15s var(--ease), box-shadow .2s var(--ease);
  position: relative;
  font-family: var(--sans);
  color: var(--ink);
}
.account-type-card:hover {
  border-color: var(--terra-soft);
  background: #fff;
}
.account-type-card.active {
  border-color: var(--olive);
  background: #fff;
  box-shadow: 0 0 0 1px var(--olive) inset, 0 4px 18px -10px rgba(45,59,42,0.35);
}
.account-type-card.active::after {
  content: '';
  position: absolute;
  top: 10px; right: 10px;
  width: 10px; height: 10px;
  border-radius: 50%;
  background: var(--olive);
  box-shadow: 0 0 0 3px var(--cream);
}
.account-type-icon {
  display: inline-flex;
  align-items: center; justify-content: center;
  width: 30px; height: 30px;
  border-radius: 8px;
  background: var(--bg-warm);
  color: var(--olive);
  margin-bottom: 2px;
}
.account-type-card.active .account-type-icon {
  background: var(--olive);
  color: var(--cream);
}
.account-type-label {
  font-family: var(--serif);
  font-size: 17px;
  line-height: 1.1;
}
.account-type-desc {
  font-size: 11.5px;
  color: var(--ink-mute);
  line-height: 1.35;
}
@media (max-width: 480px) {
  .account-type-grid { grid-template-columns: 1fr; }
  .account-type-card { padding: 12px 14px; }
}

/* Badge in user menu / account header */
.badge-account-type {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  font-family: var(--mono);
  font-size: 9px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  border-radius: 999px;
  background: var(--bg-warm);
  color: var(--olive);
  border: 1px solid var(--line);
}
.badge-account-type.empresa {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive);
}

/* Divider with rules */
.auth-divider {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 4px 0;
}
.auth-divider::before,
.auth-divider::after {
  content: '';
  flex: 1;
  height: 1px;
  background: var(--line-soft);
}
.auth-divider span {
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--ink-mute);
}

/* ===== Product Reviews (PDP) ===== */
.pdp-reviews {
  border-top: 1px solid var(--line-soft);
  padding: 56px 0 40px;
  margin-top: 24px;
}
.pdp-reviews-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 28px;
  flex-wrap: wrap;
}
.pdp-reviews-title {
  font-family: var(--serif);
  font-size: clamp(28px, 4vw, 40px);
  font-weight: 500;
  margin: 0;
  letter-spacing: -0.01em;
}

/* Summary block */
.reviews-summary {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 40px;
  padding: 28px 32px;
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  align-items: center;
}
@media (max-width: 720px) {
  .reviews-summary { grid-template-columns: 1fr; gap: 24px; padding: 24px; }
}
.reviews-summary-score {
  text-align: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
}
.reviews-avg {
  font-family: var(--serif);
  font-size: 64px;
  font-weight: 400;
  line-height: 1;
  color: var(--ink);
}
.reviews-summary-count {
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.06em;
  color: var(--ink-mute);
  text-transform: uppercase;
  margin-top: 4px;
}
.reviews-summary-bars {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.reviews-bar-row {
  display: grid;
  grid-template-columns: 36px 1fr 32px;
  align-items: center;
  gap: 12px;
  background: none;
  border: none;
  padding: 6px 0;
  cursor: pointer;
  text-align: left;
  border-radius: 6px;
  transition: background .2s var(--ease);
}
.reviews-bar-row:hover { background: rgba(60,50,40,0.04); }
.reviews-bar-row.active .reviews-bar-fill { background: var(--terra); }
.reviews-bar-label {
  font-family: var(--mono);
  font-size: 12px;
  color: var(--ink-mute);
}
.reviews-bar-track {
  height: 6px;
  background: rgba(60,50,40,0.1);
  border-radius: 3px;
  overflow: hidden;
}
.reviews-bar-fill {
  display: block;
  height: 100%;
  background: var(--olive);
  transition: width .4s var(--ease), background .2s var(--ease);
}
.reviews-bar-count {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  text-align: right;
}

/* Review form */
.review-form {
  margin: 32px 0;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.review-form-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
}
.review-form-close {
  background: none;
  border: none;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  padding: 6px 10px;
}
.review-form-close:hover { color: var(--terra); }

.rating-input { display: flex; gap: 4px; }
.rating-star {
  background: none;
  border: none;
  padding: 4px;
  cursor: pointer;
  font-size: 32px;
  line-height: 1;
  transition: transform .15s var(--ease);
}
.rating-star:hover { transform: scale(1.15); }

/* Filters & sort */
.reviews-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 24px 0 16px;
  border-top: 1px solid var(--line-soft);
  margin-top: 28px;
  flex-wrap: wrap;
}
.reviews-sort {
  width: auto;
  min-width: 160px;
}

/* Review list */
.reviews-list {
  display: flex;
  flex-direction: column;
}
.review-item {
  display: grid;
  grid-template-columns: 56px 1fr;
  gap: 18px;
  padding: 24px 0;
  border-bottom: 1px solid var(--line-soft);
}
.review-item:last-child { border-bottom: none; }
.review-item-avatar {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background: var(--blush);
  color: var(--terra);
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
}
.review-item-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}
.review-item-name {
  font-weight: 500;
  font-size: 15px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
.review-verified {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--olive);
  background: rgba(120,135,100,0.12);
  padding: 3px 8px;
  border-radius: 999px;
  font-weight: 400;
}
.review-item-meta {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--ink-mute);
  margin-top: 2px;
  letter-spacing: 0.04em;
}
.review-item-text {
  color: var(--ink-soft);
  line-height: 1.65;
  margin: 0;
  font-size: 14.5px;
}
.review-delete {
  background: none;
  border: none;
  padding: 0;
  margin-top: 10px;
  font-family: var(--mono);
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--ink-mute);
  cursor: pointer;
  text-decoration: underline;
}
.review-delete:hover { color: #b85042; }

.reviews-empty {
  text-align: center;
  padding: 40px 20px;
  color: var(--ink-mute);
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
}
.contact-info-overlay {
  position: absolute;
  left: 0; right: 0; bottom: 0;
  padding: 24px 28px;
  background: linear-gradient(to top, rgba(20,18,15,0.85), rgba(20,18,15,0));
  color: #fff;
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 13px;
  z-index: 2;
}
.contact-info-row { display: flex; gap: 10px; align-items: center; opacity: 0.95; }
.contact-info-row svg { flex-shrink: 0; opacity: 0.9; }
@media (max-width: 720px) {
  .contact-info-overlay { padding: 16px 20px; gap: 6px; font-size: 12px; }
}

/* ===== FAQ ===== */
.faq-list {
  max-width: 820px;
  margin: 0 auto;
  padding: 32px 0 60px;
  display: flex;
  flex-direction: column;
  gap: 0;
  border-top: 1px solid var(--line-soft);
}
.faq-item {
  border-bottom: 1px solid var(--line-soft);
}
.faq-q {
  width: 100%;
  text-align: left;
  background: none;
  border: none;
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 24px;
  cursor: pointer;
  font-family: var(--serif);
  font-size: 20px;
  color: var(--ink);
  font-weight: 500;
  letter-spacing: -0.005em;
  transition: color .2s var(--ease);
}
.faq-q:hover { color: var(--terra); }
.faq-toggle {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  color: var(--terra);
  flex-shrink: 0;
  width: 28px;
  text-align: center;
  line-height: 1;
}
.faq-a-wrap {
  display: grid;
  grid-template-rows: 0fr;
  transition: grid-template-rows .35s var(--ease);
}
.faq-item.open .faq-a-wrap {
  grid-template-rows: 1fr;
}
.faq-a {
  overflow: hidden;
  margin: 0;
  padding: 0 4px;
  color: var(--ink-soft);
  line-height: 1.7;
  font-size: 15px;
}
.faq-item.open .faq-a {
  padding: 0 4px 24px;
}

.faq-cta {
  background: var(--bg-warm);
  border-radius: var(--radius-lg);
  padding: 40px;
  margin: 32px 0 80px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  flex-wrap: wrap;
}
@media (max-width: 720px) {
  .faq-q { font-size: 17px; padding: 20px 4px; }
  .faq-cta { padding: 28px; }
}

/* ===== Legal pages ===== */
.legal-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  border-top: 1px solid var(--line-soft);
  border-bottom: 1px solid var(--line-soft);
  margin-bottom: 40px;
}
.legal-content {
  max-width: 760px;
}
.legal-block {
  margin-bottom: 32px;
}
.legal-block h3 {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 500;
  margin: 0 0 10px;
  color: var(--ink);
}
.legal-block p {
  color: var(--ink-soft);
  line-height: 1.75;
  margin: 0;
}


/* ===== About Page (rediseño) ===== */
.about-hero {
  display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: center;
  padding: 48px 0 64px;
}
@media (max-width: 900px) {
  .about-hero { grid-template-columns: 1fr; gap: 32px; }
}
.about-hero-media {
  position: relative; aspect-ratio: 4/5;
}
.about-hero-media > .ph { width: 100%; height: 100%; }
.about-hero-stamp {
  position: absolute; bottom: -22px; left: -22px;
  background: var(--bg, #f0ebe3);
  border: 1px solid var(--line);
  width: 110px; height: 110px; border-radius: 50%;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 4px; color: var(--olive);
  box-shadow: 0 8px 24px rgba(0,0,0,0.06);
}
@media (max-width: 600px) {
  .about-hero-stamp { width: 88px; height: 88px; bottom: -16px; left: -16px; }
  .about-hero-stamp span:last-child { font-size: 28px !important; }
}
.about-hero-text { padding-left: 8px; }

.about-gallery {
  display: grid; grid-template-columns: repeat(4, 1fr);
  grid-template-rows: 220px 220px;
  gap: 14px;
  margin: 32px 0 64px;
}
.about-gallery-item { position: relative; overflow: hidden; }
.about-gallery-item > .ph { width: 100%; height: 100%; }
.about-gallery-item.tall { grid-row: span 2; }
.about-gallery-item.wide { grid-column: span 2; }
@media (max-width: 900px) {
  .about-gallery {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: 180px 180px 180px;
  }
  .about-gallery-item.tall { grid-row: auto; }
  .about-gallery-item.wide { grid-column: span 2; }
}

.about-stats {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px;
  background: var(--bg-warm, #ebe5db);
  padding: 40px 32px;
  margin: 0 0 64px;
  border-radius: 4px;
}
@media (max-width: 700px) {
  .about-stats { grid-template-columns: repeat(2, 1fr); padding: 28px 20px; }
}
.about-stats .num {
  font-family: var(--serif); font-size: clamp(36px, 4vw, 56px); color: var(--olive); line-height: 1;
}
.about-stats .lbl {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.15em;
  text-transform: uppercase; color: var(--ink-mute); margin-top: 8px;
}

/* ===== Wholesale Gallery ===== */
.wholesale-gallery {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px;
  margin-top: 28px;
}
@media (max-width: 900px) { .wholesale-gallery { grid-template-columns: 1fr; } }
.wholesale-gallery-item { position: relative; }
.wholesale-gallery-item > .ph { width: 100%; aspect-ratio: 4/5; }
.wholesale-gallery-caption {
  padding: 16px 4px 0;
  display: flex; flex-direction: column; gap: 4px;
}
.wholesale-gallery-tag {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  color: var(--terra); text-transform: uppercase;
}
.wholesale-gallery-caption strong {
  font-family: var(--serif); font-size: 22px; font-weight: 400; color: var(--ink);
}
.wholesale-gallery-caption span:last-child {
  font-size: 13px; color: var(--ink-mute); line-height: 1.5;
}

/* ===== Wholesale · contacto directo ===== */
.wholesale-contact {
  margin: 32px 0 56px;
  background: var(--olive);
  border-radius: 10px;
  padding: 40px 36px;
  display: flex; flex-wrap: wrap; gap: 28px;
  align-items: center; justify-content: space-between;
}
.wholesale-contact-copy { max-width: 48ch; }
.wholesale-contact-copy h2 {
  color: var(--cream); font-family: var(--serif); font-weight: 400;
  font-size: clamp(26px, 3vw, 34px); margin: 12px 0 8px;
}
.wholesale-contact-copy p { color: rgba(250, 245, 234, 0.82); font-size: 15px; line-height: 1.6; }
.wholesale-contact-actions {
  display: flex; flex-direction: column; gap: 12px; min-width: 260px;
}
.wholesale-contact-actions .btn-whatsapp { justify-content: center; }
.wholesale-contact-link {
  display: inline-flex; align-items: center; gap: 10px;
  color: var(--cream); text-decoration: none; font-size: 14px;
  padding: 8px 4px; opacity: 0.9; transition: opacity 0.15s;
}
.wholesale-contact-link:hover { opacity: 1; text-decoration: underline; }
.wholesale-contact-link svg { width: 18px; height: 18px; flex-shrink: 0; }
@media (max-width: 720px) {
  .wholesale-contact { flex-direction: column; align-items: stretch; padding: 32px 24px; }
  .wholesale-contact-actions { min-width: 0; }
}

/* ===== Perks / descuentos (banner reutilizable) ===== */
/* Usa variables de tema, así funciona en claro, sepia y oscuro sin overrides. */
.perks-card {
  background: var(--bg-card);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px 20px;
  margin: 18px 0;
}
.perks-card--ready {
  border-color: var(--olive);
  box-shadow: inset 0 0 0 1px var(--olive);
}
.perks-card-head { display: flex; align-items: center; gap: 10px; font-size: 15px; color: var(--ink); }
.perks-card-head strong { font-weight: 600; }
.perks-card-ico {
  display: inline-flex; width: 28px; height: 28px; border-radius: 50%; flex-shrink: 0;
  align-items: center; justify-content: center;
  background: var(--bg-warm); color: var(--olive);
}
.perks-card--ready .perks-card-ico { background: var(--olive); color: var(--bg); }
.perks-card-ico svg { width: 15px; height: 15px; }
.perks-card-sub { color: var(--ink-mute); font-size: 12.5px; margin: 8px 0 12px; }
.perks-list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 9px; }
.perks-li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--ink-soft); }
.perks-li-ico { display: inline-flex; width: 22px; height: 22px; flex-shrink: 0; align-items: center; justify-content: center; color: var(--olive); }
.perks-li-ico svg { width: 15px; height: 15px; }
.perks-li-txt { flex: 1; }
.perks-li .link-mini { flex-shrink: 0; white-space: nowrap; }
.perks-li.done { color: var(--ink-mute); }
.perks-li.done .perks-li-txt { text-decoration: line-through; opacity: 0.75; }
.perks-li-check { display: inline-flex; color: var(--olive); }
.perks-li-check svg { width: 16px; height: 16px; }
.perks-card--compact { padding: 14px 16px; margin: 0; }
.perks-card--compact .perks-card-sub { display: none; }

/* ===== Events Banner ===== */
.events-banner {
  display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px;
  margin: 0 0 64px;
}
@media (max-width: 1100px) { .events-banner { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 560px) { .events-banner { grid-template-columns: 1fr; } }
.events-banner-item {
  position: relative; aspect-ratio: 4/5; overflow: hidden;
}
.events-banner-item > .ph { width: 100%; height: 100%; }
/* Patrón escalonado: 2ª y 4ª bajan para dar ritmo visual */
.events-banner-item:nth-child(2),
.events-banner-item:nth-child(4) { transform: translateY(28px); }
@media (max-width: 1100px) {
  .events-banner-item:nth-child(4) { transform: none; }
}
@media (max-width: 560px) {
  .events-banner-item:nth-child(2) { transform: none; }
}
.events-banner-tag {
  position: absolute; bottom: 16px; left: 16px;
  background: var(--bg); color: var(--ink);
  padding: 8px 14px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em; text-transform: uppercase;
  border: 1px solid var(--line);
}


/* ===== Subscription Moments ===== */
.sub-moments {
  margin: 0 0 64px;
}
.sub-moments-head {
  margin-bottom: 32px;
}
.sub-moments-grid {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px;
}
@media (max-width: 900px) {
  .sub-moments-grid { grid-template-columns: 1fr; gap: 32px; }
}
.sub-moment { margin: 0; }
.sub-moment-img {
  aspect-ratio: 4/5; position: relative; overflow: hidden;
  margin-bottom: 16px;
}
.sub-moment-img > .ph { width: 100%; height: 100%; }
.sub-moment figcaption {
  display: flex; flex-direction: column; gap: 4px;
}
.sub-moment-day {
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.2em;
  text-transform: uppercase; color: var(--terra);
}
.sub-moment figcaption strong {
  font-family: var(--serif); font-size: 24px; font-weight: 400; color: var(--ink);
  line-height: 1.2;
}
.sub-moment figcaption span:last-child {
  font-size: 14px; color: var(--ink-mute); line-height: 1.55; margin-top: 2px;
}


/* ===== Newsletter discount badge ===== */
.newsletter { position: relative; }
.newsletter-badge {
  position: absolute; top: 24px; right: 32px;
  width: 64px; height: 64px; border-radius: 50%;
  background: var(--terra); color: var(--cream);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--serif); font-style: italic; font-size: 22px;
  transform: rotate(-12deg);
  box-shadow: 0 6px 18px rgba(138, 74, 61, 0.25);
  letter-spacing: -0.02em;
}
.newsletter-badge::before {
  content: ''; position: absolute; inset: -4px; border-radius: 50%;
  border: 1px dashed rgba(138, 74, 61, 0.4);
}
@media (max-width: 600px) {
  .newsletter-badge { width: 52px; height: 52px; font-size: 18px; top: 16px; right: 16px; }
}


/* ====================================================================
   THEME SWITCH (segmented control en el header)
   ==================================================================== */
.theme-switch {
  display: inline-flex;
  align-items: center;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 100px;
  padding: 2px;
  background: var(--bg-card);
  margin-right: 4px;
}
.theme-switch-btn {
  width: 28px; height: 28px;
  border-radius: 100px;
  display: inline-flex; align-items: center; justify-content: center;
  background: transparent;
  color: var(--ink-mute);
  border: none;
  cursor: pointer;
  transition: background .18s, color .18s;
}
.theme-switch-btn:hover { color: var(--ink); }
.theme-switch-btn.active {
  background: var(--ink);
  color: var(--cream);
}
@media (max-width: 900px) {
  .theme-switch { display: none; }
}

/* ====================================================================
   THEMES — Light, Sepia, Dark
   Cada paleta es un sistema completo: bg, ink, line, accent, sombras.
   ==================================================================== */

:root { color-scheme: light; }

html { transition: background-color .3s ease; }
body, .nav-inner, .footer, .product-card, .service-card, .newsletter,
.lang-menu, .auth-overlay, .cart-drawer, .modal-overlay, .toast,
.input, .select, .textarea, .filter-group, .pdp-meta, .ph,
.btn, .btn-outline, .btn-primary, .chip, .ann-bar, .nav-link,
.lang-btn, .icon-btn, .theme-switch, .breadcrumb, .editorial-pill {
  transition: background-color .3s ease, color .3s ease, border-color .3s ease;
}

/* ════════════════════════════════════════════════════════════════════
   SEPIA — papel antiguo, tinta café, acento ámbar
   Inspirado en libros de botánica del s.XIX
   ════════════════════════════════════════════════════════════════════ */
:root[data-theme="sepia"] {
  color-scheme: light;
  --bg:           #ede0c4;
  --bg-warm:      #e3d4b1;
  --bg-card:      #f5ead0;
  --cream:        #f9f0d9;
  --ink:          #2b1d10;
  --ink-soft:     #4a3520;
  --ink-mute:     #8a6f4d;
  --line:         #c8b287;
  --line-soft:    #d8c69e;
  --olive:        #5a4818;     /* verde oliva más oscuro y dorado */
  --olive-dark:   #3e3010;
  --terra:        #a04818;     /* terracota más cobre */
  --blush:        #e8cfa0;
  --sand:         #d9c190;
}
:root[data-theme="sepia"] body {
  background:
    radial-gradient(ellipse at 20% 0%, rgba(160, 72, 24, 0.05), transparent 50%),
    radial-gradient(ellipse at 80% 100%, rgba(90, 72, 24, 0.06), transparent 50%),
    var(--bg);
}
:root[data-theme="sepia"] .nav {
  background: rgba(245, 234, 208, 0.92);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border-bottom-color: var(--line);
}
:root[data-theme="sepia"] .ann-bar,
:root[data-theme="sepia"] .announce {
  background: #2b1d10;
  color: #e3d4b1;
}
:root[data-theme="sepia"] .announce-dot { background: #a04818; }
:root[data-theme="sepia"] .footer {
  background: #2b1d10;
  color: #ede0c4;
}
:root[data-theme="sepia"] .footer a { color: #d9c190; }
:root[data-theme="sepia"] .footer a:hover { color: #e8cfa0; }
:root[data-theme="sepia"] .product-card,
:root[data-theme="sepia"] .service-card,
:root[data-theme="sepia"] .pdp-meta,
:root[data-theme="sepia"] .newsletter,
:root[data-theme="sepia"] .lang-menu,
:root[data-theme="sepia"] .filter-group {
  background: var(--bg-card);
  box-shadow: 0 1px 0 rgba(43, 29, 16, 0.04);
}
:root[data-theme="sepia"] .ph {
  filter: sepia(0.35) saturate(0.85) hue-rotate(-5deg) brightness(0.97);
}
:root[data-theme="sepia"] .ph::after {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(ellipse at center, transparent 60%, rgba(43, 29, 16, 0.08));
  pointer-events: none;
}
:root[data-theme="sepia"] .input,
:root[data-theme="sepia"] .select,
:root[data-theme="sepia"] .textarea {
  background: var(--bg-card);
  border-color: var(--line);
}
:root[data-theme="sepia"] .input:focus,
:root[data-theme="sepia"] .select:focus,
:root[data-theme="sepia"] .textarea:focus {
  border-color: var(--olive);
}
:root[data-theme="sepia"] .btn-primary {
  background: var(--olive);
  color: var(--cream);
}
:root[data-theme="sepia"] .btn-primary:hover {
  background: var(--olive-dark);
}
:root[data-theme="sepia"] .ph-label {
  background: rgba(245, 234, 208, 0.92);
  color: var(--ink-soft);
}
:root[data-theme="sepia"] .theme-switch {
  background: var(--bg-card);
  border-color: var(--line);
}
:root[data-theme="sepia"] .theme-switch-btn.active {
  background: var(--ink);
  color: var(--cream);
}
:root[data-theme="sepia"] .pdp-price {
  color: var(--olive-dark);
}
:root[data-theme="sepia"] .badge,
:root[data-theme="sepia"] .editorial-pill {
  background: rgba(43, 29, 16, 0.06);
  color: var(--ink-soft);
}
:root[data-theme="sepia"] em,
:root[data-theme="sepia"] i { color: var(--terra); }


/* ════════════════════════════════════════════════════════════════════
   DARK — taller de noche, tinta verde sobre carbón cálido
   Carbón cálido (no negro puro), oliva luminoso, terracota suave
   ════════════════════════════════════════════════════════════════════ */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg:           #14130f;
  --bg-warm:      #1c1a16;
  --bg-card:      #1f1d18;
  --cream:        #ece4d2;
  --ink:          #ece4d2;
  --ink-soft:     #c8bfa7;
  --ink-mute:     #8a8270;
  --line:         #2d2a23;
  --line-soft:    #232019;
  --olive:        #b3c47a;     /* oliva más luminoso */
  --olive-dark:   #d0dc9a;
  --terra:        #d18964;     /* terracota cálido */
  --blush:        #2d2520;
  --sand:         #28241d;
}
:root[data-theme="dark"] body {
  background:
    radial-gradient(ellipse at 25% -10%, rgba(179, 196, 122, 0.06), transparent 55%),
    radial-gradient(ellipse at 75% 100%, rgba(209, 137, 100, 0.04), transparent 55%),
    var(--bg);
  color: var(--ink);
}
:root[data-theme="dark"] .nav {
  background: rgba(20, 19, 15, 0.88);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .nav-inner {
  border-bottom-color: var(--line);
}
:root[data-theme="dark"] .ann-bar,
:root[data-theme="dark"] .announce {
  background: #0c0b09;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}
:root[data-theme="dark"] .announce-dot { background: var(--olive); }
:root[data-theme="dark"] .footer {
  background: #0a0907;
  color: var(--cream);
  border-top: 1px solid var(--line);
}
:root[data-theme="dark"] .footer a { color: var(--ink-soft); }
:root[data-theme="dark"] .footer a:hover { color: var(--olive); }

/* Cards y superficies */
:root[data-theme="dark"] .product-card,
:root[data-theme="dark"] .service-card,
:root[data-theme="dark"] .pdp-meta,
:root[data-theme="dark"] .newsletter,
:root[data-theme="dark"] .filter-group,
:root[data-theme="dark"] .editorial-card,
:root[data-theme="dark"] .plan-card {
  background: var(--bg-card);
  border-color: var(--line);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.02), 0 24px 48px -24px rgba(0, 0, 0, 0.6);
}
:root[data-theme="dark"] .product-card:hover,
:root[data-theme="dark"] .service-card:hover {
  border-color: var(--olive);
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.03), 0 32px 60px -28px rgba(0, 0, 0, 0.7);
}

/* Drawers / modales */
:root[data-theme="dark"] .cart-drawer,
:root[data-theme="dark"] .lang-menu,
:root[data-theme="dark"] .auth-overlay > div,
:root[data-theme="dark"] .modal-overlay > div,
:root[data-theme="dark"] .modal,
:root[data-theme="dark"] .search-overlay {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .auth-overlay,
:root[data-theme="dark"] .modal-overlay,
:root[data-theme="dark"] .cart-overlay {
  background: rgba(0, 0, 0, 0.72);
}

/* Inputs */
:root[data-theme="dark"] .input,
:root[data-theme="dark"] .select,
:root[data-theme="dark"] .textarea {
  background: rgba(255, 255, 255, 0.03);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .input::placeholder,
:root[data-theme="dark"] .textarea::placeholder { color: var(--ink-mute); }
:root[data-theme="dark"] .input:focus,
:root[data-theme="dark"] .select:focus,
:root[data-theme="dark"] .textarea:focus {
  border-color: var(--olive);
  background: rgba(255, 255, 255, 0.05);
}

/* Botones */
:root[data-theme="dark"] .btn-primary {
  background: var(--olive);
  color: #14130f;
}
:root[data-theme="dark"] .btn-primary:hover {
  background: var(--olive-dark);
}
:root[data-theme="dark"] .btn-outline {
  border-color: var(--ink-soft);
  color: var(--ink);
  background: transparent;
}
:root[data-theme="dark"] .btn-outline:hover {
  background: var(--ink);
  color: var(--bg);
}
:root[data-theme="dark"] .btn-terra {
  background: var(--terra);
  color: #14130f;
}

/* Chips, badges y tags */
:root[data-theme="dark"] .chip {
  background: rgba(255, 255, 255, 0.04);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .chip.active {
  background: var(--olive);
  color: var(--bg);
  border-color: var(--olive);
}
:root[data-theme="dark"] .badge,
:root[data-theme="dark"] .editorial-pill,
:root[data-theme="dark"] .ph-label {
  background: rgba(20, 19, 15, 0.85);
  color: var(--ink-soft);
  border-color: var(--line);
}

/* Imágenes / placeholders */
:root[data-theme="dark"] .ph {
  filter: brightness(0.78) saturate(0.92) contrast(1.05);
}
:root[data-theme="dark"] .ph.blush { background-color: #2d2520; }
:root[data-theme="dark"] .ph.sand { background-color: #28241d; }
:root[data-theme="dark"] .ph.olive { background-color: #232a18; }
:root[data-theme="dark"] .ph.cream { background-color: #1f1d18; }

/* Gradiente sutil sobre placeholders sin foto */
:root[data-theme="dark"] .ph:not(.ph-photo)::before {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,0.03), transparent 60%);
  pointer-events: none;
}

/* Theme switch en oscuro */
:root[data-theme="dark"] .theme-switch {
  background: rgba(255, 255, 255, 0.03);
  border-color: var(--line);
}
:root[data-theme="dark"] .theme-switch-btn { color: var(--ink-mute); }
:root[data-theme="dark"] .theme-switch-btn:hover { color: var(--ink); }
:root[data-theme="dark"] .theme-switch-btn.active {
  background: var(--olive);
  color: var(--bg);
}

/* Nav links */
:root[data-theme="dark"] .nav-link { color: var(--ink-soft); }
:root[data-theme="dark"] .nav-link:hover { color: var(--olive); }
:root[data-theme="dark"] .nav-link.active { color: var(--ink); }
:root[data-theme="dark"] .nav-link.active::after { background: var(--olive); }

/* Lang button + menu */
:root[data-theme="dark"] .lang-btn {
  color: var(--ink-soft);
  border-color: var(--line);
}
:root[data-theme="dark"] .lang-btn:hover {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--ink-soft);
  color: var(--ink);
}
:root[data-theme="dark"] .lang-item:hover { background: rgba(255, 255, 255, 0.05); }
:root[data-theme="dark"] .lang-item.active { background: rgba(179, 196, 122, 0.12); color: var(--olive); }

/* Iconos del header */
:root[data-theme="dark"] .icon-btn { color: var(--ink-soft); }
:root[data-theme="dark"] .icon-btn:hover {
  background: rgba(255, 255, 255, 0.05);
  color: var(--ink);
}

/* Precios / serif accents */
:root[data-theme="dark"] .pdp-price { color: var(--olive); }
:root[data-theme="dark"] em,
:root[data-theme="dark"] i { color: var(--terra); }
:root[data-theme="dark"] h1 em,
:root[data-theme="dark"] h2 em { color: var(--terra); }

/* Newsletter badge — terracota cálido sobre fondo oscuro */
:root[data-theme="dark"] .newsletter-badge {
  background: var(--terra);
  color: #14130f;
  box-shadow: 0 6px 24px rgba(209, 137, 100, 0.25);
}

/* Sliders / range / accent */
:root[data-theme="dark"] input[type="range"] { accent-color: var(--olive); }
:root[data-theme="dark"] .filter-item input { accent-color: var(--olive); }
:root[data-theme="dark"] .filter-item:hover { color: var(--olive); }

/* Toast */
:root[data-theme="dark"] .toast {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .toast.success { border-color: var(--olive); }
:root[data-theme="dark"] .toast.error { border-color: var(--terra); }

/* Breadcrumb */
:root[data-theme="dark"] .breadcrumb,
:root[data-theme="dark"] .breadcrumb a { color: var(--ink-mute); }
:root[data-theme="dark"] .breadcrumb a:hover { color: var(--ink); }

/* Mobile menu */
:root[data-theme="dark"] .mobile-menu {
  background: var(--bg);
}
:root[data-theme="dark"] .mobile-menu-link {
  border-bottom-color: var(--line);
  color: var(--ink);
}

/* WhatsApp FAB en oscuro */
:root[data-theme="dark"] .wa-fab-bubble {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line);
}
:root[data-theme="dark"] .wa-fab-close { color: var(--ink-mute); }
:root[data-theme="dark"] .wa-fab-close:hover { color: var(--ink); }

/* Reseñas / estrellas */
:root[data-theme="dark"] .star.filled { color: #e8c14a; }
:root[data-theme="dark"] .star { color: var(--line); }

/* Hover product card foto: oscurecer menos para que se vea bien */
:root[data-theme="dark"] .product-card .ph-overlay {
  background: rgba(20, 19, 15, 0.7);
}

/* Dividers */
:root[data-theme="dark"] hr,
:root[data-theme="dark"] .divider-soft {
  border-color: var(--line);
}

/* Tweaks panel en oscuro */
:root[data-theme="dark"] .tweaks-panel {
  background: var(--bg-card);
  color: var(--ink);
  border-color: var(--line);
}


/* Plan featured en oscuro: el oliva claro choca demasiado, suavizar */
:root[data-theme="dark"] .plan.featured {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--olive);
  box-shadow: 0 0 0 1px var(--olive), 0 32px 60px -28px rgba(0, 0, 0, 0.7);
}
:root[data-theme="dark"] .plan.featured h3,
:root[data-theme="dark"] .plan.featured .plan-price { color: var(--ink); }
:root[data-theme="dark"] .plan.featured .plan-feature {
  border-color: var(--line);
  color: var(--ink-soft);
}
:root[data-theme="dark"] .plan-ribbon {
  background: var(--terra);
  color: #14130f;
}
:root[data-theme="dark"] .plan.featured .btn-primary {
  background: var(--olive);
  color: #14130f;
}

/* Sepia - plan featured también */
:root[data-theme="sepia"] .plan.featured {
  background: var(--olive);
  color: var(--cream);
  border-color: var(--olive-dark);
}
:root[data-theme="sepia"] .plan.featured h3,
:root[data-theme="sepia"] .plan.featured .plan-price,
:root[data-theme="sepia"] .plan.featured .plan-feature { color: var(--cream); }
:root[data-theme="sepia"] .plan.featured .btn-primary {
  background: var(--cream);
  color: var(--olive);
}

/* Wholesale card en oscuro */
:root[data-theme="dark"] .wholesale-card {
  background: var(--bg-card);
  color: var(--ink);
  border: 1px solid var(--line);
}

/* Wholesale hero + contacto en oscuro: en este tema el oliva es un acento
   LUMINOSO, no un fondo. Si lo usamos de fondo, el texto claro encima no se
   lee. Pasamos a un carbón verdoso con texto claro y acentos en oliva. */
:root[data-theme="dark"] .wholesale-hero {
  background: linear-gradient(135deg, #1b211a, #14130f);
  color: var(--ink);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .wholesale-hero::before {
  background: radial-gradient(ellipse at 80% 50%, rgba(179, 196, 122, 0.12), transparent 55%);
}
:root[data-theme="dark"] .wholesale-hero h1 { color: var(--cream); }
:root[data-theme="dark"] .wholesale-hero h1 em { color: var(--olive); }
:root[data-theme="dark"] .wholesale-hero p { color: var(--ink-soft); }
/* La eyebrow y su punto llevan color inline (var(--sand)); en oscuro sand es
   casi negro y desaparece, así que lo forzamos a oliva luminoso. */
:root[data-theme="dark"] .wholesale-hero .eyebrow { color: var(--olive) !important; }
:root[data-theme="dark"] .wholesale-hero .eyebrow span { background: var(--olive) !important; }
:root[data-theme="dark"] .wholesale-stats .stat { border-top-color: var(--line); }
:root[data-theme="dark"] .wholesale-stats .stat b { color: var(--olive); }
:root[data-theme="dark"] .wholesale-stats .stat span { color: var(--ink-mute); }

:root[data-theme="dark"] .wholesale-contact {
  background: linear-gradient(135deg, #1b211a, #14130f);
  border: 1px solid var(--line);
}
:root[data-theme="dark"] .wholesale-contact-copy h2 { color: var(--cream); }
:root[data-theme="dark"] .wholesale-contact-copy p { color: var(--ink-soft); }
:root[data-theme="dark"] .wholesale-contact .eyebrow { color: var(--olive) !important; }
:root[data-theme="dark"] .wholesale-contact .eyebrow span { background: var(--olive) !important; }
:root[data-theme="dark"] .wholesale-contact-link { color: var(--ink-soft); }
:root[data-theme="dark"] .wholesale-contact-link:hover { color: var(--olive); }

/* Hero floating circle */
:root[data-theme="dark"] .hero-meta {
  background: var(--bg-card);
  color: var(--ink-soft);
  border: 1px solid var(--line);
}
:root[data-theme="sepia"] .hero-meta {
  background: var(--bg-card);
  color: var(--ink-soft);
}

/* Account nav active */
:root[data-theme="dark"] .account-nav button { color: var(--ink-soft); }
:root[data-theme="dark"] .account-nav button:hover { background: rgba(255,255,255,0.04); color: var(--ink); }
:root[data-theme="dark"] .account-nav button.active {
  background: var(--olive);
  color: #14130f;
}

/* Frequency toggle (semanal/quincenal/mensual) */
:root[data-theme="dark"] .freq-toggle {
  background: rgba(255, 255, 255, 0.04);
  border-color: var(--line);
}
:root[data-theme="dark"] .freq-toggle button { color: var(--ink-soft); }
:root[data-theme="dark"] .freq-toggle button.active {
  background: var(--olive);
  color: #14130f;
}

/* Tags / .tag en oscuro: oliva luminoso sobre carbón */
:root[data-theme="dark"] .product-card .tag {
  background: var(--olive);
  color: #14130f;
}

/* Auth modal in dark */
:root[data-theme="dark"] .modal {
  background: var(--bg-card);
  color: var(--ink);
}

/* ===== Auth error inline ===== */
.auth-error {
  background: #fde8e6;
  color: #8a1f1a;
  border: 1px solid #f1b9b3;
  border-radius: 10px;
  padding: 14px 16px;
  font-size: 14px; line-height: 1.4;
  display: flex; align-items: flex-start; gap: 10px;
  animation: toast-in .22s cubic-bezier(.2,.8,.2,1);
}
.auth-error svg { flex: 0 0 auto; margin-top: 1px; color: #c0392b; }
.auth-error span { flex: 1; }
:root[data-theme="dark"] .auth-error {
  background: #3a1c1a;
  color: #f5b8b1;
  border-color: #5e2a25;
}

/* ===== Nav user dropdown ===== */
.user-wrap { position: relative; display: inline-flex; }
.user-admin-dot {
  position: absolute; top: 4px; right: 4px;
  width: 8px; height: 8px; border-radius: 50%;
  background: #2c5e2f;
  box-shadow: 0 0 0 2px var(--bg, #fff);
}
.user-menu {
  position: absolute; top: calc(100% + 8px); right: 0;
  min-width: 240px;
  background: var(--bg-card, #fff);
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 12px 36px rgba(0,0,0,0.14), 0 2px 6px rgba(0,0,0,0.06);
  padding: 8px;
  z-index: 60;
  animation: toast-in .18s ease;
}
.user-menu-head {
  padding: 10px 12px 12px;
  border-bottom: 1px solid var(--line-soft, #eee);
  margin-bottom: 6px;
  display: flex; flex-direction: column; gap: 2px;
}
.user-menu-head strong {
  font-family: var(--serif); font-size: 16px; line-height: 1.2;
  color: var(--ink);
}
.user-menu-head small {
  font-family: var(--mono); font-size: 11px;
  color: var(--ink-mute); letter-spacing: 0.04em;
}
.user-menu-head .badge-admin {
  align-self: flex-start;
  margin-top: 6px;
  font-family: var(--mono); font-size: 10px; letter-spacing: 0.12em;
  background: #2c5e2f; color: #fff;
  padding: 3px 8px; border-radius: 4px;
}
.user-menu-item {
  display: flex; align-items: center; gap: 10px;
  width: 100%; text-align: left;
  padding: 10px 12px;
  background: transparent; border: 0;
  font-size: 14px; color: var(--ink);
  cursor: pointer; border-radius: 8px;
  text-decoration: none;
  font-family: inherit;
}
.user-menu-item:hover { background: var(--bg-warm, #f6f1ea); }
.user-menu-item svg { width: 16px; height: 16px; color: var(--ink-soft); }
.user-menu-item--admin {
  background: #eaf6ec;
  color: #1f4823;
  margin: 4px 0;
}
.user-menu-item--admin:hover { background: #d8edda; }
.user-menu-item--admin svg { color: #2c5e2f; }
.user-menu-item--danger { color: #b85042; }
.user-menu-item--danger:hover { background: #fbe9e8; }
.user-menu-item--danger svg { color: #b85042; }

/* Foco visible por teclado también en campos de formulario (WCAG 2.4.7).
   Va al final del archivo para ganar por orden a los `:focus { outline: none }`. */
.input:focus-visible, .select:focus-visible, .textarea:focus-visible,
.search-input:focus-visible, .qty input:focus-visible,
.extra-textarea:focus-visible, .addr-sug-item:focus-visible {
  outline: 2px solid var(--olive); outline-offset: 2px;
}
