/* OPTIMIZED BUILD */
/* ═══════════════════════════════════════════════════════════════
   ISABEL ANTIQUES — main.css (HELIX TRINITY ROOT v16)
   Minimalismo Museístico | Paleta B&W + Rojo Alarma
   ═══════════════════════════════════════════════════════════════ */

/* ── VARIABLES ─────────────────────────────────────────────────── */
:root {
  --color-primary: #8B0000;
  --color-primary-light: #A30000;
  --color-primary-dark: #6B0000;
  --color-accent: #1A1A1A;
  --color-bg: #FFFFFF;
  --color-surface: #F7F5F2;
  --color-surface-dark: #1A1A1A;
  --color-text: #0D0D0D;
  --color-text-secondary: #5A5A5A;
  --color-border: #EAEAEA;
  --color-success: #10B981;
  --color-error: #EF4444;
  --color-warning: #F59E0B;
  --color-info: #3B82F6;

  --font-display: 'Playfair Display', Georgia, serif;
  --font-primary: 'Inter', system-ui, -apple-system, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  --text-xs: 0.75rem;
  --text-sm: 0.875rem;
  --text-base: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.25rem;
  --text-2xl: 1.5rem;
  --text-3xl: 1.875rem;
  --text-4xl: 2.25rem;
  --text-5xl: 3rem;
  --text-6xl: 4rem;

  --space-1: 0.25rem;
  --space-2: 0.5rem;
  --space-3: 0.75rem;
  --space-4: 1rem;
  --space-6: 1.5rem;
  --space-8: 2rem;
  --space-12: 3rem;
  --space-16: 4rem;
  --space-24: 6rem;

  --max-width: 1200px;
  --max-width-narrow: 800px;
  --max-width-wide: 1400px;

  --radius-sm: 2px;
  --radius-md: 4px;
  --radius-lg: 8px;
  --radius-xl: 12px;
  --radius-full: 9999px;

  --header-h: 72px;
}

/* ── RESET ──────────────────────────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-primary);
  background: var(--color-bg);
  color: var(--color-text);
  font-size: var(--text-base);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

/* ── FOCUS ──────────────────────────────────────────────────────── */
:focus-visible { outline: 2px solid var(--color-primary); outline-offset: 2px; }

/* ── UTILITIES ──────────────────────────────────────────────────── */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }
.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--space-6); }

/* ── MAIN CONTAINER (z-index fix) ───────────────────────────────── */
main, [role="main"], .app-container { position: relative; z-index: 10; pointer-events: auto; }

/* ── BUTTONS ────────────────────────────────────────────────────── */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: var(--space-2);
  padding: var(--space-3) var(--space-8); font-family: var(--font-primary);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase;
  border: none; border-radius: 0; cursor: pointer; transition: all 0.25s ease;
  text-decoration: none; line-height: 1;
}
.btn-primary { background: var(--color-primary); color: white; }
.btn-primary:hover { background: var(--color-primary-light); transform: translateY(-1px); box-shadow: 0 6px 20px rgba(139,0,0,0.3); }
.btn-primary:active { transform: translateY(0); }
.btn-secondary { background: transparent; color: var(--color-text); border: 1px solid var(--color-text); }
.btn-secondary:hover { background: var(--color-text); color: var(--color-bg); }
.btn-ghost-light { background: transparent; color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.3); }
.btn-ghost-light:hover { background: rgba(255,255,255,0.1); color: white; border-color: rgba(255,255,255,0.6); }
.btn[disabled], .btn.loading { opacity: 0.5; pointer-events: none; }

