/* ==========================================================
   ATLAS · Sitio institucional
   Design tokens tomados 1:1 del panel de administración,
   para que la identidad visual sea la misma en todo el
   ecosistema (panel + web pública).
========================================================== */

:root {
  --primary: #2563eb;
  --primary-hover: #1d4ed8;
  --primary-light: rgba(37, 99, 235, 0.12);
  --primary-gradient: linear-gradient(135deg, #2563eb, #3b82f6);

  --success: #22c55e;
  --success-light: rgba(34, 197, 94, 0.12);

  --bg-body: #0a0e17;
  --bg-sidebar: #0d1117;
  --bg-card: #161b22;
  --bg-card-hover: #1c2333;
  --bg-hover: #1c2333;
  --bg-surface: #161b22;

  --text-primary: #f0f6fc;
  --text-secondary: #8b949e;
  --text-muted: #484f58;
  --text-inverse: #0d1117;

  --border: #21262d;
  --border-hover: #30363d;
  --border-light: #1c2333;

  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.3);
  --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.4);
  --shadow-lg: 0 8px 24px rgba(0, 0, 0, 0.5);
  --shadow-xl: 0 12px 40px rgba(0, 0, 0, 0.6);

  --radius-sm: 6px;
  --radius-md: 10px;
  --radius-lg: 14px;
  --radius-xl: 20px;
  --radius-full: 9999px;

  --spacing-xs: 4px;
  --spacing-sm: 8px;
  --spacing-md: 16px;
  --spacing-lg: 24px;
  --spacing-xl: 32px;
  --spacing-2xl: 48px;
  --spacing-3xl: 64px;

  --transition-fast: 0.15s ease;
  --transition-base: 0.25s ease;
  --transition-slow: 0.4s ease;

  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", sans-serif;

  --container: 1180px;
  --section-pad: clamp(64px, 9vw, 116px);
}

/* ==========================================================
   RESET
========================================================== */

*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

body {
  background: var(--bg-body);
  color: var(--text-primary);
  font-family: var(--font);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

::selection { background: var(--primary); color: #fff; }

* { scrollbar-width: thin; scrollbar-color: var(--text-muted) transparent; }
::-webkit-scrollbar { width: 6px; height: 6px; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--text-muted); border-radius: var(--radius-full); }
::-webkit-scrollbar-thumb:hover { background: var(--text-secondary); }

:focus-visible { outline: 2px solid var(--primary); outline-offset: 2px; }

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

.eyebrow {
  display: inline-block;
  margin-bottom: var(--spacing-sm);
  color: var(--primary);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.section-head {
  max-width: 640px;
  margin-bottom: var(--spacing-2xl);
}

.section-head h2 {
  font-size: clamp(1.7rem, 3vw, 2.4rem);
  font-weight: 750;
  letter-spacing: -0.03em;
  line-height: 1.15;
}

.section-head p {
  margin-top: var(--spacing-md);
  color: var(--text-secondary);
  font-size: 15.5px;
  line-height: 1.65;
}

.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ==========================================================
   BUTTONS (idénticos al admin)
========================================================== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--spacing-sm);
  height: 44px;
  padding: 8px 22px;
  border: 0;
  border-radius: var(--radius-sm);
  font-family: var(--font);
  font-size: 14px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.btn-primary { background: var(--primary); color: #fff; }
.btn-primary:hover { background: var(--primary-hover); box-shadow: 0 4px 16px rgba(37, 99, 235, 0.35); transform: translateY(-1px); }

.btn-outline { border: 1px solid var(--border); background: transparent; color: var(--text-primary); }
.btn-outline:hover { border-color: var(--border-hover); background: var(--bg-hover); }

.btn-lg { height: 48px; padding: 8px 26px; font-size: 15px; }

/* ==========================================================
   NAV
========================================================== */

.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 50;
  border-bottom: 1px solid transparent;
  background: rgba(10, 14, 23, 0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  transition: border-color var(--transition-base), background var(--transition-base);
}

.nav.is-scrolled { border-bottom-color: var(--border); background: rgba(10, 14, 23, 0.92); }

.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
}

.brand img { width: 32px; height: 32px; border-radius: var(--radius-full); }

.brand span {
  font-size: 17px;
  font-weight: 800;
  letter-spacing: 0.01em;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: var(--spacing-2xl);
}

.nav-links a {
  color: var(--text-secondary);
  font-size: 13.5px;
  font-weight: 600;
  transition: color var(--transition-fast);
}

.nav-links a:hover { color: var(--text-primary); }

.nav-actions { display: flex; align-items: center; gap: var(--spacing-md); }

.menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  flex-shrink: 0;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-primary);
}

