/* ============================================================
   HENKO · Sistema de diseño
   Editorial · Japonés cálido · Lujo silencioso
   ============================================================ */

/* ------- Variables ------- */
:root {
  /* Color */
  --bg:              #F7F4EF;
  --surface:         #FBFAF7;
  --beige-humo:      #EDE8DF;
  --beige-medio:     #E5DDD2;
  --line:            #DDD4C8;
  --text:            #24211E;
  --text-2:          #7C756D;
  --text-3:          #A59B91;
  --accent:          #6F8791;  /* azul humo Henko */
  --azul-pal:        #EDF1F3;
  --lavanda:         #C9C0D6;
  --pistacho:        #AAB89D;
  --black-warm:      #1C1A18;

  /* Tipografía */
  --serif: 'Cormorant Garamond', 'Times New Roman', serif;
  --sans:  'DM Sans', 'Helvetica Neue', sans-serif;

  /* Layout */
  --maxw: 1320px;
  --maxw-narrow: 920px;
  --pad-x: clamp(20px, 5vw, 64px);
  --section-y: clamp(80px, 12vh, 140px);

  /* Sombras y radios */
  --radius: 2px;
  --radius-lg: 4px;
  --shadow-sm: 0 1px 2px rgba(36,33,30,0.04);
  --shadow-md: 0 18px 50px -20px rgba(36,33,30,0.18);

  /* Transiciones */
  --ease: cubic-bezier(.4, .14, .3, 1);
  --t-fast: 180ms var(--ease);
  --t-med:  320ms var(--ease);
  --t-slow: 560ms var(--ease);
}

/* ------- Reset ------- */
*, *::before, *::after { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  margin: 0;
  font-family: var(--sans);
  font-weight: 400;
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
img { display: block; max-width: 100%; height: auto; }
button { font: inherit; cursor: pointer; background: none; border: none; padding: 0; color: inherit; }
a { color: inherit; text-decoration: none; transition: color var(--t-fast); }
a:hover { color: var(--accent); }
p { margin: 0 0 1em; }

/* ============================================================
   TIPOGRAFÍA
   ============================================================ */
.display {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(2.4rem, 5.8vw, 4.4rem);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 0.7em;
}
.display em {
  font-style: italic;
  font-weight: 300;
  color: var(--text);
}
.eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 1.6rem;
}
.lede, .section-lede {
  font-family: var(--sans);
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 56ch;
}
.section-lede { margin: 0 auto; text-align: center; }

/* ============================================================
   BOTONES
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 30px;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  border: 1px solid transparent;
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-med);
  white-space: nowrap;
}
.btn-primary {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.btn-primary:hover {
  background: var(--black-warm);
  color: var(--surface);
  letter-spacing: 0.22em;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--line);
}
.btn-ghost:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}
.btn-sm { padding: 10px 20px; font-size: 10px; }
.btn-lg { padding: 18px 38px; font-size: 12px; }
.btn-block { width: 100%; }

.btn-link {
  display: inline-block;
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  color: var(--text);
  border-bottom: 1px solid var(--line);
  padding-bottom: 4px;
  transition: all var(--t-fast);
}
.btn-link:hover {
  color: var(--accent);
  border-bottom-color: var(--accent);
}

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(247, 244, 239, 0.86);
  backdrop-filter: blur(14px) saturate(120%);
  -webkit-backdrop-filter: blur(14px) saturate(120%);
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-med), background var(--t-med);
}
.site-header.is-scrolled {
  border-bottom-color: var(--line);
  background: rgba(247, 244, 239, 0.95);
}
.header-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 20px var(--pad-x);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  transition: padding var(--t-med);
}
.site-header.is-scrolled .header-inner {
  padding: 14px var(--pad-x);
}
.logo-link {
  display: inline-flex;
  align-items: center;
  flex-shrink: 0;
  /* Compensación óptica: el logo PNG tiene aire arriba/abajo */
  margin: -6px 0;
}
.logo-img {
  height: 72px;
  width: auto;
  max-width: 280px;
  display: block;
  object-fit: contain;
  transition: height var(--t-med);
}
/* Logo se reduce ligeramente al scrollear para mantener compacto el header */
.site-header.is-scrolled .logo-img {
  height: 56px;
}

.nav-desktop {
  display: flex;
  gap: 30px;
  align-items: center;
}
.nav-desktop a {
  font-size: 13px;
  font-weight: 400;
  color: var(--text);
  position: relative;
  padding: 4px 0;
}
.nav-desktop a::after {
  content: '';
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 1px;
  background: var(--text);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform var(--t-med);
}
.nav-desktop a:hover::after { transform: scaleX(1); }

.header-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.cart-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text);
  padding: 8px 0;
  border-bottom: 1px solid transparent;
  transition: border-color var(--t-fast);
}
.cart-toggle:hover { border-bottom-color: var(--text); }
.cart-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  background: var(--text);
  color: var(--surface);
  border-radius: 50%;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0;
}

.menu-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  width: 28px;
  padding: 6px;
}
.menu-toggle span {
  display: block;
  width: 100%;
  height: 1px;
  background: var(--text);
  transition: all var(--t-med);
}
.menu-toggle.is-open span:nth-child(1) { transform: translateY(6px) rotate(45deg); }
.menu-toggle.is-open span:nth-child(2) { opacity: 0; }
.menu-toggle.is-open span:nth-child(3) { transform: translateY(-6px) rotate(-45deg); }

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 20px var(--pad-x) 40px;
  border-top: 1px solid var(--line);
  background: var(--bg);
}
.nav-mobile a {
  font-family: var(--serif);
  font-size: 28px;
  font-weight: 300;
  padding: 14px 0;
  border-bottom: 1px solid var(--beige-humo);
}
.nav-mobile.is-open { display: flex; }

/* ============================================================
   SECCIONES — base
   ============================================================ */
