/* ==========================================================================
   MAYBED PANAMÁ — Hoja de estilos principal
   Estética boutique · Mobile-first · Sin dependencias
   --------------------------------------------------------------------------
   01. Tokens          06. Certificaciones   11. Distribuidores (B2B)
   02. Base / reset    07. Colchones         12. Instagram
   03. Tipografía      08. Tests (quiz)      13. Garantía    
   04. Componentes     09. Almohadas         14. Footer + WhatsApp
   05. Header / Hero   10. Localizador       15. Animaciones / utilidades
   ========================================================================== */

/* 01. TOKENS ------------------------------------------------------------- */
:root {
  /* Paleta de marca */
  --ivory:      #F7F4EF;
  --paper:      #FFFFFF;
  --sand:       #EDE7DE;
  --ink:        #232020;   /* color del logotipo original */
  --ink-2:      #3A3534;
  --ink-soft:   #6B6461;
  --line:       rgba(35, 32, 32, .12);
  --line-light: rgba(247, 244, 239, .16);
  --gold:       #A8875A;
  --gold-deep:  #8A6C43;
  --gold-soft:  #D9C6A5;
  --mint:       #C2E1D0;   /* botón del selector de colchones original */
  --mint-soft:  #E7F2EC;
  --blush:      #DED1D0;   /* botón del selector de almohadas original */
  --blush-soft: #F4EEED;
  --aqua-soft:  #E6EEF2;

  /* Tipografía */
  --serif: "Cormorant Garamond", "Times New Roman", serif;
  --sans:  "Montserrat", system-ui, -apple-system, "Segoe UI", sans-serif;

  /* Escala */
  --fs-xs:   .72rem;
  --fs-sm:   .875rem;
  --fs-base: 1rem;
  --fs-lg:   1.125rem;
  --fs-h3:   clamp(1.6rem, 1.2rem + 1.4vw, 2.25rem);
  --fs-h2:   clamp(2.2rem, 1.5rem + 2.8vw, 3.6rem);
  --fs-h1:   clamp(2.6rem, 1.6rem + 4.4vw, 5.2rem);

  /* Espaciado y layout */
  --gutter:    clamp(1rem, 4vw, 2.5rem);
  --section-y: clamp(4.5rem, 3rem + 6vw, 8.5rem);
  --maxw:      1240px;
  --header-h:  72px;
  --radius:    2px;

  /* Movimiento */
  --ease:  cubic-bezier(.22, .61, .36, 1);
  --dur:   .45s;
  --shadow: 0 30px 60px -30px rgba(35, 32, 32, .28);
}

/* 02. BASE / RESET ------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 8px);
}
body {
  margin: 0;
  background: var(--ivory);
  color: var(--ink);
  font-family: var(--sans);
  font-size: var(--fs-base);
  font-weight: 400;
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration-thickness: 1px; text-underline-offset: .2em; }
button, input, select, textarea { font: inherit; color: inherit; }
:where(ul[role="list"], ol[role="list"]) { list-style: none; margin: 0; padding: 0; }
h1, h2, h3, h4 { margin: 0; font-weight: 400; line-height: 1.1; }
p { margin: 0 0 1em; }
p:last-child { margin-bottom: 0; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

.container { width: 100%; max-width: var(--maxw); margin-inline: auto; padding-inline: var(--gutter); }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0;
}
.skip-link {
  position: absolute; left: 1rem; top: -100px; z-index: 200;
  background: var(--ink); color: var(--ivory); padding: .75rem 1rem; text-decoration: none;
}
.skip-link:focus { top: 1rem; }

/* 03. TIPOGRAFÍA --------------------------------------------------------- */
.eyebrow {
  margin: 0 0 1.1rem;
  font-size: var(--fs-xs);
  font-weight: 500;
  letter-spacing: .28em;
  text-transform: uppercase;
  color: var(--gold-deep);
}
.eyebrow--light { color: var(--gold-soft); }
.section-title {
  font-family: var(--serif);
  font-size: var(--fs-h2);
  font-weight: 400;
  letter-spacing: -.01em;
}
.section-lead {
  max-width: 38rem;
  margin-top: 1.25rem;
  font-size: var(--fs-lg);
  font-weight: 300;
  color: var(--ink-soft);
}
.section-lead a { color: var(--ink); }
.section-head { margin-bottom: clamp(2.5rem, 5vw, 4.5rem); }
.section-head--center { text-align: center; }
.section-head--center .section-lead { margin-inline: auto; }

.section { padding-block: var(--section-y); }
.section--tight { padding-block: calc(var(--section-y) * .7); }

