/* ============================================================
   CAPITAL EXPERTO — Global CSS
   Compartido por todas las páginas
   ============================================================ */

/* === RESET & BOX MODEL === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }

/* === VARIABLES === */
:root {
  --bg:          #0A0A0F;
  --white:       #F8F8FF;
  --gray:        #94A3B8;
  --gray-dim:    #334155;
  --blue:        #3B82F6;
  --cyan:        #06B6D4;
  --indigo:      #6366F1;
  --green:       #22C55E;
  --red:         #EF4444;
  --nav-h:       76px;
  --gold:        #F59E0B;
  --max-w:       1200px;
  --radius:      12px;
  --radius-sm:   8px;
  --transition:  0.2s ease;
}

/* === BASE === */
body {
  background: var(--bg);
  color: var(--white);
  font-family: 'Inter', -apple-system, sans-serif;
  font-size: 16px;
  line-height: 1.6;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5 {
  font-family: 'Space Grotesk', sans-serif;
  line-height: 1.15;
  letter-spacing: -0.02em;
}

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

/* === AURORA BACKGROUND === */
#aurora-bg {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: -1;
  pointer-events: none;
}

/* === MAIN CONTENT WRAPPER === */
main {
  flex: 1;
  padding-top: var(--nav-h);
}

/* === CONTAINER === */
.container {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============================================================
   NAVBAR
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  height: var(--nav-h);
  z-index: 1000;
  background: rgba(10, 10, 15, 0.75);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
  transition: background 0.3s ease, box-shadow 0.3s ease;
  animation: nav-slide-in 0.7s cubic-bezier(0.23, 1, 0.32, 1) both;
}
@keyframes nav-slide-in {
  from { transform: translateY(-100%); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}

.navbar.scrolled {
  background: rgba(10, 10, 15, 0.96);
  box-shadow: 0 1px 40px rgba(0,0,0,0.4);
}

.nav-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 0 24px;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}

/* Logo */
.nav-logo {
  display: flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  flex-shrink: 0;
  transition: opacity 0.2s ease;
}
.nav-logo:hover { opacity: 0.85; }
.nav-logo img { height: 34px; width: auto; }
.nav-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.05em;
  position: relative;
}
.nav-logo-text span {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* Links */
.nav-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
}

.nav-links > li { position: relative; }

.nav-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 7px 13px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
  display: flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.nav-links a:hover,
.nav-links a.active { color: var(--white); background: rgba(255,255,255,0.06); }

/* Dropdown arrow */
.nav-arrow {
  width: 14px;
  height: 14px;
  transition: transform var(--transition);
  flex-shrink: 0;
}
.nav-links > li:hover .nav-arrow { transform: rotate(180deg); }

/* Dropdown menu */
.nav-dropdown {
  display: none;
  position: absolute;
  top: 100%;
  left: 50%;
  transform: translateX(-50%);
  min-width: 200px;
  padding-top: 10px; /* transparent bridge — keeps hover alive crossing the gap */
}
.nav-dropdown-inner {
  background: rgba(10, 10, 15, 0.97);
  border: 1px solid rgba(255,255,255,0.08);
  border-radius: var(--radius);
  padding: 6px;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  box-shadow: 0 16px 40px rgba(0,0,0,0.5);
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.nav-links > li:hover .nav-dropdown { display: block; }

.nav-dropdown a {
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.nav-dropdown a .dd-icon {
  width: 28px;
  height: 28px;
  border-radius: 7px;
  background: rgba(59,130,246,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.nav-dropdown a .dd-icon svg { width: 14px; height: 14px; color: var(--blue); }
.nav-dropdown a .dd-label { font-weight: 500; color: var(--gray); }
.nav-dropdown a .dd-sub { font-size: 11px; color: var(--gray-dim); margin-top: 1px; }
.nav-dropdown a:hover .dd-label { color: var(--white); }

/* CTA button */
.nav-cta {
  font-size: 14px;
  font-weight: 600;
  color: #fff;
  text-decoration: none;
  padding: 9px 20px;
  border-radius: 9px;
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  transition: opacity var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
  flex-shrink: 0;
}
.nav-cta:hover {
  opacity: 0.92;
  transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(59,130,246,0.35);
}

/* Hamburger */
.nav-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 36px;
  height: 36px;
  cursor: pointer;
  padding: 4px;
  border-radius: var(--radius-sm);
  transition: background var(--transition);
}
.nav-toggle:hover { background: rgba(255,255,255,0.06); }
.nav-toggle span {
  display: block;
  width: 20px;
  height: 1.5px;
  background: var(--white);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}
.nav-toggle.open span:nth-child(1) { transform: translateY(6.5px) rotate(45deg); }
.nav-toggle.open span:nth-child(2) { opacity: 0; }
.nav-toggle.open span:nth-child(3) { transform: translateY(-6.5px) rotate(-45deg); }

/* Mobile menu */
.nav-mobile {
  display: none;
  position: fixed;
  top: var(--nav-h);
  left: 0; right: 0;
  background: rgba(10, 10, 15, 0.98);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  padding: 12px 16px 20px;
  z-index: 999;
  flex-direction: column;
  gap: 2px;
}
.nav-mobile.open { display: flex; }
.nav-mobile a {
  font-size: 15px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 11px 14px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.nav-mobile a:hover { color: var(--white); background: rgba(255,255,255,0.05); }
.nav-mobile .mobile-section-label {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--gray-dim);
  padding: 12px 14px 4px;
}
.nav-mobile .nav-cta {
  margin-top: 8px;
  text-align: center;
  display: block;
  padding: 13px;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  border-top: 1px solid rgba(255,255,255,0.06);
  background: rgba(10, 10, 15, 0.6);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
}

.footer-inner {
  max-width: var(--max-w);
  margin: 0 auto;
  padding: 48px 24px 28px;
}

.footer-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  padding-bottom: 32px;
  border-bottom: 1px solid rgba(255,255,255,0.06);
  flex-wrap: wrap;
}

.footer-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
}
.footer-logo img { height: 28px; width: auto; }
.footer-logo-text {
  font-family: 'Space Grotesk', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--white);
  letter-spacing: -0.3px;
}
.footer-logo-text span { color: var(--blue); }

