/* ==========================================================================
   ESTUDIOFRAGANCIA
   1) Tokens  2) Reset  3) Layout  4) Componentes  5) Tienda  6) Diálogos
   7) Movimiento  8) Responsive  9) Menos movimiento
   Regla: solo se anima transform y opacity (+ colores en elementos pequeños).
   Tipografía y paleta tomadas del sitio original: Wix Madefor, verde profundo,
   crema y dorado.
   ========================================================================== */

/* 1) TOKENS ---------------------------------------------------------------- */
:root {
  --bg: #fdfcf2;
  --bg-alt: #f4f1e3;
  --ink: #1a251e;
  --muted: #545f56;
  --line: rgba(26, 37, 30, .15);
  --gold: #85702f;            /* relleno de botones (texto crema, contraste AA) */
  --gold-ink: #7a6425;        /* texto dorado sobre crema */
  --gold-light: #c5ac63;      /* dorado sobre verde oscuro */
  --dark: #1a251e;
  --dark-2: #232f27;
  --dark-ink: #fdfcf2;
  --mp: #0b6fa4;
  --wa: #178246;
  --ok: #2c7a4b;
  --danger: #b3342c;
  --focus: #85702f;

  --font: "Wix Madefor Text", system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-display: "Wix Madefor Display", var(--font);
  --fs-body: 1.0625rem;
  --fs-h1: clamp(2.75rem, 1.1rem + 6.4vw, 6.25rem);
  --fs-h2: clamp(2.1rem, 1.2rem + 3.4vw, 4rem);
  --fs-h3: clamp(1.25rem, 1.1rem + .6vw, 1.6rem);

  --radius: 6px;
  --radius-lg: 10px;
  --shadow-lg: 0 24px 48px -18px rgba(26, 37, 30, .35);

  --ease: cubic-bezier(.22, 1, .36, 1);
  --t-fast: 180ms;
  --t-base: 420ms;
  --t-slow: 700ms;

  --gutter: clamp(20px, 5vw, 48px);
  --header-h: 72px;
  --section-y: clamp(72px, 10vw, 128px);
}

