/* ==========================================================================
   NUMINI — Shared stylesheet
   El Panini de los coleccionistas numismáticos · numini.app
   ========================================================================== */

:root {
  /* Surfaces */
  --bg:            #0a0d0c;
  --surface:       #10141a;
  --surface-alt:   #161b22;
  --border:        #1f2a30;
  --border-soft:   rgba(255, 255, 255, 0.06);

  /* Accent */
  --accent:        #3ddc97;
  --accent-dim:    #2bb47a;
  --accent-glow:   rgba(61, 220, 151, 0.16);

  /* Text */
  --text:          #e8efeb;
  --text-muted:    #8a948f;
  --text-faint:    #5a635e;

  /* Type */
  --serif: "Instrument Serif", Georgia, "Times New Roman", serif;
  --sans:  "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;

  /* Layout */
  --maxw: 1200px;
  --radius: 16px;
  --radius-sm: 12px;

  /* Shadows */
  --shadow-cta: 0 8px 24px -8px rgba(61, 220, 151, 0.45);
}

/* ---- Reset ---- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--sans);
  font-size: 17px;
  font-weight: 400;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; }

/* Accessible focus */
a:focus-visible, button:focus-visible, input:focus-visible, textarea:focus-visible {
  outline: 2px solid var(--accent);
  outline-offset: 3px;
  border-radius: 4px;
}

::selection { background: var(--accent); color: var(--bg); }

/* ---- Layout helpers ---- */
.container {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 24px;
}
.section { padding-block: 88px; }
.section-sm { padding-block: 56px; }
.center { text-align: center; }

/* ---- Typography ---- */
h1, h2, h3 { font-weight: 400; line-height: 1.1; letter-spacing: -0.01em; }

.eyebrow {
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 18px;
}

.h1 {
  font-family: var(--serif);
  font-size: clamp(3.25rem, 7vw, 6rem);   /* 52–96px */
  line-height: 1.05;
  font-weight: 400;
}
.h2 {
  font-family: var(--serif);
  font-size: clamp(2.4rem, 5vw, 4rem);     /* ~38–64px */
  line-height: 1.08;
}
.h3 {
  font-family: var(--sans);
  font-size: 1.3rem;
  font-weight: 600;
  line-height: 1.3;
  letter-spacing: -0.01em;
}
.serif-it { font-family: var(--serif); font-style: italic; color: var(--accent); }
.lead {
  font-size: clamp(1.05rem, 1.8vw, 1.3rem);
  color: var(--text-muted);
  line-height: 1.55;
  max-width: 62ch;
}
.muted { color: var(--text-muted); }
.faint { color: var(--text-faint); }
.accent { color: var(--accent); }
p + p { margin-top: 1rem; }

.big-number {
  font-family: var(--serif);
  font-size: clamp(2.6rem, 5vw, 4rem);
  color: var(--accent);
  line-height: 1;
}

/* ---- Buttons ---- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: transform .18s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent);
  color: var(--bg);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-cta);
  background: #4ee8a4;
}
.btn-ghost {
  background: transparent;
  color: var(--text);
  border-color: var(--border);
}
.btn-ghost:hover {
  border-color: var(--accent);
  color: var(--accent);
  transform: translateY(-2px);
}
.btn-lg { padding: 16px 32px; font-size: 16px; }

/* ==========================================================================
   HEADER / NAV
   ========================================================================== */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(10, 13, 12, 0.72);
  backdrop-filter: saturate(160%) blur(14px);
  -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
  gap: 20px;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  font-family: var(--serif);
  font-size: 1.55rem;
  color: var(--text);
  letter-spacing: -0.01em;
}
.brand svg { width: 28px; height: 28px; color: var(--accent); flex: none; }
.brand b { font-weight: 400; }

.nav-links {
  display: flex;
  align-items: center;
  gap: 4px;
  font-size: 14.5px;
}
.nav-links a {
  color: var(--text-muted);
  padding: 8px 12px;
  border-radius: 8px;
  font-weight: 500;
  transition: color .15s ease, background .15s ease;
}
.nav-links a:hover { color: var(--text); }
.nav-links a.active { color: var(--accent); }

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