.section {
  padding: var(--section-y) var(--pad-x);
  max-width: var(--maxw);
  margin: 0 auto;
}
.section-head {
  text-align: center;
  margin-bottom: clamp(48px, 7vw, 80px);
}
.section-head .display { margin: 0 auto 0.6em; }
.section-head .eyebrow { display: block; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  padding: clamp(60px, 9vw, 110px) var(--pad-x) var(--section-y);
  max-width: var(--maxw);
  margin: 0 auto;
}
.hero-grid {
  display: grid;
  grid-template-columns: 1.1fr 0.9fr;
  gap: clamp(40px, 7vw, 100px);
  align-items: center;
}
.hero-text { animation: fadeUp 900ms var(--ease) both; }
.hero-text .display {
  font-size: clamp(2.6rem, 6.8vw, 5.6rem);
  line-height: 1.0;
  margin-bottom: 0.7em;
}
.hero-text .lede {
  font-size: clamp(16px, 1.6vw, 19px);
  margin-bottom: 2.4em;
  max-width: 44ch;
}
.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 3rem;
}
.hero-meta {
  display: flex;
  align-items: center;
  gap: 18px;
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.hero-meta span:first-child {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--text-2);
}
.thin-line {
  flex: 0 0 60px;
  height: 1px;
  background: var(--line);
}

.hero-visual { animation: fadeUp 900ms var(--ease) 160ms both; }
.hero-img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 5;
  object-fit: cover;
  object-position: center;
  border-radius: var(--radius-lg);
}

@keyframes fadeUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ============================================================
   CURADURÍA
   ============================================================ */
.pillars {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: clamp(24px, 3vw, 48px);
  border-top: 1px solid var(--line);
  padding-top: clamp(40px, 5vw, 64px);
}
.pillar {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.pillar-num {
  font-family: var(--serif);
  font-style: italic;
  font-size: 22px;
  color: var(--accent);
  font-weight: 400;
}
.pillar h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0;
  color: var(--text);
}
.pillar p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  margin: 0;
}

/* ============================================================
   QUIZ
   ============================================================ */
.quiz {
  background: var(--beige-humo);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: var(--section-y) var(--pad-x);
}
.quiz-inner {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  text-align: center;
}
.quiz-head { margin-bottom: clamp(48px, 6vw, 72px); }
.quiz-head .section-lede { text-align: center; }

.quiz-steps {
  list-style: none;
  padding: 0;
  margin: 0 0 clamp(40px, 5vw, 60px);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding-top: 32px;
  padding-bottom: 32px;
}
.quiz-steps li {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  text-align: left;
}
.step-num {
  font-family: var(--serif);
  font-size: 32px;
  font-weight: 300;
  font-style: italic;
  color: var(--accent);
}
.step-text {
  font-size: 13px;
  line-height: 1.5;
  color: var(--text);
}

/* ============================================================
   RUTINAS
   ============================================================ */
.rutinas-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.rutina-card {
  background: var(--surface);
  padding: clamp(28px, 3vw, 44px);
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-height: 320px;
  transition: background var(--t-med), transform var(--t-med);
  /* Reset estilo nativo de button */
  border: none;
  text-align: left;
  font: inherit;
  color: inherit;
  cursor: pointer;
  width: 100%;
  font-family: var(--sans);
}
.rutina-card:hover {
  background: var(--beige-humo);
  transform: translateY(-2px);
}
.rutina-tag {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 12px;
}
.rutina-card h3 {
  font-family: var(--serif);
  font-weight: 300;
  font-size: clamp(28px, 3vw, 38px);
  margin: 0;
  letter-spacing: -0.01em;
}
.rutina-card p {
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-2);
  flex: 1;
  margin: 0;
}
.rutina-card .btn-link { margin-top: auto; align-self: flex-start; }
.rutina-meta {
  margin-top: auto;
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  font-weight: 500;
}

/* ============================================================
   CATÁLOGO
   ============================================================ */
.filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 4px;
  margin-bottom: clamp(40px, 5vw, 64px);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
}
.filter {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  color: var(--text-2);
  border-radius: var(--radius);
  transition: all var(--t-fast);
  white-space: nowrap;
}
.filter:hover { color: var(--text); }
.filter.is-active {
  background: var(--text);
  color: var(--surface);
}

.catalog-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.product-card {
  background: var(--surface);
  display: flex;
  flex-direction: column;
  padding: 24px;
  transition: background var(--t-med);
  position: relative;
}
.product-card.is-hidden { display: none; }
.product-card:hover { background: var(--beige-humo); }
.card-img-wrap {
  width: 100%;
  aspect-ratio: 1 / 1;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  margin-bottom: 22px;
  border: 1px solid var(--beige-humo);
  border-radius: var(--radius);
  transition: background var(--t-med);
}
.product-card:hover .card-img-wrap { background: #fff; }
.card-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}
.card-brand {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
  margin-bottom: 8px;
}
.card-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 19px;
  line-height: 1.25;
  color: var(--text);
  margin: 0 0 10px;
  min-height: 2.5em;
}
.card-type {
  font-size: 12px;
  color: var(--text-2);
  margin: 0 0 14px;
  line-height: 1.4;
}
.card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 16px;
}
.card-tag {
  font-size: 10px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
  padding: 4px 10px;
  border: 1px solid var(--line);
  border-radius: 24px;
}
.card-price {
  font-family: var(--serif);
  font-size: 22px;
  font-weight: 400;
  color: var(--text);
  margin: auto 0 18px;
  padding-top: 14px;
  border-top: 1px solid var(--beige-humo);
}
.card-actions {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.card-actions .btn { padding: 11px 18px; font-size: 10px; }

/* ============================================================
   ORIGINALIDAD
   ============================================================ */
.originalidad {
  background: var(--text);
  color: var(--surface);
  max-width: none;
  width: 100%;
  margin: 0;
  padding: var(--section-y) var(--pad-x);
}
.originalidad-inner {
  max-width: var(--maxw-narrow);
  margin: 0 auto;
  text-align: center;
}
.originalidad .eyebrow { color: var(--text-3); }
.originalidad .display { color: var(--surface); }
.originalidad .display em { color: var(--surface); }
.originalidad .section-lede { color: var(--beige-medio); margin: 0 auto 2.5rem; }
.trust-tags {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 2rem;
}
.trust-tag {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  padding: 10px 18px;
  border: 1px solid rgba(229, 221, 210, 0.3);
  border-radius: 24px;
  color: var(--surface);
}

/* ============================================================
   ENVÍOS
   ============================================================ */
.envios-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
}
.envios-block {
  background: var(--surface);
  padding: clamp(28px, 3vw, 40px);
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.envios-block h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 0 0 6px;
  color: var(--text);
}
.envios-block p {
  margin: 0;
  font-size: 14px;
  color: var(--text-2);
  line-height: 1.6;
}

