/* ============================================
   Aureo Capital — by Spica LLC
   Design system: Manual de marca Aureo Capital
   Azul #10285A · Naranja #FF9719 · Gris #E6E6E6
   Tipografías: Prompt (títulos), General Sans (texto),
   Archivo Expanded (etiquetas display)
   Light & dark themes via CSS custom properties.
   ============================================ */

@font-face {
  font-family: 'Prompt';
  src: url('../fonts/Prompt-Regular.ttf') format('truetype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Regular.otf') format('opentype');
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: 'General Sans';
  src: url('../fonts/GeneralSans-Light.otf') format('opentype');
  font-weight: 300;
  font-display: swap;
}
@font-face {
  font-family: 'Archivo Expanded';
  src: url('../fonts/Archivo_Expanded-Medium.ttf') format('truetype');
  font-weight: 500;
  font-display: swap;
}

/* ---------- Theme tokens ---------- */
:root {
  /* Brand constants */
  --navy: #10285a;
  --navy-deep: #0b1d43;
  --orange: #ff9719;
  --orange-light: #ffb95c;
  --grad-orange: linear-gradient(135deg, #f7810a 0%, #ffb244 100%);
  --radius: 14px;
  --maxw: 1160px;

  /* Light theme (default) */
  --bg: #ffffff;
  --bg-alt: #f5f6f8;
  --surface: #ffffff;
  --border: #e6e6e6;
  --text: #1c2333;
  --text-soft: #4a5468;
  --heading: #10285a;
  --header-bg: rgba(255, 255, 255, 0.94);
  --input-bg: #f5f6f8;
  --shadow: 0 10px 30px rgba(16, 40, 90, 0.10);
}

/* Dark theme — explicit user choice */
:root[data-theme="dark"] {
  --bg: #081431;
  --bg-alt: #0d1d42;
  --surface: #112450;
  --border: rgba(255, 255, 255, 0.14);
  --text: #e8ecf4;
  --text-soft: #a9b4c9;
  --heading: #ffffff;
  --header-bg: rgba(8, 20, 49, 0.92);
  --input-bg: #0d1d42;
  --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

/* Dark theme — system preference (unless user chose light) */
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #081431;
    --bg-alt: #0d1d42;
    --surface: #112450;
    --border: rgba(255, 255, 255, 0.14);
    --text: #e8ecf4;
    --text-soft: #a9b4c9;
    --heading: #ffffff;
    --header-bg: rgba(8, 20, 49, 0.92);
    --input-bg: #0d1d42;
    --shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
  }
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'General Sans', 'Helvetica Neue', Arial, sans-serif;
  font-weight: 400;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }

h1, h2, h3, h4 { font-family: 'Prompt', 'General Sans', sans-serif; font-weight: 400; line-height: 1.2; color: var(--heading); }

.eyebrow {
  font-family: 'Archivo Expanded', 'Prompt', sans-serif;
  font-size: 0.72rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--orange);
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  margin-bottom: 1rem;
}
.eyebrow::before {
  content: '';
  width: 26px; height: 2px;
  background: var(--orange);
  display: inline-block;
}

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

/* ---------- Header ---------- */
.site-header {
  position: sticky; top: 0; z-index: 50;
  background: var(--header-bg);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid var(--border);
}
.site-header .container {
  display: flex; align-items: center; justify-content: space-between;
  height: 76px; gap: 1rem;
}
.brand img { height: 40px; width: auto; }
.brand { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; text-decoration: none; flex-shrink: 0; }
.brand-byline {
  font-family: 'Archivo Expanded', sans-serif;
  font-size: 0.4rem; letter-spacing: 0.34em; text-transform: uppercase;
  color: var(--text-soft); opacity: 0.55;
  line-height: 1; white-space: nowrap;
  padding-left: 3.1rem;
}

