/* ============================================
   FARO — Invierte con rumbo
   v2.0 — Expert Edition
   ============================================ */

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

:root {
  --bg:        #080810;
  --bg-2:      #0e0e1a;
  --bg-card:   #13131f;
  --bg-card-2: #1a1a2e;
  --border:    rgba(255,255,255,0.07);
  --border-hover: rgba(245,166,35,0.35);
  --text:      #eeeef5;
  --text-2:    #a0a0b8;
  --text-3:    #6060788;
  --accent:    #f5a623;
  --accent-2:  #e8821a;
  --accent-glow: rgba(245,166,35,0.18);
  --blue:      #6366f1;
  --green:     #22c55e;
  --green-bg:  rgba(34,197,94,0.1);
  --green-border: rgba(34,197,94,0.25);
  --yellow:    #eab308;
  --yellow-bg: rgba(234,179,8,0.1);
  --yellow-border: rgba(234,179,8,0.25);
  --red:       #ef4444;
  --red-bg:    rgba(239,68,68,0.1);
  --red-border:rgba(239,68,68,0.25);
  --r: 16px;
  --r-sm: 10px;
  --r-lg: 24px;
  --shadow: 0 4px 24px rgba(0,0,0,0.4);
  --transition: 0.25s ease;
}

html { scroll-behavior: smooth; font-size: 16px; }

body {
  font-family: 'Inter', -apple-system, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.65;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

.container { max-width: 1120px; margin: 0 auto; padding: 0 28px; }

a { text-decoration: none; }

/* ── NAV ─────────────────────────────────── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 200;
  padding: 0 28px;
  transition: background var(--transition), box-shadow var(--transition);
}
nav.scrolled {
  background: rgba(8,8,16,0.92);
  backdrop-filter: blur(24px);
  box-shadow: 0 1px 0 var(--border);
}
.nav-inner {
  max-width: 1120px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between;
  height: 68px; gap: 20px;
}
.logo {
  font-size: 20px; font-weight: 900; letter-spacing: 4px;
  color: var(--text); transition: color var(--transition);
}
.logo:hover { color: var(--accent); }
.dot { color: var(--accent); }
.nav-links { display: flex; gap: 28px; }
.nav-links a {
  color: var(--text-2); font-size: 14px; font-weight: 500;
  transition: color var(--transition);
}
.nav-links a:hover { color: var(--text); }
.btn-nav {
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 13px; letter-spacing: 0.2px;
  padding: 10px 22px; border-radius: 50px;
  transition: background var(--transition), transform var(--transition), box-shadow var(--transition);
  white-space: nowrap;
}
.btn-nav:hover {
  background: var(--accent-2); transform: translateY(-1px);
  box-shadow: 0 4px 20px rgba(245,166,35,0.35);
}

/* ── HERO ────────────────────────────────── */
.hero {
  position: relative; min-height: 100vh;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center; padding: 120px 28px 80px;
  overflow: hidden;
}
.mesh-bg {
  position: absolute; inset: 0; pointer-events: none;
  background:
    radial-gradient(ellipse 80% 60% at 50% -10%, rgba(245,166,35,0.12) 0%, transparent 60%),
    radial-gradient(ellipse 50% 40% at 80% 60%, rgba(99,102,241,0.07) 0%, transparent 50%),
    radial-gradient(ellipse 50% 40% at 20% 70%, rgba(34,197,94,0.05) 0%, transparent 50%);
}
.hero-inner { position: relative; z-index: 1; max-width: 760px; }

.badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(245,166,35,0.1);
  border: 1px solid rgba(245,166,35,0.25);
  color: var(--accent); font-size: 13px; font-weight: 600;
  padding: 7px 18px; border-radius: 50px; margin-bottom: 32px;
}
.badge-dot {
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--green);
  box-shadow: 0 0 6px var(--green);
  animation: pulse 2s ease-in-out infinite;
}
@keyframes pulse {
  0%,100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.7; }
}

.hero h1 {
  font-size: clamp(48px, 7.5vw, 86px);
  font-weight: 900; letter-spacing: -2.5px; line-height: 1.04;
  margin-bottom: 24px;
}
.hero h1 em {
  font-style: italic; font-family: 'Playfair Display', serif;
  color: var(--accent);
}
.hero-sub {
  font-size: 18px; color: var(--text-2);
  max-width: 560px; margin: 0 auto 40px; line-height: 1.7;
}

