@import url("https://fonts.googleapis.com/css2?family=Cinzel:wght@400;500;600;700&family=Cormorant+Garamond:ital,wght@0,300;0,400;0,500;0,600;0,700;1,400&family=Inter:wght@300;400;500;600;700&family=Lora:ital,wght@0,400;0,500;1,400&family=Orbitron:wght@400;700&display=swap");

* {
  box-sizing: border-box;
}

:root {
  --bg: #0a0a0a;
  --bg-card: #1a1a1a;
  --bg-card-alt: #1f1f1f;
  --text: #f5f0e6;
  --muted: #b2a38d;
  --border: rgba(207, 172, 107, 0.22);
  --accent: #cfac6b;
  --accent-light: #efd9a2;
  --accent-dark: #a8844a;
  --success: #25d366;
  --success-dark: #1faa52;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.65);
  --radius: 18px;
  --container: 1280px;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Cinzel", "Georgia", "Times New Roman", serif;
  color: var(--text);
  background: radial-gradient(ellipse at 50% 0%, #1c1c1c 0%, #0d0d0d 55%, #070707 100%);
  -webkit-overflow-scrolling: touch;
}

::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #070707; }
::-webkit-scrollbar-thumb { background: rgba(207, 172, 107, 0.35); border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: rgba(207, 172, 107, 0.55); }

.container {
  width: min(calc(100% - 32px), var(--container));
  margin: 0 auto;
}

/* Global transitions */
a,
button,
input,
.coin-card,
.coin-image,
.coin-title,
.coin-meta,
.coin-grade-badge,
.coin-price,
.detail-main-image-wrap,
.detail-main-image,
.detail-thumb,
.detail-whatsapp,
.back-link,
.cat-btn,
.sub-filter-btn,
.card-arrow,
.card-dot,
.search-clear,
.reset-link,
.img-preview-overlay,
.img-preview-img {
  transition:
    transform 0.22s ease,
    opacity 0.22s ease,
    border-color 0.22s ease,
    box-shadow 0.22s ease,
    background 0.22s ease,
    color 0.22s ease,
    filter 0.22s ease;
}

/* ─── Header ─────────────────────────────────────────────────────────────── */

.site-header {
  position: relative;
  background: linear-gradient(180deg, #141414 0%, #0a0a0a 100%);
  border-bottom: 1px solid rgba(207, 172, 107, 0.18);
  padding: 55px 0 36px;
  text-align: center;
  overflow: hidden;
}

.site-header::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse at 50% -10%, rgba(207, 172, 107, 0.12) 0%, transparent 65%);
  pointer-events: none;
}

.site-header::after {
  content: "";
  position: absolute;
  top: 10px; left: 10px; right: 10px; bottom: 10px;
  border-top: 1px solid rgba(207, 172, 107, 0.14);
  border-bottom: 1px solid rgba(207, 172, 107, 0.14);
  pointer-events: none;
}

.site-header .container {
  position: relative;
  z-index: 1;
}

.site-logo-link,
.site-logo-link:visited,
.site-logo-link:hover,
.site-logo-link:active,
.site-logo-link:focus {
  display: block;
  text-decoration: none;
  color: inherit;
  outline: none;
}

.site-header h1 {
  margin: 0 0 18px;
  font-size: clamp(2.97rem, 6.6vw, 5.72rem);
  letter-spacing: 0.2em;
  font-weight: 600;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 48%, #a8844a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.subtitle {
  margin: 0;
  color: rgba(239, 217, 162, 0.75);
  font-size: 0.78rem;
  letter-spacing: 0.36em;
  text-transform: uppercase;
  font-family: "Cinzel", serif;
  font-weight: 400;
}

/* ─── Ticker banner ──────────────────────────────────────────────────────── */

.ticker-bar {
  background: #030303;
  overflow: hidden;
  white-space: nowrap;
  border-bottom: 1px solid rgba(207, 172, 107, 0.2);
  padding: 9px 0;
  position: relative;
}

.ticker-track {
  display: inline-flex;
  will-change: transform;
  animation: ticker-scroll 12.6s linear infinite;
}

.ticker-text {
  display: inline-block;
  padding-right: 80px;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  text-shadow:
    0 0 8px rgba(207, 172, 107, 0.5),
    0 0 22px rgba(207, 172, 107, 0.25);
}