/* ── SPINNER ────────────────────────────────────────────────────── */
.spinner { width: 16px; height: 16px; border: 2px solid transparent; border-top-color: currentColor; border-radius: 50%; animation: spin 0.6s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* ── TOAST ──────────────────────────────────────────────────────── */
.toast-container { position: fixed; top: var(--space-6); right: var(--space-6); z-index: 9000; display: flex; flex-direction: column; gap: var(--space-2); pointer-events: none; }
.toast { padding: var(--space-3) var(--space-6); border-radius: 0; font-size: var(--text-sm); font-weight: 500; font-family: var(--font-primary); color: white; box-shadow: 0 4px 20px rgba(0,0,0,0.2); pointer-events: auto; animation: toastIn 0.3s ease forwards; max-width: 360px; letter-spacing: 0.04em; }
.toast.success { background: var(--color-accent); border-left: 3px solid var(--color-success); }
.toast.error { background: var(--color-accent); border-left: 3px solid var(--color-error); }
.toast.warning { background: var(--color-accent); border-left: 3px solid var(--color-warning); }
.toast.info { background: var(--color-accent); border-left: 3px solid var(--color-info); }
.toast.hiding { animation: toastOut 0.3s ease forwards; }
@keyframes toastIn { from { opacity:0; transform:translateX(100%); } to { opacity:1; transform:translateX(0); } }
@keyframes toastOut { from { opacity:1; transform:translateX(0); } to { opacity:0; transform:translateX(100%); } }

/* ── SKELETON ───────────────────────────────────────────────────── */
.skeleton { background: linear-gradient(90deg, #f0ede9 25%, #e8e4e0 50%, #f0ede9 75%); background-size: 200% 100%; animation: shimmer 1.5s infinite; border-radius: 0; }
@keyframes shimmer { to { background-position: -200% 0; } }
.skeleton-text { height: 1em; margin-bottom: 0.5em; }
.skeleton-title { height: 1.5em; width: 60%; margin-bottom: 0.75em; }
.skeleton-image { height: 280px; width: 100%; }
.skeleton-body { padding: var(--space-4); }
.skeleton-card { pointer-events: none; }

/* ── HEADER ─────────────────────────────────────────────────────── */
.site-header {
  position: fixed; top: 0; left: 0; right: 0;
  height: var(--header-h); z-index: 100;
  background: rgba(255,255,255,0.96);
  backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--color-border);
  transition: all 0.3s ease;
}
.site-header.scrolled {
  box-shadow: 0 2px 20px rgba(0,0,0,0.08);
}
.header-inner {
  height: 100%; display: flex; align-items: center; justify-content: space-between;
}
.nav-left, .nav-right {
  display: none;
  gap: var(--space-8);
}
.nav-link {
  font-size: var(--text-xs); font-weight: 500; letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-secondary); transition: color 0.2s;
  position: relative;
}
.nav-link::after {
  content: ''; position: absolute; bottom: -3px; left: 0; right: 0;
  height: 1px; background: var(--color-primary); transform: scaleX(0); transition: transform 0.25s;
}
.nav-link:hover { color: var(--color-text); }
.nav-link:hover::after { transform: scaleX(1); }

.logo-center { text-align: center; flex: 1; }
.logo-link { display: inline-flex; flex-direction: column; align-items: center; text-decoration: none; }
.logo-text {
  font-family: var(--font-display); font-size: 1.6rem; font-weight: 700;
  letter-spacing: 0.3em; color: var(--color-text); line-height: 1;
}
.logo-sub {
  font-size: 0.55rem; letter-spacing: 0.4em; font-weight: 400;
  color: var(--color-text-secondary); text-transform: uppercase; margin-top: 1px;
}

.nav-mobile-toggle {
  display: flex; flex-direction: column; gap: 5px;
  padding: var(--space-2); cursor: pointer;
}
.nav-mobile-toggle span {
  display: block; width: 22px; height: 1.5px;
  background: var(--color-text); transition: all 0.25s ease;
}

/* ── SECTION COMMONS ─────────────────────────────────────────────── */
.section { padding: var(--space-24) 0; }
.section-eyebrow {
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.25em;
  text-transform: uppercase; color: var(--color-primary);
  margin-bottom: var(--space-3);
}
.section-title {
  font-family: var(--font-display); font-size: var(--text-4xl);
  font-weight: 700; line-height: 1.15; color: var(--color-text);
}
.section-title em { font-style: italic; font-weight: 400; }
.section-header { text-align: center; margin-bottom: var(--space-12); }
.section-header .section-title { margin-top: var(--space-2); }

/* ── HERO ────────────────────────────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; align-items: center; justify-content: center;
  overflow: hidden; margin-top: 0;
}
.hero-media { position: absolute; inset: 0; z-index: 0; }
.hero-img {
  width: 100%; height: 100%; object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transform: scale(1.05);
  transition: transform 8s ease;
}
.hero-img.loaded { transform: scale(1); }
.hero-overlay {
  position: absolute; inset: 0;
  background: linear-gradient(
    to bottom,
    rgba(0,0,0,0.3) 0%,
    rgba(0,0,0,0.5) 50%,
    rgba(0,0,0,0.75) 100%
  );
}
.hero-content {
  position: relative; z-index: 2; text-align: center; padding: var(--space-8) var(--space-6);
  opacity: 0; transform: translateY(20px);
  transition: opacity 1.2s ease, transform 1.2s ease;
  max-width: 860px;
}
.hero-content.visible { opacity: 1; transform: translateY(0); }
.hero-eyebrow {
  font-size: var(--text-xs); letter-spacing: 0.35em; font-weight: 500;
  color: rgba(255,255,255,0.6); margin-bottom: var(--space-6);
}
.hero-title {
  font-family: var(--font-display); font-size: clamp(2.5rem, 6vw, 5rem);
  font-weight: 700; color: #ffffff; line-height: 1.1;
  margin-bottom: var(--space-6); text-shadow: 0 2px 30px rgba(0,0,0,0.3);
}
.hero-title em { font-style: italic; font-weight: 400; }
.hero-sub {
  font-size: var(--text-lg); color: rgba(255,255,255,0.75);
  line-height: 1.7; margin-bottom: var(--space-10); max-width: 560px; margin-left: auto; margin-right: auto;
}
.hero-actions { display: flex; gap: var(--space-4); justify-content: center; flex-wrap: wrap; }

.hero-scroll-indicator {
  position: absolute; bottom: var(--space-8); left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: var(--space-2); z-index: 2;
}
.scroll-line {
  width: 1px; height: 48px;
  background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.4));
  animation: scrollPulse 2s ease infinite;
}
.scroll-label { font-size: 9px; letter-spacing: 0.3em; color: rgba(255,255,255,0.4); }
@keyframes scrollPulse { 0%,100%{opacity:0.4;transform:scaleY(1)} 50%{opacity:1;transform:scaleY(1.1)} }

/* ── RIBBON ─────────────────────────────────────────────────────── */
.ribbon-bar {
  background: var(--color-accent);
  color: rgba(255,255,255,0.65);
  padding: var(--space-3) 0;
  overflow: hidden;
  white-space: nowrap;
  display: flex;
}
.ribbon-inner {
  display: flex;
  align-items: center;
  gap: var(--space-8);
  font-size: var(--text-xs);
  letter-spacing: 0.18em;
  text-transform: uppercase;
  flex-shrink: 0;
  min-width: 100%;
  animation: ribbonScroll 30s linear infinite;
  will-change: transform;
}
.ribbon-inner + .ribbon-inner {
  animation-delay: -15s;
}
.ribbon-dot { color: var(--color-primary); }

@keyframes ribbonScroll {
  0%   { transform: translateX(100%); }
  100% { transform: translateX(-100%); }
}

/* ── FILTERS ────────────────────────────────────────────────────── */
.filter-bar {
  display: flex; gap: var(--space-2); margin-bottom: var(--space-10);
  overflow-x: auto; white-space: nowrap; scrollbar-width: none;
  padding-bottom: var(--space-1);
}
.filter-bar::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  padding: var(--space-2) var(--space-6);
  font-size: var(--text-xs); font-weight: 600; letter-spacing: 0.12em;
  text-transform: uppercase; border: 1px solid var(--color-border);
  background: transparent; color: var(--color-text-secondary);
  border-radius: 0; transition: all 0.2s ease; cursor: pointer;
}
.filter-btn:hover { border-color: var(--color-text); color: var(--color-text); }
.filter-btn.active { background: var(--color-text); color: white; border-color: var(--color-text); }

