/* =========================================================
   Fábrica de Premios y Medallas JR — Estilos base
   Dark Mode premium · Mobile-first
   ========================================================= */

:root {
  --bg: #0a0a0b;
  --bg-2: #0f0f11;
  --surface: #141417;
  --surface-2: #19191d;
  --line: rgba(255, 255, 255, .08);
  --line-2: rgba(255, 255, 255, .15);

  --gold: #d4af37;
  --gold-light: #f3d98b;
  --gold-dark: #9c7a22;
  --gold-soft: rgba(212, 175, 55, .12);
  --gold-line: rgba(212, 175, 55, .42);
  --grad-gold: linear-gradient(135deg, #f7e7b0 0%, #d4af37 38%, #a8832a 70%, #ecd384 100%);

  --silver: #c9ccd1;
  --text: #f5f5f6;
  --muted: #8f9198;
  --ink: #15120a;

  --font-display: 'Cinzel', 'Times New Roman', serif;
  --font-body: 'Manrope', system-ui, -apple-system, 'Segoe UI', sans-serif;

  --radius: 18px;
  --header-h: 68px;
  --ease: cubic-bezier(.2, .8, .2, 1);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; scroll-padding-top: calc(var(--header-h) + 12px); }
body {
  font-family: var(--font-body);
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
body.no-scroll { overflow: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button, select { font: inherit; color: inherit; }
button { background: none; border: 0; cursor: pointer; }
ul, ol { list-style: none; }
[hidden] { display: none !important; }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; border-radius: 6px; }
::selection { background: var(--gold); color: var(--ink); }

.container { width: min(1200px, 100% - 2.5rem); margin-inline: auto; }
.sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.muted { color: var(--muted); }
.skip-link { position: absolute; left: -999px; top: .5rem; z-index: 200; background: var(--gold); color: var(--ink); padding: .6rem 1rem; border-radius: 8px; font-weight: 700; }
.skip-link:focus { left: 1rem; }

.text-gold {
  background: var(--grad-gold);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.eyebrow {
  display: inline-flex; align-items: center; gap: .65rem;
  font-size: .72rem; font-weight: 700; letter-spacing: .24em; text-transform: uppercase;
  color: var(--gold);
}
.eyebrow::before { content: ""; width: 26px; height: 1px; background: currentColor; }

/* Las imágenes reales aparecen con fade sobre el placeholder */
img[onload] { opacity: 0; transition: opacity .5s ease; }
img.is-loaded { opacity: 1; }

/* ---------- Botones ---------- */
.btn {
  position: relative; isolation: isolate; overflow: hidden;
  display: inline-flex; align-items: center; justify-content: center; gap: .55rem;
  min-height: 52px; padding: 0 1.6rem;
  border-radius: 999px;
  font-weight: 700; font-size: .95rem; letter-spacing: .02em;
  transition: transform .3s var(--ease), box-shadow .3s var(--ease), border-color .3s, background .3s;
  -webkit-tap-highlight-color: transparent;
}
.btn--gold { background: var(--grad-gold); color: var(--ink); box-shadow: 0 12px 30px -12px rgba(212, 175, 55, .6); }
.btn--gold::after {
  content: ""; position: absolute; inset: 0; z-index: -1;
  background: linear-gradient(115deg, transparent 30%, rgba(255, 255, 255, .6) 50%, transparent 70%);
  transform: translateX(-120%); transition: transform .8s var(--ease);
}
.btn--gold:hover { transform: translateY(-2px); box-shadow: 0 18px 40px -12px rgba(212, 175, 55, .75); }
.btn--gold:hover::after { transform: translateX(120%); }
.btn--gold:active { transform: translateY(0) scale(.98); }
.btn--ghost { border: 1px solid var(--line-2); color: var(--text); background: rgba(255, 255, 255, .02); }
.btn--ghost:hover { border-color: var(--gold-line); color: var(--gold-light); }
.btn--block { width: 100%; }
.btn--sm { min-height: 44px; padding: 0 1.15rem; font-size: .88rem; }

/* ---------- Topbar ---------- */
.topbar { background: #000; border-bottom: 1px solid var(--line); color: var(--silver); font-size: .72rem; letter-spacing: .08em; }
.topbar__inner { display: flex; justify-content: center; align-items: center; gap: .9rem; padding: .5rem 0; white-space: nowrap; }
.topbar__dot { width: 4px; height: 4px; border-radius: 50%; background: var(--gold); }
.hide-sm, .hide-md { display: none; }
@media (min-width: 560px) { .hide-sm { display: inline-block; } }
@media (min-width: 820px) { .hide-md { display: inline-block; } }

/* ---------- Header ---------- */
.header {
  position: sticky; top: 0; z-index: 50;
  background: rgba(10, 10, 11, .72);
  -webkit-backdrop-filter: saturate(140%) blur(14px);
  backdrop-filter: saturate(140%) blur(14px);
  border-bottom: 1px solid transparent;
  transition: border-color .3s, background .3s;
}
.header.is-scrolled { border-color: var(--line); background: rgba(10, 10, 11, .92); }
.header__inner { display: flex; align-items: center; justify-content: space-between; gap: 1rem; height: var(--header-h); }

.brand { display: flex; align-items: center; gap: .7rem; }
.brand__logo {
  position: relative; flex: none;
  width: 44px; height: 44px; border-radius: 50%;
  display: grid; place-items: center; overflow: hidden;
  background: radial-gradient(circle at 30% 25%, #2c2516, #0b0a07 70%);
  border: 1px solid var(--gold-line);
}
.brand__logo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; background: #000; }
.brand__mono { font-family: var(--font-display); font-weight: 700; font-size: 1rem; letter-spacing: .02em; }
.brand__text strong { display: block; font-family: var(--font-display); font-weight: 700; font-size: 1.02rem; letter-spacing: .08em; line-height: 1.1; }
.brand__text small { font-size: .62rem; font-weight: 600; letter-spacing: .24em; text-transform: uppercase; color: var(--muted); }

.nav { display: none; }
.nav a { position: relative; font-size: .88rem; font-weight: 600; color: var(--silver); transition: color .25s; }
.nav a::after { content: ""; position: absolute; left: 0; right: 0; bottom: -6px; height: 1px; background: var(--gold); transform: scaleX(0); transition: transform .35s var(--ease); }
.nav a:hover { color: var(--text); }
.nav a:hover::after { transform: scaleX(1); }

.header__actions { display: flex; align-items: center; gap: .25rem; }
.icon-btn { position: relative; width: 44px; height: 44px; border-radius: 50%; display: grid; place-items: center; transition: background .25s, color .25s; }
.icon-btn:hover { background: rgba(255, 255, 255, .06); color: var(--gold-light); }

.cart-count {
  position: absolute; top: 3px; right: 1px;
  min-width: 19px; height: 19px; padding: 0 5px; border-radius: 999px;
  display: grid; place-items: center;
  background: var(--grad-gold); color: var(--ink);
  font-size: .66rem; font-weight: 800; font-variant-numeric: tabular-nums;
  transform: scale(0); transition: transform .35s cubic-bezier(.34, 1.56, .64, 1);
}
.cart-count.has-items { transform: scale(1); }
.cart-count.bump { animation: bump .5s cubic-bezier(.34, 1.56, .64, 1); }
@keyframes bump { 0% { transform: scale(1); } 40% { transform: scale(1.45); } 100% { transform: scale(1); } }

.mobile-nav { max-height: 0; overflow: hidden; transition: max-height .4s var(--ease); border-top: 1px solid transparent; }
.mobile-nav.is-open { max-height: 320px; border-color: var(--line); }
.mobile-nav a { display: block; padding: 1rem 0; border-bottom: 1px solid var(--line); font-weight: 600; color: var(--silver); }
.mobile-nav a:last-child { border-bottom: 0; }

@media (min-width: 900px) {
  .nav { display: flex; gap: 2.2rem; }
  .menu-toggle, .mobile-nav { display: none; }
}

/* ---------- Placeholders de imagen ---------- */
.placeholder { position: absolute; inset: 0; display: grid; place-items: center; }
.placeholder svg { width: 44%; height: auto; filter: drop-shadow(0 18px 30px rgba(212, 175, 55, .22)); transition: transform .8s var(--ease); }

/* ---------- HERO ---------- */
.hero { position: relative; padding: 2.25rem 0 3.25rem; overflow: hidden; }
.hero::before {
  content: ""; position: absolute; inset: -20% -30% auto auto; width: 90vw; height: 90vw; max-width: 900px; max-height: 900px;
  background: radial-gradient(circle, rgba(212, 175, 55, .16), transparent 62%);
  pointer-events: none;
}
.hero::after {
  content: ""; position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(180deg, transparent 70%, var(--bg));
}
.hero__grid { position: relative; z-index: 1; display: grid; gap: 2.5rem; align-items: center; }

.hero__badge {
  display: inline-flex; align-items: center; gap: .6rem;
  padding: .35rem .95rem .35rem .4rem; border-radius: 999px;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  font-size: .78rem; font-weight: 600; color: var(--gold-light);
  animation: rise .8s var(--ease) both;
}
.hero__badge b { background: var(--grad-gold); color: var(--ink); border-radius: 999px; padding: .12rem .55rem; font-weight: 800; }
.hero h1 {
  font-family: var(--font-display); font-weight: 600;
  font-size: clamp(2.15rem, 9vw, 4.2rem); line-height: 1.07; letter-spacing: .005em;
  margin: 1.1rem 0 1rem;
  animation: rise .9s .08s var(--ease) both;
}
.hero__lead { color: var(--silver); font-size: clamp(1rem, 2.8vw, 1.14rem); max-width: 34rem; animation: rise .9s .16s var(--ease) both; }
.hero__lead strong { color: var(--text); font-weight: 700; }
.hero__ctas { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.75rem; animation: rise .9s .24s var(--ease) both; }
.hero__ctas .btn { flex: 1 1 210px; }
@media (min-width: 560px) { .hero__ctas .btn { flex: 0 0 auto; } }

.trust { display: flex; flex-wrap: wrap; gap: .55rem 1.2rem; margin-top: 1.6rem; font-size: .82rem; font-weight: 600; color: var(--silver); animation: rise .9s .32s var(--ease) both; }
.trust li { display: flex; align-items: center; gap: .45rem; }
.trust svg { color: var(--gold); flex: none; }

.hero__visual { position: relative; width: 100%; max-width: 460px; margin-inline: auto; aspect-ratio: 1 / 1; animation: fadeIn 1.2s .2s var(--ease) both; }
.hero__frame {
  position: absolute; inset: 0; border-radius: 28px; overflow: hidden;
  background:
    radial-gradient(circle at 50% 38%, rgba(212, 175, 55, .26), transparent 58%),
    linear-gradient(180deg, #16161a, #0b0b0c);
  border: 1px solid var(--line);
  box-shadow: 0 40px 80px -40px rgba(0, 0, 0, .9), inset 0 1px 0 rgba(255, 255, 255, .06);
}
.hero__frame img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.placeholder--hero svg { width: 40%; animation: float 6s ease-in-out infinite; filter: drop-shadow(0 30px 40px rgba(212, 175, 55, .3)); }
.hero__pedestal { position: absolute; left: 50%; bottom: 9%; width: 52%; height: 8%; transform: translateX(-50%); background: radial-gradient(ellipse, rgba(212, 175, 55, .35), transparent 70%); filter: blur(6px); }

.float-card {
  position: absolute; z-index: 2;
  display: flex; align-items: center; gap: .65rem;
  padding: .7rem .95rem; border-radius: 16px;
  background: rgba(18, 18, 21, .78);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid var(--line-2);
  box-shadow: 0 20px 40px -20px rgba(0, 0, 0, .8);
  font-size: .75rem; line-height: 1.25; color: var(--silver);
}
.float-card--a { left: -4px; bottom: 12%; animation: float 7s 1s ease-in-out infinite; }
.float-card--a strong { font-family: var(--font-display); font-size: 1.9rem; line-height: 1; }
.float-card--b { right: -4px; top: 9%; animation: float 7s 2.5s ease-in-out infinite; }
.float-card--b svg { color: var(--gold); flex: none; }
.float-card--b strong { display: block; color: var(--text); font-size: .8rem; }
.float-card--b small { color: var(--muted); }

@media (min-width: 900px) {
  .hero { padding: 5rem 0 6.5rem; }
  .hero__grid { grid-template-columns: 1.1fr .9fr; gap: 3.5rem; }
  .hero__visual { aspect-ratio: 4 / 5; }
  .float-card--a { left: -36px; }
  .float-card--b { right: -28px; }
}

@keyframes rise { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes fadeIn { from { opacity: 0; transform: scale(.97); } to { opacity: 1; transform: none; } }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }

/* ---------- Beneficios ---------- */
.benefits { border-block: 1px solid var(--line); background: linear-gradient(180deg, #0e0e10, var(--bg)); }
.benefits__grid { display: grid; }
.benefit { display: flex; align-items: center; gap: 1rem; padding: 1.2rem 0; border-bottom: 1px solid var(--line); }
.benefit:last-child { border-bottom: 0; }
.benefit__icon {
  flex: none; width: 50px; height: 50px; border-radius: 14px;
  display: grid; place-items: center;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line);
}
.benefit h3 { font-size: .97rem; font-weight: 700; line-height: 1.3; }
.benefit p { font-size: .84rem; color: var(--muted); }
@media (min-width: 760px) {
  .benefits__grid { grid-template-columns: repeat(3, 1fr); }
  .benefit { padding: 1.9rem 1.6rem; border-bottom: 0; border-right: 1px solid var(--line); }
  .benefit:first-child { padding-left: 0; }
  .benefit:last-child { border-right: 0; }
}

/* ---------- Secciones ---------- */
.section { padding: 4rem 0; }
.section--alt { background: linear-gradient(180deg, var(--bg-2), var(--bg)); border-top: 1px solid var(--line); }
.section__head { display: flex; flex-direction: column; align-items: flex-start; gap: .65rem; margin-bottom: 1.75rem; }
.section__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.7rem, 5.8vw, 2.65rem); line-height: 1.15; }
.section__sub { color: var(--muted); max-width: 40rem; }
@media (min-width: 900px) { .section { padding: 6rem 0; } .section__head { margin-bottom: 2.5rem; } }

/* ---------- Toolbar / filtros ---------- */
.toolbar {
  position: sticky; top: var(--header-h); z-index: 20;
  display: grid; gap: .65rem;
  margin: 0 -1.25rem 1.25rem; padding: .75rem 1.25rem;
  background: rgba(10, 10, 11, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--line);
}
.chips { display: flex; gap: .5rem; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  flex: none; display: inline-flex; align-items: center; gap: .4rem;
  min-height: 40px; padding: 0 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); background: rgba(255, 255, 255, .02);
  font-size: .84rem; font-weight: 600; color: var(--silver); white-space: nowrap;
  transition: background .3s, color .3s, border-color .3s, transform .2s;
}
.chip small { font-size: .72rem; opacity: .65; font-variant-numeric: tabular-nums; }
.chip:hover { border-color: var(--gold-line); color: var(--text); }
.chip:active { transform: scale(.96); }
.chip[aria-pressed="true"] { background: var(--grad-gold); color: var(--ink); border-color: transparent; }
.chip[aria-pressed="true"] small { opacity: .8; }

.toolbar__right { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.results { font-size: .8rem; color: var(--muted); }
.sort select {
  appearance: none; -webkit-appearance: none;
  min-height: 40px; padding: 0 2.3rem 0 1rem; border-radius: 999px;
  border: 1px solid var(--line-2); color: var(--text); font-size: .84rem; font-weight: 600; cursor: pointer;
  background: var(--surface) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23d4af37' stroke-width='2.5' stroke-linecap='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E") no-repeat right .9rem center;
}
.sort select:hover { border-color: var(--gold-line); }
@media (min-width: 760px) {
  .toolbar { grid-template-columns: 1fr auto; align-items: center; margin-inline: 0; padding-inline: 0; }
}

/* ---------- Grilla de productos ---------- */
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .8rem; }
@media (min-width: 760px) { .grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }
@media (min-width: 1080px) { .grid { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 1.4rem; } }

.card {
  position: relative; display: flex; flex-direction: column;
  border-radius: var(--radius); overflow: hidden;
  background: linear-gradient(180deg, var(--surface-2), #101012);
  border: 1px solid var(--line);
  transition: border-color .4s ease;
  animation: cardIn .6s var(--ease) backwards;
  animation-delay: calc(var(--i, 0) * 60ms);
}
@keyframes cardIn { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: none; } }

.card__media {
  position: relative; aspect-ratio: 1 / 1; overflow: hidden;
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, .17), transparent 62%), #0c0c0e;
}
.card__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; transition: opacity .5s, transform .6s ease; }

/* Hover sobrio: solo se resalta el borde dorado y la foto se acerca apenas */
@media (hover: hover) {
  .card:hover { border-color: var(--gold-line); }
  .card:hover .card__media img, .card:hover .placeholder svg { transform: scale(1.03); }
}
.card:focus-within { border-color: var(--gold-line); }

.tags { position: absolute; top: .6rem; left: .6rem; z-index: 3; display: flex; flex-direction: column; align-items: flex-start; gap: .35rem; }
.tag {
  font-size: .6rem; font-weight: 800; letter-spacing: .1em; text-transform: uppercase;
  padding: .3rem .55rem; border-radius: 6px; line-height: 1.2;
}
.tag--oferta { background: var(--grad-gold); color: var(--ink); }
.tag--popular { background: #f5f5f6; color: #111; }
.tag--replica { background: rgba(10, 10, 11, .7); color: var(--gold-light); border: 1px solid var(--gold-line); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
.discount {
  position: absolute; top: .6rem; right: .6rem; z-index: 3;
  font-size: .72rem; font-weight: 800; font-variant-numeric: tabular-nums;
  padding: .28rem .5rem; border-radius: 999px;
  background: rgba(10, 10, 11, .75); color: var(--gold-light); border: 1px solid var(--gold-line);
}

.card__body { display: flex; flex-direction: column; gap: .3rem; flex: 1; padding: .85rem .85rem 1rem; }
.card__cat { font-size: .6rem; font-weight: 700; letter-spacing: .18em; text-transform: uppercase; color: var(--muted); }
.card__title { font-family: var(--font-display); font-weight: 600; font-size: .92rem; line-height: 1.25; }
.price { display: flex; flex-wrap: wrap; align-items: baseline; gap: .1rem .5rem; margin-top: auto; padding-top: .45rem; font-variant-numeric: tabular-nums; }
.price__now { font-size: 1.12rem; font-weight: 800; letter-spacing: -.01em; }
.price__old { font-size: .78rem; color: var(--muted); text-decoration: line-through; }

.add-btn {
  margin-top: .7rem; min-height: 44px; border-radius: 12px;
  display: flex; align-items: center; justify-content: center; gap: .45rem;
  border: 1px solid var(--gold-line); color: var(--gold-light);
  font-size: .85rem; font-weight: 700;
  transition: background .3s, color .3s, border-color .3s, transform .2s;
  -webkit-tap-highlight-color: transparent;
}
.add-btn:hover { background: var(--grad-gold); color: var(--ink); border-color: transparent; }
.add-btn:active { transform: scale(.97); }
.add-btn.is-added { background: var(--grad-gold); color: var(--ink); border-color: transparent; }

@media (min-width: 760px) {
  .card__body { padding: 1.1rem 1.1rem 1.2rem; }
  .card__title { font-size: 1.05rem; }
  .price__now { font-size: 1.28rem; }
  .tag { font-size: .64rem; }
}

.empty { grid-column: 1 / -1; text-align: center; padding: 3rem 1rem; color: var(--muted); }

/* ---------- Personalización / historia ---------- */
.story { display: grid; gap: 2.5rem; align-items: center; }
.story__media {
  position: relative; aspect-ratio: 4 / 3; border-radius: 24px; overflow: hidden;
  background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, .2), transparent 60%), linear-gradient(160deg, #18181c, #0b0b0c);
  border: 1px solid var(--line);
}
.story__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.story__media .placeholder svg { width: 28%; }
.story__seal {
  position: absolute; z-index: 2; right: 1rem; bottom: 1rem;
  width: 92px; height: 92px; border-radius: 50%;
  display: grid; place-content: center; text-align: center;
  background: rgba(10, 10, 11, .8); border: 1px solid var(--gold-line);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
}
.story__seal strong { font-family: var(--font-display); font-size: 1.4rem; line-height: 1; color: var(--gold); }
.story__seal small { font-size: .56rem; letter-spacing: .14em; text-transform: uppercase; color: var(--silver); line-height: 1.35; }
.story__copy { display: flex; flex-direction: column; align-items: flex-start; gap: .9rem; }
.steps { display: grid; gap: .25rem; margin: .5rem 0 1rem; width: 100%; }
.step { display: flex; gap: 1rem; padding: .9rem 0; border-bottom: 1px solid var(--line); }
.step:last-child { border-bottom: 0; }
.step__n {
  flex: none; width: 36px; height: 36px; border-radius: 50%;
  display: grid; place-items: center;
  font-family: var(--font-display); font-weight: 700; color: var(--gold);
  border: 1px solid var(--gold-line); background: var(--gold-soft);
}
.step h3 { font-size: .98rem; font-weight: 700; }
.step p { font-size: .86rem; color: var(--muted); }
@media (min-width: 900px) { .story { grid-template-columns: 1fr 1fr; gap: 4.5rem; } .story__media { aspect-ratio: 4 / 5; } }

/* ---------- Reseñas ---------- */
.reviews {
  display: grid; grid-auto-flow: column; grid-auto-columns: 86%; gap: .9rem;
  overflow-x: auto; scroll-snap-type: x mandatory; scrollbar-width: none;
  margin-inline: -1.25rem; padding: .25rem 1.25rem 1rem;
}
.reviews::-webkit-scrollbar { display: none; }
.review {
  position: relative; scroll-snap-align: center;
  display: flex; flex-direction: column; gap: 1rem;
  padding: 1.6rem 1.4rem; border-radius: var(--radius);
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  transition: border-color .4s, transform .5s var(--ease);
}
.review::before { content: "“"; position: absolute; top: .2rem; right: 1.1rem; font-family: var(--font-display); font-size: 4.5rem; line-height: 1; color: var(--gold); opacity: .14; }
.review:hover { border-color: var(--gold-line); }
.review p { color: var(--silver); font-size: .95rem; flex: 1; }
.stars { color: var(--gold); letter-spacing: .18em; font-size: .9rem; }
.review__author { display: flex; align-items: center; gap: .75rem; padding-top: 1rem; border-top: 1px solid var(--line); }
.review__author strong { display: block; font-size: .88rem; }
.review__author small { font-size: .76rem; color: var(--muted); }
.avatar { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; font-size: .78rem; font-weight: 800; color: var(--ink); background: var(--grad-gold); }
@media (min-width: 900px) {
  .reviews { grid-auto-flow: row; grid-template-columns: repeat(3, 1fr); overflow: visible; margin: 0; padding: 0; gap: 1.4rem; }
  .review:hover { transform: translateY(-4px); }
}

/* ---------- FAQ ---------- */
.faq-wrap { display: grid; gap: 1rem; }
.faq { display: grid; gap: .7rem; }
.faq details { border: 1px solid var(--line); border-radius: 14px; background: var(--surface); transition: border-color .35s, background .35s; }
.faq details[open] { border-color: var(--gold-line); background: var(--surface-2); }
.faq summary {
  list-style: none; cursor: pointer;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: 1.1rem 1.2rem; font-weight: 700; font-size: .96rem;
}
.faq summary::-webkit-details-marker { display: none; }
.faq__icon { position: relative; flex: none; width: 28px; height: 28px; border-radius: 50%; border: 1px solid var(--gold-line); transition: transform .4s var(--ease), background .3s; }
.faq__icon::before, .faq__icon::after { content: ""; position: absolute; left: 50%; top: 50%; width: 11px; height: 1.6px; background: var(--gold); transform: translate(-50%, -50%); }
.faq__icon::after { transform: translate(-50%, -50%) rotate(90deg); }
.faq details[open] .faq__icon { transform: rotate(45deg); background: var(--gold-soft); }
.faq__body { padding: 0 1.2rem 1.2rem; color: var(--silver); font-size: .93rem; animation: rise .45s var(--ease); }
@media (min-width: 900px) { .faq-wrap { grid-template-columns: .8fr 1.2fr; gap: 4rem; align-items: start; } .faq-wrap .section__head { position: sticky; top: calc(var(--header-h) + 2rem); } }

/* ---------- CTA band ---------- */
.cta-band { padding: 3.5rem 0; border-top: 1px solid var(--line); background: radial-gradient(ellipse at 50% 0%, rgba(212, 175, 55, .14), transparent 65%); }
.cta-band__inner { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 1.4rem; }
.cta-band h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 5vw, 2.3rem); line-height: 1.2; }