.nav-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: 10px;
  width: 42px;
  height: 42px;
  align-items: center;
  justify-content: center;
  color: var(--text);
}
.nav-toggle svg { width: 22px; height: 22px; }

/* Mobile nav panel */
.nav-mobile {
  display: none;
  flex-direction: column;
  gap: 4px;
  padding: 12px 24px 24px;
  border-bottom: 1px solid var(--border);
  background: var(--bg);
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  color: var(--text-muted);
  padding: 12px 8px;
  font-size: 16px;
  font-weight: 500;
  border-bottom: 1px solid var(--border-soft);
}
.nav-mobile a.active { color: var(--accent); }
.nav-mobile .btn { margin-top: 14px; }

/* ==========================================================================
   HERO
   ========================================================================== */
.hero { padding-block: clamp(56px, 8vw, 104px); }
.hero-grid {
  display: grid;
  grid-template-columns: 1.05fr 0.95fr;
  gap: clamp(32px, 5vw, 72px);
  align-items: center;
}
.hero-copy { max-width: 38rem; }
.hero .h1 { margin-bottom: 22px; }
.hero .lead { margin-bottom: 32px; }
.hero-actions { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }

/* Image frames */
.frame {
  border-radius: var(--radius);
  border: 1px solid var(--border-soft);
  overflow: hidden;
  background: var(--surface);
}
.frame img { width: 100%; }
.frame-glow {
  position: relative;
  box-shadow:
    inset 0 0 60px rgba(61, 220, 151, 0.06),
    0 30px 70px -30px rgba(0, 0, 0, 0.8);
}
.frame-glow::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: var(--radius);
  box-shadow: inset 0 0 0 1px rgba(61, 220, 151, 0.08);
  pointer-events: none;
}
.hero-phone {
  max-width: 360px;
  margin-inline: auto;
}

/* ==========================================================================
   GENERIC SECTIONS
   ========================================================================== */
.section-head { max-width: 56ch; margin-bottom: 48px; }
.section-head.center { margin-inline: auto; }
.section-head .h2 { margin-bottom: 16px; }

/* Page hero (interior pages) */
.page-hero { padding-block: clamp(56px, 7vw, 88px) 0; }
.page-hero .h1 {
  font-size: clamp(2.8rem, 6vw, 5rem);
  margin-bottom: 18px;
}
.page-hero .lead { margin-inline: auto; }

/* ---- Cards / grids ---- */
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 24px; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 32px;
  transition: border-color .2s ease, transform .2s ease;
}
.card:hover { border-color: var(--border-soft); }
.card .icon {
  width: 48px; height: 48px;
  display: grid; place-items: center;
  border-radius: 12px;
  background: var(--accent-glow);
  color: var(--accent);
  margin-bottom: 20px;
}
.card .icon svg { width: 26px; height: 26px; }
.card h3 { margin-bottom: 10px; }
.card p { color: var(--text-muted); font-size: 16px; }

/* ---- Feature rows (alternating) ---- */
.feature-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 6vw, 80px);
  align-items: center;
  padding-block: 56px;
  border-top: 1px solid var(--border);
}
.feature-row:first-of-type { border-top: 0; }
.feature-row.reverse .feature-media { order: -1; }
.feature-copy .step {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--accent);
  margin-bottom: 16px;
}
.feature-copy .step .num {
  width: 28px; height: 28px;
  display: grid; place-items: center;
  border-radius: 999px;
  background: var(--accent-glow);
  font-family: var(--serif);
  font-size: 16px;
}
.feature-copy h2 {
  font-family: var(--serif);
  font-size: clamp(2rem, 3.6vw, 3rem);
  margin-bottom: 16px;
}
.feature-copy p { color: var(--text-muted); }
.feature-copy ul.checks { margin-top: 20px; display: grid; gap: 12px; }
.feature-copy ul.checks li {
  display: flex; gap: 12px; align-items: flex-start;
  color: var(--text); font-size: 16px;
}
.feature-copy ul.checks li::before {
  content: "";
  flex: none;
  margin-top: 7px;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--accent);
}
.feature-phone { max-width: 320px; }
.feature-row.reverse .feature-phone { margin-left: auto; }

