/*
Theme Name: Money Store
Description: Tema a medida para Money Store (moneystore.cr) — catálogo, financiamiento y solicitud de crédito. Basado en el prototipo aprobado.
Author: José García
Version: 1.0
Text Domain: money-store
*/

:root {
  --bg: #101112;
  --bg-raised: #17191A;
  --bg-sunken: #0A0B0B;
  --ink: #F3F1EC;
  --ink-soft: #A9ABA6;
  --graphite: #232527;
  --graphite-line: #2E3133;
  --orange: #FF7A00;
  --orange-deep: #CC6200;
  --orange-glow: rgba(255, 122, 0, 0.16);

  --font-display: 'Sora', 'Arial Black', sans-serif;
  --font-body: 'Manrope', system-ui, sans-serif;
  --font-mono: 'JetBrains Mono', 'Courier New', monospace;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--font-body);
  line-height: 1.55;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 {
  font-family: var(--font-display);
  text-wrap: balance;
  margin: 0;
  letter-spacing: -0.01em;
  color: var(--ink);
}

a { color: inherit; }
img, svg { max-width: 100%; display: block; }
::selection { background: var(--orange); color: #14150F; }

.wrap {
  max-width: 1180px;
  margin: 0 auto;
  padding-inline: clamp(1.25rem, 4vw, 2.5rem);
}

a:focus-visible, button:focus-visible {
  outline: 2px solid var(--orange);
  outline-offset: 3px;
}

/* ---------- header ---------- */

header.site {
  position: sticky;
  top: 0;
  z-index: 40;
  background: rgba(16, 17, 18, 0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--graphite-line);
}

.nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.25rem;
  padding-block: 0.7rem;
}

.brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
}
.brand img { height: 42px; width: auto; }
.brand span {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.05rem;
  letter-spacing: 0.01em;
  color: var(--ink);
}

nav.primary {
  display: flex;
  gap: clamp(1rem, 2vw, 1.8rem);
  font-weight: 600;
  font-size: 0.92rem;
}
nav.primary ul { list-style: none; display: flex; gap: clamp(1rem, 2vw, 1.8rem); margin: 0; padding: 0; }
nav.primary a {
  text-decoration: none;
  color: var(--ink-soft);
  border-bottom: 2px solid transparent;
  padding-bottom: 3px;
  transition: color 0.15s ease, border-color 0.15s ease;
}
nav.primary a:hover, nav.primary .current-menu-item a { color: var(--ink); border-color: var(--orange); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  font-family: var(--font-body);
  font-weight: 700;
  font-size: 0.9rem;
  padding: 0.65rem 1.2rem;
  border-radius: 8px;
  border: 1.5px solid transparent;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
  transition: transform 0.15s ease, background 0.15s ease, border-color 0.15s ease;
}
.btn-solid { background: var(--orange); color: #17120A; }
.btn-solid:hover { background: #FF8A1F; transform: translateY(-1px); }
.btn-outline { background: transparent; border-color: var(--graphite-line); color: var(--ink); }
.btn-outline:hover { border-color: var(--orange); }
.btn-small { padding: 0.55rem 0.9rem; font-size: 0.85rem; }

@media (max-width: 640px) {
  nav.primary { display: none; }
}

/* ---------- footer ---------- */

footer.site {
  border-top: 1px solid var(--graphite-line);
  padding-block: 2.5rem;
  background: var(--bg-sunken);
}
.foot-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  font-size: 0.85rem;
  color: var(--ink-soft);
}

/* ---------- breadcrumb / generic page chrome ---------- */

.breadcrumb { font-size: 0.82rem; color: var(--ink-soft); margin-bottom: 1rem; }
.breadcrumb a { color: var(--ink-soft); text-decoration: none; }
.breadcrumb a:hover { color: var(--orange); }
.breadcrumb .sep { margin: 0 0.4rem; }
.breadcrumb .current { color: var(--ink); }

main { display: block; }
.page-hero { padding-block: 2.5rem 1.5rem; border-bottom: 1px solid var(--graphite-line); }
.page-hero h1 { font-size: clamp(1.7rem, 3vw, 2.3rem); }
.page-hero p.lede { color: var(--ink-soft); margin-top: 0.6rem; max-width: 640px; }