.input-wrap {
  display: flex; gap: 8px;
  background: var(--bg-2);
  border: 1px solid var(--border);
  border-radius: 50px; padding: 6px 6px 6px 20px;
  transition: border-color var(--transition), box-shadow var(--transition);
  max-width: 480px; margin: 0 auto;
}
.input-wrap:focus-within {
  border-color: rgba(245,166,35,0.4);
  box-shadow: 0 0 0 3px rgba(245,166,35,0.08);
}
.input-wrap input {
  flex: 1; background: transparent; border: none; outline: none;
  color: var(--text); font-size: 15px; font-family: 'Inter', sans-serif;
  min-width: 0;
}
.input-wrap input::placeholder { color: var(--text-2); }
.input-wrap button {
  padding: 11px 22px;
  background: var(--accent); color: #000;
  font-weight: 700; font-size: 14px;
  border: none; border-radius: 50px; cursor: pointer;
  white-space: nowrap;
  transition: background var(--transition), transform var(--transition);
}
.input-wrap button:hover { background: var(--accent-2); transform: scale(1.02); }

.form-note { font-size: 12px; color: var(--text-2); margin-top: 12px; }

.social-proof {
  display: flex; align-items: center; justify-content: center;
  gap: 12px; margin-top: 36px;
}
.avatars { display: flex; }
.av {
  width: 32px; height: 32px; border-radius: 50%;
  border: 2px solid var(--bg);
  margin-left: -8px;
}
.av:first-child { margin-left: 0; }
.social-proof p { font-size: 14px; color: var(--text-2); }
.social-proof strong { color: var(--text); }

.hero-scroll-hint {
  position: absolute; bottom: 40px; left: 50%; transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 8px;
  color: var(--text-2); font-size: 12px; letter-spacing: 1px;
  text-transform: uppercase; opacity: 0.6; animation: float 3s ease-in-out infinite;
}
.scroll-arrow {
  width: 20px; height: 20px;
  border-right: 2px solid var(--text-2);
  border-bottom: 2px solid var(--text-2);
  transform: rotate(45deg);
}
@keyframes float { 0%,100%{transform:translateX(-50%) translateY(0)} 50%{transform:translateX(-50%) translateY(6px)} }

/* ── LOGOS BAR ───────────────────────────── */
.logos-bar {
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  padding: 20px 0; overflow: hidden;
  background: var(--bg-2);
}
.logos-label {
  font-size: 11px; letter-spacing: 2px; text-transform: uppercase;
  color: var(--text-2); text-align: center; margin-bottom: 14px; opacity: 0.6;
}
.logos-track {
  display: flex; gap: 48px; white-space: nowrap;
  animation: scroll-x 20s linear infinite;
}
.logos-track span {
  font-size: 13px; font-weight: 700; letter-spacing: 2px;
  color: var(--text-2); opacity: 0.4; flex-shrink: 0;
}
@keyframes scroll-x { from{transform:translateX(0)} to{transform:translateX(-50%)} }

/* ── SECTIONS BASE ───────────────────────── */
.section-label {
  font-size: 12px; font-weight: 700; letter-spacing: 2.5px;
  text-transform: uppercase; color: var(--accent); margin-bottom: 14px;
  display: block;
}
h2 {
  font-size: clamp(30px, 4vw, 46px);
  font-weight: 900; letter-spacing: -1.5px; line-height: 1.1;
  margin-bottom: 16px;
}
h2 em { font-style: italic; font-family: 'Playfair Display', serif; color: var(--accent); }
.section-sub {
  font-size: 17px; color: var(--text-2); max-width: 580px; line-height: 1.7;
  margin-bottom: 56px;
}

/* ── COMO FUNCIONA ───────────────────────── */
.como-funciona { padding: 120px 0; }
.steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 0;
  margin-top: 64px; position: relative;
}
.steps::before {
  content: ''; position: absolute;
  top: 28px; left: calc(16.66% + 16px); right: calc(16.66% + 16px);
  height: 1px; background: linear-gradient(90deg, var(--accent), var(--blue), var(--green));
  opacity: 0.3;
}
.step {
  text-align: center; padding: 0 32px;
  opacity: 0; transform: translateY(20px);
  transition: opacity 0.5s ease, transform 0.5s ease;
}
.step:nth-child(2) { transition-delay: 0.1s; }
.step:nth-child(3) { transition-delay: 0.2s; }
.step.visible { opacity: 1; transform: translateY(0); }
.step-num {
  width: 56px; height: 56px; border-radius: 50%;
  background: var(--accent); color: #000;
  font-size: 20px; font-weight: 900;
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 28px;
  box-shadow: 0 0 0 8px rgba(245,166,35,0.08);
}
.step h3 { font-size: 20px; font-weight: 700; margin-bottom: 12px; }
.step p { font-size: 15px; color: var(--text-2); line-height: 1.65; }

