/* =====================================================================
   MJAF · ESTILOS PRINCIPALES
   1. Fuentes y tokens (modo claro / oscuro)
   2. Temporadas (paletas de la portada, independientes del tema)
   3. Base y utilidades
   4. Componentes
   ===================================================================== */

/* 1. FUENTES ------------------------------------------------------------ */
@font-face {
  font-family: "Geist";
  src: url("../fonts/geist-latin-wght-normal.woff2") format("woff2");
  font-weight: 100 900;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}
@font-face {
  font-family: "Instrument Serif";
  src: url("../fonts/instrument-serif-italic.woff2") format("woff2");
  font-weight: 400;
  font-style: italic;
  font-display: swap;
}

/* TOKENS: modo claro (blanco, negro y grises) */
:root,
:root[data-theme="light"] {
  color-scheme: light;
  --bg: #ffffff;
  --bg-alt: #f5f5f4;
  --surface: #ffffff;
  --surface-2: #f3f3f2;
  --surface-3: #e9e9e7;
  --ink: #0b0b0b;
  --ink-2: #353535;
  --muted: #6b6b6b;
  --line: #e5e5e3;
  --line-2: #cfcfcc;
  --inv-bg: #0b0b0b;
  --inv-ink: #ffffff;
  --inv-muted: #a3a3a3;
  --header-bg: rgba(255, 255, 255, 0.86);
  --overlay: rgba(10, 10, 10, 0.45);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.18);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.28);
  --sale: #b42318;
  --ok: #1f7a4d;
  --warn: #9a6700;
  --danger: #b42318;
  --wa: #1c9e50;
  --wa-hover: #17863f;
  --skeleton: #ededeb;
  --skeleton-hi: #f7f7f6;
}

/* TOKENS: modo oscuro (negro, blanco y grises) */
:root[data-theme="dark"] {
  color-scheme: dark;
  --bg: #0a0a0a;
  --bg-alt: #121212;
  --surface: #141414;
  --surface-2: #1b1b1b;
  --surface-3: #262626;
  --ink: #f5f5f5;
  --ink-2: #d0d0d0;
  --muted: #9b9b9b;
  --line: #262626;
  --line-2: #3a3a3a;
  --inv-bg: #f5f5f5;
  --inv-ink: #0a0a0a;
  --inv-muted: #5c5c5c;
  --header-bg: rgba(10, 10, 10, 0.82);
  --overlay: rgba(0, 0, 0, 0.6);
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.4);
  --shadow: 0 10px 30px -12px rgba(0, 0, 0, 0.7);
  --shadow-lg: 0 30px 60px -20px rgba(0, 0, 0, 0.85);
  --sale: #ff7a6b;
  --ok: #4cc38a;
  --warn: #e6b450;
  --danger: #ff7a6b;
  --wa: #1fae59;
  --wa-hover: #23c364;
  --skeleton: #1c1c1c;
  --skeleton-hi: #262626;
}

:root {
  --font: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  --serif: "Instrument Serif", "Times New Roman", Georgia, serif;
  --radius-sm: 6px;
  --radius: 12px;
  --radius-lg: 20px;
  --container: 1320px;
  --gutter: clamp(16px, 4vw, 40px);
  --header-h: 68px;
  --announce-h: 34px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --gold: #c9a45c;
}

/* 2. TEMPORADAS ----------------------------------------------------------
   Cada temporada define la paleta de la portada y de la barra de avisos.
   No dependen del modo claro/oscuro: funcionan igual en ambos.          */
:root {
  --s-base: #0d0d0d;
  --s-shade: linear-gradient(90deg, rgba(8, 8, 8, 0.86) 0%, rgba(8, 8, 8, 0.55) 50%, rgba(8, 8, 8, 0.15) 100%);
  --s-ink: #ffffff;
  --s-muted: rgba(255, 255, 255, 0.74);
  --s-accent: #ffffff;
  --s-btn-bg: #ffffff;
  --s-btn-ink: #0b0b0b;
  --s-btn-hover: #e8e8e8;
  --s-ghost-border: rgba(255, 255, 255, 0.55);
  --s-ghost-ink: #ffffff;
  --s-btn-radius: 999px;
  --s-bar-bg: #0b0b0b;
  --s-bar-ink: #e9e9e9;
  --s-glow: rgba(255, 255, 255, 0.5);
  --s-img-filter: grayscale(1) contrast(1.05);
}
:root[data-season="navidad"] {
  --s-base: #16040a;
  --s-shade:
    radial-gradient(120% 90% at 85% 30%, rgba(122, 18, 38, 0.15) 0%, rgba(40, 4, 12, 0.55) 60%),
    linear-gradient(90deg, rgba(18, 3, 8, 0.95) 0%, rgba(58, 7, 19, 0.82) 42%, rgba(74, 10, 24, 0.45) 75%, rgba(20, 3, 8, 0.6) 100%);
  --s-ink: #fbf4ea;
  --s-muted: rgba(246, 230, 205, 0.78);
  --s-accent: #d8b46a;
  --s-btn-bg: #c9a45c;
  --s-btn-ink: #1a0509;
  --s-btn-hover: #dcb978;
  --s-ghost-border: rgba(216, 180, 106, 0.6);
  --s-ghost-ink: #f6e6c8;
  --s-btn-radius: 2px;
  --s-bar-bg: #4a0b18;
  --s-bar-ink: #f1dfb8;
  --s-glow: rgba(255, 205, 120, 0.9);
  --s-img-filter: saturate(0.9) brightness(0.85);
}
:root[data-season="ano-nuevo"] {
  --s-base: #050505;
  --s-shade: linear-gradient(90deg, rgba(5, 5, 5, 0.92) 0%, rgba(10, 10, 12, 0.7) 50%, rgba(20, 20, 24, 0.3) 100%);
  --s-ink: #ffffff;
  --s-muted: rgba(225, 228, 235, 0.8);
  --s-accent: #d9d9de;
  --s-btn-bg: linear-gradient(135deg, #f4f4f6, #bfc1c7);
  --s-btn-ink: #0a0a0a;
  --s-btn-hover: #ffffff;
  --s-ghost-border: rgba(212, 175, 95, 0.7);
  --s-ghost-ink: #f1dfb3;
  --s-btn-radius: 999px;
  --s-bar-bg: #111114;
  --s-bar-ink: #e4d3a8;
  --s-glow: rgba(235, 238, 245, 0.95);
  --s-img-filter: grayscale(1) contrast(1.1) brightness(0.8);
}
:root[data-season="san-valentin"] {
  --s-base: #1d0710;
  --s-shade: linear-gradient(90deg, rgba(36, 6, 16, 0.92) 0%, rgba(92, 18, 40, 0.65) 50%, rgba(120, 30, 55, 0.2) 100%);
  --s-ink: #fff5f6;
  --s-muted: rgba(255, 222, 228, 0.82);
  --s-accent: #f0b7c2;
  --s-btn-bg: #f3d3d9;
  --s-btn-ink: #3b0a18;
  --s-btn-hover: #fbe4e8;
  --s-ghost-border: rgba(240, 183, 194, 0.6);
  --s-ghost-ink: #ffe3e8;
  --s-btn-radius: 999px;
  --s-bar-bg: #5a1426;
  --s-bar-ink: #ffe3e8;
  --s-glow: rgba(240, 160, 180, 0.8);
  --s-img-filter: saturate(0.85) brightness(0.9);
}
:root[data-season="verano"] {
  --s-base: #efe6d8;
  --s-shade: linear-gradient(90deg, rgba(246, 240, 230, 0.96) 0%, rgba(240, 232, 218, 0.82) 45%, rgba(240, 232, 218, 0.1) 100%);
  --s-ink: #1c1a16;
  --s-muted: rgba(40, 36, 30, 0.78);
  --s-accent: #b0753a;
  --s-btn-bg: #1c1a16;
  --s-btn-ink: #faf6ef;
  --s-btn-hover: #3a352c;
  --s-ghost-border: rgba(28, 26, 22, 0.45);
  --s-ghost-ink: #1c1a16;
  --s-btn-radius: 999px;
  --s-bar-bg: #e9dcc6;
  --s-bar-ink: #3a2f20;
  --s-glow: rgba(255, 196, 120, 0.7);
  --s-img-filter: saturate(0.9) brightness(1.03);
}
:root[data-season="halloween"] {
  --s-base: #0a0907;
  --s-shade: linear-gradient(90deg, rgba(8, 7, 6, 0.94) 0%, rgba(14, 12, 10, 0.72) 50%, rgba(40, 22, 8, 0.3) 100%);
  --s-ink: #f2efe9;
  --s-muted: rgba(220, 214, 204, 0.78);
  --s-accent: #d0702a;
  --s-btn-bg: #c4621f;
  --s-btn-ink: #0f0b08;
  --s-btn-hover: #d9772f;
  --s-ghost-border: rgba(200, 200, 200, 0.45);
  --s-ghost-ink: #ece8e2;
  --s-btn-radius: 2px;
  --s-bar-bg: #1a1714;
  --s-bar-ink: #e3a46b;
  --s-glow: rgba(214, 120, 50, 0.8);
  --s-img-filter: grayscale(0.9) contrast(1.1) brightness(0.8);
}
:root[data-season="black-friday"] {
  --s-base: #000000;
  --s-shade: linear-gradient(90deg, rgba(0, 0, 0, 0.94) 0%, rgba(0, 0, 0, 0.75) 50%, rgba(0, 0, 0, 0.35) 100%);
  --s-ink: #ffffff;
  --s-muted: rgba(255, 255, 255, 0.75);
  --s-accent: #ffd400;
  --s-btn-bg: #ffd400;
  --s-btn-ink: #000000;
  --s-btn-hover: #ffe24d;
  --s-ghost-border: rgba(255, 255, 255, 0.6);
  --s-ghost-ink: #ffffff;
  --s-btn-radius: 0px;
  --s-bar-bg: #ffd400;
  --s-bar-ink: #000000;
  --s-glow: rgba(255, 212, 0, 0.9);
  --s-img-filter: grayscale(1) contrast(1.15) brightness(0.75);
}

/* 3. BASE ---------------------------------------------------------------- */
*,
*::before,
*::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; text-size-adjust: 100%; scroll-behavior: smooth; scroll-padding-top: calc(var(--header-h) + 16px); }
body {
  margin: 0;
  min-height: 100vh;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img, svg, video { display: block; max-width: 100%; }
img { height: auto; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; background: none; border: 0; padding: 0; }
button:disabled { cursor: not-allowed; }
h1, h2, h3, h4, p, ul, ol, dl, dd, figure { margin: 0; }
ul, ol { padding: 0; list-style: none; }
em { font-style: normal; }
[hidden] { display: none !important; }
::selection { background: var(--ink); color: var(--bg); }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; border-radius: 4px; }

