/* ═══════════════════════════════════════════════════════════════════
   Esquivel & Company · base.css
   Sistema de diseño canónico. Cormorant Garamond + Inter, oro #b8975a.
   Unifica las dos familias que existían antes: consulting/ usaba
   #b8863c + Syne; el resto del sitio #b8975a + Inter. Gana Inter.
   ═══════════════════════════════════════════════════════════════════ */

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

:root {
  /* ── Superficies ── */
  --black:      #0a0a0a;
  --dark:       #111111;
  --surface:    #161616;
  --border:     rgba(255,255,255,0.08);

  /* ── Oro ── */
  --gold:       #b8975a;
  --gold-lt:    #d4b483;
  --gold-dim:   rgba(184,151,90,0.35);

  /* ── Texto ── */
  --white:      #f5f3ef;
  --muted:      rgba(245,243,239,0.45);
  --muted-soft: rgba(245,243,239,0.65);

  /* ── Acentos heredados de consulting/ ── */
  --sage:       #3a5244;
  --slate-deep: #1c2533;
  --rust:       #7c3824;

  /* ── Tipografía ── */
  --font-serif: 'Cormorant Garamond', Georgia, serif;
  --font-sans:  'Inter', system-ui, -apple-system, sans-serif;
  --font-mono:  'JetBrains Mono', ui-monospace, monospace;
}

html { scroll-behavior: smooth; }

body {
  background: var(--black);
  color: var(--white);
  font-family: var(--font-sans);
  font-weight: 300;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

[hidden] { display: none !important; }

::selection { background: var(--gold); color: var(--black); }

:focus-visible { outline: 2px solid var(--gold); outline-offset: 3px; }

/* ═══ NAV ═══════════════════════════════════════════════════════════ */

nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  display: flex; align-items: center; justify-content: space-between;
  padding: 1.5rem 4rem;
  background: linear-gradient(to bottom, rgba(10,10,10,0.95), transparent);
}

.nav-logo { display: flex; align-items: center; gap: 0.9rem; text-decoration: none; }

.nav-logo-mark {
  width: 38px; height: 38px; border: 1.5px solid var(--gold);
  display: flex; align-items: center; justify-content: center;
  font-family: var(--font-serif); font-size: 0.82rem; font-weight: 600;
  color: var(--gold); letter-spacing: 0.02em; flex-shrink: 0;
}

.nav-logo-text {
  font-size: 0.7rem; font-weight: 500; letter-spacing: 0.18em;
  text-transform: uppercase; color: var(--muted);
}

.nav-right { display: flex; align-items: center; gap: 2.5rem; }

.nav-links { display: flex; align-items: center; gap: 2rem; }

.nav-links a {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }

.nav-back {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
  display: flex; align-items: center; gap: 0.4rem;
}
.nav-back::before { content: '←'; }
.nav-back:hover { color: var(--gold); }