.menu-toggle span {
  position: relative;
  display: block;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: currentColor;
}

.menu-toggle span::before, .menu-toggle span::after {
  content: "";
  position: absolute; left: 0;
  width: 16px; height: 2px;
  border-radius: 2px;
  background: currentColor;
  transition: transform var(--transition-fast);
}

.menu-toggle span::before { top: -5px; }
.menu-toggle span::after { top: 5px; }

.mobile-panel {
  display: none;
  flex-direction: column;
  gap: 2px;
  padding: var(--spacing-md) 24px calc(var(--spacing-lg) + 4px);
  border-top: 1px solid var(--border);
  background: rgba(10, 14, 23, 0.98);
}

.mobile-panel a {
  padding: 12px 4px;
  border-bottom: 1px solid var(--border-light);
  color: var(--text-secondary);
  font-size: 14.5px;
  font-weight: 600;
}

.mobile-panel a:last-child { border-bottom: 0; }

body.nav-open .mobile-panel { display: flex; }

@media (max-width: 860px) {
  .nav-links { display: none; }
  .menu-toggle { display: inline-flex; }
  .nav-actions .btn-outline { display: none; }
}

/* ==========================================================
   HERO
========================================================== */

.hero {
  position: relative;
  padding: 168px 0 var(--section-pad);
  overflow: hidden;
  background:
    radial-gradient(circle at 12% 8%, rgba(37, 99, 235, 0.18), transparent 34%),
    radial-gradient(circle at 88% 82%, rgba(59, 130, 246, 0.10), transparent 38%),
    var(--bg-body);
}

.hero::before, .hero::after {
  content: "";
  position: absolute;
  border: 1px solid rgba(37, 99, 235, 0.12);
  border-radius: 50%;
  pointer-events: none;
}

.hero::before {
  width: 480px; height: 480px;
  top: -230px; right: -140px;
  box-shadow: 0 0 0 80px rgba(37, 99, 235, 0.02), 0 0 0 160px rgba(37, 99, 235, 0.012);
}

.hero::after {
  width: 340px; height: 340px;
  bottom: -180px; left: -120px;
}

.hero-inner {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(360px, 0.92fr);
  gap: var(--spacing-3xl);
  align-items: center;
}

.hero-kicker-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: var(--spacing-lg);
  padding: 6px 14px 6px 8px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: var(--bg-surface);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 600;
}

.hero-kicker-badge .dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--success);
  box-shadow: 0 0 0 3px var(--success-light);
}

.hero h1 {
  max-width: 620px;
  font-size: clamp(2.5rem, 4.6vw, 4.2rem);
  font-weight: 750;
  line-height: 1.03;
  letter-spacing: -0.045em;
}

.hero h1 em {
  font-style: normal;
  background: var(--primary-gradient);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.hero p.lead {
  max-width: 520px;
  margin-top: var(--spacing-lg);
  color: var(--text-secondary);
  font-size: 1.06rem;
  line-height: 1.7;
}

.hero-ctas {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-md);
  margin-top: var(--spacing-xl);
}

.hero-pills {
  display: flex;
  flex-wrap: wrap;
  gap: var(--spacing-sm);
  margin-top: var(--spacing-2xl);
}

.hero-pills li {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 13px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  background: rgba(22, 27, 34, 0.6);
  color: var(--text-secondary);
  font-size: 12px;
  font-weight: 500;
}

.hero-pills li span.check {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 14px; height: 14px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 9px;
}