/* ============================================================
   HISTORIA
   ============================================================ */
/* ============================================================
   HISTORIA · layout split con stamp lateral
   ============================================================ */
.historia { text-align: left; }
.historia-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: clamp(40px, 8vw, 120px);
  align-items: center;
  max-width: 1100px;
  margin: 0 auto;
}
.historia-inner {
  max-width: 540px;
}
.historia-inner .eyebrow { display: block; margin-bottom: 1.4rem; }
.historia-inner .display { text-align: left; margin: 0 0 2rem; }
.historia-text {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(18px, 1.7vw, 21px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 38em;
  margin: 0;
  font-weight: 300;
}
.historia-stamp {
  margin: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  position: relative;
}
.historia-stamp img {
  max-width: 100%;
  max-height: clamp(360px, 50vw, 540px);
  width: auto;
  height: auto;
  opacity: 0.95;
}
.historia-stamp::before {
  content: '';
  position: absolute;
  inset: -20px;
  background: radial-gradient(
    ellipse at center,
    rgba(247, 244, 239, 0) 30%,
    rgba(247, 244, 239, 0.6) 80%
  );
  pointer-events: none;
  z-index: -1;
}

/* ============================================================
   TESTIMONIOS
   ============================================================ */
/* ── Experiencias reales — nueva estructura ── */
.testimonios-layout {
  display: grid;
  grid-template-columns: 60% 40%;
  gap: clamp(24px, 4vw, 56px);
  align-items: start;
}
/* Video de Gloria */
.gloria-wrap {
  display: flex;
  flex-direction: column;
  gap: 20px;
}
/* Gloria — video local HTML5 */
.gloria-video-frame {
  position: relative;
  width: 100%;
  max-width: 320px;
  margin: 0 auto;
  border-radius: 4px;
  overflow: hidden;
  aspect-ratio: 9 / 16;
  background: var(--beige-humo);
}
.gloria-video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
  display: block;
  /* Controles nativos del navegador — mínimos y funcionales */
  border-radius: 4px;
}
/* Estilo editorial de los controles nativos donde es posible */
.gloria-video:focus {
  outline: 1px solid var(--line);
}
.gloria-text-block {
  display: flex;
  flex-direction: column;
  gap: 8px;
  max-width: 320px;
  margin: 0 auto;
}
.gloria-quote {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  font-weight: 400;
  color: var(--text);
  line-height: 1.5;
  margin: 0;
}
.gloria-desc {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-3);
  line-height: 1.65;
  margin: 0;
}
.gloria-source {
  font-size: 10px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  opacity: 0.6;
}
/* Cards de comentarios */
.testimonios-cards {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.testimonio {
  background: var(--surface);
  border: 1px solid var(--line);
  padding: clamp(20px, 2.5vw, 32px);
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.testimonio-stars {
  display: flex;
  gap: 2px;
  color: var(--smoke-azul);
  font-size: 14px;
  line-height: 1;
}
.testimonio p {
  font-family: var(--serif);
  font-style: italic;
  font-size: 16px;
  line-height: 1.55;
  color: var(--text);
  margin: 0;
  font-weight: 400;
}
.testimonio cite {
  font-style: normal;
  font-size: 11px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--text-3);
}
.testimonio-pill {
  display: inline-block;
  width: fit-content;
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--smoke-azul);
  background: var(--smoke-azul-pale, #EDF1F3);
  padding: 3px 10px;
  border-radius: 99px;
}
/* Subtítulo y nota de privacidad */
.testimonios-subtitle {
  font-size: 13px;
  font-weight: 300;
  color: var(--text-3);
  margin-top: 6px;
  margin-bottom: 40px;
  max-width: 58ch;
}
.testimonios-privacy {
  font-size: 11px;
  font-weight: 300;
  color: var(--text-3);
  opacity: 0.55;
  margin-top: 32px;
  text-align: left;
}
/* Responsive testimonios */
@media (max-width: 860px) {
  .testimonios-layout {
    grid-template-columns: 1fr;
  }
  .gloria-video-frame {
    max-width: 280px;
  }
}

/* ============================================================
   FAQ
   ============================================================ */
.faq-list {
  max-width: 800px;
  margin: 0 auto;
  border-top: 1px solid var(--line);
}
.faq-item {
  border-bottom: 1px solid var(--line);
  padding: 22px 0;
}
.faq-item summary {
  font-family: var(--serif);
  font-size: clamp(18px, 2vw, 22px);
  font-weight: 400;
  color: var(--text);
  cursor: pointer;
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  padding-right: 4px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: '+';
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 300;
  color: var(--text-3);
  transition: transform var(--t-med);
  flex-shrink: 0;
}
.faq-item[open] summary::after { transform: rotate(45deg); color: var(--text); }
.faq-item p {
  margin: 16px 0 0;
  font-size: 15px;
  line-height: 1.7;
  color: var(--text-2);
  max-width: 64ch;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final { text-align: center; padding-bottom: calc(var(--section-y) * 1.2); }
.cta-final-inner { max-width: 720px; margin: 0 auto; display: flex; flex-direction: column; align-items: center; }
.cta-final .display { margin-bottom: 2rem; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black-warm);
  color: var(--beige-medio);
  padding: clamp(60px, 8vw, 100px) var(--pad-x) 0;
}
.footer-inner {
  max-width: var(--maxw);
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1.2fr 2fr;
  gap: clamp(40px, 6vw, 80px);
  padding-bottom: 60px;
  border-bottom: 1px solid rgba(229, 221, 210, 0.15);
}
.footer-brand p {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-3);
  margin-top: 16px;
}
.logo-img-footer {
  height: 48px;
  max-width: 240px;
  width: auto;
  display: block;
  object-fit: contain;
  /* Invertir el logo para que se vea claro sobre el footer oscuro,
     manteniendo la transparencia del PNG */
  filter: brightness(0) invert(0.92);
}
.footer-cols {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 30px;
}
.footer-col h4 {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--surface);
  margin: 0 0 18px;
}
.footer-col a {
  display: block;
  font-size: 14px;
  padding: 6px 0;
  color: var(--text-3);
}
.footer-col a:hover { color: var(--surface); }
.footer-bottom {
  max-width: var(--maxw);
  margin: 0 auto;
  padding: 28px 0;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 11px;
  letter-spacing: 0.12em;
  color: var(--text-3);
  text-transform: uppercase;
}
.kanji-footer {
  font-family: var(--serif);
  font-size: 22px;
  letter-spacing: 0;
  text-transform: none;
  color: var(--beige-medio);
}