/* ---------- Footer ---------- */
.footer { border-top: 1px solid var(--line); background: #070708; padding: 3rem 0 calc(6rem + env(safe-area-inset-bottom)); }
.footer__grid { display: grid; gap: 2rem; }
.footer__about { margin-top: 1rem; color: var(--muted); font-size: .88rem; max-width: 26rem; }
.footer__links { display: grid; grid-template-columns: 1fr 1fr; gap: .7rem; align-content: start; font-size: .9rem; color: var(--silver); }
.footer__visit { font-style: normal; display: flex; flex-direction: column; align-items: flex-start; gap: .8rem; }
.footer__visit h3 { font-size: .72rem; font-weight: 700; letter-spacing: .22em; text-transform: uppercase; color: var(--gold); }
.footer__line { display: flex; align-items: flex-start; gap: .6rem; font-size: .88rem; line-height: 1.5; color: var(--silver); }
.footer__line svg { flex: none; margin-top: 2px; color: var(--gold); }
.footer__map { margin-top: .3rem; border-color: var(--gold-line); color: var(--gold-light); }
.footer__map:hover { background: var(--gold-soft); }
.footer__links a:hover { color: var(--gold-light); }
.footer__bottom { display: flex; flex-direction: column; gap: .4rem; margin-top: 2.5rem; padding-top: 1.5rem; border-top: 1px solid var(--line); font-size: .76rem; color: var(--muted); }
@media (min-width: 900px) {
  .footer { padding-bottom: 2.5rem; }
  .footer__grid { grid-template-columns: 1.2fr 1.1fr .9fr; gap: 3rem; }
  .footer__bottom { flex-direction: row; justify-content: space-between; }
}

/* ---------- Barra flotante de carrito (mobile) ---------- */
.cartbar {
  position: fixed; left: .75rem; right: .75rem; bottom: calc(.75rem + env(safe-area-inset-bottom)); z-index: 40;
  display: flex; align-items: center; justify-content: space-between; gap: 1rem;
  padding: .55rem .55rem .55rem 1.1rem; border-radius: 18px;
  background: rgba(20, 20, 23, .92);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
  border: 1px solid var(--gold-line);
  box-shadow: 0 24px 50px -16px rgba(0, 0, 0, .85);
  transform: translateY(160%); transition: transform .5s var(--ease);
}
.cartbar.is-visible { transform: none; }
.cartbar__info { display: flex; flex-direction: column; line-height: 1.2; }
.cartbar__info small { font-size: .72rem; color: var(--muted); }
.cartbar__info strong { font-size: 1.08rem; font-weight: 800; font-variant-numeric: tabular-nums; }
@media (min-width: 900px) { .cartbar { display: none; } }

/* ---------- Carrito slide-over ---------- */
.overlay {
  position: fixed; inset: 0; z-index: 90;
  background: rgba(0, 0, 0, .62);
  -webkit-backdrop-filter: blur(3px); backdrop-filter: blur(3px);
  opacity: 0; visibility: hidden; transition: opacity .4s, visibility .4s;
}
.overlay.is-open { opacity: 1; visibility: visible; }

.drawer {
  position: fixed; top: 0; right: 0; z-index: 100;
  width: min(440px, 100%); height: 100%; height: 100dvh;
  display: flex; flex-direction: column;
  background: var(--bg-2); border-left: 1px solid var(--line);
  box-shadow: -30px 0 60px -20px rgba(0, 0, 0, .8);
  transform: translateX(100%); visibility: hidden;
  transition: transform .5s var(--ease), visibility 0s linear .5s;
}
.drawer.is-open { transform: none; visibility: visible; transition: transform .5s var(--ease), visibility 0s; }
.drawer__head { display: flex; align-items: center; justify-content: space-between; padding: 1rem 1.1rem 1rem 1.25rem; border-bottom: 1px solid var(--line); }
.drawer__head h2 { font-family: var(--font-display); font-weight: 600; font-size: 1.2rem; }
.drawer__head h2 span { font-family: var(--font-body); font-size: .8rem; color: var(--muted); font-weight: 600; }
.drawer__items { flex: 1; overflow-y: auto; overscroll-behavior: contain; padding: .25rem 1.25rem; }

.line { display: grid; grid-template-columns: 76px 1fr; gap: .9rem; padding: 1rem 0; border-bottom: 1px solid var(--line); animation: rise .4s var(--ease); }
.line:last-child { border-bottom: 0; }
.line__thumb { position: relative; width: 76px; height: 76px; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, .18), transparent 65%), #0c0c0e; }
.line__thumb img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 1; }
.line__thumb .placeholder svg { width: 52%; }
.line__top { display: flex; justify-content: space-between; gap: .5rem; }
.line__name { font-weight: 700; font-size: .9rem; line-height: 1.3; }
.line__unit { font-size: .76rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.line__remove { flex: none; width: 32px; height: 32px; margin: -4px -6px 0 0; border-radius: 8px; display: grid; place-items: center; color: var(--muted); transition: color .2s, background .2s; }
.line__remove:hover { color: #f2b8b5; background: rgba(255, 255, 255, .05); }
.line__bottom { display: flex; justify-content: space-between; align-items: center; margin-top: .6rem; }
.line__total { font-weight: 800; font-variant-numeric: tabular-nums; }

.qty { display: inline-flex; align-items: center; border: 1px solid var(--line-2); border-radius: 999px; }
.qty button { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; color: var(--silver); transition: color .2s, background .2s; }
.qty button:hover { color: var(--gold-light); background: rgba(255, 255, 255, .05); }
.qty button:disabled { opacity: .3; cursor: not-allowed; }
.qty span { min-width: 26px; text-align: center; font-weight: 700; font-size: .9rem; font-variant-numeric: tabular-nums; }

.drawer__empty { display: flex; flex-direction: column; align-items: center; gap: 1rem; text-align: center; padding: 3.5rem 1rem; color: var(--muted); }
.drawer__empty svg { width: 64px; opacity: .7; }
.drawer__empty strong { color: var(--text); font-size: 1.05rem; }

.drawer__foot { display: grid; gap: .55rem; padding: 1.1rem 1.25rem calc(1.1rem + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); background: #0b0b0d; }
.row { display: flex; justify-content: space-between; gap: 1rem; font-size: .9rem; color: var(--silver); font-variant-numeric: tabular-nums; }
.row--save { color: var(--gold-light); font-weight: 600; }
.row--total { margin: .2rem 0 .5rem; padding-top: .7rem; border-top: 1px dashed var(--line-2); font-size: 1.2rem; font-weight: 800; color: var(--text); }
.row--total span:last-child { transition: color .3s; }
.row--total .flash { animation: flash .6s var(--ease); }
@keyframes flash { 0% { color: var(--gold-light); transform: scale(1.06); } 100% { color: var(--text); transform: none; } }
.drawer__promise {
  display: flex; align-items: flex-start; gap: .6rem;
  padding: .7rem .85rem; border-radius: 12px;
  background: var(--gold-soft); border: 1px solid var(--gold-line);
  font-size: .78rem; line-height: 1.45; color: var(--silver);
}
.drawer__promise svg { flex: none; margin-top: 1px; color: var(--gold); }
.drawer__note {display: flex; align-items: center; justify-content: center; gap: .4rem; font-size: .74rem; color: var(--muted); }

/* ---------- Toast ---------- */
.toast {
  position: fixed; left: 50%; bottom: calc(5.6rem + env(safe-area-inset-bottom)); z-index: 120;
  display: flex; align-items: center; gap: .8rem;
  width: max-content; max-width: calc(100% - 2rem);
  padding: .75rem .75rem .75rem 1rem; border-radius: 14px;
  background: #f5f5f6; color: #111; font-size: .86rem; font-weight: 600;
  box-shadow: 0 20px 40px -12px rgba(0, 0, 0, .7);
  opacity: 0; visibility: hidden; transform: translate(-50%, 16px);
  transition: opacity .35s, transform .45s var(--ease), visibility .35s;
}
.toast.is-visible { opacity: 1; visibility: visible; transform: translate(-50%, 0); }
.toast button { padding: .45rem .8rem; border-radius: 9px; background: #111; color: var(--gold-light); font-weight: 700; font-size: .8rem; white-space: nowrap; }
@media (min-width: 900px) { .toast { bottom: 2rem; } }

/* ---------- Reveal on scroll ---------- */
.js .reveal { opacity: 0; transform: translateY(22px); transition: opacity .8s var(--ease), transform .8s var(--ease); }
.js .reveal.is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .js .reveal { opacity: 1; transform: none; }
}

/* ---------- Página 404 ---------- */
.notfound { position: relative; min-height: calc(100vh - var(--header-h)); min-height: calc(100dvh - var(--header-h)); display: grid; place-items: center; padding: 3rem 0 4rem; overflow: hidden; text-align: center; }
.notfound::before { content: ""; position: absolute; left: 50%; top: 40%; width: 120vw; max-width: 900px; aspect-ratio: 1; transform: translate(-50%, -50%); background: radial-gradient(circle, rgba(212, 175, 55, .16), transparent 60%); pointer-events: none; }
.notfound__inner { position: relative; display: flex; flex-direction: column; align-items: center; gap: 1rem; max-width: 34rem; }
.notfound__trophy { width: 110px; height: auto; margin-bottom: .5rem; filter: drop-shadow(0 24px 34px rgba(212, 175, 55, .3)); animation: float 6s ease-in-out infinite, rise .9s var(--ease) both; transform-origin: 50% 100%; }
.notfound__code { font-family: var(--font-display); font-weight: 700; font-size: clamp(4.5rem, 22vw, 8rem); line-height: .9; letter-spacing: .04em; animation: rise .9s .08s var(--ease) both; }
.notfound h1 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.5rem, 5.5vw, 2.2rem); line-height: 1.2; animation: rise .9s .16s var(--ease) both; }
.notfound p { color: var(--silver); animation: rise .9s .24s var(--ease) both; }
.notfound .hero__ctas { justify-content: center; width: 100%; }

/* ---------- WhatsApp ---------- */
:root { --wa: #25d366; }
.btn--wa svg { color: var(--wa); }
.btn--wa:hover { border-color: rgba(37, 211, 102, .55); color: var(--text); }
.inline-link { color: var(--gold-light); text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--gold-line); }
.inline-link:hover { text-decoration-color: var(--gold-light); }
.footer__actions { display: flex; flex-wrap: wrap; gap: .6rem; margin-top: .3rem; }
.footer__actions .footer__map { margin-top: 0; }

/* Botón flotante: discreto, se expande con el texto al pasar el mouse */
.wa-float {
  position: fixed; right: 1rem; bottom: calc(1rem + env(safe-area-inset-bottom)); z-index: 45;
  display: flex; align-items: center; gap: 0;
  height: 52px; padding: 0 13px; border-radius: 999px;
  background: rgba(18, 18, 21, .9);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px);
  border: 1px solid rgba(37, 211, 102, .45);
  color: var(--wa);
  box-shadow: 0 14px 30px -12px rgba(0, 0, 0, .8);
  transition: transform .45s var(--ease), bottom .45s var(--ease), opacity .3s, visibility .3s, gap .35s var(--ease), border-color .3s;
}
.wa-float svg { flex: none; }
.wa-float__label { max-width: 0; overflow: hidden; white-space: nowrap; color: var(--text); font-size: .85rem; font-weight: 700; transition: max-width .4s var(--ease); }
.wa-float:hover, .wa-float:focus-visible { gap: .55rem; border-color: var(--wa); }
.wa-float:hover .wa-float__label, .wa-float:focus-visible .wa-float__label { max-width: 120px; }
.wa-float:active { transform: scale(.95); }
/* Se corre hacia arriba cuando aparece la barra del carrito en mobile y se oculta con el carrito abierto */
body.has-cartbar .wa-float { bottom: calc(5.6rem + env(safe-area-inset-bottom)); }
body.no-scroll .wa-float { opacity: 0; visibility: hidden; }
@media (min-width: 900px) { body.has-cartbar .wa-float { bottom: 1.5rem; } .wa-float { right: 1.5rem; bottom: 1.5rem; } }