/* Transición suave al cambiar de tema (solo mientras cambia). */
.theme-transition,
.theme-transition *,
.theme-transition *::before,
.theme-transition *::after {
  transition: background-color 0.4s var(--ease), color 0.4s var(--ease), border-color 0.4s var(--ease), fill 0.4s var(--ease), box-shadow 0.4s var(--ease) !important;
}

.container { width: 100%; max-width: var(--container); margin-inline: auto; padding-inline: var(--gutter); }
.container--narrow { max-width: 860px; }
.sr-only { position: absolute !important; 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: 12px; top: -60px; z-index: 200; background: var(--ink); color: var(--bg); padding: 10px 16px; border-radius: var(--radius-sm); }
.skip-link:focus { top: 12px; }
.muted { color: var(--muted); }
.no-scroll { overflow: hidden; }

/* Tipografía */
.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 14px;
}
.eyebrow::before { content: ""; width: 22px; height: 1px; background: currentColor; opacity: 0.6; }
.eyebrow--gold { color: var(--gold); }
.eyebrow--inv { color: var(--inv-muted); }
.section__title,
.page-head__title {
  font-size: clamp(2rem, 4.2vw, 3.4rem);
  line-height: 1.02;
  font-weight: 600;
  letter-spacing: -0.035em;
}
.section__title em,
.page-head__title em,
.band__title em,
.hero__title em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; }
.section__lead { color: var(--muted); margin-top: 12px; max-width: 52ch; }

/* 4. COMPONENTES --------------------------------------------------------- */