/* 04. COMPONENTES -------------------------------------------------------- */
.btn {
  --btn-bg: var(--ink);
  --btn-fg: var(--ivory);
  --btn-bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: .6rem;
  min-height: 52px;
  padding: .9rem 1.75rem;
  border: 1px solid var(--btn-bd);
  border-radius: var(--radius);
  background: var(--btn-bg);
  color: var(--btn-fg);
  font-size: .78rem;
  font-weight: 500;
  letter-spacing: .18em;
  text-transform: uppercase;
  text-decoration: none;
  cursor: pointer;
  transition: background-color var(--dur) var(--ease), color var(--dur) var(--ease),
              border-color var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.btn:hover { transform: translateY(-2px); }
.btn:active { transform: translateY(0); }
.btn--dark:hover  { --btn-bg: var(--ink-2); }
.btn--gold  { --btn-bg: var(--gold); --btn-bd: var(--gold); --btn-fg: #fff; }
.btn--gold:hover { --btn-bg: var(--gold-deep); --btn-bd: var(--gold-deep); }
.btn--ghost { --btn-bg: transparent; --btn-fg: var(--ink); --btn-bd: var(--ink); }
.btn--ghost:hover { --btn-bg: var(--ink); --btn-fg: var(--ivory); }
.btn--sm { min-height: 42px; padding: .6rem 1.2rem; font-size: .7rem; }
.btn--block { width: 100%; }

.tech-list { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 1.5rem; }
.tech-list li {
  padding: .45rem .85rem;
  border: 1px solid var(--line);
  border-radius: 100px;
  font-size: .74rem;
  letter-spacing: .04em;
  color: var(--ink-2);
  background: rgba(255, 255, 255, .6);
}
.tech-list--sm li { padding: .3rem .7rem; font-size: .7rem; }

/* Campos de formulario */
.field { display: flex; flex-direction: column; gap: .45rem; min-width: 0; border: 0; margin: 0; padding: 0; }
.field__label {
  font-size: .7rem; font-weight: 500; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft);
}
.field__label small { text-transform: none; letter-spacing: 0; font-weight: 400; }
.field input:not([type="radio"]):not([type="checkbox"]), .field select, .field textarea {
  width: 100%;
  min-height: 50px;
  padding: .8rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--paper);
  font-size: 16px; /* evita zoom en iOS */
  transition: border-color var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
  appearance: none;
}
.field select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23232020' stroke-width='1.5'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 1rem center; background-size: 16px;
  padding-right: 2.75rem;
}
.field textarea { min-height: 110px; resize: vertical; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px rgba(168, 135, 90, .18);
}
.field.is-invalid input, .field.is-invalid select, .field.is-invalid textarea { border-color: #B4533C; }
.form-status { min-height: 1.4em; margin: .9rem 0 0; font-size: var(--fs-sm); }
.form-status.is-error { color: #B4533C; }
.form-status.is-ok { color: #2F6B4A; }

/* 05. HEADER ------------------------------------------------------------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  height: var(--header-h);
  background: rgba(247, 244, 239, .86);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.site-header.is-scrolled { border-bottom-color: var(--line); background: rgba(247, 244, 239, .95); }
.site-header__inner { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; }
.brand img { width: 128px; height: auto; }

.main-nav {
  position: fixed; inset: var(--header-h) 0 auto 0;
  display: flex; flex-direction: column; gap: 1.5rem;
  padding: 2rem var(--gutter) 2.5rem;
  background: var(--ivory);
  border-bottom: 1px solid var(--line);
  opacity: 0; visibility: hidden; transform: translateY(-8px);
  transition: opacity var(--dur) var(--ease), transform var(--dur) var(--ease), visibility var(--dur);
}
.main-nav.is-open { opacity: 1; visibility: visible; transform: none; }
.main-nav__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: .25rem; }
.main-nav__list a {
  display: block; padding: .65rem 0;
  font-family: var(--serif); font-size: 1.6rem; text-decoration: none;
  border-bottom: 1px solid var(--line);
}
.main-nav__cta { align-self: flex-start; }

.nav-toggle {
  width: 44px; height: 44px; display: grid; place-content: center; gap: 7px;
  background: none; border: 0; cursor: pointer;
}
.nav-toggle__bar { width: 26px; height: 1px; background: var(--ink); transition: transform var(--dur) var(--ease); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:first-child { transform: translateY(4px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bar:nth-child(2) { transform: translateY(-4px) rotate(-45deg); }

/* HERO */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4rem) clamp(4rem, 8vw, 6rem); overflow: hidden; }
.hero::before { /* halo decorativo, eco de los círculos del sitio original */
  content: ""; position: absolute; z-index: -1;
  width: 70vmax; height: 70vmax; right: -35vmax; top: -20vmax;
  border-radius: 50%; background: radial-gradient(closest-side, var(--sand), transparent);
}
.hero__grid { display: grid; gap: clamp(2.5rem, 5vw, 4rem); align-items: center; }
.hero__title { font-family: var(--serif); font-size: var(--fs-h1); font-weight: 400; letter-spacing: -.015em; line-height: 1.02; }
.hero__title em { font-style: italic; color: var(--gold-deep); }
.hero__lead { max-width: 34rem; margin: 1.5rem 0 2.5rem; font-size: var(--fs-lg); font-weight: 300; color: var(--ink-soft); }

.hero__paths { display: grid; gap: 1rem; }
.path-card {
  position: relative;
  display: grid; gap: .3rem;
  padding: 1.4rem 3.75rem 1.4rem 1.5rem;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  text-decoration: none;
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease), background-color var(--dur) var(--ease);
}
.path-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.path-card__kicker { font-size: var(--fs-xs); letter-spacing: .24em; text-transform: uppercase; opacity: .7; }
.path-card__title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; }
.path-card__meta { font-size: .8rem; opacity: .75; }
.path-card__arrow {
  position: absolute; right: 1.4rem; top: 50%; width: 22px; height: 22px; margin-top: -11px;
  fill: none; stroke: currentColor; stroke-width: 1.4; transition: transform var(--dur) var(--ease);
}
.path-card:hover .path-card__arrow { transform: translateX(5px); }
.path-card--b2c { background: var(--paper); }
.path-card--b2b { background: var(--ink); color: var(--ivory); border-color: var(--ink); }
.path-card--b2b .path-card__kicker { color: var(--gold-soft); opacity: 1; }