/* Logo swap per theme */
.logo-dark { display: none; }
:root[data-theme="dark"] .logo-light { display: none; }
:root[data-theme="dark"] .logo-dark { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .logo-light { display: none; }
  :root:not([data-theme="light"]) .logo-dark { display: block; }
}

.header-tools { display: flex; align-items: center; gap: 0.9rem; }

.nav { display: flex; align-items: center; gap: 1.5rem; }
.nav a {
  text-decoration: none; color: var(--heading);
  font-size: 0.95rem;
  padding: 0.25rem 0;
  border-bottom: 2px solid transparent;
  transition: border-color .2s, color .2s;
}
.nav a:hover, .nav a[aria-current="page"] { border-bottom-color: var(--orange); }
.nav .nav-cta {
  background: var(--grad-orange); color: #fff;
  padding: 0.55rem 1.3rem; border-radius: 999px; border: none;
  font-weight: 400;
}
.nav .nav-cta:hover { filter: brightness(1.05); border-bottom-color: transparent; }

.lang-switch {
  font-family: 'Archivo Expanded', sans-serif;
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-decoration: none; color: var(--heading);
  border: 1px solid var(--border); border-radius: 999px;
  padding: 0.4rem 0.85rem; white-space: nowrap;
}
.lang-switch:hover { border-color: var(--orange); color: var(--orange); }

.theme-toggle {
  background: none; border: 1px solid var(--border); border-radius: 999px;
  width: 38px; height: 38px; cursor: pointer;
  color: var(--heading); font-size: 1rem; line-height: 1;
  display: inline-flex; align-items: center; justify-content: center;
}
.theme-toggle:hover { border-color: var(--orange); }
.tt-sun { display: none; }
.tt-moon { display: inline; }
:root[data-theme="dark"] .tt-sun { display: inline; }
:root[data-theme="dark"] .tt-moon { display: none; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .tt-sun { display: inline; }
  :root:not([data-theme="light"]) .tt-moon { display: none; }
}