/* Botones */
.btn {
  --btn-bg: transparent;
  --btn-ink: var(--ink);
  --btn-border: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 46px;
  padding: 0 22px;
  border-radius: 999px;
  border: 1px solid var(--btn-border);
  background: var(--btn-bg);
  color: var(--btn-ink);
  font-size: 0.86rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
  transition: background-color 0.25s var(--ease), color 0.25s var(--ease), border-color 0.25s var(--ease), transform 0.25s var(--ease), box-shadow 0.25s var(--ease), opacity 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.btn:active { transform: translateY(1px) scale(0.99); }
.btn svg { flex: none; }
.btn--sm { min-height: 38px; padding: 0 16px; font-size: 0.74rem; }
.btn--lg { min-height: 54px; padding: 0 30px; font-size: 0.86rem; }
.btn--block { width: 100%; }
.btn--solid { --btn-bg: var(--ink); --btn-ink: var(--bg); --btn-border: var(--ink); }
.btn--solid:hover { --btn-bg: var(--ink-2); --btn-border: var(--ink-2); box-shadow: var(--shadow); }
.btn--line { --btn-border: var(--line-2); }
.btn--line:hover { --btn-border: var(--ink); --btn-bg: var(--surface-2); }
.btn--wa { --btn-bg: var(--wa); --btn-ink: #ffffff; --btn-border: var(--wa); }
.btn--wa:hover { --btn-bg: var(--wa-hover); --btn-border: var(--wa-hover); box-shadow: 0 10px 24px -10px rgba(28, 158, 80, 0.6); }
.btn--inv { --btn-bg: var(--bg); --btn-ink: var(--ink); --btn-border: var(--bg); }
.btn--inv:hover { opacity: 0.9; }
.btn--gold { --btn-bg: var(--gold); --btn-ink: #140d02; --btn-border: var(--gold); border-radius: 2px; }
.btn--gold:hover { --btn-bg: #dcb978; --btn-border: #dcb978; box-shadow: 0 12px 30px -12px rgba(201, 164, 92, 0.7); }
.btn--outline-light { --btn-ink: #f4ead6; --btn-border: rgba(244, 234, 214, 0.4); border-radius: 2px; }
.btn--outline-light:hover { --btn-border: #f4ead6; --btn-bg: rgba(255, 255, 255, 0.06); }
.btn--season { background: var(--s-btn-bg); color: var(--s-btn-ink); border: 0; border-radius: var(--s-btn-radius); }
.btn--season:hover { background: var(--s-btn-hover); box-shadow: 0 16px 34px -14px var(--s-glow); transform: translateY(-1px); }
.btn--season-ghost { color: var(--s-ghost-ink); border: 1px solid var(--s-ghost-border); border-radius: var(--s-btn-radius); backdrop-filter: blur(6px); background: rgba(255, 255, 255, 0.03); }
.btn--season-ghost:hover { border-color: var(--s-ghost-ink); background: rgba(255, 255, 255, 0.08); }
.btn:disabled,
.btn.is-disabled { opacity: 0.45; pointer-events: auto; box-shadow: none; }
.btn.is-disabled { cursor: not-allowed; }

.icon-btn {
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: inherit;
  transition: background-color 0.2s, color 0.2s;
}
.icon-btn:hover { background: var(--surface-2); }

.link-arrow { display: inline-flex; align-items: center; gap: 8px; font-size: 0.82rem; font-weight: 600; letter-spacing: 0.08em; text-transform: uppercase; color: var(--ink); }
.link-arrow svg { transition: transform 0.25s var(--ease); }
.link-arrow:hover svg { transform: translateX(4px); }
.link-arrow--light { color: #f4ead6; }
.link-muted { color: var(--muted); font-size: 0.85rem; text-decoration: underline; text-underline-offset: 3px; }
.link-muted:hover { color: var(--ink); }
.link-inline { color: inherit; font-size: 0.82rem; font-weight: 600; text-decoration: underline; text-underline-offset: 3px; }

/* Selector de tema (sol = claro · luna = oscuro) */
.theme-toggle {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: 64px;
  height: 32px;
  padding: 0 8px;
  border-radius: 999px;
  border: 1px solid currentColor;
  border-color: color-mix(in srgb, currentColor 28%, transparent);
  background: color-mix(in srgb, currentColor 6%, transparent);
  color: inherit;
  flex: none;
  transition: border-color 0.3s, background-color 0.3s;
}
.theme-toggle:hover { border-color: color-mix(in srgb, currentColor 55%, transparent); }
.theme-toggle__thumb {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: currentColor;
  transition: transform 0.45s var(--ease);
}
.theme-toggle__icon { position: relative; z-index: 1; transition: color 0.35s var(--ease), opacity 0.35s; }
.theme-toggle__icon--sun { color: var(--toggle-on, #fff); }
.theme-toggle__icon--moon { opacity: 0.6; }
:root[data-theme="dark"] .theme-toggle__thumb { transform: translateX(32px); }
:root[data-theme="dark"] .theme-toggle__icon--sun { color: inherit; opacity: 0.6; }
:root[data-theme="dark"] .theme-toggle__icon--moon { color: var(--toggle-on, #000); opacity: 1; }
/* El icono activo toma el color de fondo para contrastar con el círculo. */
.site-header .theme-toggle,
.mobile-menu .theme-toggle { --toggle-on: var(--bg); }
.site-header--overlay:not(.is-solid):not(.menu-open) .theme-toggle { --toggle-on: var(--s-base); }

/* Barra de avisos (usa la paleta de la temporada) */
.announce {
  position: relative;
  z-index: 60;
  height: var(--announce-h);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  background: var(--s-bar-bg);
  color: var(--s-bar-ink);
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  text-align: center;
  overflow: hidden;
}
.announce p { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Cabecera */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  color: var(--ink);
  background: var(--header-bg);
  backdrop-filter: saturate(1.4) blur(14px);
  -webkit-backdrop-filter: saturate(1.4) blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background-color 0.35s var(--ease), color 0.35s var(--ease), border-color 0.35s var(--ease);
}
.site-header--overlay { position: fixed; left: 0; right: 0; top: var(--announce-h); }
.site-header--overlay:not(.is-solid):not(.menu-open) {
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: transparent;
  color: var(--s-ink);
}
.site-header--overlay.is-solid { top: 0; }
.site-header--overlay:not(.is-solid):not(.menu-open) .icon-btn:hover { background: rgba(255, 255, 255, 0.12); }
.site-header--overlay:not(.is-solid):not(.menu-open) :focus-visible { outline-color: currentColor; }
.header__inner { display: flex; align-items: center; gap: 16px; height: var(--header-h); }
.logo {
  position: relative;
  display: inline-flex;
  align-items: baseline;
  font-weight: 800;
  font-size: 1.55rem;
  letter-spacing: -0.06em;
  line-height: 1;
}
.logo__dot { width: 7px; height: 7px; margin-left: 3px; border-radius: 50%; background: currentColor; opacity: 0.85; }
:root[data-season="navidad"] .logo__dot,
:root[data-season="ano-nuevo"] .logo__dot,
:root[data-season="black-friday"] .logo__dot,
:root[data-season="halloween"] .logo__dot,
:root[data-season="san-valentin"] .logo__dot { background: var(--s-accent); opacity: 1; }
.logo--lg { font-size: 2.2rem; }
.nav { display: none; margin-inline: auto; }
.nav ul { display: flex; gap: 4px; }
.nav a {
  position: relative;
  display: block;
  padding: 8px 14px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  opacity: 0.86;
  transition: opacity 0.2s;
}
.nav a::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: 2px;
  height: 1px;
  background: currentColor;
  transform: scaleX(0);
  transform-origin: right;
  transition: transform 0.35s var(--ease);
}
.nav a:hover,
.nav a[aria-current="page"] { opacity: 1; }
.nav a:hover::after,
.nav a[aria-current="page"]::after { transform: scaleX(1); transform-origin: left; }
.header__actions { display: flex; align-items: center; gap: 6px; margin-left: auto; }
.header__wa { display: none; margin-inline: 4px; }
.header__burger { margin-left: -8px; }
.burger { position: relative; display: block; width: 22px; height: 12px; }
.burger span { position: absolute; left: 0; width: 100%; height: 1.5px; background: currentColor; border-radius: 2px; transition: transform 0.35s var(--ease), top 0.35s var(--ease); }
.burger span:first-child { top: 0; }
.burger span:last-child { top: 10px; }
[aria-expanded="true"] .burger span:first-child { top: 5px; transform: rotate(45deg); }
[aria-expanded="true"] .burger span:last-child { top: 5px; transform: rotate(-45deg); }
.cart-btn { position: relative; }
.cart-btn__count {
  position: absolute;
  top: 3px;
  right: 1px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: var(--ink);
  color: var(--bg);
  font-size: 0.66rem;
  font-weight: 700;
  line-height: 18px;
  text-align: center;
}
.site-header--overlay:not(.is-solid):not(.menu-open) .cart-btn__count { background: var(--s-ink); color: var(--s-base); }

/* Buscador desplegable */
.search-bar { display: grid; grid-template-rows: 0fr; transition: grid-template-rows 0.35s var(--ease); background: var(--bg); color: var(--ink); }
.search-bar > * { overflow: hidden; }
.search-bar.is-open { grid-template-rows: 1fr; border-top: 1px solid var(--line); }
.search-bar__form { display: flex; align-items: center; gap: 12px; }
.search-bar.is-open .search-bar__form { padding-block: 14px; }
.search-bar input { flex: 1; min-width: 0; height: 44px; border: 0; background: transparent; font-size: 1.05rem; outline: none; }

/* Menú móvil */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 45;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding: calc(var(--header-h) + var(--announce-h) + 24px) var(--gutter) 28px;
  background: var(--bg);
  color: var(--ink);
  opacity: 0;
  visibility: hidden;
  transform: translateY(-12px);
  transition: opacity 0.35s var(--ease), transform 0.45s var(--ease), visibility 0s linear 0.45s;
  overflow-y: auto;
}
.mobile-menu.is-open { opacity: 1; visibility: visible; transform: none; transition-delay: 0s; }
.mobile-menu__list li { border-bottom: 1px solid var(--line); }
.mobile-menu__list a { display: flex; align-items: baseline; gap: 16px; padding: 16px 0; font-size: clamp(1.6rem, 7vw, 2.2rem); font-weight: 600; letter-spacing: -0.03em; }
.mobile-menu__list a[aria-current="page"] { font-family: var(--serif); font-style: italic; font-weight: 400; }
.mobile-menu__num { font-size: 0.72rem; font-weight: 500; letter-spacing: 0.1em; color: var(--muted); font-family: var(--font); font-style: normal; }
.mobile-menu__foot { display: grid; gap: 16px; padding-top: 28px; }
.mobile-menu__row { display: flex; align-items: center; justify-content: space-between; font-size: 0.85rem; color: var(--muted); }
.mobile-menu__row .theme-toggle { color: var(--ink); }
.mobile-menu__city { font-size: 0.8rem; color: var(--muted); letter-spacing: 0.08em; text-transform: uppercase; }

/* HERO ------------------------------------------------------------------ */
.hero {
  position: relative;
  isolation: isolate;
  min-height: 100svh;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--s-base);
  color: var(--s-ink);
  padding: calc(var(--header-h) + var(--announce-h) + 40px) 0 90px;
}
@supports (min-height: 100svh) { .hero { min-height: 100svh; } }
.hero__bg {
  position: absolute;
  inset: 0;
  z-index: -3;
  background-image: var(--hero-img-m, none);
  background-size: cover;
  background-position: center;
  filter: var(--s-img-filter);
  transform: scale(1.04);
  animation: heroZoom 18s var(--ease) both;
}
.hero__shade { position: absolute; inset: 0; z-index: -2; background: var(--s-shade); }
.hero__shade::after {
  content: "";
  position: absolute;
  left: 0; right: 0; bottom: 0;
  height: 120px;
  background: linear-gradient(to bottom, transparent, color-mix(in srgb, var(--bg) 18%, transparent));
}
.hero__decor { position: absolute; inset: 0; z-index: -1; pointer-events: none; overflow: hidden; }
.hero__inner { position: relative; display: grid; gap: 40px; align-items: center; }
.hero__content { max-width: 640px; }
.hero__eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 22px;
  font-size: 0.74rem;
  font-weight: 600;
  letter-spacing: 0.28em;
  text-transform: uppercase;
  color: var(--s-accent);
}
.hero__eyebrow::before { content: ""; width: 34px; height: 1px; background: currentColor; }
.hero__title {
  font-size: clamp(2.8rem, 8.4vw, 6.4rem);
  line-height: 0.95;
  font-weight: 600;
  letter-spacing: -0.045em;
  text-wrap: balance;
}
.hero__title em { display: inline; color: var(--s-accent); font-size: 1.04em; }
.hero__subtitle { margin-top: 24px; max-width: 46ch; font-size: clamp(1rem, 1.5vw, 1.14rem); line-height: 1.65; color: var(--s-muted); }
.hero__actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 34px; }
.hero__meta { display: flex; flex-wrap: wrap; gap: 8px 22px; margin-top: 34px; font-size: 0.78rem; color: var(--s-muted); letter-spacing: 0.04em; }
.hero__meta li { display: inline-flex; align-items: center; gap: 8px; }
.hero__meta svg { color: var(--s-accent); }
/* Antes de aplicar la temporada, el contenido aparece con suavidad. */
.js .hero__content > * { opacity: 0; transform: translateY(18px); }
.js.season-ready .hero__content > * { animation: heroIn 0.9s var(--ease) both; }
.js.season-ready .hero__content > *:nth-child(2) { animation-delay: 0.08s; }
.js.season-ready .hero__content > *:nth-child(3) { animation-delay: 0.16s; }
.js.season-ready .hero__content > *:nth-child(4) { animation-delay: 0.24s; }
.js.season-ready .hero__content > *:nth-child(5) { animation-delay: 0.32s; }

.hero__feature {
  position: relative;
  display: grid;
  grid-template-columns: 96px 1fr auto;
  align-items: center;
  gap: 16px;
  max-width: 420px;
  padding: 12px 16px 12px 12px;
  border: 1px solid color-mix(in srgb, var(--s-accent) 40%, transparent);
  background: color-mix(in srgb, var(--s-base) 55%, transparent);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  color: var(--s-ink);
  transition: transform 0.4s var(--ease), border-color 0.3s;
  animation: heroIn 1s 0.4s var(--ease) both;
}
.hero__feature:hover { transform: translateY(-4px); border-color: var(--s-accent); }
.hero__feature-frame { display: block; aspect-ratio: 1; overflow: hidden; background: #000; }
.hero__feature-frame img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.8s var(--ease); }
.hero__feature:hover .hero__feature-frame img { transform: scale(1.06); }
.hero__feature-caption { display: grid; gap: 3px; min-width: 0; }
.hero__feature-label { font-size: 0.7rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--s-accent); }
.hero__feature-name { font-family: var(--serif); font-weight: 400; font-size: 1.5rem; line-height: 1.1; }
.hero__feature-meta { font-size: 0.74rem; color: var(--s-muted); }
.hero__feature-go { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; border: 1px solid color-mix(in srgb, var(--s-accent) 50%, transparent); color: var(--s-accent); }
.hero__scroll {
  position: absolute;
  left: 50%;
  bottom: 26px;
  width: 24px;
  height: 38px;
  margin-left: -12px;
  border: 1px solid var(--s-ghost-border);
  border-radius: 999px;
  display: none;
}
.hero__scroll span { position: absolute; left: 50%; top: 8px; width: 2px; height: 7px; margin-left: -1px; border-radius: 2px; background: var(--s-ink); animation: scrollDot 2s infinite; }

/* Decoraciones de temporada */
.decor-lights { position: absolute; left: -2%; right: -2%; top: calc(var(--header-h) + var(--announce-h) - 6px); height: 80px; }
.decor-lights svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.decor-lights__wire { fill: none; stroke: rgba(216, 180, 106, 0.32); stroke-width: 1; vector-effect: non-scaling-stroke; }
.decor-lights__bulb {
  position: absolute;
  width: 6px;
  height: 6px;
  margin: -3px 0 0 -3px;
  border-radius: 50%;
  background: #ffd98f;
  box-shadow: 0 0 6px 2px rgba(255, 205, 120, 0.75), 0 0 18px 4px rgba(255, 190, 90, 0.25);
  animation: twinkle 3s ease-in-out infinite;
}
.decor-lights__bulb:nth-child(3n) { background: #fff1d6; }
.decor-lights__bulb:nth-child(4n) { background: #e8a2a2; box-shadow: 0 0 6px 2px rgba(230, 120, 120, 0.6), 0 0 18px 4px rgba(200, 60, 60, 0.2); }
.decor-bokeh {
  position: absolute;
  width: var(--s);
  height: var(--s);
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 214, 140, 0.55), rgba(255, 214, 140, 0) 70%);
  animation: floatGlow 9s ease-in-out infinite;
  opacity: 0.5;
}
.decor-sparkle {
  position: absolute;
  width: var(--s);
  height: var(--s);
  background: var(--s-glow);
  clip-path: polygon(50% 0, 60% 40%, 100% 50%, 60% 60%, 50% 100%, 40% 60%, 0 50%, 40% 40%);
  animation: sparkle 4s ease-in-out infinite;
}
.decor-heart {
  position: absolute;
  bottom: -40px;
  width: var(--s);
  height: var(--s);
  opacity: 0;
  border: 1px solid rgba(240, 183, 194, 0.55);
  transform: rotate(45deg);
  border-radius: 50% 50% 0 50%;
  animation: rise 12s linear infinite;
}
.decor-moon {
  position: absolute;
  right: 8%;
  top: 22%;
  width: clamp(140px, 22vw, 320px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle at 35% 35%, rgba(230, 130, 60, 0.55), rgba(160, 70, 20, 0.25) 55%, transparent 70%);
  filter: blur(2px);
  animation: floatGlow 14s ease-in-out infinite;
}
.decor-grain {
  position: absolute;
  inset: 0;
  opacity: 0.08;
  background-image: radial-gradient(rgba(255, 255, 255, 0.6) 1px, transparent 1px);
  background-size: 3px 3px;
}
.decor-sun {
  position: absolute;
  right: -6%;
  top: -10%;
  width: clamp(260px, 40vw, 620px);
  aspect-ratio: 1;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(255, 210, 140, 0.6), rgba(255, 210, 140, 0) 65%);
  animation: floatGlow 16s ease-in-out infinite;
}
.decor-ticker {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
  background: var(--s-accent);
  color: #000;
  font-weight: 800;
  font-size: 0.86rem;
  letter-spacing: 0.24em;
}
.decor-ticker__track { display: flex; white-space: nowrap; animation: ticker 40s linear infinite; }
.decor-ticker__track span { padding-right: 0.24em; }
.decor-lines {
  position: absolute;
  inset: 0;
  background-image: linear-gradient(to right, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: calc(100% / 6) 100%;
  mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
  -webkit-mask-image: linear-gradient(to bottom, transparent, #000 30%, #000 70%, transparent);
}
:root[data-season="black-friday"] .hero { padding-bottom: 120px; }
:root[data-season="black-friday"] .hero__title { text-transform: uppercase; letter-spacing: -0.04em; }

/* Franja de confianza */
.trust { border-bottom: 1px solid var(--line); background: var(--bg); }
.trust__grid { display: grid; grid-template-columns: 1fr 1fr; }
.trust__item { display: flex; align-items: center; gap: 12px; padding: 20px 8px; font-size: 0.82rem; line-height: 1.35; }
.trust__item svg { flex: none; color: var(--ink); }
.trust__item strong { display: block; font-weight: 600; }
.trust__item span { color: var(--muted); font-size: 0.76rem; }
.trust__item a { text-decoration: underline; text-underline-offset: 2px; }

/* Secciones */
.section { padding: clamp(64px, 9vw, 120px) 0; background: var(--bg); }
.section--alt { background: var(--bg-alt); }
.section__head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 18px 32px; margin-bottom: clamp(32px, 4vw, 52px); }
.section__head--center { flex-direction: column; align-items: center; text-align: center; }

/* Categorías */
.cats { display: grid; gap: 14px; }
.cat {
  position: relative;
  display: block;
  overflow: hidden;
  min-height: 380px;
  border-radius: var(--radius-sm);
  background: #111;
  color: #fff;
  isolation: isolate;
}
.cat__media { position: absolute; inset: 0; z-index: -2; }
.cat__media img { width: 100%; height: 100%; object-fit: cover; transition: transform 1.1s var(--ease), filter 0.6s; filter: grayscale(0.25); }
.cat::after { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(180deg, rgba(0, 0, 0, 0) 30%, rgba(0, 0, 0, 0.78) 100%); }
.cat:hover .cat__media img { transform: scale(1.06); filter: grayscale(0); }
.cat__body { position: absolute; left: 0; right: 0; bottom: 0; padding: 26px; display: grid; gap: 6px; }
.cat__index { font-size: 0.72rem; letter-spacing: 0.2em; opacity: 0.7; }
.cat__title { font-size: clamp(2rem, 3.4vw, 2.8rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.cat__text { font-size: 0.9rem; opacity: 0.82; max-width: 34ch; }
.cat__cta { display: inline-flex; align-items: center; gap: 10px; margin-top: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase; }
.cat__cta svg { transition: transform 0.3s var(--ease); }
.cat:hover .cat__cta svg { transform: translateX(5px); }

/* Rejillas */
.grid { display: grid; gap: 28px 16px; grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--few { grid-template-columns: repeat(auto-fill, minmax(min(100%, 280px), 340px)); }

/* Tarjeta de producto */
.card { position: relative; display: flex; flex-direction: column; min-width: 0; }
.card__media {
  position: relative;
  display: block;
  aspect-ratio: 4 / 5;
  overflow: hidden;
  border-radius: var(--radius-sm);
  background: var(--surface-2);
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s var(--ease), opacity 0.5s var(--ease); }
.card__alt { opacity: 0; }
.card:hover .card__media img:first-child { transform: scale(1.045); }
.card:hover .card__alt { opacity: 1; }
.card__tags { position: absolute; top: 12px; left: 12px; display: flex; flex-wrap: wrap; gap: 6px; z-index: 2; }
.tag {
  display: inline-block;
  padding: 5px 9px;
  border-radius: 999px;
  background: var(--bg);
  color: var(--ink);
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  box-shadow: var(--shadow-sm);
}
.tag--sale { background: var(--sale); color: #fff; }
.tag--muted { background: var(--surface-3); color: var(--muted); }
.card__body { display: flex; flex-direction: column; gap: 4px; padding-top: 14px; flex: 1; }
.card__meta { font-size: 0.7rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--muted); }
.card__title { font-size: 1rem; font-weight: 500; line-height: 1.3; letter-spacing: -0.01em; }
.card__title a:hover { text-decoration: underline; text-underline-offset: 3px; }
.card__foot { display: grid; grid-template-columns: 1fr; gap: 8px; margin-top: auto; padding-top: 14px; }
.card__foot .btn { padding: 0 12px; }

.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 10px; margin-top: 2px; }
.price__now { font-weight: 600; font-size: 0.98rem; font-variant-numeric: tabular-nums; }
.price__now--sale { color: var(--sale); }
.price__old { color: var(--muted); font-size: 0.86rem; }
.price__pct { font-size: 0.72rem; font-weight: 700; color: var(--sale); }
.price__ask { font-size: 0.86rem; color: var(--muted); font-style: italic; font-family: var(--serif); font-size: 1.05rem; }
.price--lg .price__now { font-size: 1.6rem; }
.price--lg .price__ask { font-size: 1.4rem; }
.price--xl .price__now { font-size: 2rem; }
.price--xl .price__ask { font-size: 1.6rem; color: inherit; opacity: 0.8; }

/* Skeleton (solo mientras carga el catálogo) */
.skeleton,
.card--skeleton {
  background: linear-gradient(100deg, var(--skeleton) 30%, var(--skeleton-hi) 50%, var(--skeleton) 70%);
  background-size: 300% 100%;
  animation: shimmer 1.4s linear infinite;
  border-radius: var(--radius-sm);
}
.card--skeleton { aspect-ratio: 4 / 6; }
.skeleton--line { height: 14px; width: 40%; margin-bottom: 14px; }
.skeleton--title { height: 40px; width: 80%; margin-bottom: 14px; }

/* Perfume protagonista (sección oscura editorial en ambos temas) */
.spotlight {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  padding: clamp(72px, 10vw, 140px) 0;
  background: #070605;
  color: #f4ead6;
}
:root[data-theme="dark"] .spotlight { background: #0d0b08; border-block: 1px solid #1f1a12; }
.spotlight__glow {
  position: absolute;
  inset: 0;
  z-index: -1;
  background:
    radial-gradient(50% 60% at 25% 50%, rgba(201, 164, 92, 0.16), transparent 70%),
    radial-gradient(40% 50% at 90% 10%, rgba(201, 164, 92, 0.08), transparent 70%);
}
.spotlight :focus-visible { outline-color: var(--gold); }

/* Disponibilidad */
.stock { display: inline-flex; align-items: center; gap: 8px; font-size: 0.84rem; color: var(--ink-2); }
.stock__dot { width: 8px; height: 8px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 4px color-mix(in srgb, var(--ok) 18%, transparent); }
.stock--low .stock__dot { background: var(--warn); box-shadow: 0 0 0 4px color-mix(in srgb, var(--warn) 20%, transparent); }
.stock--out .stock__dot { background: var(--muted); box-shadow: none; }

/* Próximamente (colecciones sin productos activos) */
.soon { display: grid; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface); border: 1px solid var(--line); }
.section--alt .soon { background: var(--bg); }
.soon__media { position: relative; aspect-ratio: 16 / 10; overflow: hidden; }
.soon__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; filter: grayscale(0.4); transition: transform 1s var(--ease), filter 0.6s; }
.soon:hover .soon__media img { transform: scale(1.04); filter: grayscale(0); }
.soon__body { display: grid; align-content: center; gap: 14px; padding: clamp(28px, 4vw, 56px); }
.soon__body .btn { justify-self: start; }
.soon__title { font-size: clamp(1.8rem, 3vw, 2.6rem); font-weight: 600; letter-spacing: -0.035em; line-height: 1.05; }
.soon__text { color: var(--muted); max-width: 48ch; }

/* Pasos */
.steps { display: grid; gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius-sm); overflow: hidden; counter-reset: s; }
.step { background: var(--bg); padding: 34px 28px; display: grid; gap: 10px; }
.step__n { font-family: var(--serif); font-style: italic; font-size: 2.6rem; line-height: 1; color: var(--muted); }
.step h3 { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; }
.step p { color: var(--muted); font-size: 0.94rem; }

/* Banda final */
.band { background: var(--inv-bg); color: var(--inv-ink); padding: clamp(56px, 8vw, 96px) 0; }
.band__inner { display: grid; gap: 28px; align-items: center; }
.band__title { font-size: clamp(2rem, 4.4vw, 3.4rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1.02; }
.band__text { color: var(--inv-muted); margin-top: 12px; max-width: 50ch; }
.band .btn { justify-self: start; }

/* Pie de página */
.site-footer { background: var(--bg); border-top: 1px solid var(--line); padding-top: clamp(56px, 7vw, 88px); font-size: 0.92rem; }
.footer__grid { display: grid; gap: 40px; }
.footer__brand { display: grid; gap: 16px; align-content: start; max-width: 380px; }
.footer__desc { color: var(--muted); }
.footer__city { display: inline-flex; align-items: center; gap: 8px; color: var(--ink-2); }
.footer__title { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); margin-bottom: 16px; }
.footer__links { display: grid; gap: 10px; }
.footer__links a { transition: opacity 0.2s; }
.footer__links a:hover { opacity: 0.6; }
.footer__contact li { display: flex; align-items: center; gap: 10px; color: var(--ink-2); }
.footer__contact a { display: inline-flex; align-items: center; gap: 10px; }
.footer__social { display: flex; flex-wrap: wrap; gap: 8px; }
.footer__social a { display: inline-block; padding: 8px 14px; border: 1px solid var(--line-2); border-radius: 999px; font-size: 0.78rem; transition: border-color 0.2s, background-color 0.2s; }
.footer__social a:hover { border-color: var(--ink); background: var(--surface-2); }
.footer__pay { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 18px; margin-top: 48px; padding-block: 24px; border-top: 1px solid var(--line); }
.footer__label { font-size: 0.72rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.footer__bottom { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 24px; padding-block: 22px 96px; border-top: 1px solid var(--line); color: var(--muted); font-size: 0.8rem; }

.chips { display: flex; flex-wrap: wrap; gap: 8px; }
.chip {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 14px;
  border: 1px solid var(--line-2);
  border-radius: 999px;
  font-size: 0.78rem;
  color: var(--ink-2);
  background: transparent;
  transition: background-color 0.2s, color 0.2s, border-color 0.2s;
}
.chip--btn:hover { border-color: var(--ink); color: var(--ink); }
.chip--btn.is-active { background: var(--ink); border-color: var(--ink); color: var(--bg); }

/* WhatsApp flotante */
.wa-float {
  position: fixed;
  right: max(16px, env(safe-area-inset-right));
  bottom: max(18px, env(safe-area-inset-bottom));
  z-index: 40;
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 50%;
  background: var(--wa);
  color: #fff;
  box-shadow: 0 14px 30px -10px rgba(0, 0, 0, 0.45);
  transition: transform 0.3s var(--ease), background-color 0.2s;
}
.wa-float:hover { transform: translateY(-3px) scale(1.04); background: var(--wa-hover); }
.wa-float::before { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 1px solid var(--wa); animation: ping 2.8s var(--ease) infinite; }

/* Páginas internas */
.page { min-height: 60vh; }
.page-head { padding: clamp(36px, 5vw, 64px) 0 clamp(24px, 3vw, 40px); border-bottom: 1px solid var(--line); }
.page-head--compact { padding-bottom: 24px; }
.page-head__lead { color: var(--muted); margin-top: 12px; max-width: 60ch; }
.crumbs ol { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; font-size: 0.78rem; color: var(--muted); }
.crumbs li + li::before { content: "/"; margin-right: 6px; opacity: 0.5; }
.crumbs a:hover { color: var(--ink); }
.crumbs li[aria-current] { color: var(--ink); max-width: 40ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumbs--product { padding-top: 24px; }

/* Catálogo */
.catalog { padding-block: 28px 80px; }
.toolbar { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; justify-content: space-between; margin-bottom: 28px; }
.toolbar__search { position: relative; flex: 1 1 280px; max-width: 460px; display: flex; align-items: center; }
.toolbar__search svg { position: absolute; left: 16px; color: var(--muted); pointer-events: none; }
.toolbar__search input { width: 100%; height: 46px; padding: 0 16px 0 46px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); outline: none; transition: border-color 0.2s; }
.toolbar__search input:focus { border-color: var(--ink); }
.toolbar__right { display: flex; gap: 10px; align-items: center; }
.badge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 999px; background: var(--ink); color: var(--bg); font-size: 0.66rem; }
.select { position: relative; }
.select::after { content: ""; position: absolute; right: 16px; top: 50%; width: 7px; height: 7px; margin-top: -5px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(45deg); pointer-events: none; opacity: 0.6; }
.select select { appearance: none; -webkit-appearance: none; width: 100%; height: 48px; padding: 0 40px 0 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); outline: none; cursor: pointer; }
.select select:focus { border-color: var(--ink); }
.select--sm select { height: 38px; border-radius: 999px; font-size: 0.8rem; padding-left: 14px; }
.catalog__layout { display: grid; gap: 32px; }
.catalog__count { font-size: 0.82rem; color: var(--muted); margin-bottom: 16px; }
.filters { display: grid; align-content: start; gap: 0; }
.filters__head { display: none; }
.filters__group { padding: 20px 0; border-bottom: 1px solid var(--line); }
.filters__group:first-child { padding-top: 0; }
.filters__label { font-size: 0.72rem; font-weight: 600; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); margin-bottom: 12px; }
.filters__foot { display: grid; gap: 10px; padding-top: 20px; }
.filters__apply { display: none; }
.filters-overlay { display: none; }
.price-range { display: flex; align-items: center; gap: 8px; }
.price-range label { flex: 1; }
.price-range input { width: 100%; height: 42px; padding: 0 12px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--surface); outline: none; }
.price-range input:focus { border-color: var(--ink); }
.switch { display: flex; align-items: center; gap: 12px; padding: 6px 0; font-size: 0.9rem; cursor: pointer; }
.switch input { position: absolute; opacity: 0; pointer-events: none; }
.switch__ui { position: relative; width: 38px; height: 22px; border-radius: 999px; background: var(--surface-3); transition: background-color 0.25s; flex: none; }
.switch__ui::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--bg); box-shadow: var(--shadow-sm); transition: transform 0.3s var(--ease); }
.switch input:checked + .switch__ui { background: var(--ink); }
.switch input:checked + .switch__ui::after { transform: translateX(16px); }
.switch input:focus-visible + .switch__ui { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Ficha de producto */
.product { display: grid; gap: 32px; padding-block: 8px 72px; }
.gallery { display: grid; gap: 12px; align-content: start; }
.gallery__stage { position: relative; aspect-ratio: 1; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.gallery__img { width: 100%; height: 100%; object-fit: cover; transition: opacity 0.2s; }
.gallery__img.is-fading { opacity: 0.2; }
.gallery__nav { position: absolute; top: 50%; margin-top: -22px; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; background: color-mix(in srgb, var(--bg) 85%, transparent); color: var(--ink); box-shadow: var(--shadow-sm); transition: background-color 0.2s, transform 0.2s; }
.gallery__nav:hover { background: var(--bg); transform: scale(1.06); }
.gallery__nav--prev { left: 12px; }
.gallery__nav--next { right: 12px; }
.gallery__count { position: absolute; right: 12px; bottom: 12px; padding: 4px 10px; border-radius: 999px; background: color-mix(in srgb, var(--bg) 85%, transparent); font-size: 0.72rem; font-variant-numeric: tabular-nums; }
.gallery__thumbs { display: flex; gap: 10px; overflow-x: auto; scrollbar-width: none; }
.gallery__thumb { flex: none; width: 76px; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm); border: 1px solid transparent; opacity: 0.55; transition: opacity 0.2s, border-color 0.2s; }
.gallery__thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery__thumb:hover,
.gallery__thumb.is-active { opacity: 1; border-color: var(--ink); }
.pinfo { display: grid; gap: 16px; align-content: start; }
.pinfo__meta { font-size: 0.74rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--muted); }
.pinfo__title { font-size: clamp(2.2rem, 4.4vw, 3.6rem); font-weight: 600; letter-spacing: -0.04em; line-height: 1; }
.pinfo__sub { font-size: 0.82rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-2); }
.pinfo__desc { color: var(--ink-2); max-width: 60ch; }
.pinfo__trust { display: grid; gap: 10px; padding: 18px 0; border-block: 1px solid var(--line); font-size: 0.88rem; color: var(--ink-2); }
.pinfo__trust li { display: flex; align-items: center; gap: 10px; }
.buy { display: grid; gap: 20px; padding-top: 8px; }
.buy__row { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; }
.buy__actions { display: grid; gap: 10px; }
.opt { border: 0; padding: 0; margin: 0; min-width: 0; }
.opt__legend { display: block; padding: 0; margin-bottom: 10px; font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.opt__value { color: var(--ink); letter-spacing: 0.04em; text-transform: none; font-weight: 500; }
.opt__list { display: flex; flex-wrap: wrap; gap: 8px; }
.opt__pill { display: inline-grid; place-items: center; min-width: 52px; height: 44px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); font-size: 0.88rem; cursor: pointer; transition: border-color 0.2s, background-color 0.2s, color 0.2s; }
.opt__pill:hover { border-color: var(--ink); }
.opt__color { display: inline-grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line-2); cursor: pointer; transition: border-color 0.2s, box-shadow 0.2s; }
.opt__swatch { width: 28px; height: 28px; border-radius: 50%; box-shadow: inset 0 0 0 1px rgba(0, 0, 0, 0.12); }
input:checked + .opt__pill { background: var(--ink); color: var(--bg); border-color: var(--ink); }
input:checked + .opt__color { border-color: var(--ink); box-shadow: 0 0 0 2px var(--ink); }
input:focus-visible + .opt__pill,
input:focus-visible + .opt__color { outline: 2px solid var(--ink); outline-offset: 2px; }
.opt.has-error .opt__legend { color: var(--danger); }
.opt.has-error .opt__pill,
.opt.has-error .opt__color { border-color: var(--danger); }
.stepper { display: inline-flex; align-items: center; height: 48px; border: 1px solid var(--line-2); border-radius: 999px; overflow: hidden; }
.stepper button { width: 44px; height: 100%; display: grid; place-items: center; transition: background-color 0.2s; }
.stepper button:hover:not(:disabled) { background: var(--surface-2); }
.stepper button:disabled { opacity: 0.35; }
.stepper__input,
.stepper output { width: 44px; text-align: center; border: 0; background: transparent; font-weight: 600; font-variant-numeric: tabular-nums; outline: none; -moz-appearance: textfield; appearance: textfield; }
.stepper__input::-webkit-inner-spin-button,
.stepper__input::-webkit-outer-spin-button { -webkit-appearance: none; margin: 0; }
.stepper--sm { height: 36px; }
.stepper--sm button { width: 34px; }
.stepper--sm output { width: 30px; font-size: 0.9rem; }
.accordion { display: grid; }
.accordion__item { border-bottom: 1px solid var(--line); }
.accordion__item summary { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 18px 0; font-weight: 500; cursor: pointer; list-style: none; }
.accordion__item summary::-webkit-details-marker { display: none; }
.accordion__item summary::after { content: "+"; flex: none; width: 20px; margin-right: 6px; text-align: center; font-size: 1.3rem; font-weight: 300; line-height: 1; transition: transform 0.3s var(--ease); }
.accordion__item[open] summary::after { transform: rotate(45deg); }
.accordion__body { padding-bottom: 20px; color: var(--ink-2); display: grid; gap: 8px; font-size: 0.94rem; }
.specs { display: grid; }
.specs div { display: flex; justify-content: space-between; gap: 16px; padding: 10px 0; border-bottom: 1px dashed var(--line); }
.specs div:last-child { border-bottom: 0; }
.specs dt { color: var(--muted); }
.specs dd { text-align: right; font-weight: 500; color: var(--ink); }
.sticky-buy {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 35;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px var(--gutter) max(12px, env(safe-area-inset-bottom));
  padding-right: 88px;
  background: var(--header-bg);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid var(--line);
  transform: translateY(110%);
  transition: transform 0.4s var(--ease);
}
.sticky-buy.is-visible { transform: none; }
.sticky-buy__info { min-width: 0; }
.sticky-buy__info strong { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 2; line-clamp: 2; overflow: hidden; font-size: 0.9rem; font-weight: 600; line-height: 1.25; }

