/* ════════════════════════════════════════════════════════════════════
   SHARED STYLES — used by /thanks, /privacy, /terms, 404
   CALAM Immigration Law · per Manual de Identidad
   bordó #621a28 (predominant) · navy #181c3e · gold #ae9760 · beige #ede7de
   The main index.html has its own inline styles for performance.
   ════════════════════════════════════════════════════════════════════ */
:root {
  --bordo-900: #4a1320;
  --bordo-800: #621a28;
  --bordo-700: #7c2434;
  --burgundy:  #621a28;
  --navy-900: #10132b;
  --navy-800: #181c3e;
  --navy-700: #2a2f54;
  --gold-400: #c4ab78;
  --gold-500: #ae9760;
  --gold-600: #967f4e;
  --silver:    #c2c0c0;
  --ink:       #2b2724;
  --ink-2:     #403a34;
  --ink-3:     #5f594f;
  --ink-4:     #8a847b;
  --bg:        #ffffff;
  --bg-soft:   #f6f1ea;
  --bg-warm:   #ede7de;
  --line:      #e7e0d6;
  --line-2:    #d6cdbf;
  --shadow-sm: 0 1px 2px rgba(20,17,15,.05), 0 4px 14px -4px rgba(20,17,15,.08);
  --shadow-md: 0 2px 6px rgba(20,17,15,.06), 0 14px 32px -10px rgba(74,19,32,.16);
  --radius-sm: 8px;
  --radius:    12px;
  --radius-lg: 18px;
  --serif: 'Lusitana', Georgia, 'Times New Roman', serif;
  --sans:  'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --container: 1200px;
  --nav-h: 72px;
}
*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font-family: var(--sans); font-size: 16px; line-height: 1.6;
  color: var(--ink-2); background: var(--bg);
  -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility;
}
img, svg { display: block; max-width: 100%; }
a { color: var(--bordo-800); text-decoration: none; }
::selection { background: var(--gold-500); color: #fff; }
h1, h2, h3, h4 { color: var(--ink); font-family: var(--serif); font-weight: 700; line-height: 1.12; letter-spacing: -0.01em; margin: 0; }
.em { font-style: italic; font-weight: 600; }
.em-gold { color: var(--gold-600); font-style: italic; }

/* bilingual toggle (matches index.html) */
html[lang="en"] .lang-es { display: none !important; }
html[lang="es"] .lang-en { display: none !important; }

.container { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 24px; }
@media (min-width: 640px) { .container { padding: 0 40px; } }
@media (min-width: 1024px) { .container { padding: 0 64px; } }
@media (min-width: 1400px) { .container { padding: 0 88px; } }

/* NAV */
.nav { position: sticky; top: 0; z-index: 60; background: rgba(255,255,255,.94); backdrop-filter: blur(16px); border-bottom: 1px solid var(--line); min-height: var(--nav-h); }
.nav-inner { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding-block: 14px; }
.brand { display: inline-flex; align-items: center; }
.brand img { height: 34px; width: auto; }
.brand-name { font-family: var(--serif); font-weight: 700; color: var(--ink); font-size: 18px; letter-spacing: -0.01em; }
.nav-right { display: inline-flex; align-items: center; gap: 12px; }
.nav-phone { display: none; align-items: center; gap: 8px; color: var(--ink); font-weight: 600; font-size: 15px; }
.nav-phone svg { color: var(--gold-600); }
@media (min-width: 860px) { .nav-phone { display: inline-flex; } }
.nav-cta { display: none; }
@media (min-width: 640px) { .nav-cta { display: inline-flex; } }

/* BUTTONS */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 14px 26px; border-radius: var(--radius); cursor: pointer; font-family: var(--sans); font-weight: 600; font-size: 15px; text-decoration: none; border: 1px solid transparent; white-space: nowrap; transition: transform .08s ease, background .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease; }
.btn:active { transform: translateY(1px); }
.btn-gold { background: var(--gold-500); color: #fff; border-color: var(--gold-500); box-shadow: 0 6px 14px -4px rgba(150,127,78,.5); }
.btn-gold:hover { background: var(--gold-600); border-color: var(--gold-600); }
.btn-ghost { background: transparent; color: var(--ink); border-color: var(--line-2); }
.btn-ghost:hover { background: var(--bg-soft); border-color: var(--ink-4); }
.btn-lg { padding: 17px 30px; font-size: 16px; }

/* FOOTER */
.footer { background: var(--navy-800); color: rgba(255,255,255,.65); padding: 64px 0 80px; font-size: 14px; }
.footer-grid { display: grid; gap: 36px; }
@media (min-width: 768px) { .footer-grid { grid-template-columns: 1.6fr 1fr; gap: 64px; } }
.footer .flogo { height: 38px; width: auto; filter: brightness(0) invert(1); opacity: .9; }
.footer-brand .brand-name { color: #fff; }
.footer-tag { margin: 18px 0 0; color: rgba(255,255,255,.55); line-height: 1.65; max-width: 360px; }
.footer h4 { color: #fff; font-family: var(--sans); font-size: 12px; font-weight: 600; letter-spacing: 0.16em; text-transform: uppercase; margin-bottom: 20px; }
.footer-contact { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; }
.footer-contact li { display: flex; align-items: center; gap: 12px; color: rgba(255,255,255,.75); }
.footer-contact svg { color: var(--gold-400); flex-shrink: 0; }
.footer-contact a { color: rgba(255,255,255,.75); }
.footer-contact a:hover { color: var(--gold-400); }
.footer-bottom { margin-top: 48px; padding-top: 24px; border-top: 1px solid rgba(255,255,255,.1); display: flex; flex-wrap: wrap; gap: 18px; justify-content: space-between; font-size: 12px; color: rgba(255,255,255,.4); }
.footer-bottom a { color: rgba(255,255,255,.6); text-decoration: underline; text-underline-offset: 3px; }
.footer-bottom a:hover { color: var(--gold-400); }

/* SUBPAGE LAYOUT (centered content, big top padding) */
.subpage { min-height: calc(100vh - var(--nav-h) - 220px); padding: clamp(56px, 8vw, 96px) 0; }
.subpage-inner { max-width: 760px; margin: 0 auto; }
.subpage-inner.wide { max-width: 880px; }
.subpage h1 { font-size: clamp(34px, 4.6vw, 52px); margin-bottom: 18px; letter-spacing: -0.02em; }
.subpage .lede { font-size: 18px; color: var(--ink-3); line-height: 1.7; max-width: 600px; }
.subpage .body { margin-top: 32px; }
.subpage .body p { margin: 0 0 16px; line-height: 1.7; }
.subpage .body h2 { font-size: 24px; margin: 32px 0 12px; }
.subpage .body h3 { font-size: 18px; font-family: var(--sans); font-weight: 600; margin: 24px 0 8px; }
.subpage .body ul { padding-left: 22px; margin: 0 0 16px; }
.subpage .body li { margin-bottom: 8px; line-height: 1.65; }
.subpage .body a { text-decoration: underline; text-underline-offset: 3px; }
.subpage-actions { margin-top: 36px; display: flex; flex-wrap: wrap; gap: 12px; }

/* CONFIRMATION CARD (for /thanks) */
.confirm { text-align: center; max-width: 620px; margin: 0 auto; }
.confirm-seal { width: 80px; height: 80px; border-radius: 999px; background: var(--gold-500); color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-bottom: 28px; box-shadow: 0 6px 18px -4px rgba(150,127,78,.5); }
.confirm h1 { font-size: clamp(32px, 4vw, 44px); margin-bottom: 18px; }
.confirm p { font-size: 17px; color: var(--ink-3); line-height: 1.65; margin: 0 0 14px; }
.confirm-cta { margin-top: 32px; padding: 24px 28px; border: 1px solid var(--line); border-radius: var(--radius-lg); background: var(--bg-soft); }
.confirm-cta .label { font-size: 12px; letter-spacing: 0.16em; text-transform: uppercase; color: var(--ink-3); font-weight: 600; margin-bottom: 8px; }
.confirm-cta .num { font-family: var(--serif); font-weight: 700; font-size: 28px; color: var(--ink); }
.confirm-cta .num a { color: var(--ink); }
