/* ============================================================
   OctaBridge — Sistema operativo empresarial modular
   Hoja de estilo única. CSS puro, mobile-first, sin build.
   ============================================================ */

:root {
  /* Neutros */
  --black: #0A0A0A;
  --black-2: #161616;
  --ink: #1C1C1C;
  --white: #FFFFFF;
  --paper: #FAFAF8;
  --gray: #4A4A4A;
  --gray-soft: #6E6E6E;
  --line: #E6E6E2;
  --line-dark: #2A2A2A;

  /* Acento */
  --gold: #FFC400;
  --gold-deep: #E0A800;

  /* 8 modulos */
  --m1: #15B8A6; /* Captador de Leads */
  --m2: #2D7FF9; /* Calificador de Leads */
  --m3: #F39200; /* Gestor de Leads */
  --m4: #E84393; /* CRM */
  --m5: #C0399A; /* ERP */
  --m6: #F2C200; /* Business Intelligence */
  --m7: #8A9A2B; /* Remarketing Automatizado */
  --m8: #1B3A8F; /* Infinity */

  --font: "Inter", "Helvetica Neue", Arial, "Segoe UI", system-ui, sans-serif;

  --maxw: 1180px;
  --radius: 14px;
  --radius-s: 8px;
  --shadow: 0 1px 2px rgba(10,10,10,.04), 0 8px 30px rgba(10,10,10,.06);
  --shadow-lg: 0 24px 60px rgba(10,10,10,.14);

  --ease: cubic-bezier(.2, .7, .2, 1);
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
}

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--white);
  line-height: 1.6;
  font-size: 17px;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

img, svg { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3 { font-weight: 700; letter-spacing: -0.02em; line-height: 1.1; margin: 0; }

p { margin: 0; }

.wrap {
  width: 100%;
  max-width: var(--maxw);
  margin-inline: auto;
  padding-inline: 22px;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--gray-soft);
  margin-bottom: 18px;
}
.eyebrow.on-dark { color: var(--gold); }

/* ---------- Botones ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-weight: 600;
  font-size: 15.5px;
  padding: 13px 22px;
  border-radius: 10px;
  border: 1.5px solid transparent;
  cursor: pointer;
  transition: transform .18s var(--ease), background .18s var(--ease), border-color .18s var(--ease), color .18s var(--ease);
  white-space: nowrap;
}
.btn:active { transform: translateY(1px); }

.btn-primary { background: var(--gold); color: var(--black); }
.btn-primary:hover { background: var(--gold-deep); }

.btn-dark { background: var(--black); color: var(--white); border-color: var(--black); }
.btn-dark:hover { background: var(--black-2); }

.btn-ghost { background: transparent; color: var(--white); border-color: var(--line-dark); }
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }

.btn-outline { background: transparent; color: var(--ink); border-color: var(--line); }
.btn-outline:hover { border-color: var(--ink); }

/* ============================================================
   HEADER
   ============================================================ */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: var(--black);
  border-bottom: 1px solid var(--line-dark);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  height: 68px;
}
.brand { display: flex; align-items: center; }
.brand svg { height: 30px; width: auto; }

.nav-links {
  display: none;
  gap: 26px;
  list-style: none;
  margin: 0; padding: 0;
}
.nav-links a {
  color: #D9D9D6;
  font-size: 15px;
  font-weight: 500;
  transition: color .15s var(--ease);
}
.nav-links a:hover { color: var(--white); }

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

/* Selector de idioma */
.lang {
  display: flex;
  align-items: center;
  gap: 2px;
  background: var(--black-2);
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 3px;
}
.lang a {
  font-size: 12.5px;
  font-weight: 700;
  letter-spacing: .04em;
  color: #9A9A97;
  padding: 5px 9px;
  border-radius: 6px;
  transition: all .15s var(--ease);
}
.lang a:hover { color: var(--white); }
.lang a[aria-current="true"] { background: var(--gold); color: var(--black); }