/* ── CATALOG GRID ───────────────────────────────────────────────── */
.catalog-grid {
  display: grid; grid-template-columns: 1fr;
  gap: var(--space-8);
}
.product-card {
  background: var(--color-bg); border: 1px solid var(--color-border);
  cursor: pointer; overflow: hidden; transition: all 0.3s ease;
  animation: fadeInUp 0.5s ease forwards; opacity: 0;
}
@keyframes fadeInUp { from{opacity:0;transform:translateY(16px)} to{opacity:1;transform:translateY(0)} }
.product-card:hover {
  box-shadow: 0 12px 40px rgba(0,0,0,0.1);
  transform: translateY(-3px);
  border-color: rgba(0,0,0,0.2);
}
.product-card .card-img-wrap { overflow: hidden; position: relative; background: var(--color-surface); }
.product-card .card-img {
  width: 100%; height: 280px; object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}
.product-card .card-img-wrap {
  overflow: hidden;
  position: relative;
  background: var(--color-surface);
}
.product-card .card-img {
  width: 100%;
  height: 280px;
  object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
  transform-origin: center center;
}
.product-card:hover .card-img {
  filter: grayscale(0%) contrast(1.15) saturate(1.1);
  transform: scale(1.04);
}
.card-era-tag {
  position: absolute; top: var(--space-3); left: var(--space-3);
  font-size: 9px; font-weight: 700; letter-spacing: 0.2em; text-transform: uppercase;
  background: var(--color-accent); color: white;
  padding: 3px var(--space-3);
}
.card-sold-tag {
  position: absolute; top: var(--space-3); right: var(--space-3);
  font-size: 9px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase;
  background: var(--color-text-secondary); color: white; padding: 3px var(--space-3);
}
.card-body { padding: var(--space-4) var(--space-4) var(--space-6); }
.card-title {
  font-family: var(--font-display); font-size: var(--text-lg); font-weight: 600;
  color: var(--color-text); margin-bottom: var(--space-1); line-height: 1.3;
}
.card-era { font-size: var(--text-xs); color: var(--color-text-secondary); letter-spacing: 0.1em; text-transform: uppercase; margin-bottom: var(--space-3); }
.card-price { font-size: var(--text-lg); font-weight: 600; color: var(--color-primary); font-family: var(--font-primary); }
.card-price-sold { font-size: var(--text-sm); color: var(--color-text-secondary); font-style: italic; }