.hero__media { position: relative; margin: 0; }
.hero__media img { width: 100%; aspect-ratio: 4 / 5; object-fit: cover; object-position: 60% 50%; border-radius: var(--radius); }
.hero__badge {
  position: absolute; left: 1rem; bottom: 1rem;
  display: grid; gap: .15rem; padding: .9rem 1.2rem;
  background: rgba(247, 244, 239, .92); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.hero__badge-label { font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--gold-deep); }
.hero__badge-text { font-family: var(--serif); font-size: 1.15rem; }

.scroll-cue {
  position: absolute; left: 50%; bottom: 1.25rem; width: 40px; height: 40px; margin-left: -20px;
  display: none; place-items: center; color: var(--ink-soft);
  animation: float 2.6s var(--ease) infinite;
}
.scroll-cue svg { width: 22px; fill: none; stroke: currentColor; stroke-width: 1.4; }

/* 06. CERTIFICACIONES ---------------------------------------------------- */
.certs { background: var(--paper); border-block: 1px solid var(--line); }
.certs__grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); }
.cert {
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1rem;
  padding: 2rem 1rem; background: var(--paper); text-align: center;
}
.cert img {
  height: 64px; width: auto; max-width: 150px; object-fit: contain;
  filter: grayscale(1) contrast(.9); opacity: .78;
  transition: filter var(--dur) var(--ease), opacity var(--dur) var(--ease);
}
.cert:hover img { filter: none; opacity: 1; }
.cert__caption { font-size: .74rem; letter-spacing: .04em; color: var(--ink-soft); max-width: 14rem; }

/* 07. COLCHONES ---------------------------------------------------------- */
.product {
  display: grid; gap: clamp(2rem, 4vw, 4.5rem); align-items: start;
  padding-block: clamp(2.5rem, 5vw, 4.5rem);
  border-top: 1px solid var(--line);
}
.product:first-of-type { border-top: 0; padding-top: 0; }
.product__stage { background: var(--paper); overflow: hidden; border-radius: var(--radius); }
.product__stage img { width: 100%; aspect-ratio: 1; object-fit: cover; transition: opacity .35s var(--ease), transform 1.2s var(--ease); }
.product__stage:hover img { transform: scale(1.025); }
.product__stage img.is-swapping { opacity: 0; }
.product__thumbs { display: grid; grid-template-columns: repeat(3, 1fr); gap: .75rem; margin-top: .75rem; }
.thumb {
  padding: 0; border: 1px solid transparent; background: var(--paper); cursor: pointer;
  border-radius: var(--radius); overflow: hidden; opacity: .6; transition: opacity var(--dur), border-color var(--dur);
}
.thumb img { aspect-ratio: 1; object-fit: cover; width: 100%; }
.thumb:hover, .thumb.is-active { opacity: 1; border-color: var(--ink); }

.product__index { margin: 0 0 .75rem; font-family: var(--serif); font-size: 1rem; color: var(--gold-deep); letter-spacing: .1em; }
.product__name { font-family: var(--serif); font-size: var(--fs-h3); }
.product__tagline { margin: .5rem 0 0; font-family: var(--serif); font-style: italic; font-size: 1.35rem; color: var(--ink-soft); }

.specs { display: grid; grid-template-columns: 1fr 1fr; margin: 2rem 0; border-block: 1px solid var(--line); }
.specs__row { padding: 1rem 0; }
.specs__row + .specs__row { padding-left: 1.25rem; border-left: 1px solid var(--line); }
.specs dt { font-size: var(--fs-xs); letter-spacing: .22em; text-transform: uppercase; color: var(--ink-soft); }
.specs dd { margin: .3rem 0 0; font-family: var(--serif); font-size: 1.35rem; display: flex; align-items: center; flex-wrap: wrap; gap: .75rem; }

.firmness { display: inline-flex; gap: 4px; }
.firmness i { width: 14px; height: 4px; background: var(--line); }
.firmness[data-level="1"] i:nth-child(-n+1),
.firmness[data-level="2"] i:nth-child(-n+2),
.firmness[data-level="3"] i:nth-child(-n+3),
.firmness[data-level="4"] i:nth-child(-n+4),
.firmness[data-level="5"] i:nth-child(-n+5) { background: var(--gold); }