@keyframes ticker-scroll {
  0%   { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

/* ─── Category bar: full-width strip ─────────────────────────────────────── */

.category-bar {
  background: rgba(10, 10, 10, 0.95);
  border-bottom: 1px solid rgba(207, 172, 107, 0.12);
}

.category-nav {
  display: flex;
  gap: 14px;
  padding: 14px 0;
  align-items: stretch;
}

.cat-btn {
  flex: 1;
  min-width: 0;
  border: 1px solid rgba(207, 172, 107, 0.25);
  border-radius: 999px;
  padding: 10px 10px;
  background: rgba(207, 172, 107, 0.04);
  color: rgba(207, 172, 107, 0.65);
  font-family: "Cinzel", serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  line-height: 1.25;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cat-btn:hover {
  border-color: rgba(207, 172, 107, 0.55);
  color: var(--accent-light);
  background: rgba(207, 172, 107, 0.08);
  transform: translateY(-1px);
  box-shadow: 0 4px 16px rgba(207, 172, 107, 0.1);
}

.cat-btn.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 50%, #a8844a 100%);
  color: #1a1000;
  font-weight: 700;
  box-shadow:
    0 0 20px rgba(207, 172, 107, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cat-btn.is-active:hover {
  transform: none;
  filter: brightness(1.06);
}

/* ─── Sub-filter bar (contextual dropdown) ───────────────────────────────── */

.sub-filter-bar {
  overflow: hidden;
  max-height: 0;
  opacity: 0;
  border-top: 1px solid transparent;
  transition:
    max-height 0.38s cubic-bezier(0.4, 0, 0.2, 1),
    opacity 0.3s ease,
    border-top-color 0.38s ease;
}

.sub-filter-bar.is-open {
  max-height: 100px;
  opacity: 1;
  border-top-color: rgba(207, 172, 107, 0.08);
}

.sub-filter-list {
  display: flex;
  gap: 8px;
  padding: 11px 0 13px;
  flex-wrap: nowrap;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}

.sub-filter-list::-webkit-scrollbar {
  display: none;
}

.sub-filter-btn {
  flex-shrink: 0;
  padding: 5px 18px;
  border: 1px solid rgba(207, 172, 107, 0.22);
  border-radius: 999px;
  background: transparent;
  color: rgba(239, 217, 162, 0.6);
  font-family: "Cinzel", serif;
  font-size: 0.66rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  cursor: pointer;
  white-space: nowrap;
  line-height: 1.4;
}

.sub-filter-btn:hover {
  border-color: rgba(207, 172, 107, 0.55);
  color: var(--accent-light);
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(207, 172, 107, 0.08);
  background: rgba(207, 172, 107, 0.06);
}

.sub-filter-btn.is-active {
  border-color: var(--accent);
  background: linear-gradient(135deg, rgba(239, 217, 162, 0.18), rgba(207, 172, 107, 0.1));
  color: var(--accent-light);
  box-shadow:
    0 0 14px rgba(207, 172, 107, 0.12),
    inset 0 1px 0 rgba(207, 172, 107, 0.15);
}

/* ─── Sub-filter: "Pureza de la plata" static label ─────────────────────── */

.sub-filter-purity-label {
  display: flex;
  align-items: center;
  flex-shrink: 0;
  padding: 0 14px 0 2px;
  margin-right: 4px;
  border-right: 1px solid rgba(207, 172, 107, 0.25);
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--accent);
  white-space: nowrap;
  pointer-events: none;
  user-select: none;
}

/* ─── Centered search bar ────────────────────────────────────────────────── */

.search-outer {
  display: flex;
  flex-direction: row;
  align-items: center;
  padding: 22px 24px 14px;
  gap: 12px;
}

.search-wrap {
  position: relative;
  flex: 2 1 0%;
  min-width: 0;
  display: flex;
  align-items: center;
}

.search-icon {
  position: absolute;
  left: 18px;
  width: 15px;
  height: 15px;
  color: rgba(178, 163, 141, 0.45);
  pointer-events: none;
  flex-shrink: 0;
  z-index: 1;
}

#searchInput {
  width: 100%;
  padding: 13px 44px 13px 42px;
  background: rgba(18, 18, 18, 0.98);
  border: 1px solid rgba(207, 172, 107, 0.22);
  border-radius: 999px;
  color: var(--accent-light);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.08em;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.02);
  appearance: none;
}

#searchInput::placeholder {
  color: rgba(207, 172, 107, 0.35);
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
}

#searchInput:hover {
  border-color: rgba(207, 172, 107, 0.4);
}

#searchInput:focus {
  outline: none;
  border-color: rgba(207, 172, 107, 0.6);
  background: rgba(22, 22, 22, 0.99);
  box-shadow:
    0 0 0 3px rgba(207, 172, 107, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.03);
}

.search-clear {
  position: absolute;
  right: 14px;
  top: 50%;
  transform: translateY(-50%);
  background: none;
  border: none;
  color: rgba(178, 163, 141, 0.45);
  cursor: pointer;
  padding: 5px;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
  border-radius: 50%;
}

.search-clear.is-visible {
  opacity: 1;
  pointer-events: auto;
}

.search-clear:hover {
  color: var(--accent);
  background: rgba(201, 162, 85, 0.08);
  transform: translateY(-50%) scale(1.1);
}

.search-clear svg {
  width: 14px;
  height: 14px;
  display: block;
}

.reset-link {
  flex: 1 0 0%;
  min-width: 0;
  background: transparent;
  border: 1px solid var(--accent);
  border-radius: 999px;
  color: var(--accent);
  cursor: pointer;
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  padding: 13px 10px;
  text-align: center;
  display: flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  transition: background 0.22s ease, color 0.22s ease;
}

.reset-link:hover {
  background: var(--accent);
  color: #1a1000;
}

/* ─── Base input/button reset ────────────────────────────────────────────── */

input,
button {
  font: inherit;
}

/* ─── Results bar ────────────────────────────────────────────────────────── */

.results-bar {
  display: none;
}

#resultsCount {
  margin: 0;
  color: rgba(207, 172, 107, 0.48);
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

/* ─── Coins grid ─────────────────────────────────────────────────────────── */

.coins-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 22px;
  padding-bottom: 50px;
  position: relative;
  z-index: 1;
}

/* ─── Coin card ──────────────────────────────────────────────────────────── */

.coin-card {
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, #1e1e1e 0%, #181818 100%);
  border: 1px solid rgba(207, 172, 107, 0.15);
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  cursor: pointer;
  will-change: transform;
  /* Saltea layout/paint de las tarjetas fuera del viewport → scroll más fluido
     con cientos de monedas. El navegador recuerda el tamaño real tras el primer
     render; 340px es solo la estimación inicial para no romper la barra de scroll. */
  content-visibility: auto;
  contain-intrinsic-size: auto 340px;
}

.coin-card::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  pointer-events: none;
  box-shadow: inset 0 0 0 1px rgba(201, 162, 85, 0);
  transition: box-shadow 0.22s ease;
}

.coin-card:hover:not(.is-zoomed) {
  transform: translateY(-6px);
  border-color: rgba(207, 172, 107, 0.42);
  box-shadow:
    0 24px 50px rgba(0, 0, 0, 0.7),
    0 0 28px rgba(207, 172, 107, 0.08);
}

.coin-card:hover:not(.is-zoomed)::after {
  box-shadow: inset 0 0 0 1px rgba(207, 172, 107, 0.12);
}