/* ── ESTRATEGIA ──────────────────────────── */
.estrategia {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.estrategia-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: start; }
.estrategia-left .section-sub { margin-bottom: 40px; }
.principios { display: flex; flex-direction: column; gap: 28px; }
.principio {
  display: flex; gap: 16px; align-items: flex-start;
  opacity: 0; transform: translateX(-16px);
  transition: opacity 0.5s, transform 0.5s;
}
.principio.visible { opacity: 1; transform: translateX(0); }
.principio:nth-child(2) { transition-delay: 0.1s; }
.principio:nth-child(3) { transition-delay: 0.2s; }
.p-icon { font-size: 22px; flex-shrink: 0; margin-top: 2px; }
.principio h4 { font-size: 16px; font-weight: 700; margin-bottom: 6px; }
.principio p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

.peg-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 32px;
  position: sticky; top: 88px;
  box-shadow: var(--shadow);
}
.peg-header { margin-bottom: 24px; }
.peg-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent);
  display: block; margin-bottom: 8px;
}
.peg-header h4 { font-size: 22px; font-weight: 800; margin-bottom: 8px; }
.peg-header p { font-size: 14px; color: var(--text-2); line-height: 1.6; }
.peg-formula {
  display: flex; align-items: center; justify-content: center; gap: 12px;
  background: rgba(245,166,35,0.07); border: 1px solid rgba(245,166,35,0.15);
  border-radius: var(--r-sm); padding: 16px; margin-bottom: 20px;
  font-size: 15px; font-weight: 700; color: var(--accent);
}
.eq { font-size: 20px; opacity: 0.6; }
.fraction { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 12px; }
.fraction .bar { width: 100%; height: 1px; background: currentColor; opacity: 0.4; }
.peg-scale { display: flex; flex-direction: column; gap: 10px; }
.peg-row {
  display: flex; align-items: center; gap: 14px;
  border-radius: var(--r-sm); padding: 12px 14px;
}
.peg-row.green { background: var(--green-bg); border: 1px solid var(--green-border); color: var(--green); }
.peg-row.yellow { background: var(--yellow-bg); border: 1px solid var(--yellow-border); color: var(--yellow); }
.peg-row.red { background: var(--red-bg); border: 1px solid var(--red-border); color: var(--red); }
.peg-badge {
  font-size: 12px; font-weight: 800; font-family: monospace;
  white-space: nowrap; min-width: 80px;
}
.peg-row div:nth-child(2) { flex: 1; }
.peg-row strong { font-size: 14px; display: block; margin-bottom: 2px; }
.peg-row span { font-size: 12px; opacity: 0.75; display: block; }
.peg-arrow { font-size: 18px; font-weight: 900; flex-shrink: 0; }

/* ── SECTORES ────────────────────────────── */
.sectores { padding: 120px 0; }
.sectores-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  grid-template-rows: auto auto;
  gap: 16px;
}
.sector {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color var(--transition), transform var(--transition);
  opacity: 0; transform: translateY(16px);
}
.sector.visible { opacity: 1; transform: translateY(0); }
.sector:nth-child(2) { transition-delay:.08s } .sector:nth-child(3) { transition-delay:.16s }
.sector:nth-child(4) { transition-delay:.08s } .sector:nth-child(5) { transition-delay:.16s }
.sector:hover { border-color: var(--border-hover); transform: translateY(-4px); }
.sector.featured {
  grid-column: span 2;
  border-color: rgba(245,166,35,0.2);
  background: linear-gradient(135deg, var(--bg-card) 60%, rgba(245,166,35,0.04));
}
.sector-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 16px; }
.sector-icon { font-size: 30px; }
.sector-tag { font-size: 11px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; }
.sector-tag.hot { color: var(--accent); background: rgba(245,166,35,0.1); padding: 4px 10px; border-radius: 50px; }
.sector h3 { font-size: 18px; font-weight: 700; margin-bottom: 10px; }
.sector p { font-size: 14px; color: var(--text-2); line-height: 1.65; margin-bottom: 20px; }
.sector-bar { height: 3px; background: var(--border); border-radius: 2px; margin-bottom: 12px; overflow: hidden; }
.bar-fill { height: 100%; background: linear-gradient(90deg, var(--accent), var(--blue)); border-radius: 2px; }
.sector-meta { display: flex; justify-content: space-between; align-items: center; }
.sector-meta span { font-size: 12px; color: var(--text-2); }
.sector-growth { color: var(--accent); font-weight: 700 !important; }