.nav-cta { display: none; }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  background: var(--black);
  color: var(--white);
  position: relative;
  overflow: hidden;
  padding: 78px 0 90px;
}
.hero::before {
  /* sutil halo dorado, no degradado generico */
  content: "";
  position: absolute;
  top: -180px; right: -120px;
  width: 520px; height: 520px;
  background: radial-gradient(circle, rgba(255,196,0,.14), transparent 62%);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 860px; }
.hero h1 {
  font-size: clamp(2.3rem, 6vw, 4rem);
  margin-bottom: 22px;
}
.hero h1 .hl { color: var(--gold); }
.hero .lead {
  font-size: clamp(1.05rem, 2.2vw, 1.3rem);
  color: #C9C9C6;
  max-width: 640px;
  margin-bottom: 32px;
}
.hero-cta { display: flex; flex-wrap: wrap; gap: 14px; }
.hero-meta {
  margin-top: 38px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px 26px;
  font-size: 14px;
  color: #9A9A97;
}
.hero-meta span { display: inline-flex; align-items: center; gap: 8px; }
.hero-meta .dot { width: 8px; height: 8px; border-radius: 50%; }

/* tira de 8 puntos bajo el hero */
.octa-strip {
  display: flex;
  gap: 6px;
  margin-top: 40px;
}
.octa-strip i {
  flex: 1;
  height: 5px;
  border-radius: 4px;
  opacity: .9;
}

/* ============================================================
   SECCIONES GENERICAS
   ============================================================ */
section { scroll-margin-top: 80px; }

.section { padding: 84px 0; }
.section.alt { background: var(--paper); }
.section.dark { background: var(--black); color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(1.8rem, 4vw, 2.6rem); margin-bottom: 16px; }
.section-head p { color: var(--gray); font-size: 1.08rem; }
.section.dark .section-head p { color: #B5B5B2; }

/* ============================================================
   MODULOS — grid de 8
   ============================================================ */
.modules-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 16px;
}
.module {
  position: relative;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 26px 24px 24px;
  transition: transform .2s var(--ease), box-shadow .2s var(--ease), border-color .2s var(--ease);
}
.module::before {
  content: "";
  position: absolute;
  top: 0; left: 24px; right: 24px;
  height: 3px;
  border-radius: 0 0 3px 3px;
  background: var(--mc, var(--gold));
}
.module:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: transparent;
}
.module-top { display: flex; align-items: center; gap: 12px; margin-bottom: 14px; }
.module-dot {
  width: 13px; height: 13px; border-radius: 50%;
  background: var(--mc);
  flex: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--mc) 16%, transparent);
}
.module-num {
  font-size: 12px; font-weight: 700; letter-spacing: .08em;
  color: var(--gray-soft);
  margin-left: auto;
}
.module h3 { font-size: 1.18rem; margin-bottom: 9px; }
.module p { color: var(--gray); font-size: 0.97rem; line-height: 1.55; }

/* ============================================================
   COMO FUNCIONA — pasos
   ============================================================ */
.steps {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
  counter-reset: step;
}
.step {
  display: flex;
  gap: 18px;
  padding: 24px;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}
.section.alt .step { background: var(--white); }
.step-num {
  counter-increment: step;
  flex: none;
  width: 42px; height: 42px;
  border-radius: 11px;
  background: var(--black);
  color: var(--gold);
  display: grid; place-items: center;
  font-weight: 800; font-size: 1.05rem;
}
.step-num::before { content: counter(step); }
.step h3 { font-size: 1.12rem; margin-bottom: 7px; }
.step p { color: var(--gray); font-size: 0.97rem; }

/* ============================================================
   DIFERENCIADORES
   ============================================================ */