/* ============================================================
   MODAL DE PRODUCTO · arquitectura editorial
   ============================================================ */
.product-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.product-modal.is-open { display: flex; }
.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 24, 0.55);
  backdrop-filter: blur(4px);
  animation: fadeIn 240ms var(--ease);
}
.modal-panel {
  position: relative;
  max-width: 1000px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: auto;
  animation: modalIn 360ms var(--ease);
  box-shadow: var(--shadow-md);
}
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes modalIn {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}
.modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 22px;
  color: var(--text-2);
  z-index: 5;
  transition: all var(--t-fast);
}
.modal-close:hover {
  background: var(--text);
  color: var(--surface);
  border-color: var(--text);
}

.modal-content {
  padding: 0;
}

/* --- Header del modal (marca + SKU) --- */
.modal-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 28px clamp(28px, 4vw, 56px) 0;
  margin-right: 60px; /* espacio para el botón close */
}
.modal-brand {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
}
.modal-sku {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
  padding: 6px 12px;
  border: 1px solid var(--line);
  border-radius: 20px;
}

/* --- Hero del modal: imagen + info principal --- */
/* --- Hero del modal: imagen + info principal --- */
.modal-hero {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 4vw, 56px);
  padding: clamp(16px, 2.5vw, 28px) clamp(28px, 4vw, 56px) clamp(28px, 4vw, 44px);
  align-items: center;
}

.modal-img-wrap {
  background: linear-gradient(180deg, var(--bg) 0%, var(--surface) 100%);
  border: 1px solid var(--beige-humo);
  border-radius: var(--radius);
  aspect-ratio: 1 / 1;
  /* Padding REDUCIDO para que el producto se vea más grande y centrado */
  padding: clamp(10px, 1.5vw, 18px);
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  position: relative;
}
/* Marca de agua sutil del kanji detrás del producto */
.modal-img-wrap::after {
  content: '';
  position: absolute;
  inset: 0;
  background: url('assets/brand/kanji-solo.png') no-repeat center / 50% auto;
  opacity: 0.04;
  pointer-events: none;
}
.modal-img {
  position: relative;
  z-index: 1;
  width: 100%;
  height: 100%;
  object-fit: contain;
  object-position: center;
  /* Escala suave al hover para premium feel */
  transition: transform var(--t-med);
}
.modal-img-wrap:hover .modal-img { transform: scale(1.03); }

.modal-intro {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.modal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(26px, 3.2vw, 36px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0;
  color: var(--text);
}
.modal-type {
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}
.modal-price-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 18px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  margin: 6px 0 4px;
}
.modal-price {
  font-family: var(--serif);
  font-size: clamp(26px, 3vw, 32px);
  font-weight: 400;
  color: var(--text);
  letter-spacing: -0.01em;
}
.modal-step {
  font-family: var(--sans);
  font-size: 11px;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-3);
}
.modal-nota {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.55;
  color: var(--accent);
  margin: 0;
  padding-left: 16px;
  border-left: 2px solid var(--accent);
}
.modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}
.modal-actions .btn { flex: 1 1 auto; min-width: 180px; }

/* --- Sección de detalles: grilla legible --- */
.modal-details {
  background: var(--bg);
  padding: clamp(32px, 4vw, 48px) clamp(28px, 4vw, 56px) clamp(40px, 5vw, 60px);
  border-top: 1px solid var(--line);
}
.modal-details-title {
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin: 0 0 32px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
/* Pequeño detalle editorial: línea acentuada del lado izquierdo */
.modal-details-title::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 40px;
  height: 1px;
  background: var(--text);
}

.modal-fields {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: clamp(28px, 3.5vw, 44px) clamp(32px, 4.5vw, 64px);
  margin: 0;
}
.modal-field {
  display: flex;
  flex-direction: column;
  gap: 10px;
  margin: 0;
  padding-left: 14px;
  border-left: 1px solid var(--beige-humo);
}
.modal-field-wide {
  grid-column: 1 / -1;
  padding-top: 28px;
  padding-left: 14px;
  border-top: 1px dashed var(--beige-medio);
  border-left: 1px solid var(--beige-humo);
}
.modal-field-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  margin: 0;
}
.modal-field-value {
  font-family: var(--sans);
  font-size: 15px;
  font-weight: 400;
  line-height: 1.75;
  color: var(--text-2);
  margin: 0;
}

/* ============================================================
   FALLBACK DE IMÁGENES
   Cuando la foto real del producto no existe en disco,
   se muestra el placeholder con un ligero ajuste visual
   ============================================================ */
.img-fallback {
  opacity: 0.85;
  filter: contrast(0.95);
}

/* ============================================================
   QUIZ MODAL
   6 preguntas + datos de contacto en una sola vista con scroll.
   ============================================================ */
