/* ============================================================
   EVJ Partners — Design System v2
   Navy + Gold · Playfair Display + Inter · Modern & Actionable
   ============================================================ */

:root {
  --navy:     #001f5b;
  --navy-mid: #002d72;
  --navy-dk:  #001535;
  --gold:     #9e8b5a;
  --gold-lt:  #c4a96e;
  --accent:   #4a90d9;
  --accent-lt:#6aaee8;
  --cream:    #faf9f7;
  --slate:    #4a5568;
  --text:     #1a2340;
  --white:    #ffffff;
  --border:   #e2e8f0;
  --sky:      #4a90d9;
  --ease:     cubic-bezier(0.4, 0, 0.2, 1);
  --radius:   4px;
}

/* ── Reset ── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: 'Inter', sans-serif;
  color: var(--text);
  background: var(--white);
  overflow-x: hidden;
  font-size: 16px;
  line-height: 1.7;
}

/* Subtle noise texture */
body::before {
  content: '';
  position: fixed; inset: 0;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.04'/%3E%3C/svg%3E");
  pointer-events: none; z-index: 9999; opacity: 0.3;
}

h1, h2, h3, h4 { font-family: 'Playfair Display', serif; line-height: 1.15; }
strong { color: var(--text); font-weight: 600; }
a { color: inherit; }

/* ── Bilingual ── */
body.lang-es .lang-en { display: none !important; }
body.lang-en .lang-es { display: none !important; }

/* ── Reveal on scroll ── */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.reveal.visible { opacity: 1; transform: translateY(0); }

/* ============================================================
   NAV
   ============================================================ */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 1000;
  height: 78px; display: flex; align-items: center;
  background: #001f5b;
  border-bottom: 1px solid rgba(255,255,255,0.08);
  transition: box-shadow 0.3s var(--ease);
}
nav.scrolled { box-shadow: 0 4px 30px rgba(0,0,0,0.25); }

.nav-inner {
  max-width: 1280px; margin: 0 auto; padding: 0 2rem;
  width: 100%; display: flex; justify-content: space-between; align-items: center;
}

.logo { display: flex; align-items: center; text-decoration: none; }
.logo img { height: 51px; width: auto; object-fit: contain; }
@media (max-width: 600px) { .logo img { height: 41px; } }

.nav-links { display: none; gap: 2rem; list-style: none; }
@media (min-width: 1024px) { .nav-links { display: flex; } }