/* ---- Hero visual: browser mockup + panel snippet ---- */

.hero-visual { position: relative; }

.browser-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.browser-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--border);
  background: var(--bg-sidebar);
}

.browser-dots { display: flex; gap: 6px; }
.browser-dots span { width: 9px; height: 9px; border-radius: 50%; background: var(--border-hover); }

.browser-url {
  flex: 1;
  margin-left: 6px;
  padding: 5px 10px;
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  color: var(--text-muted);
  font-size: 11px;
}

.browser-body {
  position: relative;
  padding: 30px 26px 34px;
  min-height: 300px;
  background:
    radial-gradient(circle at 18% 20%, rgba(239, 68, 68, 0.16), transparent 40%),
    radial-gradient(circle at 85% 78%, rgba(249, 115, 22, 0.10), transparent 42%),
    #0f0e0e;
}

.browser-body .bm-kicker {
  color: #f97316;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.browser-body h3 {
  margin-top: 10px;
  max-width: 260px;
  color: #f5f0ed;
  font-size: 1.5rem;
  font-weight: 750;
  line-height: 1.08;
  letter-spacing: -0.03em;
}

.browser-body p {
  margin-top: 10px;
  max-width: 240px;
  color: rgba(245, 240, 237, 0.6);
  font-size: 12px;
  line-height: 1.6;
}

.browser-body .bm-btn {
  display: inline-block;
  margin-top: 18px;
  padding: 9px 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, #ef4444, #f97316);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
}

.floating-card {
  position: absolute;
  left: -18px; bottom: -26px;
  width: 230px;
  padding: var(--spacing-md);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-xl);
}

.floating-card .fc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.floating-card .fc-head span:first-child {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.fc-status {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  background: var(--success-light);
  color: var(--success);
  font-size: 10px;
  font-weight: 700;
}

.floating-card .fc-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 0;
  border-top: 1px solid var(--border-light);
}

.floating-card .fc-row:first-of-type { border-top: 0; }

.fc-avatar {
  width: 26px; height: 26px;
  border-radius: 50%;
  background: var(--primary-light);
  flex-shrink: 0;
}

.fc-row div p { font-size: 12px; font-weight: 600; }
.fc-row div span { font-size: 10.5px; color: var(--text-secondary); }

.floating-tag {
  position: absolute;
  top: -16px; right: -14px;
  padding: 8px 14px;
  border-radius: var(--radius-full);
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  box-shadow: var(--shadow-lg);
  transform: rotate(4deg);
}

@media (max-width: 980px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { margin-top: var(--spacing-xl); max-width: 460px; }
  .floating-card { left: 10px; }
}

/* ==========================================================
   SECTION GENERIC
========================================================== */

section { padding: var(--section-pad) 0; }
section.tight { padding-top: 0; }

.border-top { border-top: 1px solid var(--border); }

/* ==========================================================
   FEATURES GRID (cards = admin .card)
========================================================== */

.features-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
}

.card {
  padding: var(--spacing-lg);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-base);
}

.feature-card:hover {
  border-color: var(--border-hover);
  background: var(--bg-card-hover);
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px; height: 38px;
  margin-bottom: var(--spacing-md);
  border-radius: var(--radius-sm);
  background: var(--primary-light);
  color: var(--primary);
}

.feature-icon svg { width: 18px; height: 18px; }

.feature-card h3 {
  font-size: 15px;
  font-weight: 700;
  letter-spacing: -0.01em;
}

.feature-card p {
  margin-top: 6px;
  color: var(--text-secondary);
  font-size: 13px;
  line-height: 1.6;
}

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

/* ==========================================================
   COMO FUNCIONA (steps)
========================================================== */

.steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: var(--spacing-lg);
  position: relative;
}

.step {
  position: relative;
  padding-top: var(--spacing-lg);
  border-top: 2px solid var(--border);
}

.step.is-active-line { border-top-color: var(--primary); }

.step .step-num {
  display: block;
  margin-bottom: var(--spacing-md);
  color: var(--primary);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.05em;
}