.quiz-modal {
  position: fixed;
  inset: 0;
  z-index: 110;
  display: none;
  align-items: center;
  justify-content: center;
}
.quiz-modal.is-open { display: flex; }
.quiz-panel {
  position: relative;
  max-width: 720px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: auto;
  animation: modalIn 360ms var(--ease);
  box-shadow: var(--shadow-md);
}
.quiz-content {
  padding: clamp(24px, 4vw, 48px);
}

/* Cabecera del modal QUIZ */
.quiz-modal-head {
  margin-bottom: clamp(28px, 4vw, 44px);
  padding-right: 56px; /* espacio para el close */
}
.quiz-modal-eyebrow {
  display: inline-block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 12px;
}
.quiz-modal-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.6vw, 40px);
  line-height: 1.1;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0 0 14px;
}
.quiz-modal-intro {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.5vw, 17px);
  line-height: 1.55;
  color: var(--accent);
  margin: 0;
  max-width: 50ch;
}

/* Form */
.quiz-form {
  display: flex;
  flex-direction: column;
  gap: clamp(24px, 3vw, 36px);
}

/* Cada pregunta */
.quiz-question {
  border: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 14px;
  transition: padding var(--t-fast);
}
.quiz-question.is-missing {
  padding-left: 14px;
  border-left: 2px solid var(--accent);
}
.quiz-question-legend {
  display: flex;
  align-items: baseline;
  gap: 12px;
  flex-wrap: wrap;
  padding: 0;
  margin-bottom: 4px;
}
.quiz-question-num {
  font-family: var(--serif);
  font-size: 14px;
  font-weight: 400;
  font-style: italic;
  color: var(--accent);
  letter-spacing: 0.04em;
}
.quiz-question-text {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(18px, 2vw, 22px);
  line-height: 1.3;
  color: var(--text);
}
.quiz-question-hint {
  font-family: var(--sans);
  font-size: 12px;
  color: var(--text-3);
  letter-spacing: 0.04em;
  flex-basis: 100%;
}

/* Opciones tipo pill */
.quiz-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.quiz-option {
  display: inline-flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 10px 16px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 24px;
  font-family: var(--sans);
  font-size: 13px;
  color: var(--text);
  cursor: pointer;
  transition: all var(--t-fast);
  text-align: left;
  line-height: 1.3;
}
.quiz-option:hover {
  border-color: var(--text-2);
  background: var(--surface);
}
.quiz-option.is-selected {
  background: var(--text);
  border-color: var(--text);
  color: var(--surface);
}
.quiz-option-text {
  display: block;
}
.quiz-option-hint {
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--text-3);
  font-weight: 400;
}
.quiz-option.is-selected .quiz-option-hint {
  color: var(--beige-medio);
}

/* Datos de contacto */
.quiz-contact .quiz-question-legend {
  margin-bottom: 8px;
}
.quiz-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}
.quiz-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.quiz-field-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-2);
}
.quiz-field input {
  font-family: var(--sans);
  font-size: 15px;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--text);
  transition: border-color var(--t-fast);
  width: 100%;
}
.quiz-field input:focus {
  outline: none;
  border-color: var(--text);
}
.quiz-field input.is-missing {
  border-color: var(--accent);
  background: var(--surface);
}

/* Acciones del QUIZ */
.quiz-actions {
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-top: 8px;
}
.quiz-validation {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
  margin: 0;
  padding: 12px 16px;
  background: var(--beige-humo);
  border-radius: var(--radius);
  font-style: italic;
}

/* Responsive */
@media (max-width: 560px) {
  .quiz-fields { grid-template-columns: 1fr; }
  .quiz-content { padding: 22px 18px; }
  .quiz-modal-head { padding-right: 48px; }
}

/* ============================================================
   ITEMS EN RUTINA · marca visual en el carrito
   Cuando un producto pertenece a la rutina detectada, se marca
   con un acento sutil.
   ============================================================ */
.cart-item-in-routine {
  position: relative;
}
.cart-item-in-routine::before {
  content: '';
  position: absolute;
  left: -10px;
  top: 0;
  bottom: 0;
  width: 2px;
  background: var(--pistacho);
  border-radius: 1px;
}
.cart-item-tag {
  display: inline-block;
  font-family: var(--sans);
  font-size: 9px;
  font-weight: 500;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--pistacho);
  margin-top: 4px;
}

/* ============================================================
   MODAL DE RUTINA: opciones deshabilitadas + nota cross-pair
   ============================================================ */
.routine-option.is-disabled,
.routine-option[disabled] {
  opacity: 0.4;
  cursor: not-allowed;
  filter: grayscale(0.4);
}
.routine-option.is-disabled:hover {
  background: var(--bg);
  border-color: var(--beige-humo);
}
.routine-cross-note {
  font-family: var(--serif);
  font-style: italic;
  font-size: 13px;
  line-height: 1.5;
  color: var(--accent);
  margin: -14px 0 18px;
  padding: 10px 14px;
  background: var(--beige-humo);
  border-radius: var(--radius);
}

/* ============================================================
   MODAL DE RUTINA
   Estructura visual idéntica al modal de producto, pero
   con builder de selección entre ancla y complemento.
   ============================================================ */
.routine-modal {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: none;
  align-items: center;
  justify-content: center;
}
.routine-modal.is-open { display: flex; }
.routine-panel {
  position: relative;
  max-width: 920px;
  width: calc(100% - 32px);
  max-height: calc(100vh - 48px);
  background: var(--surface);
  border-radius: var(--radius-lg);
  overflow: auto;
  animation: modalIn 360ms var(--ease);
  box-shadow: var(--shadow-md);
}
.routine-content {
  padding: clamp(28px, 4vw, 48px);
}