/* ── PREVIEW ─────────────────────────────── */
.preview {
  padding: 120px 0;
  background: var(--bg-2);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.nl-preview {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); overflow: hidden;
  box-shadow: 0 24px 64px rgba(0,0,0,0.5);
  max-width: 760px; margin: 0 auto;
}
.nl-header {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 28px;
  background: var(--bg-card-2);
  border-bottom: 1px solid var(--border);
}
.nl-logo { font-size: 17px; font-weight: 900; letter-spacing: 3px; }
.nl-logo span { color: var(--accent); }
.nl-meta span { font-size: 12px; color: var(--text-2); }
.nl-body { padding: 8px; display: flex; flex-direction: column; gap: 4px; }
.nl-section {
  border-radius: var(--r-sm); padding: 20px 22px;
  border: 1px solid transparent; cursor: pointer;
  transition: background var(--transition), border-color var(--transition);
  opacity: 0; transform: translateX(-12px);
}
.nl-section.visible { opacity: 1; transform: translateX(0); }
.nl-section:nth-child(2){transition-delay:.1s} .nl-section:nth-child(3){transition-delay:.2s} .nl-section:nth-child(4){transition-delay:.3s}
.nl-section.active { background: var(--bg-card-2); border-color: var(--border); }
.nl-section:hover:not(.blur) { background: var(--bg-card-2); }
.nl-section.blur { filter: blur(3px); pointer-events: none; opacity: 0.4; }
.nl-tag {
  font-size: 11px; font-weight: 700; letter-spacing: 1.5px;
  text-transform: uppercase; color: var(--accent); display: block; margin-bottom: 8px;
}
.nl-section h4 { font-size: 15px; font-weight: 700; margin-bottom: 8px; line-height: 1.4; }
.nl-section p { font-size: 13px; color: var(--text-2); line-height: 1.6; }
.nl-cta-bar {
  display: flex; align-items: center; justify-content: space-between;
  padding: 18px 28px;
  background: linear-gradient(135deg, rgba(245,166,35,0.08), rgba(99,102,241,0.06));
  border-top: 1px solid var(--border);
}
.nl-cta-bar p { font-size: 14px; font-weight: 600; }
.btn-small {
  background: var(--accent); color: #000;
  font-size: 13px; font-weight: 700;
  padding: 8px 18px; border-radius: 50px;
  transition: background var(--transition);
}
.btn-small:hover { background: var(--accent-2); }

/* ── FAQ ─────────────────────────────────── */
.faq { padding: 120px 0; }
.faq-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 20px; margin-top: 4px; }
.faq-item {
  background: var(--bg-card); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 28px;
  transition: border-color var(--transition);
  opacity: 0; transform: translateY(12px);
}
.faq-item.visible { opacity: 1; transform: translateY(0); }
.faq-item:hover { border-color: var(--border-hover); }
.faq-item h4 { font-size: 16px; font-weight: 700; margin-bottom: 10px; }
.faq-item p { font-size: 14px; color: var(--text-2); line-height: 1.65; }

/* ── CTA FINAL ───────────────────────────── */
.cta-final { padding: 120px 0; }
.cta-box {
  position: relative; text-align: center;
  background: var(--bg-card);
  border: 1px solid rgba(245,166,35,0.18);
  border-radius: 32px; padding: 96px 40px;
  overflow: hidden;
}
.cta-glow {
  position: absolute; top: -120px; left: 50%; transform: translateX(-50%);
  width: 600px; height: 500px;
  background: radial-gradient(circle, rgba(245,166,35,0.14) 0%, transparent 65%);
  pointer-events: none;
}
/* Lighthouse icon */
.cta-lighthouse {
  position: absolute; bottom: 0; right: 80px; opacity: 0.07;
  pointer-events: none;
}
.lighthouse-body { width: 40px; display: flex; flex-direction: column; align-items: center; }
.lighthouse-light {
  width: 60px; height: 60px; border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 60px 30px rgba(245,166,35,0.5);
  margin-bottom: 8px;
}
.lighthouse-beam {
  width: 4px; height: 200px;
  background: linear-gradient(180deg, var(--accent) 0%, transparent 100%);
  border-radius: 2px;
}
.cta-box h2 { font-size: clamp(32px, 5vw, 54px); margin-bottom: 16px; position: relative; }
.cta-sub { font-size: 17px; color: var(--text-2); margin-bottom: 40px; position: relative; }
.cta-form { position: relative; }
.cta-form .input-wrap { max-width: 460px; }
.cta-note { font-size: 12px; color: var(--text-2); margin-top: 14px; position: relative; }