.nav-contact {
  font-size: 0.65rem; letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.nav-contact:hover { color: var(--gold); }

/* ═══ CONMUTADOR DE IDIOMA ══════════════════════════════════════════
   Ya no son botones de JavaScript: son enlaces a la URL equivalente
   en el otro idioma. El estado vive en la URL, no en localStorage.  */

.lang-switcher { display: flex; gap: 0.6rem; align-items: center; }

.lang-btn {
  background: none; border: none; color: var(--muted);
  font-family: var(--font-sans); font-size: 0.65rem; font-weight: 500;
  letter-spacing: 0.12em; text-transform: uppercase; text-decoration: none;
  cursor: pointer; padding: 0.2rem 0.35rem;
  border-bottom: 1px solid transparent; transition: color 0.2s, border-color 0.2s;
}
.lang-btn:hover { color: var(--white); }
.lang-btn.active { color: var(--gold); border-bottom-color: var(--gold); cursor: default; }

.lang-sep { color: var(--border); font-size: 0.6rem; }

/* ═══ TIPOGRAFÍA COMPARTIDA ═════════════════════════════════════════ */

.section-label, .hero-eyebrow, .eyebrow {
  font-size: 0.62rem; letter-spacing: 0.24em; text-transform: uppercase;
  color: var(--gold); font-weight: 500;
}

.hero-title, h1 { font-family: var(--font-serif); font-weight: 300; line-height: 1.08; }
h2, h3 { font-family: var(--font-serif); font-weight: 300; }

.gold { color: var(--gold); }
.muted { color: var(--muted); }

.rule-gold { height: 1px; background: var(--gold); opacity: 0.5; border: 0; }

/* ═══ BOTONES ═══════════════════════════════════════════════════════ */

.btn, .contact-btn, .btn-secondary {
  display: inline-flex; align-items: center; justify-content: center; gap: 0.5rem;
  font-family: var(--font-sans); font-size: 0.68rem; font-weight: 500;
  letter-spacing: 0.16em; text-transform: uppercase; text-decoration: none;
  padding: 0.95rem 2rem; min-height: 44px;
  border: 1px solid var(--gold); color: var(--gold); background: transparent;
  cursor: pointer; transition: background 0.25s, color 0.25s;
}
.btn:hover, .contact-btn:hover, .btn-secondary:hover {
  background: var(--gold); color: var(--black);
}

.btn-solid { background: var(--gold); color: var(--black); }
.btn-solid:hover { background: var(--gold-lt); color: var(--black); }

/* ═══ FOOTER ════════════════════════════════════════════════════════ */

footer {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 1rem;
  padding: 2rem 4rem; border-top: 1px solid var(--border);
}
.footer-copy { font-size: 0.62rem; letter-spacing: 0.1em; color: var(--muted); }
.footer-email, .footer-home {
  font-size: 0.68rem; color: var(--muted); text-decoration: none; transition: color 0.2s;
}
.footer-email:hover, .footer-home:hover { color: var(--gold); }

/* ═══ WHATSAPP FLOTANTE ═════════════════════════════════════════════ */

.wa-float {
  position: fixed; right: 1.25rem; bottom: 1.25rem; z-index: 200;
  width: 52px; height: 52px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background: var(--surface); border: 1px solid var(--gold-dim);
  color: var(--gold); text-decoration: none;
  transition: border-color 0.2s, background 0.2s, transform 0.2s;
  -webkit-tap-highlight-color: transparent;
}
.wa-float:hover { border-color: var(--gold); background: var(--dark); transform: translateY(-2px); }
.wa-float svg { width: 24px; height: 24px; fill: currentColor; }

/* ═══ RESPONSIVE ════════════════════════════════════════════════════ */

@media (max-width: 900px) {
  nav { padding: 1rem 1.5rem; }
  .nav-right { gap: 1.25rem; }
  .nav-links { gap: 1rem; }
  .nav-logo-text { display: none; }
  footer { padding: 1.5rem 1.2rem; flex-direction: column; align-items: flex-start; gap: 0.8rem; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation-duration: 0.01ms !important; transition-duration: 0.01ms !important; }
}

/* ═══ CAPTURA DE LEADS · formulario compartido en todas las páginas ══ */

.lead {
  padding: 6rem 4rem; border-top: 1px solid var(--border); background: var(--dark);
  display: grid; grid-template-columns: 0.85fr 1.15fr; gap: 4rem; align-items: start;
  font-family: var(--font-sans);
}
.lead-kicker {
  display: flex; align-items: center; gap: 1rem; margin-bottom: 1.6rem;
  font-size: 0.6rem; letter-spacing: 0.3em; text-transform: uppercase; color: var(--gold);
}
.lead-kicker::after { content: ''; width: 60px; height: 1px; background: var(--gold); opacity: 0.4; }
.lead-title {
  font-family: var(--font-serif); font-weight: 300; color: var(--white);
  font-size: clamp(2rem, 3.6vw, 3rem); line-height: 1.12; margin-bottom: 1.2rem;
}
.lead-title em { font-style: italic; color: var(--gold-lt); }
.lead-intro { font-size: 0.93rem; line-height: 1.8; color: var(--muted-soft); max-width: 44ch; margin-bottom: 1.6rem; }
.lead-wa { font-size: 0.85rem; color: var(--muted); }
.lead-wa a { color: var(--gold); text-decoration: none; border-bottom: 1px solid var(--gold-dim); }
.lead-wa a:hover { border-bottom-color: var(--gold); }

.lead-form { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem 1.2rem; }
.lead-form .full { grid-column: 1 / -1; }
.lead-field { display: grid; gap: 0.4rem; }
.lead-field > span { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; color: var(--muted); }
.lead-field > span b { color: var(--gold); font-weight: 500; }
.lead-field input, .lead-field select, .lead-field textarea {
  width: 100%; background: var(--surface); border: 1px solid var(--border); border-radius: 0;
  color: var(--white); font: inherit; font-size: 0.93rem; font-weight: 300; padding: 0.8rem 0.9rem;
  transition: border-color 0.2s;
}
.lead-field textarea { min-height: 7.5rem; resize: vertical; line-height: 1.6; }
.lead-field select {
  appearance: none; -webkit-appearance: none; padding-right: 2.2rem;
  background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%);
  background-position: calc(100% - 18px) 55%, calc(100% - 13px) 55%; background-size: 5px 5px; background-repeat: no-repeat;
}
.lead-field select option { background: var(--surface); color: var(--white); }
.lead-field input:focus, .lead-field select:focus, .lead-field textarea:focus { outline: none; border-color: var(--gold); }
.lead-form .btn { justify-self: start; }
.lead-note { font-size: 0.72rem; line-height: 1.6; color: var(--muted); }
.lead-hp { position: absolute; left: -9999px; }

@media (max-width: 900px) {
  .lead { grid-template-columns: 1fr; gap: 2rem; padding: 4.5rem 1.5rem; }
  .lead-form { grid-template-columns: 1fr; }
}

/* Marca E&Co: cuatro caracteres en un cuadrado. Anula los tamaños que cada página
   heredó del logo «E3» (dos caracteres), que desbordaban el recuadro. */
.nav-logo .nav-logo-mark {
  width: 42px !important; height: 42px !important; padding: 0 !important;
  box-sizing: border-box; flex-shrink: 0;
  font-family: var(--font-serif, 'Cormorant Garamond', Georgia, serif) !important;
  font-size: 14px !important; font-weight: 600 !important;
  letter-spacing: -0.01em !important; line-height: 1 !important; white-space: nowrap;
}