/* Carrito lateral */
.drawer-overlay { position: fixed; inset: 0; z-index: 80; background: var(--overlay); opacity: 0; visibility: hidden; transition: opacity 0.35s var(--ease), visibility 0s linear 0.35s; backdrop-filter: blur(2px); }
.drawer-overlay.is-open { opacity: 1; visibility: visible; transition-delay: 0s; }
.drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  width: min(440px, 100%);
  display: flex;
  flex-direction: column;
  background: var(--bg);
  color: var(--ink);
  box-shadow: var(--shadow-lg);
  transform: translateX(100%);
  visibility: hidden;
  transition: transform 0.45s var(--ease), visibility 0s linear 0.45s;
  outline: none;
}
.drawer.is-open { transform: none; visibility: visible; transition-delay: 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 18px 20px; border-bottom: 1px solid var(--line); }
.drawer__title { font-size: 1.1rem; font-weight: 600; letter-spacing: -0.02em; }
.drawer__count { color: var(--muted); font-weight: 400; }
.drawer__list { flex: 1; overflow-y: auto; padding: 4px 20px; overscroll-behavior: contain; }
.drawer__foot { display: grid; gap: 10px; padding: 18px 20px max(18px, env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: var(--bg); }
.drawer__foot:empty { display: none; }
.drawer__row { display: flex; justify-content: space-between; font-size: 1rem; }
.drawer__note { font-size: 0.78rem; color: var(--muted); }
.drawer__warn { font-size: 0.8rem; color: var(--danger); }

/* Línea de producto en carrito */
.line { display: grid; grid-template-columns: 76px 1fr; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.line:last-child { border-bottom: 0; }
.line__thumb { display: block; aspect-ratio: 4 / 5; overflow: hidden; border-radius: var(--radius-sm); background: var(--surface-2); }
.line__thumb img { width: 100%; height: 100%; object-fit: cover; }
.line__info { display: grid; gap: 4px; align-content: start; min-width: 0; }
.line__top { display: flex; justify-content: space-between; gap: 8px; }
.line__name { font-weight: 500; line-height: 1.3; }
.line__name a:hover { text-decoration: underline; text-underline-offset: 3px; }
.line__remove { flex: none; display: grid; place-items: center; width: 32px; height: 32px; margin: -6px -6px 0 0; border-radius: 50%; color: var(--muted); transition: color 0.2s, background-color 0.2s; }
.line__remove:hover { color: var(--danger); background: var(--surface-2); }
.line__variant,
.line__unit { font-size: 0.8rem; color: var(--muted); }
.line__issue { display: flex; align-items: center; gap: 6px; font-size: 0.8rem; color: var(--danger); }
.line__bottom { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 8px; }
.line__subtotal { font-variant-numeric: tabular-nums; font-weight: 600; white-space: nowrap; }
.line--lg { grid-template-columns: 110px 1fr; gap: 20px; padding: 22px 0; }

/* Carrito y checkout */
.checkout-steps { display: flex; gap: 8px 22px; flex-wrap: wrap; margin-bottom: 18px; font-size: 0.76rem; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted); }
.checkout-steps li { display: inline-flex; align-items: center; gap: 8px; }
.checkout-steps span { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 50%; border: 1px solid var(--line-2); font-size: 0.7rem; letter-spacing: 0; transition: background-color 0.3s, color 0.3s, border-color 0.3s; }
.checkout-steps .is-active { color: var(--ink); font-weight: 600; }
.checkout-steps .is-active span,
.checkout-steps .is-done span { background: var(--ink); color: var(--bg); border-color: var(--ink); }
.cart-layout { display: grid; gap: 32px; padding-block: 28px 80px; align-items: start; }
.cart-layout.is-empty .summary { display: none; }
.cart-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-top: 20px; }
.summary { display: grid; gap: 14px; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.summary__title { font-size: 1.05rem; font-weight: 600; letter-spacing: -0.01em; padding-bottom: 6px; }
.summary__row { display: flex; justify-content: space-between; gap: 12px; font-size: 0.92rem; }
.summary__row span:last-child { color: var(--muted); text-align: right; }
.summary__total { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 1.05rem; }
.summary__total { flex-wrap: wrap; }
.summary__total strong { margin-left: auto; text-align: right; font-size: 1.35rem; font-variant-numeric: tabular-nums; letter-spacing: -0.02em; }
.summary__hint { font-size: 0.8rem; color: var(--ink-2); padding: 10px 12px; background: var(--surface-2); border-radius: var(--radius-sm); }
.summary__warn { font-size: 0.8rem; color: var(--danger); }
.summary__trust { display: grid; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); font-size: 0.8rem; color: var(--muted); }
.summary__trust li { display: flex; align-items: center; gap: 8px; }
.panel { display: grid; gap: 18px; padding: clamp(20px, 3vw, 32px); border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); }
.panel__head { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.panel__title { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.02em; padding: 0; }
.panel__subtitle { font-size: 0.74rem; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); }
.checkout-form { gap: 8px; }
.fieldset { border: 0; padding: 0 0 22px; margin: 0 0 6px; display: grid; gap: 14px; border-bottom: 1px solid var(--line); min-width: 0; }
.fieldset legend { margin-bottom: 14px; }
.checkout-form__actions { display: flex; flex-wrap: wrap-reverse; justify-content: space-between; align-items: center; gap: 16px; padding-top: 14px; }
.field { display: grid; gap: 6px; }
.field label { font-size: 0.84rem; font-weight: 500; }
.field input,
.field textarea,
.contact__form textarea { width: 100%; min-height: 48px; padding: 12px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); color: var(--ink); outline: none; transition: border-color 0.2s, box-shadow 0.2s; resize: vertical; }
.field input:focus,
.field textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.field [aria-invalid="true"],
.options[aria-invalid="true"] .option { border-color: var(--danger); }
.field__error { min-height: 0; font-size: 0.8rem; color: var(--danger); }
.field__error:empty { display: none; }
.field__hint { font-size: 0.78rem; color: var(--muted); }
.field__hint a { text-decoration: underline; text-underline-offset: 2px; color: var(--ink-2); }
.input-prefix { display: flex; align-items: stretch; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--bg); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s; }
.input-prefix:focus-within { border-color: var(--ink); box-shadow: 0 0 0 3px color-mix(in srgb, var(--ink) 10%, transparent); }
.input-prefix span { display: grid; place-items: center; padding: 0 12px; background: var(--surface-2); color: var(--muted); font-size: 0.9rem; border-right: 1px solid var(--line); }
.field .input-prefix input { border: 0; box-shadow: none; border-radius: 0; }
.input-prefix:has([aria-invalid="true"]) { border-color: var(--danger); }
.options { display: grid; gap: 10px; }
.option { position: relative; display: flex; align-items: flex-start; gap: 12px; padding: 14px 16px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); cursor: pointer; transition: border-color 0.2s, background-color 0.2s; }
.option:hover { border-color: var(--ink); }
.option input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); }
.option:has(input:checked) { border-color: var(--ink); background: var(--surface-2); box-shadow: inset 0 0 0 1px var(--ink); }
.option.is-disabled { opacity: 0.55; cursor: not-allowed; }
.option.is-disabled:hover { border-color: var(--line-2); }
.option__body { display: grid; gap: 2px; }
.option__title { font-weight: 500; font-size: 0.94rem; }
.option__note { font-size: 0.8rem; color: var(--muted); }
.option .link-inline { justify-self: start; margin-top: 4px; }
.check { display: flex; gap: 12px; align-items: flex-start; font-size: 0.88rem; color: var(--ink-2); cursor: pointer; }
.check input { flex: none; width: 20px; height: 20px; margin-top: 1px; accent-color: var(--ink); }
.review__data { display: grid; grid-template-columns: max-content 1fr; gap: 8px 20px; font-size: 0.92rem; }
.review__data dt { color: var(--muted); }
.review__data dd { word-break: break-word; }
.review__items { display: grid; border-block: 1px solid var(--line); }
.review__items li { display: grid; grid-template-columns: auto 1fr auto; gap: 12px; padding: 12px 0; border-bottom: 1px dashed var(--line); font-size: 0.92rem; }
.review__items li:last-child { border-bottom: 0; }
.review__qty { color: var(--muted); font-variant-numeric: tabular-nums; }
.review__name small { display: block; color: var(--muted); font-size: 0.78rem; }
.review__totals { display: grid; gap: 10px; }
.review__preview summary { cursor: pointer; font-size: 0.84rem; color: var(--muted); text-decoration: underline; text-underline-offset: 3px; }
.review__preview pre { margin: 12px 0 0; padding: 16px; max-height: 320px; overflow: auto; border-radius: var(--radius-sm); background: var(--surface-2); font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 0.78rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.review__note { font-size: 0.8rem; color: var(--muted); text-align: center; }
.panel--done { text-align: center; justify-items: center; padding-block: 48px; }
.panel--done p { color: var(--ink-2); max-width: 52ch; }
.done__icon { display: grid; place-items: center; width: 64px; height: 64px; border-radius: 50%; background: var(--ink); color: var(--bg); animation: pop 0.5s var(--ease) both; }
.done__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; }

