/* ===== Reset & tokens ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  /* Paleta azul Klein / Pantone Blue 072 C + plata */
  --blue: #10069F;          /* primario (Pantone Blue 072 C) */
  --blue-electric: #1e2cff; /* acento eléctrico / glow */
  --blue-soft: #4b62ff;
  --white: #ffffff;
  --mist: #e8ebf2;          /* gris frío claro (fondo) */
  --mist-2: #f2f4f9;
  --silver: #c3c9d4;
  --ink: #0a0d1a;           /* texto principal */
  --muted: #5b6274;         /* texto secundario */
  --line: rgba(16, 6, 159, 0.12);
  --line-strong: rgba(16, 6, 159, 0.28);

  --bg: var(--mist);
  --surface: var(--white);
  --surface-2: var(--mist-2);
  --text: var(--ink);
  --accent: var(--blue);

  --radius: 16px;
  --radius-sm: 10px;
  --maxw: 1180px;
  --ease: cubic-bezier(0.22, 1, 0.36, 1);
  --grain: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='140' height='140'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='2' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

@media (prefers-color-scheme: dark) {
  :root {
    --bg: #05060f;
    --surface: #0d1020;
    --surface-2: #10142a;
    --text: #eef0f7;
    --muted: #9aa2b8;
    --line: rgba(120, 140, 255, 0.16);
    --line-strong: rgba(120, 140, 255, 0.34);
    --silver: #3a4256;
  }
}
:root[data-theme="light"] {
  --bg: var(--mist); --surface: var(--white); --surface-2: var(--mist-2);
  --text: var(--ink); --muted: #5b6274; --line: rgba(16,6,159,0.12);
  --line-strong: rgba(16,6,159,0.28); --silver: #c3c9d4;
}
:root[data-theme="dark"] {
  --bg: #05060f; --surface: #0d1020; --surface-2: #10142a;
  --text: #eef0f7; --muted: #9aa2b8; --line: rgba(120,140,255,0.16);
  --line-strong: rgba(120,140,255,0.34); --silver: #3a4256;
}

html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

.container { width: 100%; max-width: var(--maxw); margin: 0 auto; padding: 0 24px; }

/* ===== Topbar ===== */
.topbar {
  background: var(--blue);
  color: #fff;
  text-align: center;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 9px 12px;
}

/* ===== Nav ===== */
.nav {
  position: sticky; top: 0; z-index: 50;
  background: color-mix(in srgb, var(--bg) 78%, transparent);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--line);
  transition: background 0.3s var(--ease);
}
.nav__inner { display: flex; align-items: center; justify-content: space-between; height: 68px; }
.brand { display: inline-flex; align-items: center; gap: 9px; font-weight: 800; font-size: 1.35rem; letter-spacing: -0.03em; }
.brand__logo { width: 1.55em; height: 1.55em; flex: none; color: var(--blue); }
.brand__wordmark { height: 30px; width: auto; display: block; color: var(--blue); }
@media (prefers-color-scheme: dark) { .brand__logo, .brand__wordmark { color: var(--blue-soft); } }
:root[data-theme="dark"] .brand__logo, :root[data-theme="dark"] .brand__wordmark { color: var(--blue-soft); }
.brand__mark { color: var(--text); }
.brand__accent { color: var(--blue); }
@media (prefers-color-scheme: dark) { .brand__accent { color: var(--blue-soft); } }
:root[data-theme="dark"] .brand__accent { color: var(--blue-soft); }
.nav__links { display: flex; gap: 30px; }
.nav__links a { color: var(--muted); font-size: 0.92rem; font-weight: 500; transition: color 0.2s; }
.nav__links a:hover { color: var(--blue); }
.nav__actions { display: flex; align-items: center; gap: 14px; }
.nav__toggle { display: none; flex-direction: column; gap: 5px; background: none; border: 0; cursor: pointer; padding: 6px; }
.nav__toggle span { width: 24px; height: 2px; background: var(--text); border-radius: 2px; transition: 0.3s var(--ease); }