/* ---- Stat band ---- */
.stat-band {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 44px 36px;
}
.stat { text-align: center; }
.stat .v { font-family: var(--serif); font-size: clamp(2.2rem, 4vw, 3.2rem); color: var(--accent); line-height: 1; }
.stat .l { color: var(--text-muted); font-size: 14px; margin-top: 8px; }

/* ---- Country chips ---- */
.chips { display: flex; flex-wrap: wrap; gap: 10px; }
.chip {
  border: 1px solid var(--border);
  background: var(--surface-alt);
  border-radius: 999px;
  padding: 8px 16px;
  font-size: 14px;
  color: var(--text-muted);
}
.chip.live { color: var(--text); border-color: var(--accent-dim); }
.chip.live::before {
  content: "";
  display: inline-block;
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--accent);
  margin-right: 8px;
  vertical-align: middle;
}

/* ---- CTA band ---- */
.cta-band {
  background:
    radial-gradient(120% 140% at 50% 0%, rgba(61, 220, 151, 0.10), transparent 60%),
    var(--surface);
  border: 1px solid var(--border);
  border-radius: 24px;
  padding: clamp(48px, 7vw, 80px) 32px;
  text-align: center;
}
.cta-band .h2 { margin-bottom: 16px; }
.cta-band .lead { margin: 0 auto 32px; }
.cta-actions { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ---- Prose (legal / long form) ---- */
.prose { max-width: 75ch; }
.prose h2 {
  font-family: var(--serif);
  font-size: 1.9rem;
  margin: 44px 0 14px;
}
.prose h3 {
  font-family: var(--sans);
  font-size: 1.15rem;
  font-weight: 600;
  margin: 28px 0 10px;
}
.prose p, .prose li { color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.prose p { margin-bottom: 14px; }
.prose ul { margin: 0 0 16px 0; display: grid; gap: 8px; }
.prose ul li { padding-left: 22px; position: relative; }
.prose ul li::before {
  content: "";
  position: absolute; left: 0; top: 10px;
  width: 6px; height: 6px; border-radius: 50%;
  background: var(--accent);
}
.prose a { color: var(--accent); text-decoration: underline; text-underline-offset: 3px; }
.prose strong { color: var(--text); font-weight: 600; }
.prose .updated { color: var(--text-faint); font-size: 14px; margin-bottom: 8px; }

/* ---- FAQ ---- */
.faq-list { max-width: 800px; margin-inline: auto; display: grid; gap: 0; }
.faq-item { border-bottom: 1px solid var(--border); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  padding: 24px 4px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
  font-size: 1.15rem;
  font-weight: 500;
  color: var(--text);
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary .plus {
  flex: none;
  width: 24px; height: 24px;
  position: relative;
  transition: transform .25s ease;
  color: var(--accent);
}
.faq-item summary .plus::before,
.faq-item summary .plus::after {
  content: ""; position: absolute; background: currentColor; border-radius: 2px;
  top: 50%; left: 50%; transform: translate(-50%, -50%);
}
.faq-item summary .plus::before { width: 16px; height: 2px; }
.faq-item summary .plus::after  { width: 2px; height: 16px; }
.faq-item[open] summary .plus::after { transform: translate(-50%, -50%) scaleY(0); }
.faq-item .answer { padding: 0 4px 24px; color: var(--text-muted); font-size: 16px; line-height: 1.7; }
.faq-item .answer p + p { margin-top: 12px; }

/* ---- Contact form ---- */
.contact-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 56px; align-items: start; }
.form { display: grid; gap: 18px; }
.field { display: grid; gap: 8px; }
.field label { font-size: 14px; font-weight: 500; color: var(--text); }
.field input, .field textarea {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  padding: 13px 16px;
  color: var(--text);
  font-family: inherit;
  font-size: 16px;
}
.field input:focus, .field textarea:focus { border-color: var(--accent); outline: none; }
.field textarea { min-height: 140px; resize: vertical; }
.contact-info .info-item { padding: 18px 0; border-bottom: 1px solid var(--border); }
.contact-info .info-item .k { font-size: 13px; text-transform: uppercase; letter-spacing: 0.1em; color: var(--text-faint); margin-bottom: 6px; }
.contact-info .info-item .val { font-size: 1.1rem; }
.contact-info .info-item a { color: var(--accent); }
.socials { display: flex; gap: 12px; margin-top: 22px; }
.socials a {
  width: 44px; height: 44px;
  display: grid; place-items: center;
  border: 1px solid var(--border);
  border-radius: 12px;
  color: var(--text-muted);
  transition: color .15s ease, border-color .15s ease;
}
.socials a:hover { color: var(--accent); border-color: var(--accent-dim); }
.socials svg { width: 20px; height: 20px; }

/* ---- Image showcase ---- */
.showcase { margin-top: 40px; }
.showcase .frame { box-shadow: 0 30px 70px -40px rgba(0,0,0,0.8); }

/* Pills row */
.pill-row { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.pill {
  display: inline-flex; align-items: center; gap: 8px;
  border: 1px solid var(--border);
  background: var(--surface);
  border-radius: 999px;
  padding: 10px 18px;
  font-size: 14px;
  color: var(--text-muted);
}
.pill .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--accent); }

/* ==========================================================================
   FOOTER
   ========================================================================== */
.site-footer {
  border-top: 1px solid var(--border);
  background: var(--surface);
  padding-block: 64px 0;
  margin-top: 40px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 48px;
}
.footer-brand .brand { margin-bottom: 16px; }
.footer-brand p { color: var(--text-muted); font-size: 15px; max-width: 30ch; }
.footer-col h4 {
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--text-faint);
  margin-bottom: 18px;
}
.footer-col ul { display: grid; gap: 12px; }
.footer-col a { color: var(--text-muted); font-size: 15px; transition: color .15s ease; }
.footer-col a:hover { color: var(--accent); }
.footer-bar {
  border-top: 1px solid var(--border);
  padding-block: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  flex-wrap: wrap;
  color: var(--text-faint);
  font-size: 14px;
}
.footer-bar a:hover { color: var(--accent); }