/* Header del modal de rutina */
.routine-head {
  margin-bottom: clamp(28px, 3.5vw, 40px);
  padding-right: 60px;
}
.routine-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text-2);
  margin-bottom: 14px;
}
.routine-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: clamp(28px, 3.4vw, 38px);
  line-height: 1.12;
  letter-spacing: -0.01em;
  margin: 0 0 14px;
  color: var(--text);
}
.routine-phrase,
.routine-subtitle {
  font-family: var(--serif);
  font-style: italic;
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.6;
  color: var(--accent);
  margin: 0;
  max-width: 56ch;
}
.routine-subtitle {
  color: var(--text-2);
  font-style: normal;
  font-family: var(--sans);
}

/* Vista de "índice de rutinas" cuando una puerta tiene varias */
.routine-list {
  display: grid;
  gap: 12px;
}
.routine-list-card {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  text-align: left;
  cursor: pointer;
  transition: all var(--t-med);
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-family: var(--sans);
}
.routine-list-card:hover {
  border-color: var(--text);
  background: var(--surface);
  transform: translateX(2px);
}
.routine-list-eyebrow {
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--text-3);
}
.routine-list-name {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 22px;
  margin: 4px 0 2px;
  color: var(--text);
}
.routine-list-phrase {
  font-size: 13px;
  color: var(--text-2);
  margin: 0;
  line-height: 1.5;
}
.routine-list-arrow {
  font-size: 11px;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  margin-top: 10px;
  font-weight: 500;
}

/* Builder: dos columnas Ancla + Complemento */
.routine-builder {
  display: grid;
  gap: clamp(20px, 3vw, 32px);
  margin-bottom: clamp(28px, 3.5vw, 40px);
}
.routine-pick {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.routine-pick-label {
  font-family: var(--sans);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: var(--text);
  padding-bottom: 10px;
  border-bottom: 1px solid var(--line);
  position: relative;
}
.routine-pick-label::before {
  content: '';
  position: absolute;
  left: 0;
  bottom: -1px;
  width: 32px;
  height: 1px;
  background: var(--accent);
}
.routine-pick-options {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 10px;
}
.routine-option {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--beige-humo);
  border-radius: var(--radius);
  cursor: pointer;
  transition: all var(--t-fast);
  font-family: var(--sans);
  text-align: left;
}
.routine-option:hover {
  border-color: var(--text-3);
  background: var(--surface);
}
.routine-option.is-active {
  border-color: var(--text);
  background: var(--surface);
  box-shadow: inset 0 0 0 1px var(--text);
}
.routine-option-img {
  flex-shrink: 0;
  width: 52px;
  height: 52px;
  background: var(--surface);
  border-radius: 2px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 4px;
}
.routine-option-img img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}
.routine-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.routine-option-brand {
  font-size: 9px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-3);
  font-weight: 500;
}
.routine-option-name {
  font-family: var(--serif);
  font-size: 14px;
  color: var(--text);
  line-height: 1.25;
  font-weight: 400;
}
.routine-option-price {
  font-size: 12px;
  color: var(--text-2);
  margin-top: 2px;
}

/* Summary del modal de rutina */
.routine-summary {
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 22px 24px;
  margin-bottom: clamp(20px, 2.5vw, 28px);
}
.routine-summary-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  font-family: var(--sans);
  font-size: 14px;
  color: var(--text-2);
}
.routine-summary-row-discount {
  color: var(--pistacho);
}
.routine-summary-row-total {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--text);
  border-top: 1px solid var(--beige-humo);
  margin-top: 6px;
  padding-top: 12px;
  font-weight: 400;
}
.routine-savings {
  font-family: var(--serif);
  font-style: italic;
  font-size: 14px;
  color: var(--pistacho);
  margin: 8px 0 0;
  text-align: right;
}

/* Acciones */
.routine-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.routine-actions .btn { flex: 1 1 auto; min-width: 200px; }

/* ============================================================
   BANNER DE RUTINA EN EL CARRITO
   Aparece cuando la selección activa una rutina
   ============================================================ */
.routine-banner {
  background: linear-gradient(180deg, var(--azul-pal) 0%, var(--bg) 100%);
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 18px 28px;
}
.routine-banner-eyebrow {
  display: block;
  font-family: var(--sans);
  font-size: 10px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 6px;
  font-weight: 500;
}
.routine-banner-title {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 16px;
  color: var(--text);
  margin: 0 0 4px;
  line-height: 1.3;
}
.routine-banner-text {
  font-family: var(--sans);
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-2);
  margin: 0;
}

/* Filas de descuento en el carrito */
.cart-summary-block {
  margin-bottom: 14px;
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 4px 0;
}
.cart-summary span {
  font-family: var(--sans);
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-2);
}
.cart-summary strong {
  font-family: var(--serif);
  font-size: 18px;
  font-weight: 400;
  color: var(--text);
}
.cart-summary-discount strong {
  color: var(--pistacho);
}
.cart-summary-total {
  border-top: 1px solid var(--line);
  padding-top: 10px;
  margin-top: 6px;
}
.cart-summary-total span {
  color: var(--text);
  font-weight: 500;
}
.cart-summary-total strong {
  font-size: 22px;
  color: var(--text);
}

/* Responsive modal de rutina */
@media (max-width: 768px) {
  .routine-pick-options {
    grid-template-columns: 1fr;
  }
  .routine-actions { flex-direction: column; }
  .routine-actions .btn { width: 100%; min-width: 0; }
  .routine-banner { padding: 16px 22px; }
}

/* ============================================================
   CARRITO ASISTIDO
   ============================================================ */