/* ===== Buttons ===== */
.btn {
  display: inline-flex; align-items: center; justify-content: center;
  font-weight: 600; font-size: 0.95rem; letter-spacing: 0.01em;
  padding: 13px 26px; border-radius: 100px; border: 1px solid transparent;
  cursor: pointer; transition: transform 0.2s var(--ease), background 0.2s, border-color 0.2s, color 0.2s, box-shadow 0.2s;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn--sm { padding: 9px 18px; font-size: 0.85rem; }
.btn--full { width: 100%; }
.btn--primary { background: var(--blue); color: #fff; box-shadow: 0 8px 24px -10px rgba(16,6,159,0.7); }
.btn--primary:hover { background: var(--blue-electric); box-shadow: 0 12px 30px -10px rgba(30,44,255,0.75); }
.btn--outline { border-color: var(--line-strong); color: var(--text); }
.btn--outline:hover { border-color: var(--blue); color: var(--blue); }
.btn--ghost { color: var(--text); border-color: var(--line-strong); }
.btn--ghost:hover { border-color: var(--blue); color: var(--blue); }

/* ===== Hero (panel azul con tinta líquida) ===== */
.hero {
  position: relative; overflow: hidden;
  padding: clamp(76px, 12vw, 150px) 0 clamp(64px, 8vw, 104px);
  background: linear-gradient(160deg, #0b0570 0%, var(--blue) 45%, #1a12c8 100%);
  color: #fff;
}
.hero__glow {
  position: absolute; inset: -10% -10% auto -10%; height: 130%;
  background:
    radial-gradient(40% 38% at 22% 30%, rgba(120,140,255,0.55), transparent 60%),
    radial-gradient(46% 40% at 78% 60%, rgba(60,90,255,0.5), transparent 62%),
    radial-gradient(38% 46% at 55% 88%, rgba(180,200,255,0.42), transparent 60%);
  filter: blur(30px); opacity: 0.9; pointer-events: none;
  animation: drift 18s ease-in-out infinite alternate;
}
.hero::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 180px; opacity: 0.10; mix-blend-mode: overlay;
}
@keyframes drift {
  0%   { transform: translate3d(0,0,0) scale(1); }
  100% { transform: translate3d(-3%, 2%, 0) scale(1.08); }
}
.hero__inner { position: relative; text-align: center; max-width: 840px; margin: 0 auto; z-index: 1; }
.hero__mark { width: clamp(56px, 9vw, 84px); height: auto; color: #fff; margin: 0 auto 20px; display: block; filter: drop-shadow(0 6px 18px rgba(120,140,255,0.55)); }
.hero__wordmark { width: min(360px, 82%); height: auto; color: #fff; margin: 0 auto 26px; display: block; filter: drop-shadow(0 8px 22px rgba(120,140,255,0.5)); }
.hero__eyebrow {
  color: rgba(255,255,255,0.85); font-size: 0.8rem; font-weight: 600;
  letter-spacing: 0.24em; text-transform: uppercase; margin-bottom: 22px;
}
.hero__title {
  font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif;
  font-size: clamp(2.6rem, 7vw, 5rem); font-weight: 600; line-height: 1.04;
  letter-spacing: -0.01em; margin-bottom: 24px; text-wrap: balance;
}
.hero__title-accent { color: #cfd6ff; font-style: italic; }
.hero__subtitle { color: rgba(255,255,255,0.82); font-size: clamp(1.05rem, 2.2vw, 1.25rem); max-width: 620px; margin: 0 auto 36px; }
.hero__subtitle em { color: #fff; font-style: italic; }
.hero__cta { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; margin-bottom: 54px; }
.hero .btn--primary { background: #fff; color: var(--blue); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5); }
.hero .btn--primary:hover { background: #eaeeff; }
.hero .btn--outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.hero .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.1); color: #fff; }
.hero__badges { display: flex; gap: 42px; justify-content: center; flex-wrap: wrap; }
.badge { text-align: center; }
.badge strong { display: block; font-size: 1.6rem; font-weight: 800; color: #fff; }
.badge span { color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* ===== Marquee ===== */
.marquee { border-block: 1px solid var(--line); overflow: hidden; background: var(--surface); }
.marquee__track {
  display: flex; gap: 30px; align-items: center; white-space: nowrap;
  padding: 16px 0; font-family: 'Cormorant Garamond', Georgia, serif;
  font-size: 1.5rem; color: var(--blue); animation: scroll 26s linear infinite;
}
.marquee__track span { opacity: 0.75; }
@keyframes scroll { to { transform: translateX(-50%); } }

/* ===== Sections ===== */
.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--surface-2); }

/* Secciones azul profundo (ritmo alterno claro/azul) */
.section--blue { position: relative; background: linear-gradient(160deg, #0b0570, var(--blue) 60%, #1a12c8); color: #fff; overflow: hidden; }
.section--blue .section__eyebrow { color: #cfd6ff; }
.section--blue .section__title { color: #fff; }
.section--blue .section__lead { color: rgba(255,255,255,0.82); }
.section--blue .steps li { color: rgba(255,255,255,0.85); }
.section--blue .steps span { background: #fff; color: var(--blue); }
.section--blue .pill { background: rgba(255,255,255,0.08); border-color: rgba(255,255,255,0.35); color: #fff; }
.section--blue .pill:hover { background: #fff; color: var(--blue); border-color: #fff; }
.section--blue .btn--primary { background: #fff; color: var(--blue); box-shadow: 0 10px 30px -12px rgba(0,0,0,0.5); }
.section--blue .btn--primary:hover { background: #eaeeff; }
.section--blue .review { background: rgba(255,255,255,0.07); border-color: rgba(255,255,255,0.18); }
.section--blue .review p { color: #fff; }
.section--blue .review cite { color: rgba(255,255,255,0.7); }
.section--blue .stars { color: #cfd6ff; }
.section--blue .frame-mock { border-color: #d7dbe8; box-shadow: 0 30px 60px -25px rgba(0,0,0,0.6), 0 0 0 1px rgba(255,255,255,0.15); }
.section__head { text-align: center; max-width: 640px; margin: 0 auto 56px; }
.section__eyebrow { color: var(--blue); font-size: 0.78rem; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 14px; }
@media (prefers-color-scheme: dark) { .section__eyebrow { color: var(--blue-soft); } }
:root[data-theme="dark"] .section__eyebrow { color: var(--blue-soft); }
.section__title { font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; font-size: clamp(2rem, 4.5vw, 3.2rem); font-weight: 600; line-height: 1.1; text-wrap: balance; }
.section__lead { color: var(--muted); margin-top: 14px; font-size: 1.05rem; }

/* ===== Product grid ===== */
.grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 26px; }
.card {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  overflow: hidden; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
  display: flex; flex-direction: column;
}
.card:hover { transform: translateY(-6px); border-color: var(--blue); box-shadow: 0 24px 44px -26px rgba(16,6,159,0.5); }
.card__media {
  position: relative; aspect-ratio: 4/5; display: grid; place-items: center; padding: 26px;
  background: linear-gradient(160deg, var(--mist-2), #dfe3ee);
}
@media (prefers-color-scheme: dark) { .card__media { background: linear-gradient(160deg, #0f1428, #0a0d1c); } }
:root[data-theme="dark"] .card__media { background: linear-gradient(160deg, #0f1428, #0a0d1c); }
.card__badge {
  position: absolute; top: 14px; left: 14px; z-index: 2;
  background: var(--blue); color: #fff; font-size: 0.7rem; font-weight: 700;
  letter-spacing: 0.04em; text-transform: uppercase; padding: 5px 11px; border-radius: 100px;
}
/* CSS "cuadro" mock inside each card */
.frame {
  width: 100%; height: 100%; border-radius: 12px; padding: 14px;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; box-shadow: inset 0 0 0 8px rgba(0,0,0,0.18), 0 20px 40px -20px rgba(10,13,40,0.55);
}
.frame--dark { background: linear-gradient(160deg, #16118f, #08053f); border: 6px solid #05043a; color: #fff; }
.frame--light { background: linear-gradient(160deg, #ffffff, #e7eaf3); border: 6px solid #fff; color: #0a0d1a; }
.frame__keys { display: flex; gap: 12px; }
.key {
  width: 30px; height: 62px; border-radius: 8px 8px 12px 12px;
  background: linear-gradient(160deg, #eef1f8, #b8bfcf);
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.5), 0 6px 12px -4px rgba(0,0,0,0.5);
}
.key--silver   { background: linear-gradient(160deg, #eef1f8, #b8bfcf); }
.key--blue     { background: linear-gradient(160deg, #3a5bff, #1220c8); }
.key--graphite { background: linear-gradient(160deg, #4a4f5c, #23262e); }
.key--red      { background: linear-gradient(160deg, #ff4b3e, #c81d12); }
.key--gold     { background: linear-gradient(160deg, #f3d891, #b8912f); }
.frame__quote { font-family: 'Inter', sans-serif; font-weight: 800; font-size: 0.85rem; letter-spacing: 0.02em; text-align: center; }
.frame--dark .frame__quote { color: #fff; }
.frame__sign { font-family: 'Dancing Script', 'Snell Roundhand', cursive; font-size: 0.9rem; opacity: 0.75; }
.card__body { padding: 20px 22px 24px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.card__name { font-size: 1.12rem; font-weight: 700; }
.card__desc { color: var(--muted); font-size: 0.9rem; flex: 1; }
.card__foot { display: flex; align-items: center; justify-content: space-between; margin-top: 12px; }
.card__price { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
@media (prefers-color-scheme: dark) { .card__price { color: var(--blue-soft); } }
:root[data-theme="dark"] .card__price { color: var(--blue-soft); }
.card__price small { color: var(--muted); font-size: 0.8rem; font-weight: 500; text-decoration: line-through; margin-left: 6px; }

/* ===== Split ===== */
.split { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: center; }
.split__media { display: grid; place-items: center; }
.frame-mock {
  width: min(360px, 100%); aspect-ratio: 1; border-radius: 14px;
  box-shadow: 0 30px 60px -25px rgba(16,6,159,0.7); padding: 30px;
  display: grid; place-items: center; position: relative; overflow: hidden;
  transition: background 0.3s var(--ease), border-color 0.3s;
}
.frame-mock--dark  { background: linear-gradient(160deg, #16118f, #08053f); border: 8px solid #05043a; }
.frame-mock--black { background: linear-gradient(160deg, #1a1a1e, #050506); border: 8px solid #000; }
.frame-mock--light { background: linear-gradient(160deg, #ffffff, #e7eaf3); border: 8px solid #fff; }
.frame-mock--dark::before, .frame-mock--black::before {
  content: ''; position: absolute; inset: 0;
  background: radial-gradient(50% 40% at 30% 25%, rgba(120,140,255,0.45), transparent 60%);
  filter: blur(20px);
}
.frame-mock__inner { position: relative; text-align: center; display: flex; flex-direction: column; align-items: center; gap: 20px; color: #fff; }
.frame-mock--light .frame-mock__inner { color: #0a0d1a; }
.frame-mock__keys { display: flex; gap: 14px; }
.frame-mock .key { width: 38px; height: 78px; }
.frame-mock__quote { font-weight: 800; font-size: 1.5rem; letter-spacing: 0.02em; word-break: break-word; }
.frame-mock__sign { font-family: 'Dancing Script', 'Snell Roundhand', cursive; color: inherit; opacity: 0.8; }
.frame-mock--dark .frame-mock__sign, .frame-mock--black .frame-mock__sign { color: #cfd6ff; opacity: 1; }
.steps { list-style: none; display: flex; flex-direction: column; gap: 16px; margin: 24px 0 28px; }
.steps li { display: flex; gap: 14px; align-items: flex-start; color: var(--muted); }
.steps span {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-weight: 700; font-size: 0.9rem;
}
.pill-row { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 28px; }
.pill {
  background: var(--surface); border: 1px solid var(--line-strong); color: var(--text);
  padding: 9px 16px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer;
  transition: border-color 0.2s, color 0.2s, background 0.2s;
}
.pill:hover { border-color: var(--blue); color: #fff; background: var(--blue); }

/* ===== Configurador / diseña el tuyo ===== */
.builder { display: grid; grid-template-columns: 0.9fr 1.1fr; gap: 48px; align-items: start; }
.builder__preview { position: sticky; top: 90px; display: flex; flex-direction: column; gap: 18px; align-items: center; }
.builder__price { display: flex; align-items: baseline; gap: 10px; color: #fff; }
.builder__price span { font-size: 0.8rem; opacity: 0.75; text-transform: uppercase; letter-spacing: 0.1em; }
.builder__price strong { font-size: 1.9rem; font-weight: 800; }
.builder__controls { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.15); border-radius: var(--radius); padding: 26px; display: flex; flex-direction: column; gap: 22px; }
.ctrl { display: flex; flex-direction: column; gap: 12px; }
.ctrl > label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; color: #cfd6ff; }
.swatches { display: flex; gap: 10px; flex-wrap: wrap; }
.swatch { display: flex; align-items: center; gap: 9px; padding: 9px 15px 9px 11px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.25); background: rgba(255,255,255,0.05); color: #fff; font-size: 0.85rem; font-weight: 600; cursor: pointer; transition: border-color 0.2s, background 0.2s; }
.swatch::before { content: ''; width: 18px; height: 18px; border-radius: 50%; background: var(--sw); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.35); }
.swatch:hover { border-color: #fff; }
.swatch.is-active { border-color: #fff; background: rgba(255,255,255,0.16); }
.seg { display: inline-flex; background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.2); border-radius: 100px; padding: 4px; gap: 4px; width: max-content; }
.seg button { width: 46px; height: 38px; border: 0; border-radius: 100px; background: transparent; color: #fff; font-weight: 700; font-size: 0.95rem; cursor: pointer; transition: background 0.2s, color 0.2s; }
.seg button.is-active { background: #fff; color: var(--blue); }
.key-slots { display: flex; flex-direction: column; gap: 14px; }
.key-slot { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.key-slot__label { font-size: 0.85rem; color: rgba(255,255,255,0.82); font-weight: 600; }
.key-swatches { display: flex; gap: 8px; }
.key-swatch { width: 26px; height: 26px; border-radius: 50%; border: 2px solid transparent; cursor: pointer; box-shadow: inset 0 1px 2px rgba(255,255,255,0.4); transition: transform 0.15s, border-color 0.2s; padding: 0; }
.key-swatch:hover { transform: scale(1.12); }
.key-swatch.is-active { border-color: #fff; box-shadow: 0 0 0 2px var(--blue), inset 0 1px 2px rgba(255,255,255,0.4); }
.builder__controls input[type="text"] { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm); padding: 12px 14px; color: #fff; font-family: inherit; font-size: 0.95rem; }
.builder__controls input[type="text"]::placeholder { color: rgba(255,255,255,0.5); }
.builder__controls input[type="text"]:focus { outline: none; border-color: #fff; }
.builder__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 4px; }
.builder__actions .btn { flex: 1; min-width: 150px; }
.cart__spec { font-size: 0.75rem; color: var(--muted); margin-top: 3px; }

/* ===== Cards 3 (features / reviews) ===== */
.cards-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.feature, .review {
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 30px;
}
.feature__icon {
  width: 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
  background: var(--blue); color: #fff; font-size: 1.3rem; margin-bottom: 18px;
}
.feature h3 { font-size: 1.15rem; margin-bottom: 8px; }
.feature p { color: var(--muted); font-size: 0.95rem; }
.review { display: flex; flex-direction: column; gap: 12px; }
.stars { color: var(--blue); letter-spacing: 2px; }
@media (prefers-color-scheme: dark) { .stars { color: var(--blue-soft); } }
:root[data-theme="dark"] .stars { color: var(--blue-soft); }
.review p { font-size: 1rem; }
.review cite { color: var(--muted); font-style: normal; font-size: 0.9rem; }

/* ===== Form ===== */
.form { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 18px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label { font-size: 0.85rem; font-weight: 600; color: var(--muted); }
.field input, .field select, .field textarea {
  background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm);
  padding: 12px 14px; color: var(--text); font-family: inherit; font-size: 0.95rem;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px rgba(16,6,159,0.15); }
.field textarea { resize: vertical; }
.form__note { color: var(--blue); font-weight: 600; text-align: center; }
@media (prefers-color-scheme: dark) { .form__note { color: var(--blue-soft); } }
:root[data-theme="dark"] .form__note { color: var(--blue-soft); }
.contact-list { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-top: 24px; color: var(--muted); }

/* ===== Footer ===== */
.footer { padding: 60px 0 40px; background: linear-gradient(160deg, #0b0570, var(--blue)); color: #fff; position: relative; overflow: hidden; }
.footer::after {
  content: ''; position: absolute; inset: 0; pointer-events: none;
  background-image: var(--grain); background-size: 180px; opacity: 0.08; mix-blend-mode: overlay;
}
.footer__inner { position: relative; display: grid; grid-template-columns: 1.5fr 1fr; gap: 30px; align-items: start; z-index: 1; }
.footer__brand { font-size: 1.3rem; font-weight: 800; }
.footer__lockup { display: inline-flex; align-items: center; gap: 9px; }
.footer__wordmark { height: 34px; width: auto; color: #cfd6ff; }
.footer__brand .brand__logo { color: #cfd6ff; }
.footer__brand .brand__accent { color: #cfd6ff; }
.footer__brand p { font-size: 0.9rem; color: rgba(255,255,255,0.72); font-weight: 400; margin-top: 8px; }
.footer__links { display: flex; flex-wrap: wrap; gap: 20px; justify-content: flex-end; }
.footer__links a { color: rgba(255,255,255,0.8); font-size: 0.9rem; transition: color 0.2s; }
.footer__links a:hover { color: #fff; }
.footer__copy { grid-column: 1 / -1; border-top: 1px solid rgba(255,255,255,0.2); padding-top: 24px; margin-top: 12px; color: rgba(255,255,255,0.7); font-size: 0.82rem; }

/* ===== Cart button in nav ===== */
.cart-btn {
  position: relative; background: none; border: 1px solid var(--line-strong); color: var(--text);
  width: 42px; height: 42px; border-radius: 100px; display: grid; place-items: center;
  cursor: pointer; transition: border-color 0.2s, color 0.2s;
}
.cart-btn:hover { border-color: var(--blue); color: var(--blue); }
.cart-btn__count {
  position: absolute; top: -6px; right: -6px; min-width: 20px; height: 20px; padding: 0 5px;
  background: var(--blue); color: #fff; font-size: 0.72rem; font-weight: 800;
  border-radius: 100px; display: grid; place-items: center;
}

/* ===== Product photo (real images) ===== */
.card__photo { width: 100%; height: 100%; object-fit: cover; border-radius: 12px; }
.card__media:has(.card__photo) { padding: 0; }

/* ===== Cart drawer ===== */
.cart-overlay {
  position: fixed; inset: 0; background: rgba(8,10,30,0.55); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity 0.3s var(--ease), visibility 0.3s; z-index: 90;
}
.cart-overlay.is-open { opacity: 1; visibility: visible; }
.cart-drawer {
  position: fixed; top: 0; right: 0; height: 100%; width: min(400px, 90vw); z-index: 100;
  background: var(--surface); border-left: 1px solid var(--line);
  transform: translateX(100%); transition: transform 0.4s var(--ease);
  display: flex; flex-direction: column;
}
.cart-drawer.is-open { transform: translateX(0); }
.cart-drawer__head {
  display: flex; align-items: center; justify-content: space-between;
  padding: 22px 24px; border-bottom: 1px solid var(--line);
}
.cart-drawer__head h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-size: 1.5rem; font-weight: 600; }
.cart-drawer__close { background: none; border: 0; color: var(--muted); font-size: 1.8rem; line-height: 1; cursor: pointer; transition: color 0.2s; }
.cart-drawer__close:hover { color: var(--text); }
.cart-drawer__body { flex: 1; overflow-y: auto; padding: 18px 24px; }
.cart__empty { color: var(--muted); text-align: center; margin-top: 40px; }
.cart__item { display: flex; align-items: center; gap: 14px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.cart__thumb { flex: none; width: 48px; height: 48px; border-radius: 10px; background: var(--blue); display: grid; place-items: center; color: #fff; overflow: hidden; }
.cart__thumb img { width: 100%; height: 100%; object-fit: cover; }
.cart__meta { flex: 1; display: flex; flex-direction: column; }
.cart__meta strong { font-size: 0.95rem; }
.cart__meta span { color: var(--muted); font-size: 0.85rem; }
.cart__qty { display: flex; align-items: center; gap: 10px; }
.cart__qty button { width: 26px; height: 26px; border-radius: 7px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--text); cursor: pointer; font-size: 1rem; line-height: 1; transition: border-color 0.2s, background 0.2s, color 0.2s; }
.cart__qty button:hover { border-color: var(--blue); background: var(--blue); color: #fff; }
.cart-drawer__foot { padding: 20px 24px; border-top: 1px solid var(--line); }
.cart__row { display: flex; justify-content: space-between; color: var(--muted); font-size: 0.92rem; margin-bottom: 8px; }
.cart__row--total { color: var(--text); font-weight: 800; font-size: 1.15rem; margin: 12px 0 16px; }
.cart__note { color: var(--muted); font-size: 0.78rem; text-align: center; margin-top: 12px; }

/* ===== WhatsApp float ===== */
.wa-float {
  position: fixed; bottom: 22px; right: 22px; z-index: 80;
  width: 56px; height: 56px; border-radius: 50%; background: #25D366; color: #fff;
  display: grid; place-items: center; box-shadow: 0 12px 28px -8px rgba(37,211,102,0.6);
  transition: transform 0.2s var(--ease);
}
.wa-float:hover { transform: scale(1.08); }

/* ===== Miniatura del diseño en el carrito ===== */
.mini { width: 100%; height: 100%; border-radius: 8px; display: flex; align-items: center; justify-content: center; gap: 3px; }
.mini--dark  { background: linear-gradient(160deg, #16118f, #08053f); }
.mini--black { background: linear-gradient(160deg, #1a1a1e, #050506); }
.mini--light { background: linear-gradient(160deg, #fff, #e7eaf3); box-shadow: inset 0 0 0 1px #dfe3ee; }
.mkey { width: 6px; height: 22px; border-radius: 2px; box-shadow: inset 0 1px 1px rgba(255,255,255,0.45); }

/* ===== Ficha de producto (modal) ===== */
.modal { position: fixed; inset: 0; z-index: 110; display: none; }
.modal.is-open { display: block; }
.modal__overlay { position: absolute; inset: 0; background: rgba(8,10,30,0.6); backdrop-filter: blur(4px); }
.modal__panel { position: relative; max-width: 900px; margin: 6vh auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 40px 80px -30px rgba(0,0,0,0.6); max-height: 88vh; overflow: auto; }
.modal__close { position: absolute; top: 12px; right: 14px; z-index: 2; width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.5rem; line-height: 1; cursor: pointer; transition: border-color 0.2s, color 0.2s; }
.modal__close:hover { border-color: var(--blue); color: var(--blue); }
.pm { display: grid; grid-template-columns: 1fr 1fr; }
.pm__media { background: linear-gradient(160deg, var(--mist-2), #dfe3ee); display: grid; place-items: center; padding: 40px; border-radius: var(--radius) 0 0 var(--radius); }
.pm__frame { width: 100%; max-width: 280px; aspect-ratio: 4/5; }
.pm__photo { border-radius: 12px; }
.pm__info { padding: 42px 40px 36px; display: flex; flex-direction: column; gap: 12px; }
.pm__badge { position: static; align-self: flex-start; }
.pm__name { font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; font-size: 2rem; font-weight: 600; line-height: 1.1; }
.pm__rating { color: var(--muted); font-size: 0.9rem; }
.pm__price { font-size: 1.5rem; font-weight: 800; color: var(--blue); }
.pm__price small { color: var(--muted); font-size: 0.85rem; font-weight: 500; text-decoration: line-through; margin-left: 8px; }
.pm__desc { color: var(--muted); }
.pm__specs { list-style: none; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid var(--line); padding-top: 16px; margin-top: 4px; }
.pm__specs li { display: flex; gap: 10px; font-size: 0.9rem; }
.pm__specs li span { min-width: 100px; color: var(--muted); font-weight: 600; }
.pm__actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 10px; }
.pm__actions .btn { flex: 1; min-width: 150px; }
@media (prefers-color-scheme: dark) { .pm__media { background: linear-gradient(160deg,#0f1428,#0a0d1c); } .pm__price { color: var(--blue-soft); } }
:root[data-theme="dark"] .pm__media { background: linear-gradient(160deg,#0f1428,#0a0d1c); }
:root[data-theme="dark"] .pm__price { color: var(--blue-soft); }
@media (max-width: 700px) { .pm { grid-template-columns: 1fr; } .pm__media { border-radius: var(--radius) var(--radius) 0 0; padding: 30px; } }

/* ===== Banner de cookies ===== */
.cookie { position: fixed; left: 16px; right: 16px; bottom: 16px; z-index: 85; max-width: 640px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--radius); box-shadow: 0 20px 50px -20px rgba(0,0,0,0.5); padding: 16px 18px; display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.cookie p { font-size: 0.85rem; color: var(--muted); flex: 1; min-width: 220px; }
.cookie a { color: var(--blue); font-weight: 600; }
.cookie__btns { display: flex; gap: 10px; }

/* ===== Página legal ===== */
.legal { padding: clamp(40px, 7vw, 80px) 0 80px; }
.legal__inner { max-width: 760px; }
.legal__title { font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; font-size: clamp(2rem, 5vw, 3rem); font-weight: 600; margin: 10px 0 8px; }
.legal__updated { color: var(--muted); font-size: 0.9rem; margin-bottom: 28px; }
.legal__toc { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 40px; }
.legal__toc a { padding: 8px 14px; border: 1px solid var(--line-strong); border-radius: 100px; font-size: 0.85rem; font-weight: 600; color: var(--muted); transition: border-color 0.2s, color 0.2s; }
.legal__toc a:hover { border-color: var(--blue); color: var(--blue); }
.legal__block { margin-bottom: 40px; scroll-margin-top: 90px; }
.legal__block h2 { font-size: 1.4rem; margin-bottom: 14px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.legal__block p, .legal__block li { color: var(--muted); margin-bottom: 12px; }
.legal__block ul { padding-left: 20px; }
.legal__block a { color: var(--blue); font-weight: 600; }

/* ===== Checkout dentro del carrito ===== */
.co { display: flex; flex-direction: column; gap: 8px; margin-bottom: 14px; }
.co__label { font-size: 0.76rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--muted); }
.co__select { background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 0.9rem; }
.co__select:focus { outline: none; border-color: var(--blue); }
.co__coupon { display: flex; gap: 8px; }
.co__coupon input { flex: 1; min-width: 0; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 0.9rem; text-transform: uppercase; }
.co__coupon input:focus { outline: none; border-color: var(--blue); }
.co__chip { display: flex; align-items: center; justify-content: space-between; gap: 10px; background: rgba(16,6,159,0.08); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 8px 12px; font-size: 0.85rem; font-weight: 700; color: var(--blue); }
.co__chip button { background: none; border: 0; color: var(--muted); font-size: 0.78rem; cursor: pointer; text-decoration: underline; }
.co__msg { font-size: 0.78rem; color: var(--muted); min-height: 0; }
.co__msg.is-error { color: #e2231a; }
.cart__row--disc span:last-child { color: var(--blue); font-weight: 600; }
.cart__iva { font-size: 0.75rem; color: var(--muted); text-align: right; margin: -2px 0 12px; }
.pay { background: var(--surface-2); border: 1px dashed var(--line-strong); border-radius: var(--radius-sm); padding: 12px 14px; margin-bottom: 14px; display: flex; flex-direction: column; gap: 2px; }
.pay strong { font-size: 0.9rem; }
.pay span { font-size: 0.82rem; color: var(--muted); }
.pay__hint { font-size: 0.75rem; }
@media (prefers-color-scheme: dark) { .cart__row--disc span:last-child, .co__chip { color: var(--blue-soft); } }
:root[data-theme="dark"] .cart__row--disc span:last-child { color: var(--blue-soft); }
:root[data-theme="dark"] .co__chip { color: var(--blue-soft); }

/* ===== Reseñas con avatar ===== */
.review__head { display: flex; align-items: center; gap: 12px; }
.review__avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--blue); color: #fff; font-weight: 800; font-size: 0.85rem; }
.review__who { display: flex; flex-direction: column; }
.review__who strong { font-size: 0.95rem; }
.review__verified { font-size: 0.74rem; color: #16a34a; font-weight: 600; }
.section--blue .review__verified { color: #7ef0a8; }
.section--blue .review__avatar { background: #fff; color: var(--blue); }

/* ===== Galería de redes ===== */
.social-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 14px; }
.social-tile { position: relative; aspect-ratio: 1; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); transition: transform 0.25s var(--ease); }
.social-tile:hover { transform: translateY(-4px); }
.social-tile .mini { border-radius: 0; }
.social-tile__ig { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.7rem; color: #fff; background: rgba(16,6,159,0.4); opacity: 0; transition: opacity 0.25s; }
.social-tile:hover .social-tile__ig { opacity: 1; }
.social-cta { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-top: 30px; }

/* ===== Toast ===== */
.toast { position: fixed; left: 50%; bottom: 26px; transform: translate(-50%, 20px); z-index: 120; background: var(--ink); color: #fff; padding: 12px 20px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; box-shadow: 0 16px 40px -12px rgba(0,0,0,0.5); opacity: 0; visibility: hidden; transition: opacity 0.25s var(--ease), transform 0.25s var(--ease); }
.toast.is-show { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
@media (prefers-color-scheme: dark) { .toast { background: #fff; color: #0a0d1a; } }
:root[data-theme="dark"] .toast { background: #fff; color: #0a0d1a; }

/* ===== Favoritos (corazón) ===== */
.fav { position: absolute; top: 12px; right: 12px; z-index: 2; width: 34px; height: 34px; border-radius: 50%; border: 1px solid var(--line-strong); background: rgba(255,255,255,0.9); color: #b8bfcf; font-size: 1.05rem; line-height: 1; cursor: pointer; display: grid; place-items: center; transition: transform 0.15s, color 0.2s, border-color 0.2s; }
.fav:hover { transform: scale(1.12); color: var(--blue); }
.fav.is-fav { color: #e2231a; border-color: #e2231a; background: #fff; }
:root[data-theme="dark"] .fav { background: rgba(20,24,45,0.85); }

/* ===== Filtros + búsqueda ===== */
.filters { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 30px; }
.filters__search { flex: 1; min-width: 200px; max-width: 320px; background: var(--surface); border: 1px solid var(--line-strong); border-radius: 100px; padding: 11px 18px; color: var(--text); font-family: inherit; font-size: 0.9rem; }
.filters__search:focus { outline: none; border-color: var(--blue); }
.filters__chips { display: flex; gap: 8px; flex-wrap: wrap; }
.chip { background: var(--surface); border: 1px solid var(--line-strong); color: var(--muted); padding: 9px 15px; border-radius: 100px; font-size: 0.82rem; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.chip:hover { border-color: var(--blue); color: var(--blue); }
.chip.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.grid__empty { text-align: center; color: var(--muted); margin-top: 30px; }
.linklike { background: none; border: 0; color: var(--blue); font-weight: 600; cursor: pointer; text-decoration: underline; font-size: inherit; }

/* ===== Promo / cuenta regresiva ===== */
.promo { background: var(--ink); color: #fff; }
:root[data-theme="dark"] .promo { background: #10142a; }
.promo__inner { display: flex; align-items: center; justify-content: center; gap: 14px; flex-wrap: wrap; padding: 12px 24px; font-size: 0.85rem; }
.promo__tag { background: var(--blue); color: #fff; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; font-size: 0.68rem; padding: 4px 10px; border-radius: 100px; }
.promo__text strong { color: #cfd6ff; }
.promo__timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 1rem; background: rgba(255,255,255,0.14); padding: 4px 12px; border-radius: 8px; letter-spacing: 0.05em; }

/* ===== Quiz ===== */
.quiz { max-width: 760px; margin: 0 auto; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: flex; flex-direction: column; gap: 26px; }
.quiz__label { font-weight: 700; margin-bottom: 12px; }
.quiz__opts { display: flex; flex-wrap: wrap; gap: 10px; }
.quiz__opt { background: var(--surface-2); border: 1px solid var(--line-strong); color: var(--text); padding: 11px 18px; border-radius: 100px; font-size: 0.9rem; font-weight: 600; cursor: pointer; transition: background 0.2s, border-color 0.2s, color 0.2s; }
.quiz__opt:hover { border-color: var(--blue); }
.quiz__opt.is-active { background: var(--blue); border-color: var(--blue); color: #fff; }
.quiz__result { border-top: 1px solid var(--line); padding-top: 24px; }
.quiz__rlabel { text-align: center; color: var(--muted); text-transform: uppercase; letter-spacing: 0.15em; font-size: 0.78rem; margin-bottom: 16px; }
.quiz__card { display: grid; grid-template-columns: 160px 1fr; gap: 22px; align-items: center; }
.quiz__cardmedia { aspect-ratio: 4/5; }
.quiz__cardbody { display: flex; flex-direction: column; gap: 8px; }
.quiz__cardbody h3 { font-size: 1.3rem; }
.quiz__cardbody p { color: var(--muted); font-size: 0.9rem; }
.quiz__price { font-size: 1.3rem; font-weight: 800; color: var(--blue); }
.quiz__gift { font-size: 0.85rem; color: var(--muted); }
.quiz__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 8px; }
:root[data-theme="dark"] .quiz__price { color: var(--blue-soft); }
@media (max-width: 560px) { .quiz__card { grid-template-columns: 1fr; } .quiz__cardmedia { max-width: 180px; margin: 0 auto; } }

/* ===== FAQ ===== */
.faq { max-width: 760px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; }
.faq__item { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 2px 20px; }
.faq__item summary { cursor: pointer; padding: 16px 0; font-weight: 600; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: '+'; color: var(--blue); font-size: 1.3rem; font-weight: 700; }
.faq__item[open] summary::after { content: '−'; }
.faq__item p { color: var(--muted); padding: 0 0 18px; }
.faq__item a { color: var(--blue); font-weight: 600; }

/* ===== Modo regalo (carrito) ===== */
.gift-toggle { display: flex; align-items: center; gap: 8px; font-size: 0.88rem; font-weight: 600; cursor: pointer; margin-bottom: 12px; }
.gift-toggle input { width: 16px; height: 16px; accent-color: var(--blue); }
.gift-msg { width: 100%; background: var(--bg); border: 1px solid var(--line-strong); border-radius: var(--radius-sm); padding: 10px 12px; color: var(--text); font-family: inherit; font-size: 0.9rem; margin-bottom: 12px; resize: vertical; }
.gift-msg:focus { outline: none; border-color: var(--blue); }

/* ===== Efecto 3D (tilt) + destello ===== */
.tilt { transition: transform 0.25s var(--ease); }
.tilt.is-tilting { transition: transform 0.06s linear; }
.tilt::after { content: ''; position: absolute; inset: 0; border-radius: inherit; background: radial-gradient(circle at var(--gx, 50%) var(--gy, 50%), rgba(255,255,255,0.4), transparent 45%); opacity: 0; transition: opacity 0.2s; pointer-events: none; z-index: 4; }
.tilt.is-tilting::after { opacity: 1; }
.frame-mock.flash { animation: keyflash 0.55s ease; }
@keyframes keyflash {
  0% { box-shadow: 0 30px 60px -25px rgba(16,6,159,0.7); }
  25% { box-shadow: 0 0 46px 10px rgba(150,180,255,0.95); }
  100% { box-shadow: 0 30px 60px -25px rgba(16,6,159,0.7); }
}
@media (prefers-reduced-motion: reduce) { .frame-mock.flash { animation: none; } }

/* ===== Fila de frase + botón outline en secciones azules ===== */
.frase-row { display: flex; gap: 8px; }
.frase-row input { flex: 1; min-width: 0; }
.frase-row .btn { flex: none; white-space: nowrap; }
.section--blue .btn--outline { border-color: rgba(255,255,255,0.5); color: #fff; }
.section--blue .btn--outline:hover { border-color: #fff; background: rgba(255,255,255,0.12); color: #fff; }

/* ===== Barra de envío gratis ===== */
.ship-bar { margin-bottom: 14px; display: flex; flex-direction: column; gap: 6px; }
.ship-bar span { font-size: 0.8rem; color: var(--muted); }
.ship-bar strong { color: var(--blue); }
:root[data-theme="dark"] .ship-bar strong { color: var(--blue-soft); }
.ship-bar__track { height: 6px; background: var(--surface-2); border-radius: 100px; overflow: hidden; }
.ship-bar__fill { height: 100%; background: linear-gradient(90deg, var(--blue), var(--blue-electric)); border-radius: 100px; transition: width 0.4s var(--ease); }
.ship-bar--done strong, .ship-bar--done span { color: #16a34a; }

/* ===== Ruleta "gira y gana" ===== */
.spin-fab { position: fixed; left: 22px; bottom: 22px; z-index: 80; display: inline-flex; align-items: center; gap: 8px; background: var(--blue); color: #fff; border: 0; border-radius: 100px; padding: 12px 18px; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: 0 12px 28px -8px rgba(16,6,159,0.6); animation: fabpulse 2.4s ease-in-out infinite; }
.spin-fab:hover { background: var(--blue-electric); }
@keyframes fabpulse { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-4px); } }
@media (prefers-reduced-motion: reduce) { .spin-fab { animation: none; } }
.modal__panel--wheel { max-width: 420px; }
.wheel-wrap { padding: 40px 30px 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.wheel-title { font-family: 'Cormorant Garamond', 'Iowan Old Style', Georgia, serif; font-size: 1.8rem; font-weight: 600; }
.wheel-stage { position: relative; width: 260px; height: 260px; }
.wheel, .wheel svg { width: 100%; height: 100%; display: block; }
.wheel svg { filter: drop-shadow(0 10px 30px rgba(16,6,159,0.4)); }
.wheel-pointer { position: absolute; top: -4px; left: 50%; transform: translateX(-50%); width: 0; height: 0; border-left: 12px solid transparent; border-right: 12px solid transparent; border-top: 22px solid var(--blue); z-index: 2; filter: drop-shadow(0 2px 3px rgba(0,0,0,0.35)); }
.wheel-result { min-height: 42px; font-size: 1rem; color: var(--text); line-height: 1.4; }
@media (max-width: 560px) {
  .spin-fab span { display: none; }
  .spin-fab { padding: 14px; font-size: 1.3rem; }
}

/* ===== Reveal animation ===== */
[data-reveal] { opacity: 0; transform: translateY(24px); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); }
[data-reveal].is-visible { opacity: 1; transform: none; }
@media (prefers-reduced-motion: reduce) {
  [data-reveal] { transition: none; opacity: 1; transform: none; }
  .hero__glow, .marquee__track { animation: none; }
}

/* ===== Responsive ===== */
@media (max-width: 900px) {
  .grid, .cards-3 { grid-template-columns: repeat(2, 1fr); }
  .split { grid-template-columns: 1fr; gap: 40px; }
  .builder { grid-template-columns: minmax(0, 1fr); gap: 32px; }
  .builder__preview, .builder__controls { position: static; min-width: 0; }
  .frame-mock { width: min(300px, 100%); }
  .social-grid { grid-template-columns: repeat(3, 1fr); }
  .footer__inner { grid-template-columns: 1fr; }
  .footer__links { justify-content: flex-start; }
}
@media (max-width: 720px) {
  .nav__links {
    position: fixed; inset: 68px 0 auto 0; flex-direction: column; gap: 0;
    background: var(--surface); border-bottom: 1px solid var(--line);
    padding: 12px 24px; transform: translateY(-140%); z-index: 40;
    opacity: 0; visibility: hidden; pointer-events: none;
    transition: transform 0.35s var(--ease), opacity 0.3s, visibility 0.35s;
  }
  .nav__links.is-open { transform: translateY(0); opacity: 1; visibility: visible; pointer-events: auto; }
  .nav__links a { padding: 14px 0; border-bottom: 1px solid var(--line); }
  .nav__toggle { display: flex; }
  .nav__actions .btn--ghost { display: none; }
}
@media (max-width: 560px) {
  .grid, .cards-3 { grid-template-columns: 1fr; }
  .social-grid { grid-template-columns: repeat(2, 1fr); }
  .hero__badges { gap: 26px; }
}

/* =====================================================================
   MEJORAS CREATIVAS
   ===================================================================== */

/* ---- 1) Vista previa realista: terciopelo + vidrio + llaves premium ---- */

/* Textura de terciopelo en el interior de los marcos */
.frame--dark, .frame-mock--dark {
  background:
    radial-gradient(120% 75% at 50% -10%, rgba(140,160,255,0.22), transparent 55%),
    repeating-linear-gradient(48deg, rgba(255,255,255,0.020) 0 2px, rgba(0,0,0,0.03) 2px 5px),
    linear-gradient(160deg, #16118f, #08053f) !important;
}
.frame-mock--black {
  background:
    radial-gradient(120% 75% at 50% -10%, rgba(120,140,255,0.16), transparent 55%),
    repeating-linear-gradient(48deg, rgba(255,255,255,0.018) 0 2px, rgba(0,0,0,0.04) 2px 5px),
    linear-gradient(160deg, #1a1a1e, #050506) !important;
}
.frame--light, .frame-mock--light {
  background:
    radial-gradient(120% 75% at 50% -10%, rgba(255,255,255,0.9), transparent 60%),
    repeating-linear-gradient(48deg, rgba(0,0,0,0.012) 0 2px, transparent 2px 5px),
    linear-gradient(160deg, #ffffff, #e7eaf3) !important;
}

/* Profundidad tipo shadow-box (paspartú hundido) */
.frame { box-shadow: inset 0 0 0 8px rgba(0,0,0,0.20), inset 0 14px 30px rgba(0,0,0,0.35), 0 20px 40px -20px rgba(10,13,40,0.55); }
.frame-mock { box-shadow: inset 0 18px 40px rgba(0,0,0,0.35), 0 30px 60px -25px rgba(16,6,159,0.7); }
.frame-mock--light { box-shadow: inset 0 14px 30px rgba(0,0,0,0.10), 0 30px 60px -25px rgba(16,6,159,0.4); }

/* Reflejo de vidrio (elemento inyectado en el markup) */
.frame__glass, .frame-mock__glass {
  position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: 6;
  background: linear-gradient(118deg,
    rgba(255,255,255,0.28) 0%, rgba(255,255,255,0.06) 16%,
    transparent 34%, transparent 63%,
    rgba(255,255,255,0.05) 84%, rgba(255,255,255,0.18) 100%);
  mix-blend-mode: screen; opacity: 0.7;
}
.frame-mock__glass { border-radius: 6px; }

/* Llaves premium tipo llavero de coche (botón + anillo del logo) */
.key { position: relative; border-radius: 10px 10px 12px 12px; box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), inset 0 -7px 12px rgba(0,0,0,0.22), 0 8px 14px -4px rgba(0,0,0,0.55); }
.key::before { content: ''; position: absolute; top: 16%; left: 50%; transform: translateX(-50%); width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, rgba(255,255,255,0.85), rgba(0,0,0,0.28)); box-shadow: inset 0 0 0 1px rgba(0,0,0,0.18); }
.key::after { content: ''; position: absolute; bottom: 14%; left: 50%; transform: translateX(-50%); width: 46%; aspect-ratio: 1; border-radius: 50%; border: 1.5px solid rgba(0,0,0,0.20); }
.key--graphite::before, .key--blue::before, .key--red::before { background: radial-gradient(circle at 38% 32%, rgba(255,255,255,0.55), rgba(0,0,0,0.35)); }
.key--graphite::after, .key--blue::after, .key--red::after { border-color: rgba(255,255,255,0.22); }

/* ---- 4) Arrastrar llaves al cuadro ---- */
.drag-hint { font-size: 0.8rem; color: rgba(255,255,255,0.7); margin-bottom: 4px; }
.drag-hint strong { color: #fff; }
.key-palette { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px; background: rgba(255,255,255,0.05); border: 1px dashed rgba(255,255,255,0.25); border-radius: var(--radius-sm); }
.palette-key {
  width: 30px; height: 58px; border-radius: 9px 9px 11px 11px; border: 0; padding: 0;
  cursor: grab; position: relative; touch-action: none;
  box-shadow: inset 0 1px 2px rgba(255,255,255,0.6), inset 0 -6px 10px rgba(0,0,0,0.22), 0 6px 12px -4px rgba(0,0,0,0.5);
  transition: transform 0.15s var(--ease);
}
.palette-key:hover { transform: translateY(-3px) scale(1.05); }
.palette-key:active { cursor: grabbing; }
.palette-key::before { content: ''; position: absolute; top: 16%; left: 50%; transform: translateX(-50%); width: 40%; aspect-ratio: 1; border-radius: 50%; background: radial-gradient(circle at 38% 32%, rgba(255,255,255,0.85), rgba(0,0,0,0.28)); }

/* Fantasma que sigue al dedo/cursor */
.drag-ghost { position: fixed; left: 0; top: 0; z-index: 1000; width: 40px; height: 80px; pointer-events: none; opacity: 0.92; filter: drop-shadow(0 12px 20px rgba(0,0,0,0.5)); }
body.is-dragging-key { cursor: grabbing; user-select: none; }

/* Resaltado de la llave del cuadro cuando puedes soltar encima */
#previewKeys .key.is-drop { outline: 3px dashed #cfd6ff; outline-offset: 4px; transform: scale(1.08); transition: transform 0.12s; }
#previewKeys .key { transition: transform 0.12s var(--ease); }

/* ---- 2) Botones secundarios del configurador ---- */
.builder__actions--secondary { margin-top: 10px; }
.builder__actions--secondary .btn { flex: 1; min-width: 140px; }

/* ---- 3) Modal "Pruébalo en tu pared" ---- */
.modal__panel--wall { max-width: 560px; }
.wall-wrap { padding: 34px 28px 28px; display: flex; flex-direction: column; align-items: center; gap: 14px; text-align: center; }
.wall-hint { color: var(--muted); font-size: 0.9rem; max-width: 400px; }
.wall-upload { cursor: pointer; }
.wall-stage { position: relative; width: 100%; aspect-ratio: 4/3; border-radius: var(--radius-sm); overflow: hidden; background: #000; touch-action: none; }
.wall-stage__bg { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.wall-stage__art { position: absolute; transform: translate(-50%, -50%); cursor: grab; border-radius: 4px; box-shadow: 0 18px 40px -12px rgba(0,0,0,0.7); touch-action: none; }
.wall-stage__art:active { cursor: grabbing; }
.wall-controls { display: flex; flex-wrap: wrap; align-items: center; justify-content: center; gap: 10px; width: 100%; }
.wall-controls label { font-size: 0.8rem; font-weight: 700; color: var(--muted); text-transform: uppercase; letter-spacing: 0.05em; }
.wall-controls input[type="range"] { accent-color: var(--blue); flex: 1; min-width: 140px; max-width: 220px; }
/* Respetar el atributo hidden en los controles de la pared */
.wall-controls[hidden], .wall-stage[hidden] { display: none !important; }

/* =====================================================================
   HERO · Vitrina de cuadros animados (entran + flotan)
   ===================================================================== */
.hero__showcase {
  display: flex; justify-content: center; align-items: flex-end;
  gap: clamp(14px, 3vw, 40px); margin: -26px 0 42px; perspective: 1200px;
}
.hero__card {
  position: relative; width: clamp(120px, 17vw, 196px); aspect-ratio: 4/5;
  opacity: 0; transform-style: preserve-3d;
  animation: heroCardIn 1s var(--ease) forwards;
}
.hero__card .frame { animation: heroFloat 6s ease-in-out infinite; }
.hero__card--b { width: clamp(140px, 20vw, 230px); z-index: 2; }
.hero__card--a { animation-delay: 0.15s; }
.hero__card--b { animation-delay: 0s; }
.hero__card--c { animation-delay: 0.3s; }
.hero__card--a .frame { animation-delay: 0.2s; }
.hero__card--c .frame { animation-delay: 0.6s; }

/* Cada cuadro entra con giro y se asienta */
@keyframes heroCardIn {
  0%   { opacity: 0; transform: translateY(60px) rotateX(18deg) scale(0.82); }
  100% { opacity: 1; transform: translateY(0) rotateX(0) scale(1); }
}

/* Flotación suave e infinita (en el .frame interior para no chocar con la entrada) */
@keyframes heroFloat {
  0%, 100% { transform: translateY(0) rotate(0deg); }
  50%      { transform: translateY(-12px) rotate(0.5deg); }
}
.hero__card--a .frame { animation-name: heroFloatL; }
.hero__card--c .frame { animation-name: heroFloatR; }
@keyframes heroFloatL {
  0%,100% { transform: translateY(0) rotate(-5deg); }
  50%     { transform: translateY(-10px) rotate(-6deg); }
}
@keyframes heroFloatR {
  0%,100% { transform: translateY(0) rotate(5deg); }
  50%     { transform: translateY(-14px) rotate(6deg); }
}

.hero__card .frame { box-shadow: inset 0 0 0 8px rgba(0,0,0,0.22), inset 0 14px 30px rgba(0,0,0,0.4), 0 30px 50px -20px rgba(0,0,0,0.6); }
.hero__card .frame__quote { font-size: clamp(0.7rem, 1.4vw, 0.95rem); }

@media (max-width: 560px) {
  .hero__showcase { gap: 8px; margin: -14px 0 32px; }
  .hero__card--a, .hero__card--c { width: clamp(96px, 30vw, 130px); }
  .hero__card--b { width: clamp(120px, 38vw, 160px); }
}
@media (prefers-reduced-motion: reduce) {
  .hero__card { opacity: 1; animation: none; }
  .hero__card .frame { animation: none; transform: rotate(0); }
}

/* =====================================================================
   SECCIÓN LLAVES REALES (marcas)
   ===================================================================== */
.keys-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 22px; }
.key-brand {
  display: flex; flex-direction: column; align-items: center; gap: 16px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 20px 18px 22px; transition: transform 0.35s var(--ease), border-color 0.3s, box-shadow 0.3s;
}
.key-brand:hover { transform: translateY(-8px); border-color: var(--blue); box-shadow: 0 30px 50px -28px rgba(16,6,159,0.55); }

/* Escenario tipo "render de lujo": estudio oscuro + foco cenital + glow azul */
.key-brand__media {
  position: relative; width: 100%; aspect-ratio: 3/4; border-radius: var(--radius-sm); overflow: hidden;
  display: grid; place-items: center; padding: 22px 18px;
  background:
    radial-gradient(130% 80% at 50% -8%, #222a52 0%, #10142e 45%, #070914 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.08), inset 0 -30px 50px -30px rgba(0,0,0,0.8);
}
/* foco de luz cenital */
.key-brand__media::before {
  content: ''; position: absolute; top: -22%; left: 50%; transform: translateX(-50%);
  width: 78%; height: 62%; border-radius: 50%;
  background: radial-gradient(circle, rgba(150,170,255,0.35), rgba(150,170,255,0) 70%);
  filter: blur(6px); pointer-events: none;
}
/* piso: sombra + reflejo azulado bajo la llave */
.key-brand__media::after {
  content: ''; position: absolute; left: 18%; right: 18%; bottom: 8%; height: 10%;
  border-radius: 50%;
  background: radial-gradient(50% 100% at 50% 50%, rgba(0,0,0,0.55), transparent 72%);
  filter: blur(4px); pointer-events: none;
}
.key-brand__media img {
  position: relative; z-index: 1;
  max-width: 62%; max-height: 76%; width: auto; height: auto; object-fit: contain;
  filter: drop-shadow(0 20px 24px rgba(0,0,0,0.55)) drop-shadow(0 0 22px rgba(90,120,255,0.2));
  transition: transform 0.5s var(--ease);
}
.key-brand:hover img { transform: translateY(-5px) scale(1.04); }

.key-brand__name {
  font-weight: 600; font-size: 1.2rem; letter-spacing: 0.01em;
  font-family: 'Cormorant Garamond', Georgia, serif;
}
@media (prefers-reduced-motion: reduce) { .key-brand:hover img, .key-brand:hover img.rot90 { transform: none; } .key-brand__media img.rot90 { transform: rotate(-90deg); } }
@media (max-width: 780px) { .keys-grid { grid-template-columns: repeat(2, 1fr); gap: 16px; } }
@media (max-width: 380px) { .keys-grid { grid-template-columns: 1fr; } }

/* =====================================================================
   PIEZAS DE EDICIÓN · marco premium tipo shadow-box (llave real)
   ===================================================================== */
.artgrid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 30px; }
/* Marco: borde oscuro tipo shadow-box */
.artframe {
  display: block; border-radius: 18px; padding: 15px;
  background: linear-gradient(155deg, #0e1330 0%, #080b1c 60%, #05060f 100%);
  box-shadow: 0 44px 80px -34px rgba(0,0,0,0.75), inset 0 1px 0 rgba(255,255,255,0.08);
  transition: transform 0.4s var(--ease), box-shadow 0.4s;
}
.artframe:hover { transform: translateY(-8px); box-shadow: 0 60px 90px -38px rgba(0,0,0,0.8); }
/* Mat BLANCO carbono con bisel plateado (como el mockup) */
.artframe__mat {
  position: relative; aspect-ratio: 3/4; border-radius: 6px; overflow: hidden;
  display: flex; flex-direction: column; align-items: center; justify-content: center;
  padding: 10% 9%;
  background-color: #f5f6fa;
  background-image: repeating-linear-gradient(35deg, rgba(20,24,60,0.035) 0 2px, rgba(255,255,255,0) 2px 7px);
  box-shadow:
    inset 0 0 0 3px rgba(216,222,236,0.95),
    inset 0 0 0 6px rgba(150,160,185,0.55),
    inset 0 14px 34px rgba(120,130,165,0.22);
}
/* Llave real: pequeña y centrada en el mat, con sombra suave */
.artframe__key {
  height: 22%; width: auto; max-width: 42%; object-fit: contain;
  margin-top: -7%; /* sube un poco para dejar sitio a la frase */
  filter: drop-shadow(0 11px 13px rgba(20,25,50,0.26));
  transition: transform 0.5s var(--ease);
}
.artframe:hover .artframe__key { transform: translateY(-4px) scale(1.04); }
/* Frase + firma fijas en la parte baja del mat */
.artframe__caption { position: absolute; left: 0; right: 0; bottom: 8%; text-align: center; }
.artframe__quote {
  color: #0a0d1a; font-weight: 800; letter-spacing: 0.04em;
  font-size: clamp(0.95rem, 1.5vw, 1.3rem);
}
.artframe__sign {
  font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic; font-weight: 600;
  color: #5b6274; font-size: 1.2rem; margin-top: 6px; letter-spacing: 0.02em;
}
@media (max-width: 820px) { .artgrid { grid-template-columns: repeat(3, 1fr); gap: 14px; } }
@media (max-width: 560px) { .artgrid { grid-template-columns: 1fr; gap: 22px; max-width: 330px; margin: 0 auto; } }

/* =====================================================================
   Llaves REALES dentro de las tarjetas del catálogo (frameVisual)
   ===================================================================== */
.frame__keys--real { display: flex; gap: 12px; align-items: center; justify-content: center; }
.frame__key {
  width: auto; height: 150px; object-fit: contain;
  filter: drop-shadow(0 10px 12px rgba(0,0,0,0.42));
}
.frame__keys--n2 .frame__key { height: 124px; }
.frame__keys--n3 .frame__key { height: 100px; }
/* Sobre mat azul (Ferrari) la firma en claro */
.frame--dark .frame__sign { color: #cfd6ff; }
@media (max-width: 560px) {
  .frame__key { height: 128px; }
  .frame__keys--n3 .frame__key { height: 88px; }
}

/* Llaves reales dentro de los cuadros del HERO (más pequeñas) */
.hero__card .frame__keys--real { gap: 7px; }
.hero__card .frame__key { height: 58px; filter: drop-shadow(0 6px 8px rgba(0,0,0,0.4)); }
.hero__card--b .frame__key { height: 66px; }
.hero__card--b .frame__keys--n3 .frame__key { height: 50px; }
@media (max-width: 560px) {
  .hero__card .frame__key { height: 44px; }
  .hero__card--b .frame__keys--n3 .frame__key { height: 38px; }
}

/* =====================================================================
   CONFIGURADOR con llaves reales (marcas)
   ===================================================================== */
/* Opciones de marca (reemplazan a los swatches de color) */
.brand-opts { display: flex; gap: 10px; flex-wrap: wrap; }
.brand-opt {
  display: flex; flex-direction: column; align-items: center; gap: 4px;
  width: 78px; padding: 8px 6px; cursor: pointer;
  background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.22);
  border-radius: 12px; color: #fff; transition: border-color 0.2s, background 0.2s, transform 0.15s;
}
.brand-opt:hover { transform: translateY(-2px); border-color: #fff; }
.brand-opt.is-active { border-color: #fff; background: rgba(255,255,255,0.16); box-shadow: 0 0 0 2px rgba(255,255,255,0.25); }
.brand-opt img { height: 46px; width: auto; object-fit: contain; filter: drop-shadow(0 4px 6px rgba(0,0,0,0.5)); }
.brand-opt span { font-size: 0.72rem; font-weight: 700; letter-spacing: 0.01em; }

/* Llaves reales dentro del preview en vivo */
.frame-mock__keys { display: flex; gap: 12px; align-items: center; justify-content: center; }
.mock-key { width: auto; height: 130px; object-fit: contain; filter: drop-shadow(0 12px 14px rgba(0,0,0,0.45)); }
.frame-mock__keys--n2 .mock-key { height: 112px; }
.frame-mock__keys--n3 .mock-key { height: 92px; }
.frame-mock--light .frame-mock__quote { color: #0a0d1a; }
.frame-mock--light .frame-mock__sign { color: #5b6274; }

/* Miniatura del carrito con llave real */
.mkey-img { height: 100%; width: auto; max-width: 33%; object-fit: contain; }
.mini:has(.mkey-img) { gap: 2px; padding: 3px; }

@media (max-width: 560px) {
  .mock-key { height: 104px; }
  .frame-mock__keys--n3 .mock-key { height: 78px; }
}

/* ===== Campo de estrellas interactivo (zonas azules) ===== */
.starfield { position: absolute; inset: 0; width: 100%; height: 100%; z-index: 0; pointer-events: none; }
.hero__inner { position: relative; z-index: 1; }
.section--blue > .container { position: relative; z-index: 1; }

/* Fix: permitir ocultar el banner de cookies (el display:flex tapaba a [hidden]) */
.cookie[hidden] { display: none !important; }

/* ===== Grabado / dedicatoria en el configurador ===== */
.ctrl__opt { font-weight: 500; opacity: 0.7; text-transform: none; letter-spacing: 0; }
.ctrl__hint { font-size: 0.72rem; color: rgba(255,255,255,0.6); margin-top: 6px; }
#customDedication { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); border-radius: var(--radius-sm); padding: 12px 14px; color: #fff; font-family: inherit; font-size: 0.95rem; width: 100%; }
#customDedication::placeholder { color: rgba(255,255,255,0.5); }
#customDedication:focus { outline: none; border-color: #fff; }
/* Placa grabada en la vista previa */
.frame-mock__plaque {
  margin-top: 4px; font-family: 'Cormorant Garamond', Georgia, serif; font-style: italic;
  font-size: 0.9rem; letter-spacing: 0.02em; opacity: 0.9; text-align: center;
  padding: 3px 12px; border-radius: 100px; background: rgba(0,0,0,0.06);
  box-shadow: inset 0 0 0 1px rgba(0,0,0,0.08);
}
.frame-mock--dark .frame-mock__plaque, .frame-mock--black .frame-mock__plaque { color: #cfd6ff; background: rgba(255,255,255,0.1); box-shadow: inset 0 0 0 1px rgba(255,255,255,0.15); }
.frame-mock--light .frame-mock__plaque { color: #5b6274; }

/* ===== Urgencia / prueba social en tarjetas ===== */
.card__live {
  position: absolute; left: 12px; bottom: 12px; z-index: 3;
  background: rgba(8,10,30,0.62); backdrop-filter: blur(6px); color: #fff;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.01em;
  padding: 5px 10px; border-radius: 100px; border: 1px solid rgba(255,255,255,0.15);
}
.card__stock { color: #e2231a; font-size: 0.8rem; font-weight: 700; margin-top: 2px; }
:root[data-theme="dark"] .card__stock { color: #ff6b60; }

/* ===== Club CONR° (newsletter footer) ===== */
.footer__news { max-width: 320px; }
.footer__news > strong { display: block; font-size: 1.05rem; margin-bottom: 6px; }
.footer__news p { font-size: 0.85rem; color: rgba(255,255,255,0.78); margin-bottom: 12px; }
.footer__news p strong { color: #fff; }
.news-form { display: flex; gap: 8px; flex-wrap: wrap; }
.news-form input { flex: 1; min-width: 160px; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.28); border-radius: 100px; padding: 11px 16px; color: #fff; font-family: inherit; font-size: 0.9rem; }
.news-form input::placeholder { color: rgba(255,255,255,0.6); }
.news-form input:focus { outline: none; border-color: #fff; }
.news-form .btn--primary { background: #fff; color: var(--blue); }
.news-form .btn--primary:hover { background: #eaeeff; }
.news-done { font-size: 0.9rem; color: #fff; background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2); border-radius: var(--radius-sm); padding: 12px 14px; }
.news-done strong { letter-spacing: 0.04em; }

/* =====================================================================
   ANIMACIONES PREMIUM
   ===================================================================== */
/* 1) Nav que se compacta y eleva al hacer scroll */
.nav { transition: background 0.3s var(--ease), box-shadow 0.3s var(--ease); }
.nav__inner { transition: height 0.3s var(--ease); }
.nav.is-scrolled { background: color-mix(in srgb, var(--bg) 92%, transparent); box-shadow: 0 12px 34px -20px rgba(0,0,0,0.55); }
.nav.is-scrolled .nav__inner { height: 56px; }
.nav.is-scrolled .brand__wordmark { height: 26px; }

/* 2) Entrada escalonada de las tarjetas del catálogo */
@keyframes cardIn { from { opacity: 0; transform: translateY(26px) scale(0.98); } to { opacity: 1; transform: none; } }
.grid .card { animation: cardIn 0.55s var(--ease) both; }
.grid .card:nth-child(1){animation-delay:.02s}.grid .card:nth-child(2){animation-delay:.08s}
.grid .card:nth-child(3){animation-delay:.14s}.grid .card:nth-child(4){animation-delay:.20s}
.grid .card:nth-child(5){animation-delay:.26s}.grid .card:nth-child(6){animation-delay:.32s}
.grid .card:nth-child(n+7){animation-delay:.36s}

/* 3) Brillo que recorre botones primarios y cuadros al pasar el cursor */
.btn--primary { position: relative; overflow: hidden; }
.btn--primary::after {
  content: ''; position: absolute; top: 0; left: -120%; width: 60%; height: 100%;
  background: linear-gradient(100deg, transparent, rgba(255,255,255,0.45), transparent);
  transform: skewX(-18deg); transition: left 0.6s var(--ease); pointer-events: none;
}
.btn--primary:hover::after { left: 140%; }
.artframe, .card__media { position: relative; }
.artframe::after {
  content: ''; position: absolute; inset: 0; border-radius: inherit; z-index: 3; pointer-events: none;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,0.35) 50%, transparent 60%);
  background-size: 220% 100%; background-position: 180% 0; transition: background-position 0.7s var(--ease);
}
.artframe:hover::after { background-position: -60% 0; }

/* 4) Reveal on scroll más fino (con leve escala) + stagger por variable */
[data-reveal] { opacity: 0; transform: translateY(26px) scale(0.985); transition: opacity 0.7s var(--ease), transform 0.7s var(--ease); transition-delay: var(--reveal-d, 0s); }
[data-reveal].is-visible { opacity: 1; transform: none; }

/* 5) Micro-hover en piezas y marcas */
.key-brand__media { transition: transform 0.4s var(--ease); }

@media (prefers-reduced-motion: reduce) {
  .grid .card { animation: none; }
  .btn--primary::after, .artframe::after { display: none; }
}

/* ===== Spotlight que sigue el cursor + parallax en el hero ===== */
.hero__spotlight {
  position: absolute; inset: 0; z-index: 0; pointer-events: none; opacity: 0;
  transition: opacity 0.4s var(--ease);
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 30%), rgba(150,170,255,0.20), transparent 60%);
}
.hero:hover .hero__spotlight { opacity: 1; }
.hero__showcase { transition: transform 0.25s var(--ease), margin 0s; will-change: transform; }
.hero__title, .hero__subtitle { transition: transform 0.25s var(--ease); will-change: transform; }
@media (prefers-reduced-motion: reduce) { .hero__spotlight { display: none; } }
@media (hover: none) { .hero__spotlight { display: none; } }

/* ===== Quiz de personalidad "¿Qué llave eres?" ===== */
.pq { max-width: 640px; margin: 0 auto; }
.pq__q { background: rgba(255,255,255,0.06); border: 1px solid rgba(255,255,255,0.16); border-radius: var(--radius); padding: 26px; }
.pq__label { font-weight: 700; font-size: 1.1rem; margin-bottom: 16px; color: #fff; text-align: center; }
.pq__opts { display: flex; flex-direction: column; gap: 10px; }
.pq__opt { background: rgba(255,255,255,0.08); border: 1px solid rgba(255,255,255,0.25); color: #fff; padding: 14px 18px; border-radius: 100px; font-size: 0.95rem; font-weight: 600; cursor: pointer; transition: transform 0.15s var(--ease), background 0.2s, border-color 0.2s; }
.pq__opt:hover { transform: translateY(-2px); border-color: #fff; background: rgba(255,255,255,0.16); }
.pq__opt.is-active { background: #fff; color: var(--blue); border-color: #fff; }
.pq__result { text-align: center; animation: cardIn 0.6s var(--ease) both; }
.pq__img { width: min(300px, 78%); border-radius: var(--radius); box-shadow: 0 30px 60px -24px rgba(0,0,0,0.6); margin: 0 auto 22px; display: block; }
.pq__rlabel { color: #cfd6ff; text-transform: uppercase; letter-spacing: 0.18em; font-size: 0.78rem; }
.pq__rname { font-family: 'Cormorant Garamond', Georgia, serif; font-size: clamp(1.8rem, 5vw, 2.6rem); font-weight: 600; color: #fff; margin: 6px 0 10px; }
.pq__rdesc { color: rgba(255,255,255,0.85); max-width: 460px; margin: 0 auto 10px; }
.pq__rfrase { color: rgba(255,255,255,0.9); font-size: 0.95rem; margin-bottom: 20px; }
.pq__rfrase strong { color: #fff; }
.pq__actions { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; }

/* =====================================================================
   REFINAMIENTO PREMIUM (UI/UX Pro Max · contraste, lujo, detalle)
   ===================================================================== */
:root {
  --gold: #c7a568;            /* acento champagne (lujo) */
  --gold-soft: #e6cf9c;
  --shadow-1: 0 1px 2px rgba(10,13,26,0.06), 0 10px 26px -14px rgba(10,13,26,0.20);
  --shadow-2: 0 2px 8px rgba(10,13,26,0.08), 0 28px 54px -22px rgba(16,6,159,0.34);
}
:root[data-theme="dark"], :root:not([data-theme="light"]) {
  --gold: #d9bd82; --gold-soft: #f0dcae;
}

/* Tipografía más nítida y titulares equilibrados */
body { text-rendering: optimizeLegibility; -webkit-tap-highlight-color: transparent; }
h1, h2, h3 { text-wrap: balance; }
.hero__title { font-optical-sizing: auto; }
.section__lead, .card__desc { line-height: 1.6; }

/* Foco accesible por teclado (no aparece al hacer clic con mouse) */
a:focus-visible, button:focus-visible, input:focus-visible, select:focus-visible,
textarea:focus-visible, [tabindex]:focus-visible, summary:focus-visible {
  outline: 2px solid var(--blue-electric); outline-offset: 2px; border-radius: 6px;
}
.hero :focus-visible, .section--blue :focus-visible, .footer :focus-visible { outline-color: #fff; }

/* Selección de texto en color de marca */
::selection { background: var(--blue); color: #fff; }

/* Anclas: que no queden ocultas bajo el nav fijo */
section[id] { scroll-margin-top: 82px; }

/* Estrellas de valoración en champagne (toque de lujo) */
.stars { color: var(--gold) !important; letter-spacing: 2px; }
.section--blue .stars { color: var(--gold-soft) !important; }

/* Divisor fino bajo los títulos centrados de sección */
.section__head .section__title::after {
  content: ''; display: block; width: 52px; height: 3px; margin: 18px auto 0;
  border-radius: 100px; background: linear-gradient(90deg, var(--gold), var(--gold-soft));
}
.section--blue .section__head .section__title::after { background: linear-gradient(90deg, var(--gold-soft), #fff); opacity: 0.85; }

/* Eyebrow del hero con líneas finas a los lados */
.hero__eyebrow { display: inline-flex; align-items: center; gap: 14px; }
.hero__eyebrow::before, .hero__eyebrow::after { content: ''; width: 28px; height: 1px; background: linear-gradient(90deg, transparent, var(--gold-soft)); }
.hero__eyebrow::after { background: linear-gradient(90deg, var(--gold-soft), transparent); }

/* Sombras en capas para las tarjetas (más profundidad y realismo) */
.card { box-shadow: var(--shadow-1); }
.card:hover { box-shadow: var(--shadow-2); }

/* Botón primario: brillo de borde superior sutil */
.btn--primary { box-shadow: 0 10px 26px -12px rgba(16,6,159,0.7), inset 0 1px 0 rgba(255,255,255,0.25); }

/* Precio con un pelín más de presencia */
.card__price, .pm__price { font-variant-numeric: tabular-nums; }

/* Scrollbar afinada (webkit) */
* { scrollbar-width: thin; scrollbar-color: var(--blue-soft) transparent; }
::-webkit-scrollbar { width: 10px; height: 10px; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--blue-soft) 70%, transparent); border-radius: 100px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background: var(--blue-soft); background-clip: padding-box; }