.nav-links a {
  text-decoration: none; font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.16em; text-transform: uppercase; color: rgba(255,255,255,0.75);
  transition: color 0.2s; position: relative; padding-bottom: 3px;
}
.nav-links a::after {
  content: ''; position: absolute; bottom: 0; left: 0;
  width: 0; height: 1px; background: var(--accent);
  transition: width 0.3s var(--ease);
}
.nav-links a:hover { color: #ffffff; }
.nav-links a:hover::after, .nav-links a.active::after { width: 100%; }
.nav-links a.active { color: #ffffff; }

.nav-right { display: flex; align-items: center; gap: 1.5rem; }
.nav-actions { display: flex; align-items: center; gap: 1.5rem; }
.nav-social { color: rgba(255,255,255,0.6); font-size: 1.1rem; text-decoration: none; transition: color 0.2s; display: none; }
.nav-social:hover { color: var(--accent); }
@media (min-width: 1024px) { .nav-social { display: inline-flex; align-items: center; } }

.lang-toggle { display: flex; align-items: center; gap: 0.5rem; }
.lang-toggle button {
  background: none; border: none; cursor: pointer;
  font-family: 'Inter', sans-serif; font-size: 0.72rem;
  font-weight: 700; letter-spacing: 0.12em; color: rgba(255,255,255,0.55);
  padding: 2px 0; transition: color 0.2s;
}
.lang-toggle button.active { color: #ffffff; border-bottom: 2px solid var(--accent); }
.lang-sep { color: rgba(255,255,255,0.25); }

.nav-cta {
  display: none;
  background: var(--accent); color: var(--white);
  text-decoration: none; font-size: 0.7rem; font-weight: 600;
  letter-spacing: 0.18em; text-transform: uppercase;
  padding: 0.55rem 1.1rem; border: 1px solid var(--accent); border-radius: 6px;
  transition: all 0.3s var(--ease);
}
.nav-cta:hover { background: transparent; color: #ffffff; border-color: rgba(255,255,255,0.5); }
@media (min-width: 1024px) { .nav-cta { display: inline-block; } }

.hamburger {
  display: flex; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px; background: none; border: none;
}
@media (min-width: 1024px) { .hamburger { display: none; } }
.hamburger span { display: block; width: 24px; height: 2px; background: rgba(255,255,255,0.85); transition: all 0.3s; }
.hamburger.open span:nth-child(1) { transform: translateY(7px) rotate(45deg); }
.hamburger.open span:nth-child(2) { opacity: 0; }
.hamburger.open span:nth-child(3) { transform: translateY(-7px) rotate(-45deg); }

.mobile-menu {
  display: none; position: fixed; top: 78px; left: 0; right: 0;
  background: #001f5b; border-bottom: 1px solid rgba(255,255,255,0.08);
  padding: 1.5rem 2rem; z-index: 999; flex-direction: column; gap: 1.2rem;
}
.mobile-menu.open { display: flex; }
.mobile-menu a {
  text-decoration: none; font-size: 0.85rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.85);
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn-primary {
  display: inline-block; background: var(--accent); color: var(--white);
  text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2.5rem; border: 1px solid var(--accent);
  transition: all 0.3s var(--ease); border-radius: var(--radius);
}
.btn-primary:hover { background: var(--white); color: var(--navy-mid); border-color: var(--white); }

.btn-ghost {
  display: inline-block; color: rgba(255,255,255,0.8);
  text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2.5rem; border: 1px solid rgba(255,255,255,0.35);
  transition: all 0.3s var(--ease); border-radius: var(--radius);
}
.btn-ghost:hover { background: rgba(255,255,255,0.09); color: var(--white); border-color: rgba(255,255,255,0.65); }

.btn-dark {
  display: inline-block; background: var(--navy-mid); color: var(--white);
  text-decoration: none; font-size: 0.78rem; font-weight: 600;
  letter-spacing: 0.22em; text-transform: uppercase;
  padding: 1rem 2.5rem; border: 1px solid var(--navy-mid);
  transition: all 0.3s var(--ease); border-radius: var(--radius);
}
.btn-dark:hover { background: transparent; color: var(--navy-mid); }

/* ============================================================
   SECTIONS — shared layout
   ============================================================ */
section { padding: 6rem 2rem; }
.container { max-width: 1280px; margin: 0 auto; }

.section-eyebrow {
  font-size: 0.72rem; font-weight: 600; letter-spacing: 0.35em;
  text-transform: uppercase; color: var(--accent);
  margin-bottom: 0.9rem; display: block;
}
.section-title {
  font-size: clamp(2rem, 3.5vw, 3rem); font-weight: 700;
  color: var(--navy-mid); line-height: 1.18; margin-bottom: 1rem;
}
.section-sub {
  font-size: 1.05rem; color: var(--slate); line-height: 1.85;
  font-weight: 300; max-width: 640px;
}
.divider { width: 48px; height: 2px; background: var(--accent); margin-bottom: 2.5rem; }
.text-center { text-align: center; }
.text-center .divider { margin-left: auto; margin-right: auto; }
.text-center .section-sub { margin: 0 auto; }

/* ============================================================
   WHATSAPP FLOATING BUTTON
   ============================================================ */
@keyframes wa-pulse {
  0%   { transform: scale(1);    opacity: 0.7; }
  70%  { transform: scale(1.9);  opacity: 0; }
  100% { transform: scale(2.2);  opacity: 0; }
}
.wa-float {
  position: fixed; bottom: 2rem; right: 2rem; z-index: 900;
  width: 56px; height: 56px; background: #25d366; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 20px rgba(37,211,102,0.4);
  text-decoration: none; transition: transform 0.3s var(--ease), box-shadow 0.3s;
}
.wa-float::before {
  content: '';
  position: absolute; inset: 0;
  border-radius: 50%; background: #25d366;
  animation: wa-pulse 2s ease-out infinite;
  z-index: -1;
}
.wa-float:hover { transform: scale(1.08); box-shadow: 0 6px 28px rgba(37,211,102,0.5); }
.wa-float i { color: white; font-size: 1.6rem; }

/* ============================================================
   BACK TO TOP
   ============================================================ */
.back-top {
  display: none !important;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-dk);
  padding: 3rem 2rem 2rem;
}
.footer-inner {
  max-width: 1280px; margin: 0 auto;
  display: grid; grid-template-columns: 1fr;
  gap: 2.5rem;
}
@media (min-width: 768px) {
  .footer-inner { grid-template-columns: 1.5fr 1fr 1fr; gap: 3rem; }
}
.footer-brand img { height: 51px; margin-bottom: 1rem; }
.footer-brand p { font-size: 0.88rem; color: rgba(255,255,255,0.38); line-height: 1.75; max-width: 280px; }
.footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.7rem; font-weight: 700; letter-spacing: 0.22em;
  text-transform: uppercase; color: rgba(255,255,255,0.35);
  margin-bottom: 1.2rem;
}
.footer-col ul { list-style: none; display: flex; flex-direction: column; gap: 0.75rem; }
.footer-col ul a {
  font-size: 0.88rem; color: rgba(255,255,255,0.5);
  text-decoration: none; transition: color 0.2s;
}
.footer-col ul a:hover { color: var(--accent-lt); }
.footer-bottom {
  padding-right: 6rem;
  border-top: 1px solid rgba(255,255,255,0.07);
  margin-top: 2.5rem; padding-top: 1.5rem;
  display: flex; flex-wrap: wrap; gap: 1rem;
  justify-content: space-between; align-items: center;
}
.footer-copy { font-size: 0.72rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.2); }
.footer-legal { display: flex; gap: 1.5rem; }
.footer-legal a { font-size: 0.72rem; color: rgba(255,255,255,0.25); text-decoration: none; letter-spacing: 0.08em; text-transform: uppercase; transition: color 0.2s; }
.footer-legal a:hover { color: var(--accent-lt); }
