@import url('https://fonts.googleapis.com/css2?family=Lora:ital,wght@0,400;0,600;1,400;1,600&family=Plus+Jakarta+Sans:wght@300;400;500;600&display=swap');

/* ─── TOKENS ─────────────────────────────────── */
:root {
  --blue:       #0096D6;
  --blue-dark:  #0078AB;
  --blue-light: #E6F5FC;
  --blue-mid:   #B8E1F4;
  --ink:        #111210;
  --ink-2:      #3a3a38;
  --ink-3:      #7a7a76;
  --surface:    #ffffff;
  --surface-2:  #F7F6F3;
  --surface-3:  #EEECEA;
  --border:     #E0DDD8;
  --serif:      'Lora', Georgia, serif;
  --sans:       'Plus Jakarta Sans', system-ui, sans-serif;
}

/* ─── RESET ──────────────────────────────────── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--sans);
  background: var(--surface);
  color: var(--ink);
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }

/* ─── SCROLLBAR ──────────────────────────────── */
::-webkit-scrollbar { width: 3px; }
::-webkit-scrollbar-thumb { background: var(--blue); }

/* ─── NAV ────────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.92);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  display: flex; align-items: center; justify-content: space-between;
  padding: 0 52px;
  height: 64px;
  transition: box-shadow 0.3s;
}
nav.scrolled { box-shadow: 0 2px 24px rgba(0,0,0,0.07); }

.nav-logo img { height: 28px; width: auto; }

.nav-links {
  display: flex; align-items: center; gap: 36px;
}
.nav-link {
  font-size: 12px; font-weight: 600; letter-spacing: 0.08em;
  text-transform: uppercase; color: var(--ink-3);
  transition: color 0.2s;
}
.nav-link:hover { color: var(--blue); }

.nav-right { display: flex; align-items: center; gap: 20px; }

.lang-toggle {
  display: flex; align-items: center;
  border: 1px solid var(--border); border-radius: 100px; overflow: hidden;
}
.lang-btn {
  font-family: var(--sans); font-size: 11px; font-weight: 600;
  letter-spacing: 0.08em; padding: 5px 14px;
  border: none; background: transparent; color: var(--ink-3);
  cursor: pointer; transition: background 0.2s, color 0.2s;
}
.lang-btn.active { background: var(--blue); color: white; }

.nav-cta {
  background: var(--blue); color: white;
  font-size: 12px; font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase; padding: 9px 22px; border-radius: 4px;
  transition: background 0.2s, transform 0.15s;
  display: inline-block;
}
.nav-cta:hover { background: var(--blue-dark); transform: translateY(-1px); }

/* ─── BUTTONS ────────────────────────────────── */
.btn-primary {
  background: var(--blue); color: white;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; padding: 13px 28px; border-radius: 4px;
  border: none; cursor: pointer; display: inline-block;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--blue-dark); transform: translateY(-1px); }

.btn-outline {
  background: transparent; color: var(--ink-2);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  letter-spacing: 0.04em; padding: 13px 28px; border-radius: 4px;
  border: 1px solid var(--border); cursor: pointer; display: inline-block;
  transition: border-color 0.2s, color 0.2s;
}
.btn-outline:hover { border-color: var(--blue); color: var(--blue); }

.btn-white {
  background: white; color: var(--blue);
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 14px 32px; border-radius: 4px; display: inline-block;
  transition: opacity 0.2s, transform 0.15s;
}
.btn-white:hover { opacity: 0.92; transform: translateY(-1px); }

.btn-outline-white {
  background: transparent; color: white;
  font-family: var(--sans); font-size: 13px; font-weight: 600;
  padding: 14px 32px; border-radius: 4px; border: 1px solid rgba(255,255,255,0.35);
  display: inline-block; transition: border-color 0.2s, background 0.2s;
}
.btn-outline-white:hover { border-color: white; background: rgba(255,255,255,0.08); }