.empty-state {
  text-align: center; padding: var(--space-24);
  color: var(--color-text-secondary); font-style: italic;
}

/* ── PRODUCT MODAL ──────────────────────────────────────────────── */
.product-modal {
  position: fixed; inset: 0; z-index: 500;
  display: flex; align-items: center; justify-content: center;
  padding: var(--space-4);
  pointer-events: none; opacity: 0;
  transition: opacity 0.3s ease;
}
.product-modal.open { pointer-events: auto; opacity: 1; }
.modal-backdrop {
  position: absolute; inset: 0; background: rgba(0,0,0,0.75);
  backdrop-filter: blur(4px);
}
.modal-inner {
  position: relative; z-index: 1;
  background: var(--color-bg); width: 100%; max-width: 980px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  transform: translateY(20px); transition: transform 0.3s ease;
}
.product-modal.open .modal-inner { transform: translateY(0); }
.modal-close {
  position: absolute; top: var(--space-4); right: var(--space-4); z-index: 10;
  font-size: 1.5rem; width: 36px; height: 36px;
  display: flex; align-items: center; justify-content: center;
  color: var(--color-text-secondary); transition: all 0.2s;
  background: var(--color-surface);
}
.modal-close:hover { background: var(--color-text); color: white; }
.modal-layout { display: grid; grid-template-columns: 1fr; }
.modal-gallery { padding: var(--space-8); background: var(--color-surface); }
.magnifier-wrap {
  position: relative; overflow: hidden; cursor: crosshair;
  background: var(--color-surface);
}
.modal-main-img {
  width: 100%; height: 340px; object-fit: contain;
  filter: grayscale(15%) contrast(1.05); display: block;
}
.magnifier-glass {
  position: absolute; pointer-events: none;
  width: 160px; height: 160px;
  border: 2px solid white;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.3), 0 8px 30px rgba(0,0,0,0.3);
  display: none; z-index: 5;
  transform: translate(-50%, -50%);
  background-repeat: no-repeat;
  border-radius: 0;
}
.modal-thumbs {
  display: flex; gap: var(--space-2); margin-top: var(--space-3); flex-wrap: wrap;
}
.modal-thumb {
  width: 60px; height: 60px; object-fit: cover; cursor: pointer;
  border: 2px solid transparent; filter: grayscale(30%);
  transition: all 0.2s;
}
.modal-thumb:hover, .modal-thumb.active { border-color: var(--color-primary); filter: none; }
.btn-cert {
  display: inline-flex; align-items: center; gap: var(--space-2);
  margin-top: var(--space-4); font-size: var(--text-xs); font-weight: 600;
  letter-spacing: 0.12em; text-transform: uppercase;
  color: var(--color-text-secondary); border: 1px solid var(--color-border);
  padding: var(--space-2) var(--space-4); transition: all 0.2s;
  background: white;
}
.btn-cert:hover { background: var(--color-text); color: white; border-color: var(--color-text); }
.modal-info { padding: var(--space-8); }
.modal-era-badge {
  display: inline-block; font-size: 9px; font-weight: 700; letter-spacing: 0.2em;
  text-transform: uppercase; background: var(--color-accent); color: white;
  padding: 3px var(--space-3); margin-bottom: var(--space-4);
}
.modal-title {
  font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700;
  line-height: 1.2; color: var(--color-text); margin-bottom: var(--space-4);
}
.modal-desc { font-size: var(--text-base); color: var(--color-text-secondary); line-height: 1.7; margin-bottom: var(--space-6); }
.modal-specs { width: 100%; border-collapse: collapse; margin-bottom: var(--space-6); }
.modal-specs td { padding: var(--space-2) 0; font-size: var(--text-sm); border-bottom: 1px solid var(--color-border); }
.modal-specs td:first-child { font-weight: 600; width: 40%; color: var(--color-text-secondary); text-transform: uppercase; font-size: var(--text-xs); letter-spacing: 0.1em; }
.modal-price-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: var(--space-6); }
.modal-price { font-family: var(--font-display); font-size: var(--text-3xl); font-weight: 700; color: var(--color-primary); }
.modal-stock {
  font-size: var(--text-xs); letter-spacing: 0.15em; text-transform: uppercase;
  padding: 4px var(--space-3); background: rgba(139,0,0,0.08); color: var(--color-primary);
}
.btn-acquire { width: 100%; padding: var(--space-4) var(--space-6); font-size: var(--text-sm); }
.modal-cert-note {
  text-align: center; font-size: var(--text-xs); color: var(--color-text-secondary);
  margin-top: var(--space-3); letter-spacing: 0.05em;
}