.product__text { font-size: .95rem; color: var(--ink-2); }
.product__text strong { font-weight: 500; color: var(--ink); }
.product__quote {
  margin-top: 1.5rem; padding-left: 1.25rem; border-left: 1px solid var(--gold);
  font-family: var(--serif); font-style: italic; font-size: 1.25rem; line-height: 1.45; color: var(--ink);
}
.product__actions { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 2rem; }
.product__actions .btn { padding-inline: 1.35rem; letter-spacing: .14em; }

/* 08. TESTS (QUIZ) ------------------------------------------------------- */
.quiz-section--mint  { background: var(--mint-soft); }
.quiz-section--blush { background: var(--blush-soft); }
.quiz-section__grid { display: grid; gap: clamp(2rem, 5vw, 5rem); align-items: center; }
.quiz-steps { display: grid; gap: .6rem; margin-top: 2rem; counter-reset: qs; }
.quiz-steps li {
  counter-increment: qs; display: flex; align-items: center; gap: .9rem;
  font-size: .9rem; color: var(--ink-2);
}
.quiz-steps li::before {
  content: counter(qs, decimal-leading-zero);
  font-family: var(--serif); font-size: 1rem; color: var(--gold-deep);
  width: 2.2rem; padding-bottom: .1rem; border-bottom: 1px solid var(--gold-soft);
}
.quiz-card {
  position: relative; min-height: 420px;
  display: grid; place-items: center;
  padding: clamp(1.75rem, 4vw, 3rem);
  background: var(--paper);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.quiz-card__placeholder { max-width: 26rem; text-align: center; display: grid; justify-items: center; gap: .9rem; }
.quiz-card__art { width: 220px; margin-bottom: .5rem; fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; }
.quiz-card__art .accent { stroke: var(--gold); stroke-width: 1.6; }
.quiz-card__title { margin: 0; font-family: var(--serif); font-size: 1.9rem; line-height: 1.15; }
.quiz-card__text { color: var(--ink-soft); font-size: .92rem; margin-bottom: .6rem; }

/* 09. ALMOHADAS ---------------------------------------------------------- */
.pillows__grid { display: grid; gap: 1.5rem; }
.pillow {
  display: flex; flex-direction: column;
  background: var(--paper); border: 1px solid var(--line); border-radius: var(--radius);
  transition: transform var(--dur) var(--ease), box-shadow var(--dur) var(--ease);
}
.pillow:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.pillow__art { position: relative; display: grid; place-items: center; aspect-ratio: 16 / 10; padding: 1.5rem; }
.pillow__art svg { width: min(88%, 280px); fill: none; stroke: var(--ink); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.pillow__art svg .fill { fill: var(--paper); stroke: none; }
.pillow__art svg .soft { stroke: var(--ink-soft); stroke-width: .8; stroke-dasharray: 2 4; }
.pillow__art svg .accent { stroke: var(--gold); stroke-width: 1.4; }
.pillow__art svg .dot { fill: var(--gold); stroke: none; }
.pillow__art--ivory { background: linear-gradient(160deg, var(--sand), var(--ivory)); }
.pillow__art--sage  { background: linear-gradient(160deg, var(--mint), var(--mint-soft)); }
.pillow__art--aqua  { background: linear-gradient(160deg, #CFE0E8, var(--aqua-soft)); }
.pillow__art--blush { background: linear-gradient(160deg, var(--blush), var(--blush-soft)); }
.pillow__firm {
  position: absolute; left: 1rem; top: 1rem; padding: .3rem .7rem;
  background: rgba(255, 255, 255, .85); font-size: .66rem; letter-spacing: .2em; text-transform: uppercase;
}
.pillow__body { display: flex; flex-direction: column; flex: 1; padding: 1.75rem; font-size: .9rem; color: var(--ink-2); }
.pillow__name { margin-bottom: 1rem; font-family: var(--serif); font-size: 1.65rem; color: var(--ink); }
.pillow__body strong { font-weight: 500; color: var(--ink); }
.firm-bar { margin-top: auto; padding-top: 1.5rem; }
.firm-bar span {
  display: block; height: 2px; background: var(--line); position: relative;
}
.firm-bar span::after {
  content: ""; position: absolute; inset: 0 auto 0 0; width: calc(var(--v) * 25%); background: var(--gold);
}

/* 10. LOCALIZADOR -------------------------------------------------------- */
.locator { background: var(--sand); }
.locator__inner { display: grid; gap: 2rem; align-items: end; }
.locator__form { display: grid; gap: 1rem; }
.locator__note { font-size: .8rem; color: var(--ink-soft); }

/* 11. DISTRIBUIDORES (B2B) ----------------------------------------------- */
.b2b {
  padding-block: var(--section-y);
  background: var(--ink);
  color: var(--ivory);
  position: relative; overflow: hidden;
}
.b2b::before {
  content: ""; position: absolute; width: 60vmax; height: 60vmax; left: -30vmax; top: -30vmax;
  border-radius: 50%; border: 1px solid var(--line-light); pointer-events: none;
}
.b2b a { color: inherit; }
.b2b__head { max-width: 52rem; margin-bottom: clamp(3rem, 6vw, 5rem); }
.b2b__title { font-family: var(--serif); font-size: var(--fs-h2); line-height: 1.05; }
.b2b__lead { margin-top: 1.5rem; font-size: var(--fs-lg); font-weight: 300; color: rgba(247, 244, 239, .78); max-width: 42rem; }
.audience { display: flex; flex-wrap: wrap; gap: .5rem; margin-top: 2rem; }
.audience li {
  padding: .45rem .95rem; border: 1px solid var(--line-light); border-radius: 100px;
  font-size: .74rem; letter-spacing: .08em; color: var(--gold-soft);
}

.pillars { display: grid; gap: 1px; background: var(--line-light); border: 1px solid var(--line-light); }
.pillar { padding: clamp(1.75rem, 3vw, 2.5rem); background: var(--ink); transition: background-color var(--dur) var(--ease); }
.pillar:hover { background: #2B2726; }
.pillar__icon { width: 48px; height: 48px; margin-bottom: 1.75rem; fill: none; stroke: var(--ivory); stroke-width: 1.2; stroke-linecap: round; stroke-linejoin: round; }
.pillar__icon .accent { stroke: var(--gold); stroke-width: 1.5; }
.pillar__title { font-family: var(--serif); font-size: 1.55rem; line-height: 1.15; margin-bottom: 1rem; }
.pillar__text { font-size: .9rem; font-weight: 300; color: rgba(247, 244, 239, .72); }

.leadgen {
  display: grid; gap: 2rem; align-items: center;
  margin-top: clamp(3rem, 6vw, 5rem); padding: clamp(1.75rem, 4vw, 3rem);
  background: linear-gradient(135deg, rgba(168, 135, 90, .18), rgba(168, 135, 90, .04));
  border: 1px solid rgba(217, 198, 165, .3);
}
.leadgen__title { font-family: var(--serif); font-size: var(--fs-h3); margin-bottom: 1rem; }
.leadgen__copy p:not(.eyebrow) { font-weight: 300; color: rgba(247, 244, 239, .82); }
.leadgen__copy strong { font-weight: 500; color: var(--ivory); }
.leadgen__flow { display: grid; gap: .75rem; }
.leadgen__flow li {
  display: flex; align-items: center; gap: 1rem; padding: 1rem 1.25rem;
  background: rgba(247, 244, 239, .05); border: 1px solid var(--line-light); font-size: .92rem;
}
.leadgen__flow span { font-family: var(--serif); font-size: 1.4rem; color: var(--gold); }

.process { margin-top: clamp(3.5rem, 7vw, 6rem); }
.process__title, .faq__title { font-family: var(--serif); font-size: var(--fs-h3); margin-bottom: 2rem; }
.process__list { display: grid; gap: 2rem; counter-reset: none; }
.process__step { position: relative; padding-top: 1.5rem; border-top: 1px solid var(--line-light); }
.process__num { font-family: var(--serif); font-size: 2.6rem; line-height: 1; color: var(--gold); }
.process__step h4 { margin: .75rem 0 .5rem; font-size: .8rem; font-weight: 500; letter-spacing: .2em; text-transform: uppercase; }
.process__step p { font-size: .9rem; font-weight: 300; color: rgba(247, 244, 239, .72); }

.b2b__convert { display: grid; gap: 2rem; margin-top: clamp(3.5rem, 7vw, 6rem); }
.b2b-form-wrap {
  padding: clamp(1.5rem, 4vw, 3rem);
  background: var(--ivory); color: var(--ink); border-radius: var(--radius);
  scroll-margin-top: calc(var(--header-h) + 16px);
}
.b2b-form__title { font-family: var(--serif); font-size: var(--fs-h3); }
.b2b-form__lead { margin: .5rem 0 2rem; color: var(--ink-soft); font-size: .9rem; }
.form-grid { display: grid; gap: 1.1rem; margin-bottom: 1.75rem; }
.field--radios { flex-direction: row; flex-wrap: wrap; gap: .5rem 1.5rem; align-items: center; }
.field--radios legend { width: 100%; margin-bottom: .5rem; }
.radio, .check { display: inline-flex; align-items: flex-start; gap: .6rem; font-size: .9rem; cursor: pointer; }
.radio input, .check input { width: 18px; height: 18px; margin: .2rem 0 0; accent-color: var(--gold); flex: none; }
.check span { font-size: .82rem; color: var(--ink-soft); }
.b2b-form__alt { margin-top: 1rem; font-size: .85rem; text-align: center; color: var(--ink-soft); }
.b2b .b2b-form__alt a { color: var(--ink); }

.legal {
  padding: clamp(1.5rem, 4vw, 2.5rem);
  border: 1px solid var(--line-light);
  align-self: start;
}
.legal__title { font-family: var(--serif); font-size: 1.75rem; margin-bottom: .75rem; }
.legal__lead { font-size: .88rem; font-weight: 300; color: rgba(247, 244, 239, .75); }
.legal__list { display: grid; gap: 1.25rem; margin: 1.75rem 0; }
.legal__list li { display: grid; gap: .25rem; padding-left: 1.25rem; border-left: 1px solid var(--gold); }
.legal__list strong { font-weight: 500; font-size: .92rem; }
.legal__list span { font-size: .84rem; font-weight: 300; color: rgba(247, 244, 239, .7); }
.legal__note { font-size: .74rem; color: rgba(247, 244, 239, .5); font-style: italic; }

.faq { margin-top: clamp(3.5rem, 7vw, 6rem); max-width: 52rem; }
.faq__item { border-top: 1px solid var(--line-light); }
.faq__item:last-child { border-bottom: 1px solid var(--line-light); }
.faq__item summary {
  position: relative; padding: 1.35rem 2.5rem 1.35rem 0; cursor: pointer; list-style: none;
  font-family: var(--serif); font-size: 1.3rem;
}
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after {
  content: ""; position: absolute; right: .25rem; top: 50%; width: 12px; height: 12px; margin-top: -8px;
  border-right: 1px solid var(--gold); border-bottom: 1px solid var(--gold);
  transform: rotate(45deg); transition: transform var(--dur) var(--ease);
}
.faq__item[open] summary::after { transform: rotate(-135deg); margin-top: -2px; }
.faq__item p { padding-bottom: 1.5rem; font-size: .92rem; font-weight: 300; color: rgba(247, 244, 239, .75); max-width: 44rem; }

/* 12. INSTAGRAM ---------------------------------------------------------- */
.ig-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: .5rem; }
.ig-tile a { position: relative; display: block; aspect-ratio: 1; overflow: hidden; background: var(--sand); }
.ig-tile img { width: 100%; height: 100%; object-fit: cover; transition: transform 1s var(--ease), filter var(--dur); }
.ig-tile a::after {
  content: ""; position: absolute; inset: 0; background: rgba(35, 32, 32, 0);
  transition: background-color var(--dur) var(--ease);
}
.ig-tile a:hover img { transform: scale(1.05); }
.ig-tile a:hover::after { background: rgba(35, 32, 32, .18); }
.ig-tile--quote a { display: grid; place-items: center; background: var(--ink); text-decoration: none; }
.ig-tile__quote { font-family: var(--serif); font-style: italic; font-size: clamp(1.3rem, 3vw, 2rem); color: var(--gold-soft); text-align: center; line-height: 1.15; }
.instagram__cta { margin-top: 2.5rem; text-align: center; }
.ig-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1.5rem 2rem; margin-bottom: clamp(2rem, 4vw, 3rem); }
.ig-profile {
  display: inline-flex; align-items: center; gap: 1rem; padding: .6rem 1.25rem .6rem .6rem;
  border: 1px solid var(--line); border-radius: 100px; background: var(--paper); text-decoration: none;
  transition: box-shadow var(--dur) var(--ease), transform var(--dur) var(--ease);
}
.ig-profile:hover { box-shadow: var(--shadow); transform: translateY(-2px); }
.ig-profile__avatar {
  width: 56px; height: 56px; flex: none; display: grid; place-items: center; border-radius: 50%;
  background: var(--ivory); box-shadow: 0 0 0 2px var(--paper), 0 0 0 3px var(--gold);
}
.ig-profile__avatar img { width: 40px; }
.ig-profile__text { display: grid; line-height: 1.3; }
.ig-profile__handle { font-weight: 500; font-size: .95rem; }
.ig-profile__cta { display: inline-flex; align-items: center; gap: .4rem; font-size: .7rem; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-deep); }
.ig-profile__cta svg { width: 14px; fill: none; stroke: currentColor; stroke-width: 1.6; }
.ig-embed:not(.is-active) { display: none; }
.ig-embed { min-height: 200px; }
.ig-embed iframe { width: 100%; border: 0; }
.btn__icon { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; }
.btn__icon .dot { fill: currentColor; stroke: none; }

.social-link {
  display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%;
  border: 1px solid currentColor; text-decoration: none; transition: background-color var(--dur), color var(--dur), border-color var(--dur);
}
.social-link svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linejoin: round; }
.social-link svg .dot { fill: currentColor; stroke: none; }
.social-link svg .thin { stroke-width: 1.1; }
.main-nav__ig { display: inline-flex; width: auto; height: auto; gap: .6rem; border: 0; align-self: flex-start; font-size: .75rem; letter-spacing: .16em; text-transform: uppercase; }
.main-nav__ig svg { width: 22px; height: 22px; }
.site-footer__social { display: flex; gap: .75rem; margin-top: 1.5rem; }
.site-footer__social .social-link { color: var(--gold-soft); border-color: var(--line-light); }
.site-footer__social .social-link:hover { background: var(--gold); border-color: var(--gold); color: #fff; }

/* 13. GARANTÍA ----------------------------------------------------------- */
.warranty {
  position: relative; overflow: hidden;
  padding-block: clamp(5rem, 4rem + 8vw, 10rem);
  background: #1A1717; color: var(--ivory); text-align: center;
}
.warranty::before, .warranty::after {
  content: ""; position: absolute; left: 50%; top: 50%; border-radius: 50%;
  border: 1px solid var(--line-light); transform: translate(-50%, -50%); pointer-events: none;
}
.warranty::before { width: min(120vw, 1100px); aspect-ratio: 1; }
.warranty::after  { width: min(80vw, 720px); aspect-ratio: 1; border-color: rgba(168, 135, 90, .25); }
.warranty__inner { position: relative; z-index: 1; display: grid; justify-items: center; }
.warranty__title { display: grid; justify-items: center; font-family: var(--serif); font-weight: 400; line-height: .9; }
.warranty__small {
  font-family: var(--sans); font-size: clamp(.8rem, .7rem + .5vw, 1.1rem); font-weight: 400;
  letter-spacing: .5em; text-transform: uppercase; color: var(--gold-soft); margin-bottom: .5rem; padding-left: .5em;
}
.warranty__num {
  font-size: clamp(9rem, 6rem + 18vw, 22rem); line-height: .82; letter-spacing: -.04em;
  background: linear-gradient(180deg, #E9DCC2 0%, var(--gold) 55%, var(--gold-deep) 100%);
  -webkit-background-clip: text; background-clip: text; color: transparent;
}
.warranty__words { font-size: clamp(2.2rem, 1.4rem + 4vw, 4.8rem); font-style: italic; margin-top: .25rem; }
.warranty__lead { max-width: 38rem; margin: 2rem auto 0; font-size: var(--fs-lg); font-weight: 300; color: rgba(247, 244, 239, .75); }
.warranty__points { display: flex; flex-wrap: wrap; justify-content: center; gap: .6rem; margin-top: 2.5rem; }
.warranty__points li {
  padding: .5rem 1rem; border: 1px solid var(--line-light); border-radius: 100px;
  font-size: .76rem; letter-spacing: .06em; color: var(--gold-soft);
}
.warranty__fine { margin-top: 2rem; font-size: .74rem; font-style: italic; color: rgba(247, 244, 239, .45); }

/* 14. FOOTER + WHATSAPP -------------------------------------------------- */
.site-footer { background: #1A1717; color: rgba(247, 244, 239, .72); padding-top: clamp(3.5rem, 7vw, 5.5rem); font-size: .88rem; }
.site-footer__grid { display: grid; gap: 2.5rem; padding-bottom: 3rem; }
.site-footer__brand img { width: 150px; margin-bottom: 1.25rem; }
.site-footer__brand p { max-width: 22rem; font-weight: 300; }
.site-footer__heading { margin-bottom: 1rem; font-size: var(--fs-xs); font-weight: 500; letter-spacing: .24em; text-transform: uppercase; color: var(--gold-soft); }
.site-footer ul { display: grid; gap: .55rem; }
.site-footer a { text-decoration: none; transition: color var(--dur); }
.site-footer a:hover { color: var(--ivory); }
.site-footer__bottom {
  display: flex; flex-wrap: wrap; justify-content: space-between; gap: .75rem;
  padding-block: 1.5rem; border-top: 1px solid var(--line-light); font-size: .76rem; color: rgba(247, 244, 239, .5);
}
.site-footer__bottom p { margin: 0; }

.wa-float {
  position: fixed; right: 1rem; bottom: 1rem; z-index: 90;
  width: 54px; height: 54px; display: grid; place-items: center;
  border-radius: 50%; background: var(--ink); color: var(--ivory);
  box-shadow: 0 12px 30px -10px rgba(35, 32, 32, .5);
  transition: transform var(--dur) var(--ease), background-color var(--dur);
}
.wa-float:hover { transform: scale(1.06); background: var(--gold); }
.wa-float svg { width: 26px; height: 26px; fill: currentColor; }

/* 15. ANIMACIONES / UTILIDADES ------------------------------------------- */
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(6px); } }

.js .reveal { opacity: 0; transform: translateY(24px); transition: opacity .9s var(--ease), transform .9s var(--ease); }
.js .reveal.is-visible { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ==========================================================================
   BREAKPOINTS (mobile-first)
   ========================================================================== */
@media (min-width: 640px) {
  .hero__paths { grid-template-columns: 1fr 1fr; }
  .certs__grid { grid-template-columns: repeat(3, 1fr); }
  .ig-grid { grid-template-columns: repeat(3, 1fr); }
  .form-grid { grid-template-columns: 1fr 1fr; }
  .field--full { grid-column: 1 / -1; }
  .locator__form .btn { justify-self: start; }
  .leadgen__flow { grid-template-columns: repeat(3, 1fr); }
  .leadgen__flow li { flex-direction: column; align-items: flex-start; gap: .4rem; }
  .site-footer__grid { grid-template-columns: 1fr 1fr; }
}

@media (min-width: 880px) {
  .pillows__grid { grid-template-columns: 1fr 1fr; }
  .pillars { grid-template-columns: 1fr 1fr; }
  .process__list { grid-template-columns: repeat(4, 1fr); }
  .scroll-cue { display: grid; }
}

@media (min-width: 1024px) {
  :root { --header-h: 84px; }
  .brand img { width: 150px; }
  .nav-toggle { display: none; }
  .main-nav {
    position: static; flex-direction: row; align-items: center; gap: 2rem;
    padding: 0; background: none; border: 0;
    opacity: 1; visibility: visible; transform: none;
  }
  .main-nav__list { flex-direction: row; gap: 1.75rem; }
  .main-nav__list a {
    padding: .25rem 0; border: 0;
    font-family: var(--sans); font-size: .72rem; font-weight: 500; letter-spacing: .18em; text-transform: uppercase;
    background: linear-gradient(var(--gold), var(--gold)) left bottom / 0 1px no-repeat;
    transition: background-size var(--dur) var(--ease);
  }
  .main-nav__list a:hover, .main-nav__list a[aria-current="true"] { background-size: 100% 1px; }

  .hero { min-height: calc(100svh - var(--header-h)); display: flex; align-items: center; }
  .hero__grid { grid-template-columns: 1.05fr .95fr; }
  .hero__media img { aspect-ratio: 4 / 5; max-height: calc(100svh - var(--header-h) - 6rem); }

  .certs__grid { grid-template-columns: repeat(6, 1fr); }

  .product { grid-template-columns: 1fr 1fr; }
  .product--reverse .product__gallery { order: 2; }
  .product__gallery { position: sticky; top: calc(var(--header-h) + 2rem); }

  .quiz-section__grid { grid-template-columns: .85fr 1.15fr; }
  .quiz-section__grid--reverse .quiz-section__intro { order: 2; }

  .pillows__grid { grid-template-columns: repeat(4, 1fr); }
  .pillows__grid .pillow__art { aspect-ratio: 4 / 3; }

  .locator__inner { grid-template-columns: 1fr 1fr; gap: 5rem; }

  .pillars { grid-template-columns: repeat(4, 1fr); }
  .leadgen { grid-template-columns: 1fr 1.1fr; }
  .b2b__convert { grid-template-columns: 1.35fr .9fr; gap: 3rem; }

  .ig-grid { grid-template-columns: repeat(6, 1fr); }

  .main-nav__ig { width: 40px; height: 40px; display: inline-grid; place-items: center; border: 1px solid var(--line); border-radius: 50%; align-self: center; }
  .main-nav__ig:hover { border-color: var(--gold); color: var(--gold-deep); }
  .main-nav__ig svg { width: 18px; height: 18px; }
  .main-nav__ig-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .main-nav { gap: 1.5rem; }

  .site-footer__grid { grid-template-columns: 1.6fr 1fr 1fr 1fr; }
  .wa-float { right: 1.75rem; bottom: 1.75rem; }
}

/* ==========================================================================
   16. WORDPRESS — barra de administración y páginas internas
   ========================================================================== */
.admin-bar .site-header { top: 46px; }
.admin-bar .main-nav { inset-block-start: calc(var(--header-h) + 46px); }
@media (min-width: 783px) {
  .admin-bar .site-header { top: 32px; }
  .admin-bar .main-nav { inset-block-start: calc(var(--header-h) + 32px); }
}
@media (max-width: 600px) { .admin-bar .site-header { top: 0; } .admin-bar .main-nav { inset-block-start: var(--header-h); } }
@media (min-width: 1024px) { .admin-bar .main-nav { inset-block-start: auto; } }

.entry { padding-block: var(--section-y); }
.entry__header { margin-bottom: 2.5rem; }
.entry__title { font-family: var(--serif); font-size: var(--fs-h2); }
.entry__content { max-width: 46rem; font-size: 1rem; color: var(--ink-2); }
.entry__content h2, .entry__content h3 { font-family: var(--serif); margin: 2.2rem 0 1rem; color: var(--ink); }
.entry__content h2 { font-size: var(--fs-h3); }
.entry__content a { color: var(--gold-deep); }
.entry__content img { height: auto; }
.entry__content .alignwide, .entry__content .alignfull { max-width: none; }
.post-list { display: grid; gap: 2.5rem; }
.post-card__title { font-family: var(--serif); font-size: 1.8rem; }
.post-card__title a { text-decoration: none; }
.pagination { margin-top: 3rem; display: flex; gap: 1rem; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

/* Menú en pantallas medianas (1024–1279 px): evita que se parta en dos líneas */
@media (min-width: 1024px) {
  .main-nav__list a, .main-nav__cta { white-space: nowrap; }
}
@media (min-width: 1024px) and (max-width: 1279px) {
  .brand img { width: 128px; }
  .main-nav { gap: 1rem; }
  .main-nav__list { gap: 1.1rem; }
  .main-nav__list a { letter-spacing: .12em; font-size: .68rem; }
  .main-nav__list li:nth-child(4) { display: none; } /* Certificaciones: sigue en el pie */
}