.step h3 { font-size: 15.5px; font-weight: 700; letter-spacing: -0.01em; }
.step p { margin-top: 8px; color: var(--text-secondary); font-size: 13.5px; line-height: 1.65; }

@media (max-width: 860px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

/* ==========================================================
   DISEÑOS (temas) — carrusel con scroll-snap
========================================================== */

.themes-scroller {
  display: flex;
  gap: var(--spacing-lg);
  overflow-x: auto;
  padding-bottom: var(--spacing-md);
  scroll-snap-type: x proximity;
}

.theme-card {
  flex: 0 0 250px;
  scroll-snap-align: start;
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  background: var(--bg-card);
  overflow: hidden;
  transition: border-color var(--transition-base), transform var(--transition-base);
}

.theme-card:hover { border-color: var(--border-hover); transform: translateY(-2px); }

.theme-preview {
  position: relative;
  height: 132px;
  padding: 16px;
  overflow: hidden;
}

.theme-preview .tp-bar {
  width: 34%;
  height: 6px;
  margin-bottom: 10px;
  border-radius: 3px;
  opacity: 0.9;
}

.theme-preview .tp-title {
  width: 70%;
  height: 10px;
  margin-bottom: 6px;
  border-radius: 3px;
  opacity: 0.92;
}

.theme-preview .tp-title.short { width: 45%; }

.theme-preview .tp-btn {
  display: inline-block;
  margin-top: 12px;
  width: 58px;
  height: 18px;
  border-radius: 5px;
}

.theme-meta { padding: 14px 16px 16px; }
.theme-meta h4 { font-size: 14px; font-weight: 700; }
.theme-meta .tm-vibe { margin-top: 3px; color: var(--text-secondary); font-size: 11.5px; }
.theme-meta .tm-for {
  display: inline-block;
  margin-top: 10px;
  padding: 3px 9px;
  border: 1px solid var(--border);
  border-radius: var(--radius-full);
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 600;
}

.themes-note {
  margin-top: var(--spacing-lg);
  color: var(--text-muted);
  font-size: 12.5px;
}

/* ==========================================================
   PANEL (dashboard mockup)
========================================================== */

.panel-section .split {
  display: grid;
  grid-template-columns: 0.85fr 1.15fr;
  gap: var(--spacing-3xl);
  align-items: center;
}

.panel-copy ul { margin-top: var(--spacing-xl); display: flex; flex-direction: column; gap: var(--spacing-md); }

.panel-copy li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.panel-copy li .li-check {
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px; height: 20px;
  margin-top: 2px;
  border-radius: 50%;
  background: var(--primary-light);
  color: var(--primary);
  font-size: 11px;
  font-weight: 800;
}

.panel-copy li p { color: var(--text-secondary); font-size: 14px; line-height: 1.6; }
.panel-copy li strong { color: var(--text-primary); font-weight: 650; }

.dash-mock {
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--bg-body);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
  display: grid;
  grid-template-columns: 168px 1fr;
  min-height: 380px;
}

.dash-side {
  border-right: 1px solid var(--border);
  background: var(--bg-sidebar);
  padding: 16px 12px;
}

.dash-side .ds-brand {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 4px 6px 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 10px;
}

.dash-side .ds-brand img { width: 18px; height: 18px; border-radius: 50%; }
.dash-side .ds-brand span { font-size: 12px; font-weight: 800; }

.dash-side .ds-item {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 8px 8px;
  border-radius: var(--radius-sm);
  color: var(--text-secondary);
  font-size: 11.5px;
  font-weight: 600;
}

.dash-side .ds-item .dot { width: 5px; height: 5px; border-radius: 50%; background: currentColor; opacity: 0.5; flex-shrink: 0; }

.dash-side .ds-item.active { background: var(--primary-light); color: var(--primary); }
.dash-side .ds-item.active .dot { background: var(--primary); opacity: 1; }

.dash-main { padding: 20px 22px; }

.dash-topbar {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  padding-bottom: 12px;
  margin-bottom: 16px;
  border-bottom: 1px solid var(--border);
}

