/* Vista previa editorial del test de aromas. */
.guide-test-preview {
  display:grid;
  place-content:center;
  justify-items:center;
  gap:clamp(10px, .9vw, 18px);
  padding:clamp(28px, 3vw, 56px);
  text-align:center;
}
.guide-test-preview > small { color:var(--ink); }
.guide-test-preview h3 {
  margin:0;
  color:var(--ink);
  font:clamp(38px, 3vw, 64px)/1.02 Italiana, Georgia, serif;
  font-weight:400;
  letter-spacing:-.04em;
}
.guide-progress {
  margin:0;
  color:var(--brown);
  font-size:clamp(10px, .58vw, 14px);
  font-weight:700;
  letter-spacing:.18em;
}
.guide-moods {
  display:grid;
  grid-template-columns:repeat(4, minmax(84px, 1fr));
  gap:clamp(8px, .8vw, 16px);
  width:min(100%, 560px);
}
.guide-moods--types {
  grid-template-columns:repeat(2, minmax(180px, 1fr));
  width:min(100%, 500px);
}
.guide-test-preview .guide-moods button {
  display:grid;
  place-items:center;
  gap:clamp(7px, .65vw, 12px);
  min-height:clamp(125px, 10.5vw, 190px);
  margin:0;
  padding:clamp(10px, .9vw, 18px) 8px;
  border:1px solid var(--brown);
  border-radius:8px;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 8px 18px color-mix(in srgb, var(--olive) 7%, transparent);
  transition:transform .3s ease, box-shadow .3s ease, background .3s ease;
}
.guide-test-preview .guide-moods button:hover,
.guide-test-preview .guide-moods button:focus-visible {
  transform:translateY(-4px);
  background:var(--cream);
  box-shadow:0 12px 24px color-mix(in srgb, var(--olive) 17%, transparent);
}
.guide-test-preview .guide-moods span {
  position:static;
  display:grid;
  width:clamp(34px, 3vw, 56px);
  height:auto;
  aspect-ratio:1;
  place-items:center;
  border-radius:50%;
  border:0;
  background:var(--cream);
  font-size:clamp(19px, 1.5vw, 31px);
  line-height:1;
}
.guide-test-preview .guide-moods b {
  font:clamp(18px, 1.25vw, 29px)/1 Italiana, Georgia, serif;
  font-weight:400;
  letter-spacing:-.025em;
}
.guide > div:first-child > button {
  min-width:clamp(180px, 14vw, 270px);
  min-height:clamp(48px, 3.4vw, 64px);
  padding:clamp(13px, .9vw, 18px) clamp(20px, 1.45vw, 30px);
  font-size:clamp(14px, .8vw, 19px);
  background:var(--ink);
  color:var(--paper);
}
.hero-copy button { background:var(--cream); color:var(--ink); }
.guide-test-preview .guide-start {
  width:auto;
  min-width:clamp(156px, 12vw, 225px);
  margin:clamp(2px, .35vw, 8px) 0 0;
  padding:clamp(11px, .72vw, 15px) clamp(17px, 1.1vw, 24px);
  border:0;
  background:var(--ink);
  color:var(--paper);
  font-size:clamp(12px, .68vw, 16px);
  font-weight:700;
  box-shadow:0 8px 18px color-mix(in srgb, var(--ink) 17%, transparent);
}
.guide-test-preview .guide-start:hover { background:var(--olive); }
.guide-test-preview .guide-note { color:var(--brown); font-size:clamp(8px, .48vw, 12px); }

@media (max-width:700px) {
  .guide-test-preview { min-height:470px; padding:34px 20px; border-top:1px solid var(--brown); border-left:0; }
  .guide-moods { grid-template-columns:repeat(2, minmax(0, 1fr)); max-width:360px; }
  .guide-test-preview .guide-moods button { min-height:100px; }
}

@media (max-width:420px) {
  .guide-moods--types { grid-template-columns:1fr; max-width:280px; }
}

/* Bruma Clara para las fichas claras de productos. */
.products .copy.cream { background:var(--paper); }