.footer-links {
  display: flex;
  align-items: center;
  gap: 2px;
  list-style: none;
  flex-wrap: wrap;
}
.footer-links a {
  font-size: 14px;
  font-weight: 500;
  color: var(--gray);
  text-decoration: none;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  transition: color var(--transition), background var(--transition);
}
.footer-links a:hover { color: var(--white); background: rgba(255,255,255,0.05); }

.footer-social {
  display: flex;
  align-items: center;
  gap: 8px;
}
.footer-social a {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255,255,255,0.08);
  color: var(--gray);
  text-decoration: none;
  transition: color var(--transition), border-color var(--transition), background var(--transition);
}
.footer-social a:hover {
  color: var(--white);
  border-color: rgba(59,130,246,0.4);
  background: rgba(59,130,246,0.08);
}
.footer-social svg { width: 15px; height: 15px; }

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding-top: 24px;
  flex-wrap: wrap;
}
.footer-copy { font-size: 13px; color: var(--gray-dim); line-height: 1.5; }
.footer-legal { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.footer-legal a {
  font-size: 13px;
  color: var(--gray-dim);
  text-decoration: none;
  transition: color var(--transition);
}
.footer-legal a:hover { color: var(--gray); }
.footer-disclaimer {
  width: 100%;
  font-size: 11px;
  color: var(--gray-dim);
  line-height: 1.6;
  padding-top: 16px;
  border-top: 1px solid rgba(255,255,255,0.04);
  margin-top: 8px;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 900px) {
  .nav-links, .nav-cta { display: none; }
  .nav-toggle { display: flex; }
}

@media (max-width: 640px) {
  .footer-top { flex-direction: column; align-items: flex-start; gap: 20px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}

/* ============================================================
   UTILIDADES GLOBALES
   ============================================================ */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: 100px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}
.badge-blue  { background: rgba(59,130,246,0.12); color: var(--blue);  border: 1px solid rgba(59,130,246,0.25); }
.badge-cyan  { background: rgba(6,182,212,0.12);  color: var(--cyan);  border: 1px solid rgba(6,182,212,0.25); }
.badge-green { background: rgba(34,197,94,0.12);  color: var(--green); border: 1px solid rgba(34,197,94,0.25); }

.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  border: none;
  text-decoration: none;
  transition: all var(--transition);
  white-space: nowrap;
  font-family: 'Inter', sans-serif;
}
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--cyan));
  color: #fff;
  box-shadow: 0 4px 16px rgba(59,130,246,0.25);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(59,130,246,0.4); opacity: 0.95; }
.btn-secondary {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(59,130,246,0.45);
}
.btn-secondary:hover { background: rgba(59,130,246,0.08); border-color: rgba(59,130,246,0.7); color: var(--white); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1px solid rgba(255,255,255,0.12);
}
.btn-ghost:hover { background: rgba(255,255,255,0.06); border-color: rgba(255,255,255,0.2); }

.section { padding: 80px 0; }
.section-label {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--blue);
  margin-bottom: 12px;
}
.section-title { font-size: clamp(28px, 4vw, 48px); font-weight: 800; color: var(--white); margin-bottom: 16px; }
.section-sub { font-size: 16px; color: var(--gray); max-width: 540px; line-height: 1.7; }

/* Scroll reveal */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity 0.6s ease, transform 0.6s ease; }
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   ANIMATION SYSTEM — rv-* scroll reveal (global)
   ============================================================ */
.rv-up, .rv-scale, .rv-left, .rv-right {
  opacity: 0;
  will-change: opacity, transform;
  transition: opacity 0.7s cubic-bezier(0.23, 1, 0.32, 1),
              transform 0.7s cubic-bezier(0.23, 1, 0.32, 1);
}
.rv-up    { transform: translateY(28px); }
.rv-scale { transform: translateY(16px); }
.rv-left  { transform: translateX(-36px); }
.rv-right { transform: translateX(36px); }

.rv-up.in, .rv-scale.in, .rv-left.in, .rv-right.in {
  opacity: 1;
  transform: none;
}

/* Stagger delays */
.d1 { transition-delay: 0.08s; }
.d2 { transition-delay: 0.18s; }
.d3 { transition-delay: 0.28s; }
.d4 { transition-delay: 0.38s; }
.d5 { transition-delay: 0.48s; }
.d6 { transition-delay: 0.58s; }

/* ============================================================
   HOVER MICRO-INTERACTIONS
   ============================================================ */
/* Generic card hover lift — add class "hover-lift" to any card */
.hover-lift {
  transition: transform 0.35s cubic-bezier(0.23, 1, 0.32, 1),
              box-shadow 0.35s ease,
              border-color 0.35s ease !important;
}
.hover-lift:hover {
  box-shadow: 0 12px 32px rgba(59,130,246,0.15);
}

/* Tilt-ready cards (3D on mousemove via JS) — add data-tilt attribute */
[data-tilt] {
  transform-style: preserve-3d;
  transition: transform 0.5s cubic-bezier(0.23, 1, 0.32, 1);
}

/* ============================================================
   TITLE & HEADING MICRO-ANIMATIONS
   ============================================================ */

/* Smooth fade-in shimmer on headings 