/* ── CERT OVERLAY ───────────────────────────────────────────────── */
.cert-overlay {
  position: fixed; inset: 0; z-index: 600;
  background: #000; display: flex; flex-direction: column;
}
.cert-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: var(--space-4) var(--space-6);
  border-bottom: 1px solid rgba(255,255,255,0.1);
}
.cert-label {
  font-size: var(--text-xs); letter-spacing: 0.25em; text-transform: uppercase;
  color: rgba(255,255,255,0.5);
}
.cert-close {
  font-size: var(--text-xs); letter-spacing: 0.2em; font-weight: 600; text-transform: uppercase;
  color: white; border: 1px solid rgba(255,255,255,0.3); padding: var(--space-2) var(--space-4);
  transition: all 0.2s; background: transparent;
}
.cert-close:hover { background: white; color: black; }
.cert-stage {
  flex: 1; display: flex; align-items: center; justify-content: center; overflow: hidden;
  padding: var(--space-6);
}
.cert-img {
  max-width: 100%; max-height: 100%; object-fit: contain;
  filter: grayscale(100%) contrast(1.5) brightness(1.1);
}
.cert-legend {
  text-align: center; padding: var(--space-4) var(--space-6);
  font-size: var(--text-xs); letter-spacing: 0.15em; color: rgba(255,255,255,0.3);
  text-transform: uppercase; border-top: 1px solid rgba(255,255,255,0.05);
}