.cart-drawer {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: none;
}
.cart-drawer.is-open { display: block; }
.cart-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 24, 0.5);
  animation: fadeIn 240ms var(--ease);
}
.cart-panel {
  position: absolute;
  top: 0; bottom: 0; right: 0;
  width: min(440px, 100%);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  animation: slideIn 320ms var(--ease);
  box-shadow: var(--shadow-md);
}
@keyframes slideIn {
  from { transform: translateX(100%); }
  to   { transform: translateX(0); }
}
.cart-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  padding: 28px 28px 20px;
  border-bottom: 1px solid var(--line);
}
.cart-header h3 {
  font-family: var(--serif);
  font-weight: 400;
  font-size: 26px;
  margin: 0;
}
.cart-close {
  font-size: 28px;
  line-height: 1;
  color: var(--text-2);
  padding: 0 4px;
}
.cart-close:hover { color: var(--text); }
.cart-body {
  flex: 1;
  overflow-y: auto;
  padding: 20px 28px;
}
.cart-empty {
  font-family: var(--serif);
  font-style: italic;
  font-size: 17px;
  color: var(--text-3);
  text-align: center;
  margin: 40px 0;
  line-height: 1.5;
}
.cart-item {
  display: grid;
  grid-template-columns: 70px 1fr auto;
  gap: 16px;
  padding: 18px 0;
  border-bottom: 1px solid var(--beige-humo);
  align-items: center;
}
.cart-item-img {
  width: 70px; height: 70px;
  background: var(--surface);
  border: 1px solid var(--beige-humo);
  border-radius: var(--radius);
  padding: 6px;
  object-fit: contain;
}
.cart-item-info { min-width: 0; }
.cart-item-brand {
  font-size: 10px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-3);
}
.cart-item-name {
  font-family: var(--serif);
  font-size: 15px;
  margin: 2px 0 6px;
  line-height: 1.25;
  color: var(--text);
}
.cart-item-price {
  font-size: 13px;
  color: var(--text-2);
}
.cart-qty {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.cart-qty button {
  width: 24px; height: 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  font-size: 14px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-2);
  transition: all var(--t-fast);
}
.cart-qty button:hover { background: var(--text); color: var(--surface); border-color: var(--text); }
.cart-qty-value { min-width: 16px; text-align: center; }
.cart-remove {
  display: block;
  margin-top: 6px;
  font-size: 11px;
  color: var(--text-3);
  text-decoration: underline;
  text-underline-offset: 3px;
}
.cart-remove:hover { color: var(--text); }
.cart-footer {
  padding: 22px 28px 28px;
  border-top: 1px solid var(--line);
  background: var(--surface);
}
.cart-summary {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  margin-bottom: 8px;
}
.cart-summary span {
  font-size: 11px;
  letter-spacing: 0.15em;
  text-transform: uppercase;
  color: var(--text-2);
}
.cart-summary strong {
  font-family: var(--serif);
  font-size: 24px;
  font-weight: 400;
  color: var(--text);
}
.cart-note {
  font-size: 12px;
  color: var(--text-3);
  margin: 0 0 18px;
  font-style: italic;
}

/* ============================================================
   AMBIENT · Bloques de respiro editorial con foto
   ============================================================ */

/* Variante SPLIT — imagen 50/50 con texto al lado */
.ambient {
  max-width: none;
  width: 100%;
  margin: 0;
}
.ambient-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  background: var(--beige-humo);
  min-height: clamp(420px, 60vh, 640px);
}
.ambient-img {
  position: relative;
  overflow: hidden;
}
.ambient-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ambient-text {
  padding: clamp(48px, 7vw, 100px) clamp(28px, 5vw, 80px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 18px;
}
.ambient-text .eyebrow { margin-bottom: 6px; }
.ambient-text .display { margin-bottom: 0.3em; }
.ambient-text p {
  font-size: clamp(15px, 1.4vw, 17px);
  line-height: 1.7;
  color: var(--text-2);
  max-width: 44ch;
  margin: 0;
}

/* Variante BLEED — imagen full con frase superpuesta sobre overlay */
.ambient-bleed {
  position: relative;
  height: clamp(380px, 55vh, 560px);
  overflow: hidden;
}
.ambient-bleed img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.ambient-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    100deg,
    rgba(247, 244, 239, 0.92) 0%,
    rgba(247, 244, 239, 0.55) 38%,
    rgba(247, 244, 239, 0) 65%
  );
  display: flex;
  align-items: center;
  padding: 0 clamp(28px, 8vw, 120px);
}
.ambient-quote {
  font-family: var(--serif);
  font-size: clamp(28px, 4.5vw, 56px);
  font-weight: 300;
  line-height: 1.15;
  letter-spacing: -0.01em;
  color: var(--text);
  margin: 0;
  max-width: 12em;
}
.ambient-quote em { font-style: italic; }

/* Ambient responsive */
@media (max-width: 768px) {
  .ambient-split {
    grid-template-columns: 1fr;
    min-height: auto;
  }
  .ambient-img { min-height: 320px; }
  .ambient-text { padding: 48px 28px; }
  .ambient-bleed { height: clamp(340px, 50vh, 460px); }
  .ambient-overlay {
    background: linear-gradient(
      180deg,
      rgba(247, 244, 239, 0) 0%,
      rgba(247, 244, 239, 0.55) 35%,
      rgba(247, 244, 239, 0.95) 75%
    );
    align-items: flex-end;
    padding-bottom: 32px;
  }
  .ambient-quote { font-size: clamp(26px, 6vw, 36px); }
}

/* ============================================================
   KANJI CALIGRÁFICO · Imagen 変化 reutilizable
   PNG transparente real, sin mix-blend-mode necesario
   ============================================================ */
.kanji-img {
  display: block;
  width: auto;
  height: auto;
  opacity: 0.92;
}
.kanji-xs { height: 28px; opacity: 1; }
.kanji-sm { height: 38px; }
.kanji-md { height: 110px; }
.kanji-lg { height: 170px; }
.kanji-xl { height: 260px; }
.kanji-cta { height: clamp(140px, 18vw, 220px); margin: 0 auto 1.5rem; opacity: 0.85; }

/* Footer: filtro invierte el negro a casi blanco sobre fondo oscuro */
.kanji-footer-img {
  filter: brightness(0) invert(0.7);
  opacity: 0.85;
  height: 30px;
}

/* ============================================================
   GALERÍA VISUAL DEL CATÁLOGO
   ============================================================ */
.galeria {
  padding-top: 0;  /* la sección anterior (rutinas) ya da el aire */
}
.gallery-mosaic {
  display: grid;
  grid-template-columns: repeat(8, 1fr);
  grid-auto-rows: 100px;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  margin-bottom: 40px;
}
.gallery-cell {
  margin: 0;
  background: var(--surface);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 14px;
  overflow: hidden;
  transition: background var(--t-med);
}
.gallery-cell:hover { background: var(--beige-humo); }
.gallery-cell img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  transition: transform var(--t-med);
}
.gallery-cell:hover img { transform: scale(1.04); }