.nav-toggle { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.nav-toggle span { display: block; width: 24px; height: 2px; background: var(--heading); margin: 5px 0; transition: .2s; }

/* ---------- Hero (navy in both themes) ---------- */
.hero {
  background: radial-gradient(1200px 600px at 85% -10%, #1d3a78 0%, var(--navy) 45%, var(--navy-deep) 100%);
  color: #fff;
  padding: 6.5rem 0 6rem;
  position: relative;
  overflow: hidden;
}
.hero::after {
  content: '';
  position: absolute; right: -140px; bottom: -180px;
  width: 520px; height: 520px;
  background: var(--grad-orange);
  opacity: 0.14;
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
}
.hero h1 { color: #fff; font-size: clamp(2.1rem, 4.6vw, 3.4rem); max-width: 780px; }
.hero h1 em { font-style: normal; color: var(--orange-light); }
.hero p.lead {
  font-weight: 300; font-size: 1.18rem; max-width: 640px;
  margin: 1.5rem 0 2.4rem; color: rgba(255,255,255,0.85);
}
.hero-actions { display: flex; gap: 1rem; flex-wrap: wrap; }

.btn {
  display: inline-block; text-decoration: none;
  font-family: 'General Sans', sans-serif; font-size: 1rem;
  padding: 0.85rem 1.9rem; border-radius: 999px;
  transition: transform .15s, filter .15s;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--grad-orange); color: #fff; }
.btn-outline-light { border: 1px solid rgba(255,255,255,0.55); color: #fff; }
.btn-outline-light:hover { border-color: #fff; }
.btn-navy { background: var(--navy); color: #fff; }

/* ---------- Sections ---------- */
.section { padding: 5.5rem 0; }
.section.alt { background: var(--bg-alt); }
.section-head { max-width: 720px; margin-bottom: 3rem; }
.section-head h2 { font-size: clamp(1.7rem, 3vw, 2.4rem); }
.section-head p { color: var(--text-soft); margin-top: 0.9rem; }

.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 1.5rem; }
.grid-2 { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
.grid-4 { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1.5rem; }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 2rem 1.8rem;
  box-shadow: var(--shadow);
  display: flex; flex-direction: column; gap: 0.8rem;
}
.card h3 { font-size: 1.25rem; }
.card p { color: var(--text-soft); font-size: 0.97rem; }
.card .card-link { margin-top: auto; color: var(--orange); text-decoration: none; font-size: 0.95rem; }
.card .card-link:hover { text-decoration: underline; }

.icon-hex {
  width: 52px; height: 52px;
  background: var(--grad-orange);
  clip-path: polygon(50% 0%, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%);
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-family: 'Prompt', sans-serif; font-size: 1.3rem;
}

/* Steps (procesos) */
.steps { counter-reset: step; display: grid; gap: 1.1rem; }
.step {
  background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.5rem 1.7rem 1.5rem 4.6rem; position: relative;
}
.step::before {
  counter-increment: step; content: counter(step, decimal-leading-zero);
  position: absolute; left: 1.4rem; top: 1.45rem;
  font-family: 'Archivo Expanded', sans-serif; font-size: 0.95rem;
  color: var(--orange);
}
.step h3 { font-size: 1.12rem; margin-bottom: 0.35rem; }
.step p { color: var(--text-soft); font-size: 0.96rem; }

/* Values */
.value-item h3 { font-size: 1.1rem; margin: 0.7rem 0 0.4rem; }
.value-item p { color: var(--text-soft); font-size: 0.94rem; }

/* Generic soft paragraph (replaces inline colors) */
.soft { margin-top: 1rem; color: var(--text-soft); }

/* CTA band */
.cta-band {
  background: radial-gradient(900px 400px at 15% 0%, #1d3a78 0%, var(--navy) 55%, var(--navy-deep) 100%);
  color: #fff;
  border-radius: 20px;
  padding: 3.5rem 3rem;
  display: flex; align-items: center; justify-content: space-between; gap: 2rem; flex-wrap: wrap;
}
.cta-band h2 { color: #fff; font-size: clamp(1.5rem, 2.6vw, 2.1rem); max-width: 560px; }
.cta-band p { color: rgba(255,255,255,0.8); margin-top: 0.5rem; max-width: 560px; }

/* FAQ */
details.faq {
  border: 1px solid var(--border); border-radius: var(--radius);
  padding: 1.1rem 1.4rem; background: var(--surface); margin-bottom: 0.9rem;
}
details.faq summary {
  cursor: pointer; font-family: 'Prompt', sans-serif; color: var(--heading);
  font-size: 1.05rem; list-style: none; position: relative; padding-right: 2rem;
}
details.faq summary::after { content: '+'; position: absolute; right: 0.2rem; top: 0; color: var(--orange); font-size: 1.3rem; }
details.faq[open] summary::after { content: '–'; }
details.faq p { margin-top: 0.7rem; color: var(--text-soft); }

/* Contact */
.contact-grid { display: grid; grid-template-columns: 1.1fr 1fr; gap: 3rem; align-items: start; }
.contact-info h3 { font-size: 1.15rem; margin-bottom: 0.4rem; }
.contact-info p { color: var(--text-soft); margin-bottom: 1.4rem; }
.contact-info a { color: var(--heading); }

form.contact-form { display: grid; gap: 1rem; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); padding: 2rem; box-shadow: var(--shadow); }
form.contact-form label { font-size: 0.88rem; color: var(--heading); font-family: 'Prompt', sans-serif; }
form.contact-form input, form.contact-form textarea {
  width: 100%; padding: 0.75rem 0.9rem; margin-top: 0.3rem;
  border: 1px solid var(--border); border-radius: 8px;
  font-family: 'General Sans', sans-serif; font-size: 0.97rem; color: var(--text);
  background: var(--input-bg);
}
form.contact-form input:focus, form.contact-form textarea:focus { outline: 2px solid var(--orange-light); background: var(--surface); }
form.contact-form button {
  background: var(--grad-orange); color: #fff; border: none; cursor: pointer;
  padding: 0.9rem 1.5rem; border-radius: 999px; font-family: 'General Sans', sans-serif; font-size: 1rem;
}
form.contact-form button:hover { filter: brightness(1.05); }
.form-note { font-size: 0.8rem; color: var(--text-soft); }
.form-note a { color: var(--heading); }

/* Legal pages */
.legal { max-width: 820px; margin: 0 auto; padding: 4.5rem 24px 5.5rem; }
.legal h1 { font-size: 2.1rem; margin-bottom: 0.4rem; }
.legal .legal-meta { color: var(--text-soft); font-size: 0.9rem; margin-bottom: 2.4rem; }
.legal h2 { font-size: 1.35rem; margin: 2.2rem 0 0.7rem; }
.legal h3 { font-size: 1.1rem; margin: 1.6rem 0 0.5rem; }
.legal p, .legal li { color: var(--text-soft); font-size: 0.98rem; }
.legal ul { padding-left: 1.3rem; margin: 0.6rem 0 1rem; }
.legal li { margin-bottom: 0.4rem; }
.legal a { color: var(--heading); }
.legal .notice {
  background: var(--bg-alt); border-left: 3px solid var(--orange);
  padding: 1rem 1.3rem; border-radius: 0 8px 8px 0; margin: 1.4rem 0;
}

/* ---------- Footer (navy in both themes) ---------- */
.site-footer {
  background: var(--navy-deep); color: rgba(255,255,255,0.78);
  padding: 4rem 0 2rem; margin-top: 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.2fr; gap: 2.5rem; padding-bottom: 2.5rem; border-bottom: 1px solid rgba(255,255,255,0.14); }
.site-footer img.footer-logo { height: 44px; width: auto; margin-bottom: 1rem; }
.site-footer h4 {
  color: #fff; font-family: 'Archivo Expanded', sans-serif;
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase; margin-bottom: 1rem;
}
.site-footer ul { list-style: none; }
.site-footer li { margin-bottom: 0.55rem; }
.site-footer a { color: rgba(255,255,255,0.78); text-decoration: none; font-size: 0.93rem; }
.site-footer a:hover { color: var(--orange-light); }
.footer-tagline { font-size: 0.93rem; font-weight: 300; max-width: 280px; }
.footer-legal {
  padding-top: 1.8rem; font-size: 0.82rem; color: rgba(255,255,255,0.55);
  display: grid; gap: 0.7rem;
}
.footer-legal .byspica { color: rgba(255,255,255,0.85); font-size: 0.9rem; }
.footer-legal .byspica strong { color: #fff; font-weight: 400; }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .grid-3, .grid-4 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .contact-grid { grid-template-columns: 1fr; }
}
@media (max-width: 1280px) {
  .nav {
    display: none;
    position: absolute; top: 76px; left: 0; right: 0;
    background: var(--bg); border-bottom: 1px solid var(--border);
    flex-direction: column; align-items: flex-start;
    padding: 1.2rem 24px 1.6rem; gap: 1.1rem;
    box-shadow: var(--shadow);
  }
  .nav.open { display: flex; }
  .nav-toggle { display: block; }
}
@media (max-width: 680px) {
  .grid-3, .grid-2, .grid-4 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .hero { padding: 4.5rem 0 4rem; }
  .cta-band { padding: 2.5rem 1.8rem; }
  .brand img { height: 32px; }
  .brand-byline { padding-left: 2.5rem; font-size: 0.36rem; }
  .header-tools { gap: 0.45rem; }
  .lang-long { display: none; }
  .lang-switch { padding: 0.4rem 0.6rem; }
}
@media (max-width: 460px) {
  .site-header .container { padding: 0 16px; }
  .brand img { height: 26px; }
  .brand-byline { padding-left: 2rem; font-size: 0.34rem; }
  .theme-toggle { width: 34px; height: 34px; }
}