/* Campo de grabado en el carrito */
.engraving { display: grid; gap: .4rem; margin-bottom: .3rem; }
.engraving label { font-size: .82rem; font-weight: 700; color: var(--text); }
.engraving label span { font-weight: 500; color: var(--muted); }
.engraving textarea {
  width: 100%; resize: none; min-height: 58px;
  padding: .65rem .8rem; border-radius: 12px;
  background: var(--surface); border: 1px solid var(--line-2); color: var(--text);
  font: inherit; font-size: .88rem; line-height: 1.4;
  transition: border-color .25s, box-shadow .25s;
}
.engraving textarea::placeholder { color: #6c6e75; }
.engraving textarea:focus { outline: none; border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-soft); }
.drawer__note svg { color: var(--wa); }
@media (max-width: 899px) { body.has-cartbar .toast { bottom: calc(9.4rem + env(safe-area-inset-bottom)); } }

/* =========================================================
   v3 — Fotos reales, estudio del hero, efecto 3D, vitrina y presupuesto
   ========================================================= */

/* ---------- HERO: estudio fotográfico en CSS ---------- */
.hero__visual { aspect-ratio: 4 / 5; max-width: 380px; }
@media (min-width: 900px) { .hero__visual { max-width: 460px; } }
.studio { position: absolute; inset: 0; }
.studio::after { /* brillo del piso */
  content: ""; position: absolute; left: 6%; right: 6%; top: 82%; height: 7%;
  background: radial-gradient(ellipse at 50% 50%, rgba(212, 175, 55, .45), transparent 70%);
  filter: blur(8px); pointer-events: none;
}
.studio__spot {
  position: absolute; left: 50%; top: -14%; width: 130%; height: 95%; transform: translateX(-50%);
  background: radial-gradient(ellipse 48% 62% at 50% 0%, rgba(255, 238, 196, .32), rgba(212, 175, 55, .12) 48%, transparent 72%);
  pointer-events: none; animation: spotPulse 6s ease-in-out infinite;
}
.studio__rays {
  position: absolute; inset: -10% 0 20%; pointer-events: none; opacity: .7;
  background: conic-gradient(from 180deg at 50% -6%, transparent 150deg, rgba(255, 240, 200, .07) 164deg, transparent 172deg, rgba(255, 240, 200, .05) 186deg, transparent 196deg, rgba(255, 240, 200, .06) 206deg, transparent 214deg);
  -webkit-mask-image: linear-gradient(180deg, #000 30%, transparent 90%); mask-image: linear-gradient(180deg, #000 30%, transparent 90%);
}
.studio__arch {
  position: absolute; left: 15%; right: 15%; top: 5%; bottom: 17%; margin: 0;
  padding: 2px; border-radius: 999px 999px 22px 22px; overflow: hidden;
  background: var(--grad-gold);
  box-shadow: 0 46px 80px -34px rgba(0, 0, 0, .95), 0 0 70px -14px rgba(212, 175, 55, .4);
  animation: fadeIn 1.2s .15s var(--ease) both;
}
.studio__arch img { width: 100%; height: 100%; object-fit: cover; object-position: 50% 60%; border-radius: 999px 999px 20px 20px; }
.studio__arch::after { /* viñeta de estudio */
  content: ""; position: absolute; inset: 2px; border-radius: inherit; pointer-events: none;
  box-shadow: inset 0 0 70px rgba(0, 0, 0, .38), inset 0 -60px 70px -40px rgba(0, 0, 0, .35);
  background: radial-gradient(ellipse 70% 40% at 50% 0%, rgba(255, 236, 190, .18), transparent 70%);
}
.studio__sheen {
  position: absolute; inset: 2px; border-radius: inherit; pointer-events: none;
  background: linear-gradient(105deg, transparent 38%, rgba(255, 255, 255, .38) 50%, transparent 62%);
  transform: translateX(-120%); animation: sheen 7s 1.5s ease-in-out infinite;
}
.studio__floor {
  position: absolute; left: 15%; right: 15%; top: 83%; height: 14%; overflow: hidden; pointer-events: none;
  opacity: .22; border-radius: 0 0 22px 22px;
  -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%);
}
.studio__floor img { position: absolute; left: 0; top: 0; width: 100%; height: calc(78 / 14 * 100%); object-fit: cover; object-position: 50% 60%; transform: scaleY(-1); }
.studio__dust { position: absolute; inset: 0; pointer-events: none; }
.studio__dust i {
  position: absolute; bottom: 20%; width: 3px; height: 3px; border-radius: 50%;
  background: #f3d98b; box-shadow: 0 0 8px 2px rgba(243, 217, 139, .6);
  opacity: 0; animation: dust 9s linear infinite;
}
.studio__dust i:nth-child(1) { left: 12%; animation-delay: 0s; }
.studio__dust i:nth-child(2) { left: 84%; animation-delay: 1.6s; }
.studio__dust i:nth-child(3) { left: 26%; animation-delay: 3.1s; }
.studio__dust i:nth-child(4) { left: 72%; animation-delay: 4.4s; }
.studio__dust i:nth-child(5) { left: 8%;  animation-delay: 6s; }
.studio__dust i:nth-child(6) { left: 90%; animation-delay: 7.3s; }
@keyframes sheen { 0%, 55% { transform: translateX(-120%); } 80%, 100% { transform: translateX(120%); } }
@keyframes spotPulse { 0%, 100% { opacity: .85; } 50% { opacity: 1; } }
@keyframes dust { 0% { transform: translateY(0); opacity: 0; } 15% { opacity: .9; } 70% { opacity: .5; } 100% { transform: translateY(-260px); opacity: 0; } }