/* Composición editorial — celdas de tamaños asimétricos */
.gc-1 { grid-column: 1 / span 3; grid-row: 1 / span 3; }
.gc-2 { grid-column: 4 / span 2; grid-row: 1 / span 2; }
.gc-3 { grid-column: 6 / span 3; grid-row: 1 / span 2; }
.gc-4 { grid-column: 4 / span 2; grid-row: 3 / span 2; }
.gc-5 { grid-column: 6 / span 2; grid-row: 3 / span 2; }
.gc-6 { grid-column: 8 / span 1; grid-row: 3 / span 2; }
/* gc-7 reduced to span 3 (not 4) to avoid overlap with gc-4 at col 4 */
.gc-7 { grid-column: 1 / span 3; grid-row: 4 / span 2; }
/* gc-8 widened to fill remaining columns on final row */
.gc-8 { grid-column: 4 / span 5; grid-row: 5 / span 1; }

.gallery-cta {
  text-align: center;
  margin-top: 30px;
}

/* ============================================================
   ENVÍOS · precio destacado
   ============================================================ */
.envios-price {
  font-family: var(--serif);
  font-size: 20px;
  color: var(--accent);
  margin: 8px 0 0;
  font-weight: 400;
}

/* ============================================================
   GALERÍA · responsive
   ============================================================ */
@media (max-width: 1024px) {
  .gallery-mosaic { grid-template-columns: repeat(4, 1fr); grid-auto-rows: 130px; }
  .gc-1 { grid-column: 1 / span 2; grid-row: 1 / span 2; }
  .gc-2 { grid-column: 3 / span 2; grid-row: 1 / span 1; }
  .gc-3 { grid-column: 3 / span 2; grid-row: 2 / span 1; }
  .gc-4 { grid-column: 1 / span 2; grid-row: 3 / span 1; }
  .gc-5 { grid-column: 3 / span 1; grid-row: 3 / span 1; }
  .gc-6 { grid-column: 4 / span 1; grid-row: 3 / span 1; }
  .gc-7 { grid-column: 1 / span 2; grid-row: 4 / span 1; }
  .gc-8 { grid-column: 3 / span 2; grid-row: 4 / span 1; }
}
@media (max-width: 560px) {
  .gallery-mosaic { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery-cell { grid-column: span 1 !important; grid-row: span 1 !important; }
  .kanji-xl { height: 200px; }
  .kanji-lg { height: 130px; }
  .historia-stamp img { max-height: 280px; }

  /* Modal en móvil */
  .modal-fields { grid-template-columns: 1fr; gap: 24px; }
  .modal-field { padding-left: 12px; }
  .modal-field-wide { padding-top: 24px; padding-left: 12px; }
  .modal-head { padding: 22px 22px 0; margin-right: 56px; }
  .modal-hero { padding: 18px 22px 30px; gap: 24px; }
  .modal-details { padding: 32px 22px 40px; }
  .modal-price-row { flex-direction: column; align-items: flex-start; gap: 6px; padding: 14px 0; }
  .modal-actions { flex-direction: column; }
  .modal-actions .btn { width: 100%; min-width: 0; }
  .modal-img-wrap { max-width: 300px; margin: 0 auto; padding: 12px; }
  .modal-title { font-size: 24px; }
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1024px) {
  .pillars,
  .quiz-steps,
  .envios-grid,
  .testimonios-layout { grid-template-columns: 1fr; }
  .rutinas-grid,
  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-hero {
    grid-template-columns: 1fr;
    gap: 32px;
  }
  .modal-img-wrap {
    max-width: 360px;
    margin: 0 auto;
    width: 100%;
    padding: 16px;
  }
  .modal-intro { text-align: left; }
  .historia-grid {
    grid-template-columns: 1fr;
    text-align: center;
    gap: 40px;
  }
  .historia-inner { margin: 0 auto; }
  .historia-inner .display { text-align: center; }
  .historia-text { margin: 0 auto; }
  .historia-stamp img { max-height: 380px; }
}

@media (max-width: 768px) {
  .nav-desktop { display: none; }
  .menu-toggle { display: flex; }
  .cart-label { display: none; }

  .header-inner { padding: 14px var(--pad-x); }
  .site-header.is-scrolled .header-inner { padding: 12px var(--pad-x); }
  .logo-img { height: 54px; max-width: 220px; }
  .site-header.is-scrolled .logo-img { height: 46px; }

  .hero-grid {
    grid-template-columns: 1fr;
    gap: 48px;
  }
  .hero-visual { order: -1; }
  .hero-img { aspect-ratio: 4 / 5; }
  .hero-ctas .btn { flex: 1 1 auto; }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 40px;
  }
  .footer-cols { grid-template-columns: repeat(3, 1fr); gap: 20px; }
  .footer-col a { font-size: 13px; }
  .footer-bottom { flex-direction: column; gap: 12px; padding: 24px 0; }
}

@media (max-width: 560px) {
  .pillars,
  .quiz-steps,
  .rutinas-grid,
  .catalog-grid,
  .envios-grid,
  .testimonios-cards { gap: 12px; }
  .footer-cols { grid-template-columns: 1fr; gap: 30px; }
  .filters {
    overflow-x: auto;
    justify-content: flex-start;
    -webkit-overflow-scrolling: touch;
  }
  .modal-field { grid-template-columns: 1fr; gap: 4px; }
  .modal-field-label { margin-bottom: 2px; }
  .cart-panel { width: 100%; }
  /* Logo móvil: mantener presencia */
  .logo-img { height: 48px; max-width: 180px; }
  .site-header.is-scrolled .logo-img { height: 42px; }
}

/* ============================================================
   ACCESIBILIDAD · Reduced motion
   ============================================================ */
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