/* ─── Hover zoom ─────────────────────────────────────────────────────────── */

.coin-card.is-zoomed {
  z-index: 50;
  border-color: rgba(207, 172, 107, 0.5);
  box-shadow:
    0 0 0 1px rgba(207, 172, 107, 0.18),
    0 24px 48px rgba(0, 0, 0, 0.7);
}

/* ─── Coin image wrap ────────────────────────────────────────────────────── */

.coin-image-wrap {
  position: relative;
  aspect-ratio: 1 / 1;
  background: #141414;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  border-bottom: 1px solid rgba(207, 172, 107, 0.1);
}

.coin-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #141414;
  display: block;
}

.coin-card:hover:not(.is-zoomed) .coin-image {
  transform: scale(1.025);
  filter: brightness(1.03);
}

/* ─── Carousel arrows ────────────────────────────────────────────────────── */

.card-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 4;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(207, 172, 107, 0.38);
  border-radius: 50%;
  background: rgba(10, 10, 10, 0.78);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  color: var(--accent);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  pointer-events: none;
}

.card-arrow svg {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
}

.card-arrow--prev { left: 7px; }
.card-arrow--next { right: 7px; }

.coin-card:hover .card-arrow {
  opacity: 1;
  pointer-events: auto;
}

.card-arrow:hover {
  background: rgba(207, 172, 107, 0.88);
  border-color: var(--accent);
  color: #1a1000;
  transform: translateY(-50%) scale(1.1);
}

/* ─── Carousel dots ──────────────────────────────────────────────────────── */

.card-dots {
  position: absolute;
  bottom: 7px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 5px;
  z-index: 4;
  opacity: 0;
  pointer-events: none;
}

.coin-card:hover .card-dots { opacity: 1; }

.card-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.35);
}

.card-dot.is-active {
  background: var(--accent);
  transform: scale(1.3);
}

/* ─── Coin content ───────────────────────────────────────────────────────── */

.coin-content {
  padding: 18px 18px 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.coin-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  width: 100%;
  min-width: 0;
}

.coin-year-tag {
  display: none;
}

.coin-title {
  margin: 0;
  width: 100%;
  text-align: center;
  font-size: 1.22rem;
  line-height: 1.15;
  color: var(--text);
  font-weight: 600;
  font-family: "Cinzel", serif;
  letter-spacing: 0.05em;
}

.coin-card:hover:not(.is-zoomed) .coin-title {
  color: var(--accent-light);
  transform: translateY(-1px);
}

/* Texto extra del título (calificativos como "FALSA", "cuproníquel",
   "(Descentrada)") — en el dorado de acentos ya existente. */
.coin-title-extra,
.detail-title .coin-title-extra {
  color: var(--accent);
}

.coin-status,
.whatsapp-button {
  display: none;
}

.coin-meta,
.coin-description {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
  font-size: 0.95rem;
}

.coin-meta {
  text-align: center;
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 0.82rem;
  letter-spacing: 0.07em;
  min-width: 0;
}

.coin-card:hover:not(.is-zoomed) .coin-meta {
  color: #c9b89e;
}

.coin-description {
  text-align: center;
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.04em;
}

.coin-badge-row {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-width: max-content;
  margin: 0;
}

.coin-grade-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 44px;
  padding: 5px 12px;
  border-radius: 999px;
  border: 1px solid rgba(207, 172, 107, 0.3);
  background: linear-gradient(180deg, rgba(207, 172, 107, 0.1) 0%, rgba(207, 172, 107, 0.04) 100%);
  color: var(--accent);
  font-family: "Cinzel", serif;
  font-size: 0.56rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  white-space: nowrap;
}

.coin-grade-badge.coin-stock-badge {
  border-color: rgba(37, 211, 102, 0.4);
  background: linear-gradient(180deg, rgba(37, 211, 102, 0.15) 0%, rgba(37, 211, 102, 0.05) 100%);
  color: var(--success);
}


.coin-card:hover:not(.is-zoomed) .coin-grade-badge {
  transform: scale(1.05);
  border-color: rgba(207, 172, 107, 0.5);
  box-shadow:
    0 8px 18px rgba(0, 0, 0, 0.3),
    0 0 12px rgba(207, 172, 107, 0.1);
}

.coin-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.coin-card.is-group .coin-footer {
  justify-content: center;
}

.coin-card.is-group .coin-badge-row {
  width: 100%;
  display: flex;
  justify-content: center;
}

.coin-price {
  display: block;
  font-size: 1.2rem;
  font-weight: 600;
  font-family: "Cinzel", serif;
  letter-spacing: 0.04em;
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 55%, #a8844a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.coin-card:hover:not(.is-zoomed) .coin-price {
  transform: scale(1.02);
  filter: brightness(1.08);
}

.price-original {
  display: block;
  text-decoration: line-through;
  text-decoration-color: #c0392b;
  font-size: 0.85em;
  color: #c0392b;
  margin-bottom: 2px;
}

.price-current {
  display: block;
}

/* ─── Sold state ─────────────────────────────────────────────────────────── */

.coin-card.is-sold {
  filter: grayscale(88%) brightness(0.82);
  border-color: rgba(120, 100, 80, 0.15);
  cursor: default;
}

.coin-card.is-sold:hover:not(.is-zoomed) {
  transform: none;
  border-color: rgba(120, 100, 80, 0.15);
  box-shadow: var(--shadow);
}

.sold-ribbon {
  position: absolute;
  top: 22px;
  right: -40px;
  width: 158px;
  padding: 7px 0;
  background: rgba(10, 7, 3, 0.94);
  color: var(--accent);
  font-family: "Cinzel", serif;
  font-size: 0.6rem;
  font-weight: 700;
  letter-spacing: 0.30em;
  text-align: center;
  text-indent: 0.30em;
  transform: rotate(45deg);
  transform-origin: center;
  z-index: 10;
  pointer-events: none;
  border-top: 1px solid rgba(207, 172, 107, 0.45);
  border-bottom: 1px solid rgba(207, 172, 107, 0.45);
  box-shadow: 0 2px 14px rgba(0, 0, 0, 0.7);
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.6);
}