.dash-topbar h4 { font-size: 15px; font-weight: 700; letter-spacing: -0.01em; }
.dash-topbar span { color: var(--text-secondary); font-size: 11px; }

.dash-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-bottom: 16px;
}

.dash-stat {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
}

.dash-stat span { display: block; color: var(--text-muted); font-size: 9.5px; font-weight: 700; letter-spacing: 0.04em; text-transform: uppercase; }
.dash-stat strong { display: block; margin-top: 6px; font-size: 18px; font-weight: 750; }

.dash-list {
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background: var(--bg-card);
  overflow: hidden;
}

.dash-list .dl-head {
  padding: 10px 14px;
  border-bottom: 1px solid var(--border);
  color: var(--text-muted);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.dl-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  border-top: 1px solid var(--border-light);
  font-size: 12px;
}

.dl-row:first-of-type { border-top: 0; }
.dl-row span.dl-name { font-weight: 600; }
.dl-row span.dl-time { color: var(--text-secondary); font-size: 11px; }

.dl-badge {
  padding: 2px 8px;
  border-radius: var(--radius-full);
  font-size: 10px;
  font-weight: 700;
}

.dl-badge.ok { background: var(--success-light); color: var(--success); }
.dl-badge.pending { background: rgba(245, 158, 11, 0.14); color: #f59e0b; }

@media (max-width: 980px) {
  .panel-section .split { grid-template-columns: 1fr; }
  .dash-mock { max-width: 480px; margin: 0 auto; }
}

@media (max-width: 560px) {
  .dash-mock { grid-template-columns: 1fr; }
  .dash-side { display: none; }
}

/* ==========================================================
   CTA FINAL
========================================================== */

.cta-band {
  position: relative;
  overflow: hidden;
  padding: var(--spacing-3xl) var(--spacing-xl);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  background:
    radial-gradient(circle at 20% 20%, rgba(37, 99, 235, 0.22), transparent 45%),
    radial-gradient(circle at 85% 80%, rgba(59, 130, 246, 0.14), transparent 45%),
    var(--bg-card);
  text-align: center;
}

.cta-band h2 {
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 750;
  letter-spacing: -0.03em;
}

.cta-band p {
  max-width: 480px;
  margin: var(--spacing-md) auto 0;
  color: var(--text-secondary);
  font-size: 15px;
  line-height: 1.6;
}

.cta-band .hero-ctas { justify-content: center; margin-top: var(--spacing-xl); }

.cta-fineprint {
  max-width: 460px;
  margin: var(--spacing-xl) auto 0;
  color: var(--text-muted);
  font-size: 12.5px;
  line-height: 1.6;
}

/* ==========================================================
   FOOTER
========================================================== */

footer {
  border-top: 1px solid var(--border);
  padding: var(--spacing-2xl) 0 var(--spacing-xl);
}

.footer-top {
  display: flex;
  justify-content: space-between;
  gap: var(--spacing-2xl);
  flex-wrap: wrap;
  padding-bottom: var(--spacing-xl);
  border-bottom: 1px solid var(--border);
}

.footer-brand .brand { margin-bottom: 10px; }
.footer-brand p { max-width: 280px; color: var(--text-secondary); font-size: 13px; line-height: 1.6; }

.footer-cols { display: flex; gap: var(--spacing-3xl); flex-wrap: wrap; }
.footer-col h5 { color: var(--text-muted); font-size: 10.5px; font-weight: 700; letter-spacing: 0.08em; text-transform: uppercase; margin-bottom: var(--spacing-md); }
.footer-col a, .footer-col p { display: block; color: var(--text-secondary); font-size: 13px; margin-bottom: 9px; }
.footer-col a:hover { color: var(--text-primary); }

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding-top: var(--spacing-lg);
  color: var(--text-muted);
  font-size: 12px;
}

/* ==========================================================
   REVEAL ON SCROLL
========================================================== */

[data-reveal] {
  opacity: 0;
  transform: translateY(16px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

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

@media (prefers-reduced-motion: reduce) {
  [data-reveal] { opacity: 1; transform: none; }
}