/* ─── SECTIONS ───────────────────────────────── */
.section { padding: 96px 52px; }
.section-inner { max-width: 1200px; margin: 0 auto; }

.section-alt { background: var(--surface-2); border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }

.s-eyebrow {
  font-size: 11px; font-weight: 600; letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--blue); margin-bottom: 16px;
}
.s-heading {
  font-family: var(--serif);
  font-size: clamp(30px, 3.2vw, 48px);
  line-height: 1.12; letter-spacing: -0.02em; color: var(--ink);
  margin-bottom: 20px;
}
.s-heading em { font-style: italic; color: var(--blue); }
.s-body {
  font-size: 16px; line-height: 1.8; color: var(--ink-3); max-width: 540px;
}
.s-body strong { color: var(--ink); font-weight: 600; }

/* ─── FOOTER ─────────────────────────────────── */
footer {
  background: var(--ink); color: rgba(255,255,255,0.5);
  padding: 48px 52px;
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 24px;
}
.footer-brand { display: flex; flex-direction: column; gap: 6px; }
.footer-logo img { height: 24px; filter: brightness(0) invert(1); opacity: 0.8; }
.footer-tag { font-size: 11px; color: rgba(255,255,255,0.3); }
.footer-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-link { font-size: 12px; color: rgba(255,255,255,0.4); transition: color 0.2s; }
.footer-link:hover { color: white; }
.footer-copy { font-size: 11px; color: rgba(255,255,255,0.25); }

/* ─── ANIMATIONS ─────────────────────────────── */
@keyframes fadeUp {
  from { opacity: 0; transform: translateY(24px); }
  to   { opacity: 1; transform: translateY(0); }
}
.reveal {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s ease, transform 0.65s ease;
}
.reveal.visible { opacity: 1; transform: translateY(0); }
.reveal-d1 { transition-delay: 0.1s; }
.reveal-d2 { transition-delay: 0.2s; }
.reveal-d3 { transition-delay: 0.3s; }
.reveal-d4 { transition-delay: 0.4s; }

/* ─── LANG ───────────────────────────────────── */
[data-es], [data-en] { display: none; }
.lang-es [data-es] { display: block; }
.lang-es span[data-es],
.lang-es em[data-es],
.lang-es a[data-es] { display: inline; }
.lang-en [data-en] { display: block; }
.lang-en span[data-en],
.lang-en em[data-en],
.lang-en a[data-en] { display: inline; }
/* flex overrides */
.lang-es .hero-btns[data-es],
.lang-en .hero-btns[data-en],
.lang-es .final-cta-btns[data-es],
.lang-en .final-cta-btns[data-en],
.lang-es .divider-strip[data-es],
.lang-en .divider-strip[data-en] { display: flex; }

/* ─── RESPONSIVE ─────────────────────────────── */
@media (max-width: 900px) {
  nav { padding: 0 24px; }
  .nav-links { display: none; }
  .hero { grid-template-columns: 1fr; padding: 120px 24px 72px; gap: 48px; }
  .hero-right { order: -1; }
  .section { padding: 72px 24px; }
  .manifesto-section { padding: 72px 24px; }
  .problem-layout, .features-layout, .ai-layout { grid-template-columns: 1fr; }
  .features-visual { display: none; }
  .divider-strip { padding: 28px 24px; gap: 36px; }
  .final-cta { padding: 80px 24px; }
  footer { padding: 40px 24px; }
  .mock-row { grid-template-columns: 1fr 1fr; }
  .mock-table-head, .mock-table-row { grid-template-columns: 2fr 1fr 1fr; }
  .mock-table-head span:last-child,
  .mock-table-row span:last-child { display: none; }
}

/*
  LANG SWITCHING JS — incluir en cada página:

  function setLang(lang) {
    document.body.className = 'lang-' + lang;
    document.querySelectorAll('.lang-btn').forEach(b =>
      b.classList.toggle('active', b.textContent === lang.toUpperCase())
    );
    document.documentElement.lang = lang;
  }
*/