/* ── AUTENTICIDAD ───────────────────────────────────────────────── */
.auth-section { background: var(--color-surface); }
.auth-layout { display: grid; grid-template-columns: 1fr; gap: var(--space-12); align-items: center; }
.auth-body { font-size: var(--text-lg); color: var(--color-text-secondary); line-height: 1.8; margin-top: var(--space-6); margin-bottom: var(--space-8); }
.auth-list { list-style: none; display: flex; flex-direction: column; gap: var(--space-3); }
.auth-list li { display: flex; align-items: flex-start; gap: var(--space-3); font-size: var(--text-sm); line-height: 1.6; }
.auth-icon { color: var(--color-primary); flex-shrink: 0; font-size: 0.7rem; margin-top: 4px; }
.auth-image { position: relative; }
.auth-image img {
  width: 100%; height: 400px; object-fit: cover;
  filter: grayscale(15%) contrast(1.05);
  transition: filter 0.5s ease;
}
.auth-image:hover img { filter: grayscale(0%) contrast(1.15); }
.auth-stamp {
  position: absolute; bottom: var(--space-6); right: var(--space-6);
  font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: white; border: 2px solid rgba(255,255,255,0.5);
  padding: var(--space-3) var(--space-4); text-align: center; line-height: 1.4;
  background: rgba(0,0,0,0.4);
}

/* ── ORIGIN ──────────────────────────────────────────────────────── */
.origin-section {
  position: relative; overflow: hidden; min-height: 560px;
  display: flex; align-items: center; padding: var(--space-24) 0;
}
.origin-parallax { position: absolute; inset: 0; z-index: 0; }
.origin-bg-img { width: 100%; height: 100%; object-fit: cover; filter: grayscale(30%) brightness(0.4); }
.origin-overlay { position: absolute; inset: 0; background: rgba(10,10,10,0.65); }
.origin-content { position: relative; z-index: 2; max-width: 600px; }
.origin-body { font-size: var(--text-lg); color: rgba(255,255,255,0.7); line-height: 1.8; margin-top: var(--space-6); }
.origin-body + .origin-body { margin-top: var(--space-4); }