/* ---------- Tarjetas con fotos reales ---------- */

.card__media { display: block; width: 100%; padding: 0; aspect-ratio: 3 / 4; cursor: zoom-in; text-align: left; }
.card__media img { object-fit: cover; object-position: 50% 50%; }
.card__media .placeholder svg { width: 40%; }
.card__zoom {
  position: absolute; right: .55rem; bottom: .55rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .6rem; border-radius: 999px;
  background: rgba(10, 10, 11, .72); color: var(--gold-light); border: 1px solid var(--gold-line);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
  transition: opacity .35s, transform .35s var(--ease);
}
@media (hover: hover) {
  .card__zoom { opacity: 0; transform: translateY(6px); }
  .card:hover .card__zoom, .card__media:focus-visible .card__zoom { opacity: 1; transform: none; }
}
@media (max-width: 420px) { .card__zoom { font-size: 0; gap: 0; padding: .4rem; } }
.card__title button { font: inherit; text-align: left; line-height: inherit; transition: color .25s; }
.card__title button:hover { color: var(--gold-light); }
.card__title { margin-bottom: .8rem; }
.card__body .add-btn { margin-top: auto; }

/* ---------- Lista de presupuesto ---------- */
.quote-summary { display: flex; align-items: center; gap: .8rem; padding-bottom: .4rem; }
.quote-summary__icon { flex: none; width: 42px; height: 42px; border-radius: 12px; display: grid; place-items: center; color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line); }
.quote-summary p { display: flex; flex-direction: column; line-height: 1.35; }
.quote-summary strong { font-size: 1rem; }
.quote-summary small { font-size: .76rem; color: var(--muted); }
button.line__thumb { padding: 0; cursor: zoom-in; }
.line__qty { font-size: .78rem; color: var(--muted); }
.cartbar__info strong { font-size: .98rem; }