.coin-price.is-sold-price {
  background: none !important;
  -webkit-background-clip: unset !important;
  -webkit-text-fill-color: var(--muted) !important;
  background-clip: unset !important;
  color: var(--muted) !important;
  font-size: 0.82rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.7;
}

/* ─── Empty state ────────────────────────────────────────────────────────── */

.empty-state {
  grid-column: 1 / -1;
  background: linear-gradient(180deg, #191919 0%, #141414 100%);
  border: 1px dashed rgba(207, 172, 107, 0.18);
  border-radius: var(--radius);
  padding: 30px;
  text-align: center;
  color: rgba(207, 172, 107, 0.5);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  letter-spacing: 0.12em;
}

/* ─── Detail page ────────────────────────────────────────────────────────── */

.detail-page {
  padding: 18px 0 42px;
}

.back-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 16px;
  color: rgba(207, 172, 107, 0.6);
  text-decoration: none;
  font-family: "Cinzel", serif;
  font-size: 0.62rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  border: 1px solid rgba(207, 172, 107, 0.2);
  border-radius: 999px;
  padding: 8px 18px;
}

.back-link:hover {
  color: var(--accent);
  border-color: rgba(207, 172, 107, 0.5);
  background: rgba(207, 172, 107, 0.06);
  transform: translateX(-2px);
}