/* ── FOOTER ──────────────────────────────────────────────────────── */
.site-footer { background: var(--color-accent); color: rgba(255,255,255,0.6); padding: var(--space-16) 0 0; }
.footer-grid {
  display: grid; grid-template-columns: 1fr; gap: var(--space-10);
  padding-bottom: var(--space-12); border-bottom: 1px solid rgba(255,255,255,0.08);
}
.footer-logo { font-family: var(--font-display); font-size: 1.8rem; font-weight: 700; color: white; letter-spacing: 0.1em; display: flex; flex-direction: column; line-height: 1; }
.footer-logo span { font-size: 0.55rem; letter-spacing: 0.4em; font-weight: 400; color: rgba(255,255,255,0.4); margin-top: 2px; }
.footer-tagline { margin-top: var(--space-4); font-size: var(--text-sm); color: rgba(255,255,255,0.4); line-height: 1.7; }
.footer-heading { font-size: var(--text-xs); letter-spacing: 0.2em; text-transform: uppercase; font-weight: 600; color: rgba(255,255,255,0.4); margin-bottom: var(--space-4); }
.footer-nav ul { list-style: none; display: flex; flex-direction: column; gap: var(--space-2); }
.footer-nav a { font-size: var(--text-sm); color: rgba(255,255,255,0.5); transition: color 0.2s; }
.footer-nav a:hover { color: white; }
.footer-subscribe p { font-size: var(--text-sm); color: rgba(255,255,255,0.4); margin-bottom: var(--space-4); line-height: 1.6; }
.subscribe-form { display: flex; gap: var(--space-2); }
.subscribe-input {
  flex: 1; background: rgba(255,255,255,0.07); border: 1px solid rgba(255,255,255,0.15);
  padding: var(--space-3) var(--space-4); font-size: var(--text-sm); font-family: var(--font-primary);
  color: white; border-radius: 0; outline: none; transition: border-color 0.2s;
}
.subscribe-input::placeholder { color: rgba(255,255,255,0.3); }
.subscribe-input:focus { border-color: rgba(255,255,255,0.4); }
.subscribe-input.input-error { border-color: var(--color-error); }
.footer-bottom { padding: var(--space-6) 0; text-align: center; font-size: var(--text-xs); color: rgba(255,255,255,0.2); letter-spacing: 0.1em; }

/* ── HELIX POWERED ───────────────────────────────────────────────── */
.helix-powered { text-align: center; padding: var(--space-4) var(--space-4) var(--space-6); }
.helix-powered a { font-size: 10px; color: #999; opacity: 0.35; text-decoration: none; letter-spacing: 0.1em; text-transform: uppercase; font-weight: 500; transition: opacity 0.2s; }
.helix-powered a:hover { opacity: 0.7; }

/* ── REVEAL ANIMATION ───────────────────────────────────────────── */
.reveal-item { opacity: 0; transform: translateY(20px); transition: opacity 0.7s ease, transform 0.7s ease; }
.reveal-item.visible { opacity: 1; transform: translateY(0); }

/* ── LOTTIE ─────────────────────────────────────────────────────── */
.lottie-container { display: flex; align-items: center; justify-content: center; overflow: hidden; }
dotlottie-wc { display: block; max-width: 100%; }

/* ═══════════════════════════════════════════════════════════
   TABLET (768px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 768px) {
  .nav-left, .nav-right { display: flex; }
  .nav-mobile-toggle { display: none; }
  .logo-center { flex: none; }
  .header-inner { gap: var(--space-8); }

  .catalog-grid { grid-template-columns: repeat(2, 1fr); }
  .auth-layout { grid-template-columns: 1fr 1fr; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); }
  .modal-layout { grid-template-columns: 1fr 1fr; }
  .modal-main-img { height: 420px; }
}

/* ═══════════════════════════════════════════════════════════
   DESKTOP (1024px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1024px) {
  .catalog-grid { grid-template-columns: repeat(3, 1fr); }
  .footer-grid { grid-template-columns: 1.5fr 1fr 1fr 1.5fr; }

  .section-title { font-size: var(--text-5xl); }

  .modal-main-img { height: 480px; }
  .modal-gallery { padding: var(--space-10); }
  .modal-info { padding: var(--space-10); display: flex; flex-direction: column; justify-content: center; }
}

/* ═══════════════════════════════════════════════════════════
   WIDE (1280px+)
   ═══════════════════════════════════════════════════════════ */
@media (min-width: 1280px) {
  :root { --header-h: 80px; }
  .hero-title { font-size: 5.5rem; }
}