/* Test editorial de cuatro pasos. Solo usa la paleta y tipografías Scent Savvy. */
.scent-test {
  width:min(1180px, calc(100% - 32px));
  max-width:none;
  height:min(820px, calc(100dvh - 32px));
  max-height:none;
  margin:auto;
  padding:0;
  border:1px solid var(--brown);
  border-radius:0;
  background:var(--paper);
  color:var(--ink);
  box-shadow:0 28px 80px color-mix(in srgb, var(--ink) 50%, transparent);
  overflow:hidden;
}
.scent-test::backdrop { background:color-mix(in srgb, var(--ink) 91%, transparent); }
.scent-test.is-fallback-open {
  position:fixed;
  inset:0;
  z-index:1000;
  display:block;
  box-shadow:0 0 0 100vmax color-mix(in srgb, var(--ink) 91%, transparent);
}
.test-shell {
  display:grid;
  grid-template-rows:auto auto minmax(0, 1fr) auto;
  height:100%;
  background:var(--paper);
}
.scent-test .test-header {
  position:static;
  display:grid;
  grid-template-columns:100px 1fr auto;
  align-items:center;
  width:100%;
  max-width:none;
  height:auto;
  min-height:112px;
  margin:0;
  padding:20px clamp(24px, 4vw, 58px);
  border:0;
  background:var(--ink);
  color:var(--paper);
}
.test-brand {
  font:44px/.62 Italiana, Georgia, serif;
  letter-spacing:-.09em;
}
.test-header > div { display:grid; gap:5px; }
.test-header small { color:var(--cream); }
.test-header strong { font-size:clamp(13px, 1vw, 17px); font-weight:500; }
.scent-test .close {
  position:static;
  display:grid;
  width:48px;
  height:48px;
  place-items:center;
  padding:0 0 5px;
  border:1px solid var(--paper);
  border-radius:50%;
  background:transparent;
  color:var(--paper);
  font:32px/1 Raleway, Arial, sans-serif;
}
.scent-test .close:hover,
.scent-test .close:focus-visible { background:var(--cream); color:var(--ink); outline:0; }
.test-progress {
  display:grid;
  grid-template-columns:repeat(4, 1fr);
  gap:8px;
  padding:16px clamp(24px, 4vw, 58px);
  background:var(--cream);
}
.test-progress span { height:4px; background:var(--paper); border:1px solid var(--brown); }
.test-progress span.is-active { background:var(--olive); }
.test-content {
  max-width:none;
  min-height:0;
  padding:clamp(30px, 3vw, 46px) clamp(24px, 6vw, 88px);
  overflow:auto;
  background:var(--paper);
}
.scent-test.is-showing-results .test-content {
  padding-top:clamp(18px, 1.6vw, 24px);
  padding-bottom:20px;
}
.test-question { max-width:1000px; margin:auto; }
.test-step {
  float:right;
  margin:0;
  color:var(--brown);
  font-size:12px;
  font-weight:700;
  letter-spacing:.16em;
}
.test-eyebrow { color:var(--olive); }
.scent-test .test-question h2,
.scent-test .test-result h2 {
  max-width:760px;
  margin:12px 0 10px;
  font:clamp(42px, 4.2vw, 64px)/.98 Italiana, Georgia, serif;
  font-weight:400;
  letter-spacing:-.045em;
}
.test-helper,
.test-result-copy { max-width:680px; margin:0; color:var(--brown); font-size:clamp(14px, 1.15vw, 18px); }
.test-options {
  display:grid;
  grid-template-columns:repeat(2, minmax(0, 1fr));
  gap:12px;
  margin-top:clamp(24px, 2.5vw, 34px);
}
.test-option {
  position:relative;
  display:grid;
  grid-template-columns:auto 1fr;
  grid-template-rows:auto auto;
  column-gap:18px;
  min-height:112px;
  padding:22px 24px;
  border:1px solid var(--brown);
  border-radius:0;
  background:var(--paper);
  color:var(--ink);
  text-align:left;
  transition:background 280ms ease, color 280ms ease, transform 280ms ease;
}
.test-option > span {
  grid-row:1 / 3;
  align-self:start;
  color:var(--olive);
  font-size:10px;
  font-weight:700;
  letter-spacing:.14em;
}
.test-option strong { align-self:end; font:clamp(24px, 2.2vw, 36px)/1 Italiana, Georgia, serif; font-weight:400; }
.test-option em { align-self:start; margin-top:7px; color:var(--brown); font-size:12px; font-style:normal; }
.test-option:hover { background:var(--cream); transform:translateY(-2px); }
.test-option:focus-visible { outline:3px solid var(--olive); outline-offset:3px; }
.test-option[aria-pressed="true"] { background:var(--olive); color:var(--paper); }
.test-option[aria-pressed="true"] > span,
.test-option[aria-pressed="true"] em { color:var(--cream); }
.test-actions {
  display:grid;
  grid-template-columns:minmax(170px, 1fr) auto minmax(170px, 1fr);
  column-gap:clamp(32px, 6vw, 88px);
  align-items:center;
  min-height:104px;
  padding:18px clamp(28px, 5vw, 72px);
  border-top:1px solid var(--brown);
  background:var(--paper);
}
.test-actions button,
.test-result-actions a,
.test-result-actions button {
  min-height:48px;
  padding:13px 22px;
  border:1px solid var(--ink);
  border-radius:0;
  font-size:12px;
  font-weight:700;
}
.test-back { justify-self:start; background:transparent; color:var(--ink); }
.test-next { justify-self:end; background:var(--ink); color:var(--paper); }
.test-next:disabled { border-color:var(--brown); background:var(--paper); color:var(--brown); cursor:not-allowed; }
.test-selection-status { color:var(--brown); font-size:11px; font-weight:700; white-space:nowrap; }
.test-result { max-width:1040px; margin:auto; }
.test-result[hidden],
.test-question[hidden],
.test-actions[hidden] { display:none; }
.test-matches {
  display:grid;
  grid-template-columns:repeat(3, minmax(0, 1fr));
  gap:0;
  margin-top:32px;
  background:var(--paper);
  border-top:1px solid var(--brown);
  border-right:1px solid var(--brown);
  border-bottom:1px solid var(--brown);
  border-left:1px solid var(--brown);
}
.scent-test.is-showing-results .test-matches { margin-top:24px; }
.test-matches article {
  position:relative;
  display:flex;
  min-height:320px;
  flex-direction:column;
  padding:24px;
  background:var(--paper);
  color:var(--ink);
}
.test-matches article + article { border-left:1px solid var(--brown); }
.match-number {
  position:absolute;
  top:32px;
  right:32px;
  z-index:1;
  color:var(--brown);
  font-size:10px;
  font-weight:700;
  line-height:1;
  letter-spacing:.14em;
}
.match-image { display:grid; height:138px; place-items:center; margin-bottom:18px; padding-bottom:10px; border-bottom:1px solid var(--brown); background:var(--paper); }
.match-image img { width:auto; height:128px; object-fit:contain; }
.test-matches small { color:var(--olive); }
.test-matches h3 { margin:7px 0; font:clamp(25px, 2vw, 34px)/1 Italiana, Georgia, serif; }
.test-matches p { color:var(--brown); font-size:11px; }
.test-matches em { margin:9px 0 12px; color:var(--ink); font-size:11px; font-style:normal; }
.test-matches a {
  display:inline-flex;
  width:fit-content;
  min-height:36px;
  align-items:center;
  margin-top:auto;
  padding:9px 0 7px;
  border:0;
  border-bottom:2px solid var(--ink);
  background:var(--paper);
  color:var(--ink);
  font-size:11px;
  font-weight:700;
  transition:background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.test-matches a:hover { border-bottom-color:var(--olive); background:var(--paper); color:var(--olive); }
.test-matches a:focus-visible { outline:3px solid var(--olive); outline-offset:3px; }
.test-result-actions { display:flex; flex-wrap:wrap; gap:10px; margin-top:22px; }
.test-catalog-link { display:inline-flex; align-items:center; background:var(--olive); color:var(--paper); }
.test-restart { background:var(--paper); color:var(--ink); }

@media (max-width:700px) {
  .scent-test { width:100%; height:100dvh; border:0; }
  .scent-test .test-header { grid-template-columns:66px 1fr auto; min-height:92px; padding:16px 20px; }
  .test-brand { font-size:32px; }
  .scent-test .close { width:42px; height:42px; }
  .test-progress { padding:12px 20px; }
  .test-content { padding:30px 20px; }
  .test-step { float:none; margin-bottom:16px; }
  .scent-test .test-question h2,
  .scent-test .test-result h2 { font-size:clamp(38px, 12vw, 58px); }
  .test-options { grid-template-columns:1fr; margin-top:26px; }
  .test-option { min-height:104px; }
  .test-actions { grid-template-columns:1fr 1fr; min-height:80px; padding:12px 20px; }
  .test-selection-status { display:none; }
  .test-matches { grid-template-columns:1fr; }
  .test-matches article { min-height:310px; }
  .test-matches article + article { border-top:1px solid var(--brown); border-left:0; }
}

@media (prefers-reduced-motion:reduce) {
  .test-option,
  .test-matches a { transition:none; }
}