.detail-layout {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

/* ROW 2: main photo (50%) + description panel (50%), side by side */
.detail-row {
  display: flex;
  gap: 28px;
  align-items: flex-start;
}

.detail-row > .detail-gallery,
.detail-row > .detail-info {
  flex: 1 1 0;
  min-width: 0;
}

.detail-gallery {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.detail-main-image-wrap {
  display: flex;
  justify-content: center;
  transform: none;
  background: linear-gradient(180deg, #181818 0%, #121212 100%);
  border: 1px solid rgba(207, 172, 107, 0.18);
  border-radius: 22px;
  padding: 6px;
  box-shadow: var(--shadow);
}

.detail-main-image-wrap:hover {
  border-color: rgba(207, 172, 107, 0.38);
  box-shadow:
    0 24px 48px rgba(0, 0, 0, 0.7),
    0 0 22px rgba(207, 172, 107, 0.07);
}

.detail-main-image {
  width: 100%;
  max-width: 100%;
  aspect-ratio: 1 / 1;
  object-fit: contain;
  display: block;
  border-radius: 12px;
  background: #121212;
  max-height: 450px;
}

.detail-main-image-wrap:hover .detail-main-image {
  transform: scale(1.01);
}

.detail-thumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding-left: 14px;
}

.detail-thumb {
  width: 72px;
  height: 72px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(207, 172, 107, 0.2);
  background: #141414;
  padding: 0;
  cursor: pointer;
}

.detail-thumb:hover,
.detail-thumb.is-active {
  transform: translateY(-3px) scale(1.03);
  border-color: rgba(207, 172, 107, 0.6);
  box-shadow:
    0 10px 18px rgba(0, 0, 0, 0.35),
    0 0 10px rgba(207, 172, 107, 0.08);
}

.detail-thumb img,
.detail-thumb video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.detail-info {
  padding-top: 6px;
}

.detail-country {
  margin: 0 0 10px;
  color: rgba(207, 172, 107, 0.55);
  font-family: "Cinzel", serif;
  font-weight: 400;
  font-size: 0.68rem;
  letter-spacing: 0.3em;
  text-transform: uppercase;
  text-align: center;
}

.detail-title {
  margin: 0 0 14px;
  color: var(--text);
  font-size: clamp(1.9rem, 3.4vw, 2.8rem);
  line-height: 1.02;
  font-family: "Cinzel", serif;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-align: center;
}

.detail-divider {
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(207, 172, 107, 0.3), transparent);
  margin: 0 0 18px;
}

.detail-specs {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 18px;
  align-items: center;
}

.detail-spec-row {
  display: flex;
  justify-content: center;
  align-items: baseline;
  gap: 6px 10px;
  flex-wrap: wrap;
  width: 100%;
}

.detail-spec-label {
  color: rgba(207, 172, 107, 0.55);
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  white-space: nowrap;
}

.detail-spec-value {
  color: var(--text);
  font-family: "Cinzel", serif;
  font-size: 0.86rem;
  line-height: 1.35;
  white-space: nowrap;
  letter-spacing: 0.04em;
}

.detail-price {
  margin: 0 0 16px;
  color: var(--accent);
  font-size: clamp(1.7rem, 2.9vw, 2.38rem);
  line-height: 1;
  font-weight: 600;
  font-family: "Cinzel", serif;
  letter-spacing: 0.06em;
  text-align: center;
  background: linear-gradient(135deg, #efd9a2 20%, #cfac6b 60%, #a8844a 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.detail-info:hover .detail-price {
  transform: translateY(-1px);
  filter: brightness(1.08);
}

.detail-description {
  margin: 0 0 18px;
  color: rgba(245, 240, 230, 0.82);
  font-family: "Lora", Georgia, serif;
  font-size: 0.96rem;
  line-height: 1.68;
  text-align: center;
}

.detail-whatsapp {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 52px;
  padding: 12px 20px;
  border-radius: 14px;
  text-decoration: none;
  border: none;
  background: linear-gradient(180deg, var(--success) 0%, var(--success-dark) 100%);
  color: white;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.1em;
}

.detail-whatsapp:hover {
  transform: translateY(-2px) scale(1.01);
  filter: brightness(1.05);
  box-shadow: 0 16px 28px rgba(37, 211, 102, 0.18);
}

.detail-share {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  width: 100%;
  min-height: 48px;
  margin-top: 10px;
  padding: 12px 20px;
  border-radius: 14px;
  border: 1px solid rgba(207, 172, 107, 0.5);
  background: transparent;
  color: var(--gold, #cfac6b);
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  cursor: pointer;
}

.detail-share:hover {
  background: rgba(207, 172, 107, 0.1);
}

.detail-loading,
.detail-error {
  padding: 30px 0;
  color: rgba(207, 172, 107, 0.45);
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

/* ─── Image preview overlay (hover zoom) ────────────────────────────────── */

.img-preview-overlay {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(5, 5, 5, 0.65);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.35s ease;
}

.img-preview-overlay.is-visible {
  opacity: 1;
}

.img-preview-img {
  width: min(55vmin, 500px);
  height: min(55vmin, 500px);
  object-fit: contain;
  background: #141414;
  border: 1px solid rgba(207, 172, 107, 0.35);
  border-radius: 20px;
  box-shadow:
    0 50px 100px rgba(0, 0, 0, 0.9),
    0 0 50px rgba(207, 172, 107, 0.1);
  padding: 12px;
  transform: scale(0.9);
  transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.img-preview-overlay.is-visible .img-preview-img {
  transform: scale(1);
}

/* ─── Sub-filter: Argentina item wrapper (button + external date) ────────── */

.sub-filter-item {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  flex-shrink: 0;
  gap: 4px;
}

.sub-filter-item-sub {
  display: block;
  width: 100%;
  text-align: center;
  font-size: 0.72em;
  color: var(--accent);
  font-weight: 400;
  font-family: "Cinzel", serif;
  letter-spacing: 0.08em;
  opacity: 0.78;
  line-height: 1;
  white-space: nowrap;
}

/* ─── Sub-filter: Internacional vertical list ────────────────────────────── */

.sub-filter-bar.is-open.sub-filter-bar--vertical {
  max-height: 240px;
}

.sub-filter-list--vertical {
  flex-direction: column;
  flex-wrap: nowrap;
  max-height: 200px;
  overflow-y: auto;
  overflow-x: hidden;
  scrollbar-width: thin;
  scrollbar-color: rgba(201, 162, 85, 0.3) transparent;
}

.sub-filter-list--vertical::-webkit-scrollbar {
  width: 3px;
}

.sub-filter-list--vertical::-webkit-scrollbar-thumb {
  background: rgba(207, 172, 107, 0.32);
  border-radius: 2px;
}

.sub-filter-btn--vertical {
  border-radius: 8px;
  width: 100%;
  text-align: left;
  justify-content: flex-start;
}

.sub-filter-btn--row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  text-align: left;
}

.sub-filter-btn-date {
  color: var(--accent);
  font-weight: 400;
  font-family: "Cinzel", serif;
  font-size: 0.88em;
  letter-spacing: 0.08em;
  opacity: 0.8;
  flex-shrink: 0;
  white-space: nowrap;
}

/* ─── Placeholder section ────────────────────────────────────────────────── */

.placeholder-section {
  padding: 58px 0 70px;
  border-top: 1px solid rgba(207, 172, 107, 0.1);
  background: rgba(207, 172, 107, 0.01);
}

.placeholder-header {
  text-align: center;
  margin-bottom: 36px;
}

.placeholder-title {
  margin: 0 0 10px;
  font-family: "Cinzel", serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--accent);
}

.placeholder-subtitle {
  margin: 0;
  color: rgba(207, 172, 107, 0.45);
  font-family: "Cinzel", serif;
  font-size: 0.68rem;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  opacity: 0.9;
}

.placeholder-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}

.placeholder-card {
  background: rgba(207, 172, 107, 0.02);
  border: 1px dashed rgba(207, 172, 107, 0.16);
  border-radius: var(--radius);
  min-height: 220px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(207, 172, 107, 0.22);
  font-family: "Cinzel", serif;
  font-size: 0.64rem;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.placeholder-card::before {
  content: "Próximamente";
}

@media (max-width: 980px) {
  .placeholder-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 640px) {
  .placeholder-grid {
    grid-template-columns: 1fr;
  }
  .placeholder-section {
    padding: 40px 0 50px;
  }
}

/* ─── Reveal animation ───────────────────────────────────────────────────── */

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ─── Responsive: Tablet ─────────────────────────────────────────────────── */

@media (max-width: 980px) {
  .site-header {
    padding: 44px 0 29px;
  }

  .category-nav {
    overflow-x: auto;
    overflow-y: visible;
    scrollbar-width: none;
    -ms-overflow-style: none;
    gap: 10px;
  }

  .category-nav::-webkit-scrollbar {
    display: none;
  }

  .cat-btn {
    flex: 0 0 auto;
    font-size: 0.672rem;       /* 0.88rem × 0.80 × 0.80 × 1.20 */
    white-space: nowrap;
  }

  .cat-br {
    display: none;
  }

  .sub-filter-bar.is-open {
    max-height: 120px;
  }

  .coins-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .detail-row {
    gap: 40px;
  }

  .detail-gallery {
    margin-left: 24px;
    margin-right: 8px;
  }

  .detail-info {
    padding-top: 0;
  }

  .detail-main-image-wrap,
  .detail-thumbs {
    width: 100%;
  }
}

/* ─── Responsive: Mobile ─────────────────────────────────────────────────── */

@media (max-width: 640px) {
  /* ── Item 2: reduce vertical space del header −20% ── */
  .site-header {
    padding: 26px 0 18px;
  }

  /* ── Item 2: monograma – solo reducir margen, no el ícono ── */
  .np-monogram {
    margin-bottom: 11px;
  }

  /* ── Item 1: título completo visible + Item 2: menos margen ── */
  .site-header h1 {
    font-size: clamp(1.4rem, 7vw, 2rem); /* escala con pantalla → NUMISMÁTICA cabe */
    letter-spacing: 0.06em;              /* reducido de 0.12em para evitar overflow */
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0;
    line-height: 1.05;
    margin-bottom: 11px;                 /* −20% de 14px */
  }

  .h1-numismatica {
    display: block;
    font-size: 0.9em;
    opacity: 1;                          /* quitamos la transparencia que oscurecía */
  }

  .h1-popper {
    display: block;
    font-size: 1.2em;
  }

  .subtitle {
    letter-spacing: 0.18em;
    font-size: 0.82rem;
  }

  .category-nav {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    grid-auto-rows: 3rem;
    align-items: stretch;
    overflow: visible;
    gap: 8px;
    padding: 12px 0;
  }

  .cat-btn {
    font-size: 0.770rem;       /* 0.856rem × 0.90 — 10% mobile grid reduction */
    padding: 6px 4px;
    white-space: normal;
    letter-spacing: 0.04em;
    height: 100%;
  }

  .cat-br {
    display: block;
  }

  .sub-filter-btn {
    font-size: 0.968rem;       /* 0.842rem × 1.15 mobile boost */
  }

  .sub-filter-bar.is-open {
    max-height: 130px;
  }

  .search-outer {
    padding: 12px 16px 8px;
    gap: 8px;
  }

  .coins-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .coin-card.reveal,
  .results-bar.reveal {
    opacity: 1;
    transform: none;
  }

  /* ── Card: compact inline layout ── */
  .coin-content {
    padding: 8px 10px 10px;
    gap: 5px;
  }

  /* Title row: block layout forces h2 to fill 100% width without flex math */
  .coin-top {
    display: block;
    width: 100%;
  }

  .coin-title {
    display: block;
    width: 100%;
    box-sizing: border-box;
    /* 0.82rem × 1.2 = 0.984rem max; vw middle scales with card width → auto-shrinks long titles */
    font-size: clamp(0.55rem, 3.5vw, 0.984rem);
    text-align: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .sub-filter-btn-date {
    font-size: 1.162em; /* 1.01em × 1.15 — mobile only */
  }

  .coin-year-tag {
    display: none;
  }

  .coin-meta {
    font-size: clamp(0.754rem, 3.38vw, 1.235rem); /* 0.58→0.754 / 2.6vw→3.38vw / 0.95→1.235 × 1.3 */
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    text-align: center;
    width: 100%;
    line-height: 1.2;
  }

  /* Price/grade row: natural flex, no fixed columns, both items on same line */
  .coin-footer {
    display: flex;
    flex-direction: row;
    align-items: center;
    width: 100%;
    gap: 6px;
  }

  .coin-price {
    flex: 1 1 auto;
    min-width: 0;
    display: block;
    /* clamp(0.82rem, 3vw, 1.1rem) × 1.2 */
    font-size: clamp(0.984rem, 3.6vw, 1.32rem);
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .coin-badge-row {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
  }

  .coin-grade-badge {
    font-size: 0.78rem; /* 0.65rem × 1.2 */
  }

  .card-arrow {
    width: 34px;
    height: 34px;
    opacity: 0.75;
    pointer-events: auto;
  }

  .detail-page {
    padding: 14px 0 34px;
  }

  .detail-layout {
    gap: 22px;
  }

  .detail-row {
    flex-direction: column;
    gap: 22px;
  }

  .detail-gallery {
    display: flex;
    flex-direction: column;
    gap: 14px;
    margin: 0;
    width: 100%;
    order: 1;
  }

  .detail-info {
    width: 100%;
    order: 2;
  }

  .detail-main-image-wrap {
    width: 100%;
    padding: 12px;
    transform: none;
    margin: 0;
  }

  .detail-main-image {
    width: 100%;
    max-width: 100%;
    max-height: none;
    aspect-ratio: 1 / 1;
    object-fit: contain;
  }

  .detail-thumbs {
    width: 100%;
    padding-left: 0;
    justify-content: flex-start;
  }

  .detail-thumb {
    width: 60px;
    height: 60px;
  }

  .detail-spec-row {
    gap: 4px 8px;
  }

  .detail-spec-label {
    font-size: 0.72rem;
    letter-spacing: 0.06em;
  }

  .detail-country {
    letter-spacing: 0.16em;
  }

  .detail-title {
    font-size: clamp(1.8rem, 8vw, 2.3rem);
  }

  .detail-price {
    font-size: clamp(1.62rem, 6.8vw, 2.04rem);
  }

  /* ── Variantes: fila horizontal compacta (2–3 tarjetas visibles) ── */
  .variants-list {
    gap: 0.6rem;
  }

  .variants-list .variant-thumb {
    width: 118px;
    padding: 0.55rem;
  }

  .variants-list .variant-thumb img {
    width: 92px;
    height: 92px;
  }

  .scroll-hint {
    font-size: 0.74rem;
    margin: 0.6rem 0;
  }

  /* ── Item 3: +20% font-size + fix layout 2 columnas ── */

  /* 1. Sin scroll horizontal en toda la página */
  html, body {
    overflow-x: hidden;
    max-width: 100vw;
  }

  /* 2. Grid 2 columnas → 3 filas de 2 recuadros */
  .landing-nav {
    grid-template-columns: repeat(2, 1fr);
    gap: 0.4rem;
    padding: 0 0.4rem;
  }

  /* 3. Botones: igual ancho, misma altura, sin guiones */
  .landing-btn {
    width: 100%;
    aspect-ratio: auto;
    height: 5.5rem;
    padding: 10px 0.5rem;
    box-sizing: border-box;
    white-space: normal;
    overflow-wrap: normal;
    word-break: normal;
  }

  /* 4. Font-size de las 6 categorías */
  .landing-btn:not(.landing-btn--all) {
    font-size: 0.78rem;
    letter-spacing: 0.03em;
  }

  /* 5. "Ver todas" sigue en fila completa, sin altura forzada */
  .landing-btn--all {
    height: auto;
    min-height: auto;
    padding: 1rem 1.4rem;
    aspect-ratio: auto;
  }
}

/* ─── Desktop: section & subsection title size boost ────────────────────── */

@media (min-width: 981px) {
  .cat-btn {
    font-size: 0.874rem; /* 0.76rem × 1.15 */
    white-space: nowrap;
  }

  .sub-filter-btn {
    font-size: 0.76rem;
  }

  .sub-filter-purity-label {
    font-size: 0.68rem;
  }

  /* ── 1. Título principal −30% en desktop ── */
  .site-header h1 {
    font-size: clamp(2.08rem, 4.62vw, 4rem); /* clamp original × 0.70 */
  }

  /* ── 2 & 3. Landing: 6 recuadros en una sola fila ── */
  .landing-inner {
    width: min(100%, 1140px); /* expandir contenedor para ocupar el ancho */
  }

  .landing-nav {
    grid-template-columns: repeat(6, 1fr); /* una fila de 6 columnas */
    gap: 1rem;
  }

  /* "Ver todas" ya tiene grid-column:1/-1 → ocupa los 6 slots */

  /* ── 2. Font-size +50% en los 6 recuadros de categoría ── */
  .landing-btn:not(.landing-btn--all) {
    font-size: 1.425rem; /* 0.95rem × 1.50 */
    aspect-ratio: auto;  /* sin ratio forzado → altura definida por contenido */
    min-height: 7rem;    /* altura mínima elegante para todos los recuadros */
    padding: 1.25rem 0.75rem;
    box-sizing: border-box;
    overflow-wrap: break-word;
    word-break: break-word;
  }

  /* ── 3a. "¿Qué estás buscando?" +20% ── */
  .landing-heading {
    font-size: 0.936rem; /* 0.78rem × 1.20 */
  }

  /* ── 3b. Ticker: contenedor +10% y fuente +10% ── */
  .ticker-bar {
    padding: 9.9px 0; /* 9px × 1.10 */
  }

  .ticker-text {
    font-size: 0.792rem; /* 0.72rem × 1.10 */
  }

  /* ── 3c. Reducir espacio vertical entre ticker y heading ── */
  .landing-screen {
    align-items: flex-start; /* contenido arriba, sin centrado vertical */
    padding-top: 1.25rem;    /* mucho menos que el 2rem por defecto */
    min-height: auto;        /* quitar el alto mínimo que generaba el gap */
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  .ticker-track {
    animation: none !important;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
  }

  .reveal,
  .reveal.is-visible {
    opacity: 1 !important;
    transform: none !important;
  }

  .coin-card.is-zoomed {
    transition: none !important;
  }

  .sub-filter-bar,
  .sub-filter-bar.is-open {
    transition: none !important;
  }
}

/* ─── Mobile: ticker banner height −15% ──────────────────────────────────── */

@media (max-width: 640px) {
  .ticker-bar {
    padding: 7.65px 0;
  }

  .ticker-text {
    font-size: 0.62rem;
    letter-spacing: 0.16em;
  }
}

/* ─── Landing screen ─────────────────────────────────────────────────────── */

#catalog {
  display: none;
}

body[data-view="catalog"] #landing {
  display: none;
}

body[data-view="catalog"] #catalog {
  display: block;
}

.landing-screen {
  min-height: calc(100svh - 180px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 2rem 1rem 3rem;
}

.landing-inner {
  width: min(100%, 460px);
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.landing-heading {
  font-family: "Cinzel", serif;
  font-size: 0.78rem;
  font-weight: 400;
  color: rgba(207, 172, 107, 0.55);
  text-align: center;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

.landing-nav {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.65rem;
}

.landing-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  padding: 0.75rem;
  background: rgba(207, 172, 107, 0.04);
  border: 1px solid rgba(207, 172, 107, 0.22);
  border-radius: var(--radius);
  color: rgba(239, 217, 162, 0.82);
  font-family: "Cinzel", serif;
  font-size: 0.95rem;
  font-weight: 500;
  text-align: center;
  cursor: pointer;
  letter-spacing: 0.06em;
  line-height: 1.3;
}

.landing-btn:hover,
.landing-btn:focus-visible {
  background: rgba(207, 172, 107, 0.1);
  border-color: rgba(207, 172, 107, 0.5);
  color: var(--accent-light);
  box-shadow: 0 0 20px rgba(207, 172, 107, 0.08);
  outline: none;
}

.landing-btn:active {
  transform: scale(0.98);
}

.landing-btn--all {
  grid-column: 1 / -1;
  order: -1;
  aspect-ratio: auto;
  padding: 1rem 1.4rem;
  font-size: 1.32rem;
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 50%, #a8844a 100%);
  border-color: transparent;
  color: #1a1000;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.landing-btn--all:hover,
.landing-btn--all:focus-visible {
  filter: brightness(1.08);
  border-color: transparent;
  color: #1a1000;
  box-shadow: 0 8px 28px rgba(207, 172, 107, 0.28);
}

@media (max-width: 480px) {
  .landing-screen {
    min-height: calc(100svh - 160px);
    align-items: flex-start;
    padding-top: 1.5rem;
  }

  .landing-btn {
    font-size: 1rem;
    padding: 0.6rem;
  }

  .landing-btn--all {
    font-size: 1.56rem;
    padding: 0.9rem 1rem;
  }
}

/* ─── Desktop: landing layout adjustments ───────────────────────────────── */

@media (min-width: 481px) {
  /* 1. Bring content closer to the ticker (reduce top space) */
  .landing-screen {
    min-height: calc(100svh - 220px);
    align-items: flex-start;
    padding-top: 1.25rem;
  }

  /* 2. Widen the button grid so long labels fit on one line */
  .landing-inner {
    width: min(100%, 660px);
  }

  .landing-btn {
    aspect-ratio: auto;
    padding: 1.1rem 0.75rem;
    min-height: 80px;
    font-size: 1.15rem;
    white-space: nowrap;
  }
}

/* ─── Económicas: golden accent for cat-btn and landing-btn ─────────────── */

.cat-btn--economicas {
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 50%, #a8844a 100%);
  border-color: transparent;
  color: #1a1000;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.cat-btn--economicas:hover {
  filter: brightness(1.08);
  border-color: transparent;
  color: #1a1000;
  transform: none;
  box-shadow: 0 8px 28px rgba(207, 172, 107, 0.28);
}

.cat-btn--economicas.is-active {
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 50%, #a8844a 100%);
  border-color: transparent;
  color: #1a1000;
  font-weight: 700;
  box-shadow:
    0 0 20px rgba(207, 172, 107, 0.25),
    inset 0 1px 0 rgba(255, 255, 255, 0.2);
}

.cat-btn--economicas.is-active:hover {
  transform: none;
  filter: brightness(1.08);
}

.landing-btn--economicas {
  background: linear-gradient(135deg, #efd9a2 0%, #cfac6b 50%, #a8844a 100%);
  border-color: transparent;
  color: #1a1000;
  font-weight: 700;
  letter-spacing: 0.14em;
}

.landing-btn--economicas:hover,
.landing-btn--economicas:focus-visible {
  filter: brightness(1.08);
  border-color: transparent;
  color: #1a1000;
  outline: none;
  box-shadow: 0 8px 28px rgba(207, 172, 107, 0.28);
}

/* ─── Variant switcher (detail page) ────────────────────────────────────── */

.variants-section {
  margin-bottom: 0;
  padding-bottom: 0;
}

.variants-heading {
  font-family: "Cinzel", serif;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--muted);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin: 0 0 0.75rem;
}

/* Aviso "desliza para ver más variantes" — justo debajo de las variantes,
   sin líneas doradas, tanto en mobile como en desktop. */
.scroll-hint {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-family: "Cinzel", serif;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--accent);
  letter-spacing: 0.1em;
  text-transform: uppercase;
  text-align: center;
  margin: 0.7rem 0;
}

.scroll-hint.is-hidden { display: none; }

.scroll-hint-arrow {
  display: inline-block;
  font-size: 1.1em;
  line-height: 1;
  animation: scrollHintNudge 1.5s ease-in-out infinite;
}

@keyframes scrollHintNudge {
  0%, 100% { transform: translateX(0); }
  50% { transform: translateX(6px); }
}

.variants-list {
  display: flex;
  flex-wrap: nowrap;
  gap: 1rem;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scroll-snap-type: x proximity;
  padding-bottom: 0.6rem;
  scrollbar-width: thin;
  scrollbar-color: rgba(207, 172, 107, 0.45) transparent;
}

.variants-list::-webkit-scrollbar {
  height: 6px;
}

.variants-list::-webkit-scrollbar-track {
  background: transparent;
}

.variants-list::-webkit-scrollbar-thumb {
  background: rgba(207, 172, 107, 0.35);
  border-radius: 6px;
}

.variants-list::-webkit-scrollbar-thumb:hover {
  background: rgba(207, 172, 107, 0.55);
}

.variant-thumb {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.5rem;
  padding: 0.72rem;
  background: rgba(207, 172, 107, 0.03);
  border: 1px solid rgba(207, 172, 107, 0.18);
  border-radius: 10px;
  cursor: pointer;
  width: 136px;
  flex: 0 0 auto;
  scroll-snap-align: start;
}

.variant-thumb img {
  width: 106px;
  height: 106px;
  object-fit: cover;
  border-radius: 6px;
}

.variant-thumb.is-active {
  border-color: var(--accent);
  box-shadow: 0 0 0 1px var(--accent), 0 0 14px rgba(207, 172, 107, 0.15);
}

.variant-thumb.is-sold {
  opacity: 0.42;
  filter: grayscale(0.75);
  cursor: default;
}

.variant-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.1rem;
  width: 100%;
}

.variant-year {
  font-size: 0.86rem;
  font-weight: 600;
  font-family: "Cinzel", serif;
  letter-spacing: 0.1em;
  color: var(--text);
  line-height: 1;
}

.variant-price {
  font-size: 1.21rem;
  font-family: "Cinzel", serif;
  color: var(--accent);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 122px;
  text-align: center;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

/* ─── NP Monogram ─────────────────────────────────────────────────────────── */

.np-monogram {
  display: block;
  margin: 0 auto 14px;
  width: 68px;
  height: 68px;
}

.np-monogram--small {
  width: 42px;
  height: 42px;
  margin-bottom: 0;
  opacity: 0.88;
}

/* ─── Site footer ─────────────────────────────────────────────────────────── */

.site-footer {
  border-top: 1px solid rgba(207, 172, 107, 0.14);
  padding: 34px 0 28px;
  text-align: center;
  background: linear-gradient(0deg, #070707 0%, #0a0a0a 100%);
}

.footer-inner {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.footer-est {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.3em;
  color: var(--accent);
  text-transform: uppercase;
}

.footer-tagline {
  margin: 0;
  font-family: "Cinzel", serif;
  font-size: 0.58rem;
  font-weight: 400;
  letter-spacing: 0.24em;
  color: rgba(207, 172, 107, 0.42);
  text-transform: uppercase;
}

/* ─── Detail header (compact) ─────────────────────────────────────────────── */

.site-header--compact {
  padding: 22px 0 18px;
}

.site-header--compact h1 {
  font-size: clamp(1.6rem, 3.5vw, 2.8rem);
  margin-bottom: 0;
}

.site-header--compact .np-monogram {
  width: 40px;
  height: 40px;
  margin-bottom: 8px;
}

.site-header--compact::after {
  inset: 6px;
}

/* ─── Mobile refinements ──────────────────────────────────────────────────── */

@media (max-width: 480px) {
  .landing-btn:not(.landing-btn--all) {
    font-size: 0.78rem;
  }

  .landing-btn--all {
    font-size: 1.08rem;
    letter-spacing: 0.1em;
  }
}