/* Diálogo */
.dialog { width: min(520px, calc(100% - 32px)); padding: 0; border: 1px solid var(--line); border-radius: var(--radius); background: var(--bg); color: var(--ink); box-shadow: var(--shadow-lg); }
.dialog::backdrop { background: var(--overlay); backdrop-filter: blur(2px); }
.dialog form { display: grid; gap: 18px; padding: 24px; }
.dialog__head { display: flex; justify-content: space-between; align-items: center; }
.dialog h2 { font-size: 1.2rem; font-weight: 600; }
.dialog[open] { animation: pop 0.35s var(--ease); }

/* Listas */
.list-check { display: grid; gap: 12px; }
.list-check li { position: relative; padding-left: 30px; color: var(--ink-2); }
.list-check li::before { content: ""; position: absolute; left: 2px; top: 6px; width: 14px; height: 8px; border-left: 1.6px solid var(--ink); border-bottom: 1.6px solid var(--ink); transform: rotate(-45deg); }
.list-detail { display: grid; }
.list-detail li { padding: 16px 0; border-bottom: 1px solid var(--line); color: var(--muted); }
.list-detail strong { color: var(--ink); font-weight: 600; }

/* Contacto */
.contact { display: grid; gap: 24px; padding-block: 36px 24px; }
.contact__cards { display: grid; gap: 12px; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); align-content: start; }
.contact-card { display: grid; gap: 6px; align-content: start; padding: 24px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); transition: border-color 0.2s, transform 0.3s var(--ease); }
.contact-card svg { margin-bottom: 10px; }
.contact-card__label { font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.contact-card strong { font-size: 1.15rem; font-weight: 600; letter-spacing: -0.01em; }
.contact-card--wa { background: var(--inv-bg); color: var(--inv-ink); border-color: var(--inv-bg); }
.contact-card--wa .contact-card__label { color: var(--inv-muted); }
.contact-card--wa:hover { transform: translateY(-3px); }
.contact-card__go { display: inline-flex; align-items: center; gap: 8px; margin-top: 10px; font-size: 0.76rem; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; }
.info-grid { display: grid; gap: 32px; align-items: start; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); }
.table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.table th,
.table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--line); }
.table th { font-size: 0.7rem; letter-spacing: 0.16em; text-transform: uppercase; color: var(--muted); font-weight: 600; background: var(--surface-2); }
.table tr:last-child td { border-bottom: 0; }
.table td:not(:first-child) { white-space: nowrap; }