.diff-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
.diff {
  padding: 28px 26px;
  border-radius: var(--radius);
  background: var(--black-2);
  border: 1px solid var(--line-dark);
}
.diff .tag {
  display: inline-block;
  font-size: 11.5px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.diff h3 { font-size: 1.2rem; margin-bottom: 10px; color: var(--white); }
.diff p { color: #B5B5B2; font-size: 0.98rem; }

/* ============================================================
   RESULTADOS / BENEFICIOS
   ============================================================ */
.bene-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 18px;
}
.bene {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}
.bene:last-child { border-bottom: none; }
.bene-mark {
  flex: none;
  width: 34px; height: 34px;
  border-radius: 9px;
  background: var(--gold);
  display: grid; place-items: center;
  color: var(--black);
  font-weight: 800;
}
.bene h3 { font-size: 1.08rem; margin-bottom: 6px; }
.bene p { color: var(--gray); font-size: 0.97rem; }

/* ============================================================
   FAQ
   ============================================================ */
.faq-list { display: grid; gap: 14px; max-width: 820px; }
details.faq {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--white);
  overflow: hidden;
}
details.faq[open] { border-color: #CFCFCB; box-shadow: var(--shadow); }
details.faq summary {
  list-style: none;
  cursor: pointer;
  padding: 20px 22px;
  font-weight: 600;
  font-size: 1.03rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
}
details.faq summary::-webkit-details-marker { display: none; }
details.faq summary::after {
  content: "+";
  font-size: 1.5rem;
  font-weight: 400;
  color: var(--gray-soft);
  transition: transform .2s var(--ease);
  flex: none;
}
details.faq[open] summary::after { transform: rotate(45deg); }
details.faq .faq-body {
  padding: 0 22px 22px;
  color: var(--gray);
  font-size: 0.99rem;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-final {
  background: var(--black);
  color: var(--white);
  text-align: center;
  padding: 92px 0;
  position: relative;
  overflow: hidden;
}
.cta-final::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(circle at 50% 120%, rgba(255,196,0,.16), transparent 55%);
  pointer-events: none;
}
.cta-final .inner { position: relative; max-width: 700px; margin-inline: auto; }
.cta-final h2 { font-size: clamp(1.9rem, 4.5vw, 2.9rem); margin-bottom: 18px; }
.cta-final p { color: #C9C9C6; font-size: 1.1rem; margin-bottom: 30px; }
.cta-final .hero-cta { justify-content: center; }

/* ============================================================
   FOOTER
   ============================================================ */
.site-footer {
  background: var(--black);
  color: #9A9A97;
  border-top: 1px solid var(--line-dark);
  padding: 56px 0 40px;
}
.footer-top {
  display: grid;
  grid-template-columns: 1fr;
  gap: 32px;
  margin-bottom: 40px;
}
.footer-brand svg { height: 28px; margin-bottom: 16px; }
.footer-brand p { font-size: 0.92rem; max-width: 320px; }
.footer-col h4 {
  color: var(--white);
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
  margin: 0 0 14px;
}
.footer-col ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.footer-col a { font-size: 0.94rem; transition: color .15s var(--ease); }
.footer-col a:hover { color: var(--white); }
.footer-bottom {
  border-top: 1px solid var(--line-dark);
  padding-top: 24px;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 20px;
  justify-content: space-between;
  font-size: 0.85rem;
}

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (min-width: 620px) {
  .modules-grid { grid-template-columns: 1fr 1fr; }
  .bene-grid { grid-template-columns: 1fr 1fr; gap: 0 40px; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr; }
}
@media (min-width: 880px) {
  .nav-links { display: flex; }
  .nav-cta { display: inline-flex; }
  .modules-grid { grid-template-columns: repeat(4, 1fr); }
  .steps { grid-template-columns: 1fr 1fr; }
  .diff-grid { grid-template-columns: 1fr 1fr; }
  .footer-top { grid-template-columns: 2fr 1fr 1fr 1fr; }
}
@media (min-width: 1040px) {
  .steps { grid-template-columns: repeat(4, 1fr); }
}

/* Accesibilidad: respeta reduce-motion */
@media (prefers-reduced-motion: reduce) {
  * { scroll-behavior: auto !important; transition: none !important; }
}