/* ── FOOTER ──────────────────────────────── */
footer { border-top: 1px solid var(--border); padding: 64px 0 40px; }
.footer-top {
  display: flex; justify-content: space-between; align-items: flex-start;
  gap: 40px; margin-bottom: 48px;
}
.footer-brand .footer-logo { font-size: 20px; font-weight: 900; letter-spacing: 4px; margin-bottom: 8px; }
.footer-brand > p { font-size: 14px; color: var(--text-2); }
.footer-links { display: flex; gap: 64px; }
.footer-links div { display: flex; flex-direction: column; gap: 10px; }
.footer-links h5 { font-size: 12px; font-weight: 700; letter-spacing: 1.5px; text-transform: uppercase; color: var(--text-2); margin-bottom: 4px; }
.footer-links a { font-size: 14px; color: var(--text-2); transition: color var(--transition); }
.footer-links a:hover { color: var(--text); }
.footer-bottom { border-top: 1px solid var(--border); padding-top: 28px; }
.footer-bottom p { font-size: 13px; color: var(--text-2); margin-bottom: 10px; }
.footer-disclaimer { font-size: 11px !important; opacity: 0.45; max-width: 700px; line-height: 1.65; }

/* ── STICKY MOBILE CTA ───────────────────── */
.sticky-cta {
  position: fixed; bottom: 20px; left: 20px; right: 20px;
  background: var(--bg-card-2); border: 1px solid var(--border);
  border-radius: var(--r-lg); padding: 14px 20px;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.5);
  transform: translateY(100px); opacity: 0;
  transition: transform 0.4s ease, opacity 0.4s ease;
  z-index: 150;
  display: none;
}
.sticky-cta.visible { transform: translateY(0); opacity: 1; }
.sticky-cta p { font-size: 14px; font-weight: 500; }
.sticky-cta a {
  background: var(--accent); color: #000;
  font-size: 13px; font-weight: 700;
  padding: 10px 18px; border-radius: 50px;
  white-space: nowrap;
  transition: background var(--transition);
}
.sticky-cta a:hover { background: var(--accent-2); }

/* ── TOAST ───────────────────────────────── */
.toast {
  position: fixed; bottom: 32px; left: 50%; transform: translateX(-50%) translateY(80px);
  background: var(--bg-card-2); border: 1px solid var(--green-border);
  color: var(--green); font-weight: 600; font-size: 14px;
  padding: 14px 28px; border-radius: 50px;
  box-shadow: 0 8px 32px rgba(0,0,0,0.4);
  transition: transform 0.4s ease; z-index: 999; white-space: nowrap;
}
.toast.show { transform: translateX(-50%) translateY(0); }

/* ── RESPONSIVE ──────────────────────────── */
@media (max-width: 900px) {
  .nav-links { display: none; }
  .estrategia-grid { grid-template-columns: 1fr; gap: 48px; }
  .peg-card { position: static; }
  .sectores-grid { grid-template-columns: 1fr 1fr; }
  .sector.featured { grid-column: span 2; }
  .steps { grid-template-columns: 1fr; gap: 40px; }
  .steps::before { display: none; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-top { flex-direction: column; }
  .footer-links { gap: 32px; }
}

@media (max-width: 600px) {
  .hero h1 { letter-spacing: -1.5px; }
  .input-wrap { flex-direction: column; border-radius: var(--r); padding: 12px; }
  .input-wrap button { width: 100%; border-radius: var(--r-sm); }
  .sectores-grid { grid-template-columns: 1fr; }
  .sector.featured { grid-column: span 1; }
  .cta-box { padding: 56px 20px; }
  .nl-cta-bar { flex-direction: column; gap: 12px; text-align: center; }
  .sticky-cta { display: flex; }
}