/* Estados vacíos */
.empty { display: grid; justify-items: center; gap: 10px; padding: 56px 20px; text-align: center; border: 1px dashed var(--line-2); border-radius: var(--radius); grid-column: 1 / -1; }
.empty--drawer { border: 0; padding-top: 80px; }
.empty--wide { padding-block: 80px; }
.empty__icon { display: grid; place-items: center; width: 72px; height: 72px; margin-bottom: 6px; border-radius: 50%; background: var(--surface-2); color: var(--ink-2); }
.empty__title { font-size: 1.3rem; font-weight: 600; letter-spacing: -0.02em; }
.empty__text { color: var(--muted); max-width: 44ch; }
.empty__actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; margin-top: 10px; }

/* Avisos */
.toasts { position: fixed; left: 50%; bottom: 24px; z-index: 120; display: grid; gap: 8px; width: min(420px, calc(100% - 32px)); transform: translateX(-50%); pointer-events: none; }
.toast {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border-radius: var(--radius);
  background: var(--inv-bg);
  color: var(--inv-ink);
  box-shadow: var(--shadow-lg);
  font-size: 0.9rem;
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  transition: opacity 0.3s var(--ease), transform 0.35s var(--ease);
  pointer-events: auto;
}
.toast.is-in { opacity: 1; transform: none; }
.toast--error svg { color: var(--danger); }
:root[data-theme="dark"] .toast--error svg { color: #b42318; }
.toast__text { flex: 1; }
.toast__action { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; white-space: nowrap; }

/* Página 404 */
.notfound { min-height: 70vh; display: grid; place-items: center; text-align: center; padding: 80px 0; }
.notfound__code { font-family: var(--serif); font-style: italic; font-size: clamp(6rem, 20vw, 12rem); line-height: 0.9; }

/* Bump del carrito */
.cart-btn.bump { animation: bump 0.5s var(--ease); }