/* 2) RESET ----------------------------------------------------------------- */
*, *::before, *::after { box-sizing: border-box; }
html {
  -webkit-text-size-adjust: 100%;
  scrollbar-gutter: stable;
  scroll-padding-top: calc(var(--header-h) + 12px);
}
@media (prefers-reduced-motion: no-preference) { html { scroll-behavior: smooth; } }
html.nav-open, html:has(dialog[open]) { overflow: hidden; }
body {
  margin: 0;
  font: 400 var(--fs-body)/1.65 var(--font);
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: clip;
}
img, svg { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
button, input, textarea, select { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
ul, ol { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4, p, dl, dd, figure { margin: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 4px; }
::selection { background: var(--gold-light); color: var(--ink); }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.skip { position: fixed; left: 12px; top: -60px; z-index: 100; padding: 12px 18px; background: var(--dark); color: var(--dark-ink); border-radius: var(--radius); transition: transform var(--t-fast) var(--ease); }
.skip:focus { transform: translateY(72px); }
svg { fill: none; }
svg use { pointer-events: none; }

/* 3) LAYOUT ---------------------------------------------------------------- */
.container { width: min(1280px, 100% - 2 * var(--gutter)); margin-inline: auto; }
.section { padding-block: var(--section-y); }
.section--alt { background: var(--bg-alt); }
.section--dark { background: var(--dark); color: var(--dark-ink); --line: rgba(253, 252, 242, .18); --muted: #b7bdb4; --focus: var(--gold-light); }
.eyebrow { font-size: .8125rem; font-weight: 600; letter-spacing: .16em; text-transform: uppercase; color: var(--gold-ink); margin-bottom: 18px; }
.section--dark .eyebrow { color: var(--gold-light); }
h1, h2, h3, h4 { font-family: var(--font-display); font-weight: 400; letter-spacing: -.025em; line-height: 1.04; text-wrap: balance; }
h1 { font-size: var(--fs-h1); letter-spacing: -.035em; line-height: .98; }
h2 { font-size: var(--fs-h2); }
h3 { font-size: var(--fs-h3); line-height: 1.2; letter-spacing: -.015em; }
.lead { font-size: clamp(1.08rem, 1rem + .4vw, 1.3rem); color: var(--muted); max-width: 54ch; text-wrap: pretty; }
.section__head { max-width: 720px; margin-bottom: clamp(32px, 4.5vw, 56px); }
.section__head .lead { margin-top: 20px; }

/* 4) COMPONENTES ----------------------------------------------------------- */
.btn {
  --_bg: transparent; --_fg: var(--ink); --_bd: var(--ink);
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  min-height: 52px; padding: 0 28px;
  border-radius: var(--radius); border: 1px solid var(--_bd); background: var(--_bg); color: var(--_fg);
  font-weight: 500; font-size: 1rem; letter-spacing: .005em; white-space: nowrap;
  transition: transform var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), border-color var(--t-fast) var(--ease);
  -webkit-tap-highlight-color: transparent;
}
.btn svg { width: 18px; height: 18px; flex: none; stroke-width: 1.8; transition: transform var(--t-base) var(--ease); }
.btn--primary { --_bg: var(--gold); --_fg: #fdfcf2; --_bd: var(--gold); }
.btn--line { --_bd: var(--ink); }
.btn--ghost-light { --_fg: var(--dark-ink); --_bd: rgba(253, 252, 242, .45); }
.btn--mp { --_bg: var(--mp); --_fg: #fff; --_bd: var(--mp); min-height: 56px; font-weight: 600; }
.btn--wa { --_bg: var(--wa); --_fg: #fff; --_bd: var(--wa); min-height: 56px; font-weight: 600; }
.btn--wa svg { fill: currentColor; }
.btn--sm { min-height: 44px; padding: 0 20px; font-size: .9375rem; }
.btn--block { width: 100%; }
.btn:active { transform: scale(.98); }
.btn[disabled] { opacity: .6; pointer-events: none; }
@media (hover: hover) {
  .btn:hover { transform: translateY(-2px); }
  .btn:active { transform: scale(.98); }
  .btn:hover svg { transform: translateX(3px); }
  .btn--primary:hover { --_bg: #6f5d26; --_bd: #6f5d26; }
  .btn--line:hover { --_bg: var(--ink); --_fg: var(--bg); }
  .btn--ghost-light:hover { --_bg: var(--dark-ink); --_fg: var(--dark); --_bd: var(--dark-ink); }
  .btn--mp:hover { --_bg: #095d8a; --_bd: #095d8a; }
  .btn--wa:hover { --_bg: #126b3a; --_bd: #126b3a; }
  .section--dark .btn--line { --_bd: rgba(253, 252, 242, .5); --_fg: var(--dark-ink); }
  .section--dark .btn--line:hover { --_bg: var(--dark-ink); --_fg: var(--dark); }
}
.section--dark .btn--line { --_bd: rgba(253, 252, 242, .5); --_fg: var(--dark-ink); }
.section--dark .form .btn--line { --_bd: var(--ink); --_fg: var(--ink); }
@media (hover: hover) { .section--dark .form .btn--line:hover { --_bg: var(--ink); --_fg: var(--bg); --_bd: var(--ink); } }
.icon-btn { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.icon-btn svg { width: 22px; height: 22px; stroke-width: 1.7; stroke: currentColor; }
.icon-btn:active { transform: scale(.94); }
@media (hover: hover) { .icon-btn:hover { background: rgba(26, 37, 30, .08); } }

/* Cabecera */
.site-header { position: fixed; inset: 0 0 auto 0; z-index: 50; height: var(--header-h); background: var(--dark); color: var(--dark-ink); --focus: var(--gold-light); }
.site-header__row { height: 100%; display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.logo { display: inline-flex; align-items: center; gap: 12px; min-height: 44px; }
.logo__mark { width: 24px; height: 30px; color: var(--gold-light); flex: none; }
.logo__text { font-family: var(--font-display); font-size: .9375rem; font-weight: 500; letter-spacing: .24em; text-transform: uppercase; }
.nav { display: flex; align-items: center; gap: 28px; margin-left: auto; }
.nav ul { display: flex; gap: 4px; }
.nav li a {
  position: relative; display: inline-flex; align-items: center; min-height: 44px; padding: 0 14px;
  font-size: .9375rem; font-weight: 500; color: rgba(253, 252, 242, .72);
  transition: color var(--t-fast) var(--ease);
}
.nav li a::after { content: ""; position: absolute; left: 14px; right: 14px; bottom: 8px; height: 1px; background: var(--gold-light); transform: scaleX(0); transform-origin: center; transition: transform var(--t-base) var(--ease); }
.nav li a[aria-current="true"] { color: var(--dark-ink); }
.nav li a[aria-current="true"]::after { transform: scaleX(1); }
@media (hover: hover) { .nav li a:hover { color: var(--dark-ink); } .nav li a:hover::after { transform: scaleX(1); } }
.site-header__tools { display: flex; align-items: center; gap: 4px; }
.cart-btn { position: relative; width: 48px; height: 48px; display: grid; place-items: center; border-radius: 50%; transition: background-color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease); }
.cart-btn svg { width: 26px; height: 26px; stroke: currentColor; }
.cart-btn:active { transform: scale(.94); }
@media (hover: hover) { .cart-btn:hover { background: rgba(253, 252, 242, .1); } }
.cart-btn__count {
  position: absolute; top: 4px; right: 2px; min-width: 20px; height: 20px; padding: 0 5px; display: grid; place-items: center;
  border-radius: 10px; background: var(--gold-light); color: var(--dark); font-size: .75rem; font-weight: 700; font-variant-numeric: tabular-nums;
}
.cart-btn.is-bump svg, .cart-btn.is-bump .cart-btn__count { animation: bump .5s var(--ease); }
@keyframes bump { 0% { transform: scale(1); } 35% { transform: scale(1.22); } 100% { transform: scale(1); } }
.nav-toggle { display: none; position: relative; width: 48px; height: 48px; border-radius: 50%; }
.nav-toggle span { position: absolute; left: 14px; right: 14px; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform var(--t-base) var(--ease); }
.nav-toggle span:nth-child(1) { top: 20px; }
.nav-toggle span:nth-child(2) { top: 27px; }
.nav-toggle[aria-expanded="true"] span:nth-child(1) { transform: translateY(3.5px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] span:nth-child(2) { transform: translateY(-3.5px) rotate(-45deg); }

/* Hero */
.hero { padding-top: calc(var(--header-h) + clamp(40px, 6vw, 88px)); padding-bottom: clamp(48px, 7vw, 96px); }
.hero__grid { display: grid; grid-template-columns: 1.1fr .9fr; gap: clamp(32px, 5vw, 88px); align-items: center; }
.hero h1 { margin-bottom: 28px; }
.hero .lead { margin-bottom: 36px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 8px 28px; margin-top: 40px; padding-top: 24px; border-top: 1px solid var(--line); font-size: .9375rem; color: var(--muted); }
.hero__facts li { display: flex; align-items: baseline; gap: 6px; }
.hero__facts strong { font-weight: 600; color: var(--ink); }
.hero__media { position: relative; aspect-ratio: 4 / 5; border-radius: var(--radius); overflow: hidden; isolation: isolate; background: #2b1a1a; }
.hero__media > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__pick {
  position: absolute; left: 16px; bottom: 16px; right: 16px; max-width: 340px; display: flex; align-items: center; gap: 14px; padding: 10px 16px 10px 10px;
  background: rgba(253, 252, 242, .96); color: var(--ink); border-radius: var(--radius); text-align: left;
  transition: transform var(--t-base) var(--ease);
}
.hero__pick img { width: 54px; height: 68px; object-fit: cover; border-radius: 3px; flex: none; }
.hero__pick span { display: grid; gap: 1px; min-width: 0; }
.hero__pick small { font-size: .6875rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.hero__pick strong { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.2; }
.hero__pick em { font-style: normal; font-size: .9375rem; color: var(--muted); }
.hero__pick > svg { margin-left: auto; width: 20px; height: 20px; stroke: currentColor; flex: none; transition: transform var(--t-base) var(--ease); }
@media (hover: hover) { .hero__pick:hover { transform: translateY(-3px); } .hero__pick:hover > svg { transform: translateX(4px); } }

/* Cómo comprar */
.how { border-block: 1px solid var(--line); background: var(--bg-alt); }
.how__list { display: grid; grid-template-columns: repeat(3, 1fr); gap: clamp(24px, 4vw, 64px); padding-block: clamp(28px, 4vw, 48px); }
.how__list li { display: flex; gap: 18px; align-items: flex-start; }
.how__n { font-family: var(--font-display); font-size: 2.25rem; line-height: 1; color: var(--gold-ink); letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.how h2 { font-size: 1.25rem; letter-spacing: -.01em; font-weight: 500; line-height: 1.25; margin-bottom: 6px; }
.how p { color: var(--muted); font-size: .9375rem; line-height: 1.55; }

/* 5) TIENDA ---------------------------------------------------------------- */
.toolbar { display: grid; gap: 20px; margin-bottom: 20px; }
.toolbar__row { display: grid; grid-template-columns: 1.4fr 1fr 1fr; gap: 12px; }
.tabs { position: relative; display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; border-bottom: 1px solid var(--line); }
.tabs::-webkit-scrollbar { display: none; }
.tab { position: relative; flex: none; min-height: 48px; padding: 0 20px; font-weight: 500; color: var(--muted); transition: color var(--t-fast) var(--ease); }
.tab[aria-selected="true"] { color: var(--ink); }
@media (hover: hover) { .tab:hover { color: var(--ink); } }
.tabs__ind { position: absolute; left: 0; bottom: 0; width: 100px; height: 2px; background: var(--gold); transform-origin: left center; transform: translateX(var(--x, 0)) scaleX(var(--s, 0)); transition: transform var(--t-base) var(--ease); pointer-events: none; }
.tabs:not(.is-ready) .tabs__ind { transition: none; }

.search, .select { position: relative; display: block; }
.search svg { position: absolute; left: 14px; top: 50%; width: 20px; height: 20px; margin-top: -10px; color: var(--muted); pointer-events: none; }
.search input, .select select, .field input, .field textarea {
  width: 100%; min-height: 48px; padding: 12px 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius);
  transition: border-color var(--t-fast) var(--ease), box-shadow var(--t-fast) var(--ease);
}
.search input { padding-left: 44px; }
.select select { appearance: none; -webkit-appearance: none; padding-right: 40px; cursor: pointer; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 8px; height: 8px; margin-top: -6px; border-right: 1.5px solid var(--muted); border-bottom: 1.5px solid var(--muted); transform: rotate(45deg); pointer-events: none; }
.search input:focus-visible, .select select:focus-visible, .field input:focus-visible, .field textarea:focus-visible {
  outline: none; border-color: var(--gold); box-shadow: 0 0 0 4px rgba(133, 112, 47, .18);
}
.results { min-height: 1.6em; margin-bottom: 20px; font-size: .9375rem; color: var(--muted); }

.grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: clamp(28px, 3vw, 40px) clamp(14px, 2vw, 24px); }
.card { display: flex; flex-direction: column; min-width: 0; }
.card__open { display: block; text-align: left; width: 100%; }
.card__media { position: relative; display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: #fff; isolation: isolate; }
.card__media img { width: 100%; height: 100%; object-fit: cover; transition: transform var(--t-slow) var(--ease); }
.card__tag { position: absolute; left: 10px; top: 10px; z-index: 1; padding: 4px 9px; border-radius: 3px; background: rgba(253, 252, 242, .94); font-size: .6875rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--ink); }
.card__info { display: grid; gap: 2px; margin-top: 14px; }
.card__brand { font-size: .75rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.card__name { font-family: var(--font-display); font-weight: 500; font-size: 1.125rem; line-height: 1.25; letter-spacing: -.01em; text-wrap: balance; }
.card__sub { font-size: .875rem; color: var(--muted); }
.card__foot { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 12px; }
.price { font-family: var(--font-display); font-size: 1.1875rem; font-weight: 500; letter-spacing: -.01em; font-variant-numeric: tabular-nums; white-space: nowrap; }
.card__add {
  display: inline-flex; align-items: center; gap: 6px; min-height: 44px; padding: 0 16px; border: 1px solid var(--ink); border-radius: var(--radius);
  font-size: .9375rem; font-weight: 500;
  transition: background-color var(--t-fast) var(--ease), color var(--t-fast) var(--ease), transform var(--t-fast) var(--ease);
}
.card__add svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }
.card__add:active { transform: scale(.96); }
.card__add.is-added { background: var(--ok); border-color: var(--ok); color: #fff; }
@media (hover: hover) {
  .card__open:hover .card__media img { transform: scale(1.05); }
  .card__add:hover { background: var(--ink); color: var(--bg); }
  .card__add.is-added:hover { background: var(--ok); }
}
.more { display: flex; justify-content: center; margin-top: clamp(36px, 5vw, 64px); }
.empty { max-width: 520px; margin: 24px auto 0; padding: 48px 0; text-align: center; }
.empty p { margin-top: 12px; color: var(--muted); }
.empty__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 28px; }

/* Nosotros */
.about { display: grid; grid-template-columns: .85fr 1.15fr; gap: clamp(32px, 7vw, 120px); align-items: center; }
.about__media { aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius); background: var(--bg); }
.about__media img { width: 100%; height: 100%; object-fit: cover; }
.about__copy h2 { margin-bottom: 24px; max-width: 16ch; }
.about__copy > p:not(.lead):not(.eyebrow) { margin-top: 16px; color: var(--muted); max-width: 54ch; }
.about__points { display: grid; gap: 12px; margin: 32px 0 36px; }
.about__points li { display: flex; gap: 12px; align-items: flex-start; font-weight: 500; }
.about__points svg { width: 20px; height: 20px; margin-top: 3px; flex: none; color: var(--gold-ink); }

/* Contacto */
.contact { display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(32px, 6vw, 112px); align-items: start; }
.contact h2 { margin-bottom: 20px; }
.contact__list { display: grid; gap: 12px; margin-top: 36px; }
.c-card {
  display: flex; align-items: center; gap: 16px; min-height: 76px; padding: 14px 18px;
  border: 1px solid var(--line); border-radius: var(--radius); background: rgba(253, 252, 242, .04);
  transition: transform var(--t-base) var(--ease), border-color var(--t-fast) var(--ease);
}
.c-card__ico { flex: none; width: 44px; height: 44px; display: grid; place-items: center; border-radius: var(--radius); background: var(--gold-light); color: var(--dark); }
.c-card__ico svg { width: 22px; height: 22px; stroke: currentColor; }
.c-card__ico svg use { }
.c-card small { display: block; color: var(--muted); font-size: .8125rem; }
.c-card strong { font-weight: 500; overflow-wrap: anywhere; }
.c-card__arrow { margin-left: auto; width: 18px; height: 18px; opacity: .55; stroke: currentColor; transition: transform var(--t-base) var(--ease), opacity var(--t-fast) var(--ease); }
@media (hover: hover) { .c-card:hover { transform: translateX(4px); border-color: rgba(253, 252, 242, .5); } .c-card:hover .c-card__arrow { transform: translateX(4px); opacity: 1; } }
.c-card:active { transform: scale(.985); }
.c-card--static, .c-card--static:hover, .c-card--static:active { transform: none; border-color: var(--line); }
.c-card__note { margin-top: 2px; }
.form { display: grid; gap: 18px; padding: clamp(24px, 4vw, 40px); border-radius: var(--radius-lg); background: var(--bg); color: var(--ink); --line: rgba(26, 37, 30, .18); --muted: #545f56; --focus: var(--gold); }
.field { display: grid; gap: 8px; }
.field label, .co__group legend { font-size: .9375rem; font-weight: 600; }
.field .opt { font-weight: 400; color: var(--muted); }
.field textarea { min-height: 132px; resize: vertical; }
.field [aria-invalid="true"] { border-color: var(--danger); }
.field__err { min-height: 1.2em; font-size: .875rem; color: var(--danger); }
.form__actions { display: flex; flex-wrap: wrap; gap: 12px; }
.form__actions .btn { flex: 1 1 200px; }
.form__status { min-height: 1.4em; font-size: .9375rem; color: var(--ok); }

/* Pie */
.footer { padding-top: clamp(40px, 6vw, 64px); background: var(--dark); color: var(--dark-ink); --focus: var(--gold-light); border-top: 1px solid rgba(253, 252, 242, .12); }
.footer__grid { display: grid; grid-template-columns: 1.2fr 1fr auto; gap: 24px 48px; align-items: start; padding-bottom: 40px; }
.footer__brand p { margin-top: 12px; color: #b7bdb4; font-size: .9375rem; }
.footer__links { display: flex; flex-wrap: wrap; gap: 0 24px; }
.footer a:not(.logo) { display: inline-flex; align-items: center; min-height: 44px; color: rgba(253, 252, 242, .8); transition: color var(--t-fast) var(--ease); }
@media (hover: hover) { .footer a:not(.logo):hover { color: var(--gold-light); } }
.footer__pay { display: flex; align-items: center; gap: 8px; min-height: 44px; font-size: .875rem; color: #b7bdb4; }
.footer__pay svg { width: 18px; height: 18px; color: var(--gold-light); }
.footer__legal { padding-block: 20px 28px; border-top: 1px solid rgba(253, 252, 242, .12); font-size: .8125rem; color: #98a096; }

/* Botón flotante */
.fab {
  position: fixed; z-index: 40; right: max(18px, env(safe-area-inset-right)); bottom: max(18px, env(safe-area-inset-bottom));
  display: inline-flex; align-items: center; gap: 10px; min-height: 56px; padding: 0 22px 0 18px; border-radius: 28px;
  background: var(--wa); color: #fff; font-weight: 600; box-shadow: 0 12px 28px -10px rgba(0, 0, 0, .5);
  opacity: 0; transform: translateY(16px) scale(.96); pointer-events: none;
  transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.fab svg { width: 24px; height: 24px; fill: currentColor; }
.fab.is-visible { opacity: 1; transform: none; pointer-events: auto; }
@media (hover: hover) { .fab.is-visible:hover { transform: translateY(-3px); } }
.fab:active { transform: scale(.96); }

/* Toast */
.toast {
  position: fixed; inset: auto auto 24px 50%; margin: 0; padding: 14px 22px; border: 0; border-radius: var(--radius);
  background: var(--dark); color: var(--dark-ink); font-size: .9375rem; font-weight: 500; box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 10px; max-width: calc(100vw - 32px);
  opacity: 0; transform: translate(-50%, 12px); transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease);
}
.toast svg { width: 18px; height: 18px; color: var(--gold-light); flex: none; }
.toast.is-in { opacity: 1; transform: translate(-50%, 0); }
.toast:not(:popover-open):not(.is-in) { display: none; }

/* 6) DIÁLOGOS -------------------------------------------------------------- */
dialog.modal {
  padding: 0; border: 0; background: var(--bg); color: var(--ink); overflow: hidden;
  opacity: 0; transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), overlay var(--t-base) allow-discrete, display var(--t-base) allow-discrete;
}
dialog.modal[open] { opacity: 1; }
dialog.modal::backdrop { background: rgba(20, 28, 23, 0); transition: background-color var(--t-base) var(--ease), overlay var(--t-base) allow-discrete, display var(--t-base) allow-discrete; }
dialog.modal[open]::backdrop { background: rgba(20, 28, 23, .6); }
@starting-style { dialog.modal[open] { opacity: 0; } dialog.modal[open]::backdrop { background: rgba(20, 28, 23, 0); } }
.modal__close { position: absolute; z-index: 3; top: 12px; right: 12px; background: rgba(253, 252, 242, .9); }
dialog.modal--checkout .modal__close { position: sticky; top: 10px; float: right; margin: 10px 10px 0 0; }

/* Ficha de producto */
dialog.modal--product { width: min(980px, 100vw - 32px); max-height: min(780px, 100dvh - 32px); margin: auto; border-radius: var(--radius-lg); transform: translateY(16px) scale(.985); }
dialog.modal--product[open] { transform: none; display: block; }
@starting-style { dialog.modal--product[open] { transform: translateY(16px) scale(.985); } }
.pd { display: grid; grid-template-columns: 1fr 1fr; max-height: inherit; }
.pd__media { position: relative; background: #fff; min-height: 480px; }
.pd__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.pd__body { display: flex; flex-direction: column; gap: 14px; padding: clamp(24px, 3.4vw, 44px); overflow-y: auto; max-height: min(780px, 100dvh - 32px); }
.pd__brand { font-size: .8125rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--gold-ink); }
.pd__body h3 { font-size: clamp(1.75rem, 1.2rem + 1.6vw, 2.6rem); line-height: 1.05; }
.pd__meta { color: var(--muted); font-size: .9375rem; }
.pd__price { font-family: var(--font-display); font-size: 1.75rem; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.pd__notes { display: grid; gap: 14px; padding-block: 18px; border-block: 1px solid var(--line); }
.pd__notes:empty { display: none; }
.pd__notes h4 { font-family: var(--font); font-size: .75rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 8px; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; }
.pills li { padding: 5px 12px; border: 1px solid var(--line); border-radius: 999px; font-size: .875rem; background: #fff; }
.pd__buy { display: flex; gap: 12px; align-items: stretch; margin-top: 6px; }
.pd__buy .btn { flex: 1; }
.pd__ask { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; font-size: .9375rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); transition: color var(--t-fast) var(--ease); }
.pd__ask svg { width: 18px; height: 18px; fill: currentColor; }
@media (hover: hover) { .pd__ask:hover { color: var(--ink); } }
.qty { display: inline-flex; align-items: center; border: 1px solid var(--ink); border-radius: var(--radius); }
.qty button { width: 44px; height: 50px; display: grid; place-items: center; transition: background-color var(--t-fast) var(--ease); }
.qty button svg { width: 16px; height: 16px; stroke: currentColor; stroke-width: 2; }
.qty output { min-width: 32px; text-align: center; font-weight: 600; font-variant-numeric: tabular-nums; }
.qty button:active { background: rgba(26, 37, 30, .08); }
@media (hover: hover) { .qty button:hover { background: rgba(26, 37, 30, .06); } }

/* Carrito (cajón lateral) */
dialog.modal--drawer { width: min(440px, 100vw); height: 100dvh; max-height: none; margin: 0 0 0 auto; transform: translateX(100%); border-radius: 0; }
dialog.modal--drawer[open] { transform: none; display: block; }
@starting-style { dialog.modal--drawer[open] { transform: translateX(100%); } }
.drawer { height: 100dvh; display: flex; flex-direction: column; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 12px 12px 12px 24px; border-bottom: 1px solid var(--line); min-height: 72px; }
.drawer__head h3 span { font-family: var(--font); font-size: .9375rem; color: var(--muted); letter-spacing: 0; }
.drawer__body { flex: 1; overflow-y: auto; padding: 8px 24px; overscroll-behavior: contain; }
.drawer__foot { padding: 20px 24px calc(20px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg-alt); display: grid; gap: 16px; }
.drawer__sec { display: flex; align-items: center; justify-content: center; gap: 8px; font-size: .8125rem; color: var(--muted); }
.drawer__sec svg { width: 16px; height: 16px; stroke: currentColor; }
.cart-empty { display: grid; justify-items: center; gap: 12px; padding: 64px 12px; text-align: center; }
.cart-empty svg { width: 44px; height: 44px; color: var(--gold-ink); }
.cart-empty p { color: var(--muted); max-width: 28ch; }
.cart-empty .btn { margin-top: 12px; }
.line { display: grid; grid-template-columns: 72px 1fr; gap: 16px; padding: 18px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__img { width: 72px; aspect-ratio: 4 / 5; border-radius: 4px; object-fit: cover; background: #fff; }
.line__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.line__brand { font-size: .6875rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--gold-ink); }
.line__name { font-family: var(--font-display); font-weight: 500; line-height: 1.25; }
.line__row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 8px; }
.line .qty { border-color: var(--line); }
.line .qty button { width: 38px; height: 40px; }
.line__rm { display: inline-flex; align-items: center; gap: 6px; min-height: 36px; font-size: .8125rem; color: var(--muted); }
.line__rm svg { width: 16px; height: 16px; stroke: currentColor; }
@media (hover: hover) { .line__rm:hover { color: var(--danger); } }
.sum { display: grid; gap: 8px; }
.sum > div { display: flex; justify-content: space-between; gap: 16px; }
.sum dd { font-variant-numeric: tabular-nums; font-weight: 500; }
.sum__note { color: var(--muted); font-size: .9375rem; }
.sum__total { padding-top: 12px; margin-top: 4px; border-top: 1px solid var(--line); font-size: 1.25rem; }
.sum__total dd { font-family: var(--font-display); font-weight: 500; }

/* Checkout */
dialog.modal--checkout { width: min(1040px, 100vw - 32px); max-height: min(860px, 100dvh - 32px); margin: auto; border-radius: var(--radius-lg); transform: translateY(16px) scale(.985); }
dialog.modal--checkout[open] { transform: none; display: block; overflow-y: auto; }
@starting-style { dialog.modal--checkout[open] { transform: translateY(16px) scale(.985); } }
.co { display: grid; grid-template-columns: 1.15fr .85fr; }
.co__form { display: grid; gap: 22px; padding: clamp(24px, 3.4vw, 44px); align-content: start; }
.co__hint { color: var(--muted); font-size: .9375rem; margin-top: -10px; }
.co__group { display: grid; gap: 14px; border: 0; padding: 0; margin: 0; min-width: 0; }
.co__group legend { padding: 0; margin-bottom: 6px; font-family: var(--font-display); font-size: 1.125rem; font-weight: 500; }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice { display: grid; gap: 10px; }
.choice__opt { position: relative; display: block; cursor: pointer; }
.choice__opt input { position: absolute; opacity: 0; inset: 0; }
.choice__opt span { display: grid; gap: 2px; padding: 14px 16px 14px 48px; border: 1px solid var(--line); border-radius: var(--radius); background: #fff; position: relative; transition: border-color var(--t-fast) var(--ease), background-color var(--t-fast) var(--ease); }
.choice__opt span::before { content: ""; position: absolute; left: 16px; top: 17px; width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid var(--muted); transition: border-color var(--t-fast) var(--ease); }
.choice__opt span::after { content: ""; position: absolute; left: 21px; top: 22px; width: 8px; height: 8px; border-radius: 50%; background: var(--gold); transform: scale(0); transition: transform var(--t-fast) var(--ease); }
.choice__opt input:checked + span { border-color: var(--gold); background: #fffdf4; }
.choice__opt input:checked + span::before { border-color: var(--gold); }
.choice__opt input:checked + span::after { transform: scale(1); }
.choice__opt input:focus-visible + span { outline: 2px solid var(--focus); outline-offset: 2px; }
.choice__opt strong { font-weight: 600; }
.choice__opt small { color: var(--muted); font-size: .875rem; }
#co-address { display: grid; gap: 14px; }
.co__summary { display: flex; flex-direction: column; gap: 18px; padding: clamp(24px, 3.4vw, 44px); background: var(--bg-alt); border-left: 1px solid var(--line); align-content: start; }
.co__summary h4 { font-size: 1.375rem; }
.co__items { display: grid; gap: 14px; max-height: 260px; overflow-y: auto; padding-right: 4px; }
.co__items li { display: grid; grid-template-columns: 52px 1fr auto; gap: 12px; align-items: center; font-size: .9375rem; }
.co__items img { width: 52px; aspect-ratio: 4 / 5; object-fit: cover; border-radius: 3px; background: #fff; }
.co__items strong { display: block; font-weight: 500; line-height: 1.3; }
.co__items small { color: var(--muted); }
.co__items .price { font-size: 1rem; }
.co__sec { font-size: .8125rem; color: var(--muted); line-height: 1.5; }
.co__alt { font-size: .9375rem; color: var(--muted); text-decoration: underline; text-underline-offset: 4px; text-decoration-color: var(--line); min-height: 44px; display: inline-flex; align-items: center; }
@media (hover: hover) { .co__alt:hover { color: var(--ink); } }
.co__err { min-height: 1.2em; font-size: .9375rem; color: var(--danger); }
.co-done { display: grid; justify-items: center; gap: 16px; padding: clamp(40px, 7vw, 80px) clamp(24px, 5vw, 64px); text-align: center; }
.co-done__ico { width: 64px; height: 64px; display: grid; place-items: center; border-radius: 50%; background: var(--ok); color: #fff; }
.co-done__ico svg { width: 30px; height: 30px; stroke: currentColor; stroke-width: 2.2; }
.co-done p { max-width: 52ch; color: var(--muted); }
.co-done__demo { padding: 14px 18px; border: 1px dashed var(--gold); border-radius: var(--radius); background: #fffdf4; color: var(--ink) !important; font-size: .9375rem; }
.co-done__cta { display: flex; flex-wrap: wrap; gap: 12px; justify-content: center; margin-top: 12px; }

/* 7) MOVIMIENTO ------------------------------------------------------------ */
.js [data-rise] { animation: rise var(--t-slow) var(--ease) both; animation-delay: calc(var(--i, 0) * 90ms + 80ms); }
@keyframes rise { from { opacity: 0; transform: translateY(24px); } to { opacity: 1; transform: none; } }
.js .reveal { opacity: 0; transform: translateY(28px); transition: opacity var(--t-slow) var(--ease), transform var(--t-slow) var(--ease); transition-delay: calc(var(--i, 0) * 80ms); }
.js .reveal.is-in { opacity: 1; transform: none; }

/* 8) RESPONSIVE ------------------------------------------------------------ */
@media (max-width: 1100px) {
  .grid { grid-template-columns: repeat(3, 1fr); }
}
@media (max-width: 899px) {
  .nav-toggle { display: block; }
  .nav {
    position: fixed; inset: var(--header-h) 0 0 0; z-index: 1; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 28px;
    padding: 16px var(--gutter) 32px; background: var(--dark); overflow-y: auto; margin: 0;
    opacity: 0; visibility: hidden; transform: translateY(-10px);
    transition: opacity var(--t-base) var(--ease), transform var(--t-base) var(--ease), visibility 0s linear var(--t-base);
  }
  .nav.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
  .nav ul { flex-direction: column; gap: 0; }
  .nav li a { font-family: var(--font-display); font-size: 2rem; letter-spacing: -.02em; color: var(--dark-ink); min-height: 68px; padding: 0; border-bottom: 1px solid rgba(253, 252, 242, .14); width: 100%; }
  .nav li a::after { display: none; }
  .nav li a[aria-current="true"] { color: var(--gold-light); }
  .nav .btn { width: 100%; }
  .hero__grid { grid-template-columns: 1fr; }
  .hero__media { aspect-ratio: 5 / 4; order: -1; }
  .hero { padding-top: calc(var(--header-h) + 16px); }
  .how__list { grid-template-columns: 1fr; gap: 20px; }
  .about, .contact { grid-template-columns: 1fr; }
  .about__media { aspect-ratio: 4 / 3; }
  .footer__grid { grid-template-columns: 1fr; }
  .toolbar__row { grid-template-columns: 1fr 1fr; }
  .toolbar__row .search { grid-column: 1 / -1; }

  /* ficha y checkout como hoja inferior / pantalla completa */
  dialog.modal--product { width: 100%; max-width: none; margin: auto 0 0; max-height: 94dvh; border-radius: 14px 14px 0 0; transform: translateY(100%); }
  dialog.modal--product[open] { transform: none; }
  @starting-style { dialog.modal--product[open] { transform: translateY(100%); } }
  .pd { display: flex; flex-direction: column; overflow-y: auto; max-height: 94dvh; }
  .pd__media { aspect-ratio: 1 / 1; min-height: 0; flex: none; width: 100%; }
  .pd__body { max-height: none; overflow: visible; }
  dialog.modal--checkout { width: 100%; max-width: none; height: 100dvh; max-height: none; margin: 0; border-radius: 0; transform: translateY(24px); }
  dialog.modal--checkout[open] { transform: none; }
  @starting-style { dialog.modal--checkout[open] { transform: translateY(24px); } }
  .co { grid-template-columns: 1fr; }
  .co__summary { border-left: 0; border-top: 1px solid var(--line); }
  .co__form { padding-top: 64px; }
}
@media (max-width: 640px) {
  .grid { grid-template-columns: repeat(2, 1fr); gap: 28px 12px; }
  .card__name { font-size: 1rem; }
  .card__foot { flex-direction: column; align-items: stretch; gap: 8px; }
  .card__add { justify-content: center; }
  .price { font-size: 1.0625rem; }
  .hero__cta .btn { flex: 1 1 100%; }
  .hero__pick { right: auto; }
  .fab span { display: none; }
  .fab { padding: 0; width: 56px; justify-content: center; }
  .field-row { grid-template-columns: 1fr; }
  .logo__text { font-size: .8125rem; letter-spacing: .2em; }
  .tab { padding: 0 14px; }
  .pd__buy { flex-wrap: wrap; }
  .pd__buy .btn { flex: 1 1 100%; }
  .qty { width: 100%; justify-content: space-between; }
  .qty output { flex: 1; }
}
@media (max-width: 380px) {
  .logo__text { font-size: .75rem; letter-spacing: .14em; }
  .logo { gap: 8px; }
}

/* 9) MENOS MOVIMIENTO ------------------------------------------------------ */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; transition-delay: 0s !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* Producto sin stock */
.card.is-out .card__media img { opacity: .5; filter: grayscale(.7); }
.card.is-out .price { color: var(--muted); }
.card.is-out .card__tag { background: var(--ink); color: var(--bg); }
.card.is-out .card__add { border-color: var(--line); color: var(--muted); }

/* Checkout: los avisos de error no ocupan lugar hasta que aparecen */
.co__group .field__err:empty { display: none; }