/* ==========================================================================
   RESPONSIVE
   ========================================================================== */
@media (max-width: 1024px) {
  .nav-links { gap: 0; }
  .nav-links a { padding: 8px 9px; font-size: 14px; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .footer-brand { grid-column: 1 / -1; }
}

@media (max-width: 768px) {
  body { font-size: 16px; }
  .section { padding-block: 64px; }
  .nav-links, .nav-cta .btn { display: none; }
  .nav-toggle { display: flex; }
  .hero-grid { grid-template-columns: 1fr; }
  .hero-copy { max-width: none; }
  .hero-media { order: -1; }
  .hero-phone { max-width: 280px; }
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .feature-row { grid-template-columns: 1fr; gap: 28px; padding-block: 44px; }
  .feature-row.reverse .feature-media { order: 0; }
  .feature-media { order: -1; }
  .feature-phone, .feature-row.reverse .feature-phone { max-width: 260px; margin-inline: auto; }
  .stat-band { grid-template-columns: repeat(2, 1fr); gap: 32px 20px; padding: 36px 24px; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 460px) {
  .footer-grid { grid-template-columns: 1fr; }
  .stat-band { grid-template-columns: 1fr 1fr; }
  .hero-actions, .cta-actions { width: 100%; }
  .hero-actions .btn, .cta-actions .btn { flex: 1; }
}

@media (prefers-reduced-motion: reduce) {
  * { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