/* ---------- Vitrina (modal) ---------- */
.vitrina {
  position: fixed; inset: 0; z-index: 110;
  display: grid; place-items: center; padding: .75rem;
  visibility: hidden; pointer-events: none;
  transition: visibility 0s linear .35s;
}
.vitrina.is-open { visibility: visible; pointer-events: auto; transition: visibility 0s; }
.vitrina__backdrop {
  position: absolute; inset: 0; background: rgba(0, 0, 0, .8);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
  opacity: 0; transition: opacity .45s;
}
.vitrina.is-open .vitrina__backdrop { opacity: 1; }
.vitrina__panel {
  position: relative; width: min(1020px, 100%); max-height: calc(100dvh - 1.5rem);
  display: grid; grid-template-rows: auto auto; overflow-y: auto; overscroll-behavior: contain;
  border-radius: 24px; background: linear-gradient(180deg, #151518, #0c0c0e);
  border: 1px solid var(--gold-line);
  box-shadow: inset 0 1px 0 rgba(243, 217, 139, .25), 0 60px 120px -30px rgba(0, 0, 0, .95), 0 0 90px -20px rgba(212, 175, 55, .3);
  opacity: 0; transform: translateY(14px) scale(.985);
  transition: transform .35s ease, opacity .3s ease;
}
.vitrina.is-open .vitrina__panel { opacity: 1; transform: none; }
.vitrina__close { position: absolute; top: .7rem; right: .7rem; z-index: 6; background: rgba(10, 10, 11, .72); border: 1px solid var(--line-2); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }

.vitrina__stage {
  position: relative; overflow: hidden; height: min(58vh, 540px); height: min(58dvh, 540px);
  background: radial-gradient(ellipse at 50% 35%, #1d1d21, #0b0b0c 75%);
  border-bottom: 1px solid var(--gold-line); cursor: zoom-in; outline: none;
}
.vitrina__stage.has-photo { background: radial-gradient(ellipse at 50% 40%, #f4f3f0, #d9d6d1 80%); }
.vitrina__stage.is-zoomed { cursor: zoom-out; touch-action: none; }
.vitrina__stage::after { /* marco interno de vitrina */
  content: ""; position: absolute; inset: 10px; z-index: 3; pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .4); border-radius: 16px;
}
.vitrina__stage:focus-visible::after { border-color: var(--gold); }
.vitrina__stage img {
  position: absolute; inset: 0; width: 100%; height: 100%; object-fit: contain; z-index: 1;
  transform: scale(var(--z, 1)); transform-origin: var(--px, 50%) var(--py, 50%);
  transition: transform .45s var(--ease), transform-origin .12s linear, opacity .4s;
  user-select: none; -webkit-user-drag: none;
}
.vitrina__stage img:not(.is-loaded) { opacity: 0; }
.vitrina__stage.has-photo .placeholder { display: none; }
.vitrina__stage .placeholder svg { width: 30%; }
.vitrina__zoom {
  position: absolute; right: 1.2rem; bottom: 1.2rem; z-index: 4;
  display: flex; align-items: center; gap: .2rem; padding: .25rem;
  border-radius: 999px; background: rgba(10, 10, 11, .78); border: 1px solid var(--line-2);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  font-size: .78rem; font-weight: 700; font-variant-numeric: tabular-nums; color: var(--gold-light);
}
.vitrina__zoom span { min-width: 26px; text-align: center; }
.vitrina__zbtn { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: var(--text); transition: background .2s; }
.vitrina__zbtn:hover { background: rgba(255, 255, 255, .1); }
.vitrina__stage:not(.has-photo) .vitrina__zoom, .vitrina__stage:not(.has-photo) .vitrina__hint { display: none; }
.vitrina__hint {
  position: absolute; left: 1.2rem; bottom: 1.2rem; z-index: 4; max-width: calc(100% - 11rem);
  padding: .4rem .7rem; border-radius: 999px; background: rgba(10, 10, 11, .7); color: var(--silver);
  font-size: .7rem; font-weight: 600; line-height: 1.3;
}

.vitrina__info { display: flex; flex-direction: column; gap: .8rem; padding: 1.4rem 1.3rem 1.5rem; }
.vitrina__info h2 { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.45rem, 5vw, 2rem); line-height: 1.15; }
.vitrina__tags { display: flex; flex-wrap: wrap; gap: .4rem; }
.vitrina__tags:empty { display: none; }
.vitrina__desc { color: var(--silver); font-size: .95rem; }
.vitrina__craft { padding-left: .85rem; border-left: 2px solid var(--gold); color: var(--gold-light); font-size: .88rem; }
.vitrina__list { display: grid; gap: .45rem; margin: .2rem 0 .4rem; font-size: .86rem; font-weight: 600; color: var(--silver); }
.vitrina__list li { display: flex; align-items: center; gap: .5rem; }
.vitrina__list svg { color: var(--gold); flex: none; }
#vitrinaAdd.is-added { box-shadow: 0 0 0 3px var(--gold-soft), 0 12px 30px -12px rgba(212, 175, 55, .6); }

@media (min-width: 860px) {
  .vitrina { padding: 2rem; }
  .vitrina__panel { grid-template-columns: 1.15fr .85fr; grid-template-rows: none; overflow: hidden; }
  .vitrina__stage { height: min(82vh, 660px); border-bottom: 0; border-right: 1px solid var(--gold-line); }
  .vitrina__info { justify-content: center; padding: 2.5rem 2.2rem; overflow-y: auto; }
}
/* Miniaturas verticales (3:4) en la lista para que se vea la copa entera */
.line { grid-template-columns: 62px 1fr; }
.line__thumb { width: 62px; height: 83px; }

/* =========================================================
   v4 — Fotos reales del hero (horizontal) y del taller (vertical)
   Las proporciones coinciden con las fotos: se ven completas, sin recortes.
   ========================================================= */
.hero__visual--photo { aspect-ratio: auto; max-width: 620px; margin-bottom: 1.5rem; }
.hero__visual--photo .studio__spot { top: -30%; }
.hero__visual--photo .hero__frame {
  position: relative; inset: auto; margin: 0;
  aspect-ratio: 1280 / 1075;              /* proporción exacta de hero-trofeo.jpg */
  border-radius: 22px; padding: 2px;      /* filete dorado */
  background: var(--grad-gold);
  box-shadow: 0 46px 90px -40px rgba(0, 0, 0, .95), 0 0 70px -16px rgba(212, 175, 55, .4);
}
.hero__visual--photo .hero__frame img {
  position: relative; inset: auto; display: block;
  width: 100%; height: 100%; object-fit: cover; border-radius: 20px;
}
.hero__visual--photo .hero__frame::after { /* viñeta suave, no tapa las copas */
  content: ""; position: absolute; inset: 2px; border-radius: 20px; pointer-events: none;
  box-shadow: inset 0 0 50px rgba(0, 0, 0, .3);
}
/* Las tarjetas flotantes salen del marco para no tapar ninguna copa */
.hero__visual--photo .float-card--b { top: -1.3rem; left: .75rem; right: auto; }
.hero__visual--photo .float-card--a { bottom: -1.6rem; right: .75rem; left: auto; }
@media (min-width: 900px) {
  .hero__visual--photo { aspect-ratio: auto; max-width: 620px; }
  .hero__visual--photo .float-card--b { left: -1.5rem; }
  .hero__visual--photo .float-card--a { right: -1.5rem; }
}

.story__media {
  aspect-ratio: 720 / 1280;               /* proporción exacta de taller.jpg */
  width: 100%; max-width: 360px; margin-inline: auto;
  overflow: visible; padding: 2px; background: var(--grad-gold);
}
.story__media img { border-radius: 22px; }
.story__media .placeholder { border-radius: 22px; overflow: hidden; }
.story__seal { right: auto; bottom: auto; left: -14px; top: -14px; }
@media (min-width: 900px) {
  .story__media { aspect-ratio: 720 / 1280; max-width: 400px; }
}
.story__seal { top: -42px; left: -8px; }

/* =========================================================
   v6 — Fotos de producto completas: object-fit: contain sobre un
   paspartú claro con margen interno, así nunca se corta la base
   ni la parte superior de ninguna copa.
   ========================================================= */
.card__media {
  background: linear-gradient(180deg, #f4f3f0, #e6e4e0);
}
.card__media img {
  inset: 6% 7%; width: 86%; height: 88%;
  object-fit: contain; object-position: 50% 50%;
  border-radius: 6px;
}
/* Sin foto todavía: vuelve el fondo oscuro con el trofeo dorado */
.card__media:not(:has(img)) { background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, .17), transparent 62%), #0c0c0e; }
/* Las etiquetas quedan legibles sobre el fondo claro */
.tag--replica { background: rgba(10, 10, 11, .82); }

.line__thumb { background: linear-gradient(180deg, #f4f3f0, #e6e4e0); }
.line__thumb img { inset: 5%; width: 90%; height: 90%; object-fit: contain; border-radius: 4px; }
.line__thumb:not(:has(img)) { background: radial-gradient(circle at 50% 45%, rgba(212, 175, 55, .18), transparent 65%), #0c0c0e; }

.vitrina__stage.has-photo { background: linear-gradient(180deg, #f4f3f0, #e2e0db); }
.vitrina__stage img { inset: 4%; width: 92%; height: 92%; }

/* =========================================================
   v7 — Diseños exclusivos y corporativos + Otras disciplinas
   ========================================================= */

/* ---------- Galería corporativa ---------- */
.showcase { display: grid; grid-template-columns: 1fr; gap: 1rem; }
@media (min-width: 620px) { .showcase { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; } }

.showcase__card {
  display: flex; flex-direction: column; width: 100%; padding: 0; text-align: left;
  border-radius: var(--radius); overflow: hidden; cursor: zoom-in;
  background: linear-gradient(180deg, var(--surface-2), #101012);
  border: 1px solid var(--line);
  transition: border-color .4s ease;
}
@media (hover: hover) { .showcase__card:hover { border-color: var(--gold-line); } }
.showcase__card:focus-visible { border-color: var(--gold); }

/* Marco sutil: paspartú oscuro con filete dorado interno */
.showcase__media {
  position: relative; display: block; padding: 10px;
  background: radial-gradient(ellipse at 50% 35%, #26262a, #141416 75%);
  border-bottom: 1px solid var(--line);
}
.showcase__media::before { /* filete dorado */
  content: ""; position: absolute; inset: 10px; z-index: 2; pointer-events: none;
  border: 1px solid rgba(212, 175, 55, .35); border-radius: 10px;
}
.showcase__media::after { /* integra los bordes del fondo gris con la página */
  content: ""; position: absolute; inset: 10px; z-index: 1; pointer-events: none; border-radius: 10px;
  box-shadow: inset 0 0 40px 6px rgba(15, 15, 17, .55);
}
.showcase__media img {
  display: block; width: 100%; height: auto; aspect-ratio: 450 / 632;
  object-fit: contain; border-radius: 10px;
  filter: brightness(.9) contrast(1.08);   /* baja el gris del fondo y realza el metal */
  transition: transform .6s ease, filter .4s ease;
}
@media (hover: hover) {
  .showcase__card:hover .showcase__media img { transform: scale(1.02); filter: brightness(.95) contrast(1.1); }
}
.showcase__zoom {
  position: absolute; right: 1.1rem; bottom: 1.1rem; z-index: 3;
  display: inline-flex; align-items: center; gap: .35rem; padding: .35rem .6rem; border-radius: 999px;
  background: rgba(10, 10, 11, .75); color: var(--gold-light); border: 1px solid var(--gold-line);
  font-size: .68rem; font-weight: 700;
}
.showcase__body { display: flex; flex-direction: column; gap: .35rem; padding: 1rem 1.1rem 1.2rem; }
.showcase__title { font-family: var(--font-display); font-weight: 600; font-size: 1.02rem; line-height: 1.3; color: var(--text); }
.showcase__desc { font-size: .86rem; color: var(--muted); line-height: 1.5; }
.showcase__cta { display: flex; justify-content: center; margin-top: 2rem; }
@media (max-width: 559px) { .showcase__cta .btn { width: 100%; } }

/* En la vitrina, las piezas corporativas usan un fondo neutro acorde a sus fotos */
.vitrina.is-showcase .vitrina__stage.has-photo { background: radial-gradient(ellipse at 50% 40%, #d9d9d9, #bdbdbd 85%); }

/* ---------- Otras disciplinas ---------- */
.disciplines {
  padding: 3rem 0; border-block: 1px solid var(--line);
  background: radial-gradient(ellipse at 0% 0%, rgba(212, 175, 55, .08), transparent 55%), linear-gradient(180deg, var(--bg-2), var(--bg));
}
.disciplines__inner { display: grid; gap: 2rem; align-items: center; }
.disciplines__copy { display: flex; flex-direction: column; align-items: flex-start; gap: .85rem; }
.disciplines__title { font-family: var(--font-display); font-weight: 600; font-size: clamp(1.4rem, 4.6vw, 2rem); line-height: 1.2; }
.disciplines__copy p { color: var(--silver); font-size: .95rem; max-width: 34rem; }
.materials { display: flex; flex-wrap: wrap; gap: .45rem .6rem; margin: .1rem 0 .4rem; }
.materials li {
  display: inline-flex; align-items: center; gap: .35rem;
  padding: .35rem .7rem; border-radius: 999px;
  border: 1px solid var(--gold-line); background: var(--gold-soft);
  font-size: .78rem; font-weight: 600; color: var(--gold-light);
}
.materials svg { color: var(--gold); }

.disciplines__grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .6rem; }
.discipline {
  display: flex; align-items: center; gap: .7rem;
  padding: .8rem .9rem; border-radius: 14px;
  background: linear-gradient(180deg, var(--surface-2), var(--surface));
  border: 1px solid var(--line);
  font-size: .88rem; font-weight: 700; line-height: 1.25;
  transition: border-color .35s ease;
}
.discipline:hover { border-color: var(--gold-line); }
.discipline:last-child { grid-column: 1 / -1; }
.discipline__icon {
  flex: none; width: 40px; height: 40px; border-radius: 11px;
  display: grid; place-items: center;
  color: var(--gold); background: var(--gold-soft); border: 1px solid var(--gold-line);
}
@media (min-width: 900px) {
  .disciplines { padding: 4rem 0; }
  .disciplines__inner { grid-template-columns: .95fr 1.05fr; gap: 3.5rem; }
  .disciplines__grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .discipline:last-child { grid-column: span 3; }
}

/* =========================================================
   v8 — Reseñas: avatar con iniciales (o foto), estrellas nítidas
   ========================================================= */
.review__author { gap: .85rem; }
.avatar {
  position: relative; flex: none; width: 48px; height: 48px; border-radius: 50%; overflow: hidden;
  display: grid; place-items: center;
  background: radial-gradient(circle at 30% 25%, #2a2a2f, #111113 70%);
  border: 1px solid var(--gold-line);
  box-shadow: 0 0 0 3px rgba(212, 175, 55, .08), 0 8px 18px -8px rgba(0, 0, 0, .8);
  color: var(--gold-light);
}
.avatar__initials { font-family: var(--font-display); font-weight: 700; font-size: .95rem; letter-spacing: .04em; }
/* Si existe img/avatar-N.jpg se muestra encima de las iniciales; si no, quedan las iniciales */
.avatar img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.review__author strong { font-size: .92rem; color: var(--text); }
.review__author small { display: block; margin-top: .1rem; font-size: .74rem; letter-spacing: .04em; color: var(--muted); }
.stars { display: flex; gap: 3px; color: var(--gold); letter-spacing: 0; }
.stars svg { fill: currentColor; filter: drop-shadow(0 1px 0 rgba(0, 0, 0, .4)); }

/* =========================================================
   v9 — Logo más grande y con presencia en la barra superior
   ========================================================= */
:root { --header-h: 76px; }
@media (min-width: 900px) { :root { --header-h: 88px; } }

.header .brand { gap: .85rem; }
.header .brand__logo {
  width: 58px; height: 58px;
  border: 1.5px solid rgba(212, 175, 55, .7);
  box-shadow: 0 0 0 4px rgba(212, 175, 55, .08), 0 6px 22px -6px rgba(212, 175, 55, .45);
  transition: transform .4s ease, box-shadow .4s ease;
}
.header .brand:hover .brand__logo { transform: scale(1.04); box-shadow: 0 0 0 5px rgba(212, 175, 55, .12), 0 8px 26px -6px rgba(212, 175, 55, .6); }
.header .brand__mono { font-size: 1.25rem; }
.header .brand__text strong { font-size: 1.15rem; letter-spacing: .07em; }
.header .brand__text small { font-size: .64rem; }

@media (min-width: 900px) {
  .header .brand__logo { width: 68px; height: 68px; }
  .header .brand__text strong { font-size: 1.3rem; }
  .header .brand__text small { font-size: .68rem; }
}
.header .brand__text small { white-space: nowrap; }
/* Celulares angostos: un poco más compacto para que entren el carrito y el menú */
@media (max-width: 379px) {
  .header .brand { gap: .65rem; }
  .header .brand__logo { width: 52px; height: 52px; }
  .header .brand__text strong { font-size: 1.05rem; }
  .header .brand__text small { font-size: .58rem; letter-spacing: .16em; }
}

/* v10 — Nombre de marca más grande junto al logo */
.header .brand__text strong { font-size: 1.32rem; line-height: 1.1; }
.header .brand__text small { font-size: .7rem; letter-spacing: .2em; }
@media (min-width: 900px) {
  .header .brand__text strong { font-size: 1.55rem; }
  .header .brand__text small { font-size: .78rem; letter-spacing: .22em; }
}
@media (max-width: 379px) {
  .header .brand__text strong { font-size: 1.16rem; }
  .header .brand__text small { font-size: .62rem; letter-spacing: .14em; }
}

/* =========================================================
   v11 — Logo grande en el hero; la barra superior queda solo con el nombre
   ========================================================= */
:root { --header-h: 68px; }
@media (min-width: 900px) { :root { --header-h: 76px; } }

.hero__logo {
  position: relative; display: grid; place-items: center;
  width: 128px; height: 128px; margin-bottom: 1.2rem;
  border-radius: 50%; padding: 3px;
  background: var(--grad-gold);
  box-shadow:
    0 0 0 8px rgba(212, 175, 55, .07),
    0 0 60px -6px rgba(212, 175, 55, .55),
    0 24px 50px -18px rgba(0, 0, 0, .9);
  animation: logoIn 1s var(--ease) both, logoGlow 5s 1s ease-in-out infinite;
}
.hero__logo img { width: 100%; height: 100%; border-radius: 50%; object-fit: cover; display: block; }
.hero__logo::after { /* brillo que cruza el logo cada tanto */
  content: ""; position: absolute; inset: 3px; border-radius: 50%; pointer-events: none;
  background: linear-gradient(115deg, transparent 38%, rgba(255, 244, 210, .38) 50%, transparent 62%);
  background-size: 250% 100%; background-position: 120% 0;
  animation: logoSheen 6s 1.4s ease-in-out infinite;
}
@media (min-width: 560px) { .hero__logo { width: 150px; height: 150px; } }
@media (min-width: 900px) { .hero__logo { width: 184px; height: 184px; margin-bottom: 1.5rem; } }

@keyframes logoIn { from { opacity: 0; transform: scale(.85); } to { opacity: 1; transform: none; } }
@keyframes logoGlow {
  0%, 100% { box-shadow: 0 0 0 8px rgba(212, 175, 55, .07), 0 0 60px -6px rgba(212, 175, 55, .55), 0 24px 50px -18px rgba(0, 0, 0, .9); }
  50%      { box-shadow: 0 0 0 10px rgba(212, 175, 55, .1), 0 0 80px -4px rgba(212, 175, 55, .7), 0 24px 50px -18px rgba(0, 0, 0, .9); }
}
@keyframes logoSheen { 0%, 60% { background-position: 120% 0; } 85%, 100% { background-position: -20% 0; } }

/* v12 — Nombre de la marca al lado del logo en el hero */
.hero__brand { display: flex; align-items: center; gap: 1rem; margin-bottom: 1.4rem; }
.hero__brand .hero__logo { flex: none; margin-bottom: 0; width: 104px; height: 104px; }
.hero__brandtext { display: flex; flex-direction: column; gap: .45rem; animation: rise .9s .1s var(--ease) both; }
.hero__brandtext strong {
  font-family: var(--font-display); font-weight: 700; line-height: 1;
  font-size: clamp(1.75rem, 7.5vw, 3.1rem); letter-spacing: .05em;
  background: var(--grad-gold); -webkit-background-clip: text; background-clip: text; color: transparent;
  white-space: nowrap;
}
.hero__brandtext span {
  font-size: clamp(.66rem, 2.6vw, .9rem); font-weight: 700; letter-spacing: .3em; text-transform: uppercase;
  color: var(--silver); white-space: nowrap;
  display: flex; align-items: center; gap: .6rem;
}
.hero__brandtext span::before { content: ""; width: 22px; height: 1px; background: var(--gold); flex: none; }
@media (min-width: 560px) { .hero__brand { gap: 1.3rem; } .hero__brand .hero__logo { width: 132px; height: 132px; } }
@media (min-width: 900px) { .hero__brand { gap: 1.6rem; margin-bottom: 1.8rem; } .hero__brand .hero__logo { width: 168px; height: 168px; } }
@media (max-width: 359px) { .hero__brand .hero__logo { width: 88px; height: 88px; } .hero__brandtext span { letter-spacing: .2em; } }

/* v13 — Barra superior sin nombre de marca: menú centrado y carrito a la derecha */
.header__inner { justify-content: flex-end; }
@media (min-width: 900px) { .header .nav { margin-inline: auto; padding-left: 88px; } }

/* v14 — Categoría sin modelos todavía (ej. Acrílicos) */
.empty {
  grid-column: 1 / -1; display: flex; flex-direction: column; align-items: center; gap: .7rem;
  padding: 2.8rem 1.25rem; text-align: center; color: var(--muted);
  border: 1px dashed var(--gold-line); border-radius: var(--radius); background: var(--surface);
}
.empty strong { color: var(--text); font-size: 1.02rem; }
.empty .btn { margin-top: .5rem; }

/* v15 — Ficha técnica (altura, base, peso, material, terminación) */
.vitrina__specs {
  display: grid; grid-template-columns: 1fr 1fr; gap: 1px; margin: .2rem 0;
  border: 1px solid var(--line-2); border-radius: 12px; overflow: hidden; background: var(--line-2);
}
.vitrina__specs div { display: flex; flex-direction: column; gap: .1rem; padding: .6rem .8rem; background: var(--surface); }
.vitrina__specs div:last-child:nth-child(odd) { grid-column: 1 / -1; }
.vitrina__specs dt { font-size: .64rem; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; color: var(--gold); }
.vitrina__specs dd { font-size: .9rem; font-weight: 600; color: var(--text); }
.card__specs { margin: -.5rem 0 .8rem; font-size: .76rem; font-weight: 600; color: var(--muted); font-variant-numeric: tabular-nums; }
.vitrina__specs-note { grid-column: 1 / -1; padding: .4rem .8rem; background: var(--surface); font-size: .66rem; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.vitrina__specs div:nth-last-child(2):nth-child(odd) { grid-column: 1 / -1; }

/* v16 — Vitrina: la columna de info se desplaza si no entra (pantallas bajas) */
@media (min-width: 860px) {
  .vitrina__panel {
    height: min(720px, calc(100dvh - 4rem));
    grid-template-rows: minmax(0, 1fr);
  }
  .vitrina__stage { height: 100%; min-height: 0; }
  .vitrina__info {
    min-height: 0; overflow-y: auto; overscroll-behavior: contain;
    justify-content: flex-start;           /* centrado "seguro": nunca corta el principio */
    scrollbar-width: thin; scrollbar-color: rgba(212, 175, 55, .45) transparent;
  }
  .vitrina__info > * { flex-shrink: 0; }   /* nada se aplasta: si no entra, se desplaza */
  .vitrina__info > :first-child { margin-top: auto; }
  .vitrina__info > :last-child  { margin-bottom: auto; }
  .vitrina__info::-webkit-scrollbar { width: 6px; }
  .vitrina__info::-webkit-scrollbar-thumb { background: rgba(212, 175, 55, .45); border-radius: 6px; }
}
/* Celular: el panel completo se desplaza; deja aire para el botón final */
@media (max-width: 859px) {
  .vitrina__panel { scrollbar-width: thin; }
  .vitrina__info { padding-bottom: 1.8rem; }
}
