/* =========================================================
   SYNTERGIA — sistema visual
   Paleta extraída de la presentación oficial Syntergia 2.0
   ========================================================= */

:root {
  --dark: #1E2328;
  --dark-2: #262C33;
  --gold: #C9A227;
  --gold-light: #F1E7C6;
  --cream: #F2F0EC;
  --gray: #6B6864;
  --gray-light: #9C9891;
  --white: #FFFFFF;
  --border-light: #E4E1D9;
  --radius: 14px;
  --shadow: 0 12px 30px rgba(30, 35, 40, 0.10);
  --shadow-dark: 0 12px 30px rgba(0, 0, 0, 0.35);
  --max-width: 1180px;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--dark);
  background: var(--white);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { margin: 0; padding: 0; list-style: none; }
h1, h2, h3, h4 { margin: 0; font-weight: 800; letter-spacing: -0.01em; }
p { margin: 0; }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--gold);
  margin-bottom: 14px;
}
.eyebrow::before {
  content: "";
  width: 18px;
  height: 2px;
  background: var(--gold);
  display: inline-block;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 15px;
  cursor: pointer;
  border: none;
  transition: transform .15s ease, box-shadow .15s ease, background .15s ease;
}
.btn-primary {
  background: var(--gold);
  color: var(--dark);
}
.btn-primary:hover { transform: translateY(-2px); box-shadow: 0 10px 24px rgba(201,162,39,.35); }
.btn-ghost {
  background: transparent;
  color: var(--white);
  border: 1.5px solid rgba(255,255,255,.35);
}
.btn-ghost:hover { border-color: var(--gold); color: var(--gold); }
.btn-dark {
  background: var(--dark);
  color: var(--white);
}
.btn-dark:hover { transform: translateY(-2px); box-shadow: var(--shadow); }

/* ---------- Header ---------- */
header.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(30, 35, 40, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid rgba(255,255,255,.08);
}
.nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 24px;
  max-width: var(--max-width);
  margin: 0 auto;
}
.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 20px;
  color: var(--white);
  letter-spacing: -0.01em;
}
.logo .mark { color: var(--gold); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 32px;
}
.nav-links a {
  color: rgba(255,255,255,.82);
  font-size: 15px;
  font-weight: 600;
  transition: color .15s ease;
}
.nav-links a:hover, .nav-links a.active { color: var(--gold); }
.nav-cta { display: flex; align-items: center; gap: 18px; }
.nav-toggle {
  display: none;
  background: none;
  border: none;
  cursor: pointer;
  width: 32px;
  height: 32px;
  position: relative;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  content: "";
  position: absolute;
  left: 4px;
  right: 4px;
  height: 2px;
  background: var(--white);
  transition: all .2s ease;
}
.nav-toggle span { top: 15px; }
.nav-toggle span::before { top: -8px; }
.nav-toggle span::after { top: 8px; }
.nav-toggle.open span { background: transparent; }
.nav-toggle.open span::before { transform: rotate(45deg); top: 0; }
.nav-toggle.open span::after { transform: rotate(-45deg); top: 0; }

/* ---------- Hero (dark, node network motif) ---------- */
.hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  overflow: hidden;
  padding: 90px 0 100px;
}
.hero .node-field {
  position: absolute;
  inset: 0;
  opacity: 0.55;
  pointer-events: none;
}
.hero-inner {
  position: relative;
  z-index: 2;
  max-width: 760px;
}
.hero h1 {
  font-size: clamp(32px, 4.6vw, 52px);
  line-height: 1.12;
  color: var(--white);
  margin-bottom: 22px;
}
.hero h1 .accent { color: var(--gold); }
.hero p.lead {
  font-size: 19px;
  color: rgba(255,255,255,.78);
  max-width: 620px;
  margin-bottom: 34px;
  font-weight: 400;
}
.hero-ctas { display: flex; gap: 16px; flex-wrap: wrap; }
.hero-note {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(255,255,255,.55);
}

/* small dark section variant (no huge hero, used on inner pages) */
.page-hero {
  position: relative;
  background: var(--dark);
  color: var(--white);
  padding: 64px 0 76px;
  overflow: hidden;
}
.page-hero .node-field { position: absolute; inset: 0; opacity: .45; pointer-events: none; }
.page-hero-inner { position: relative; z-index: 2; max-width: 720px; }
.page-hero h1 { font-size: clamp(28px, 4vw, 40px); color: var(--white); margin-bottom: 16px; }
.page-hero p.lead { font-size: 17px; color: rgba(255,255,255,.78); max-width: 600px; }
.breadcrumb {
  font-size: 13px;
  color: rgba(255,255,255,.5);
  margin-bottom: 18px;
}
.breadcrumb a { color: rgba(255,255,255,.7); }
.breadcrumb a:hover { color: var(--gold); }

/* ---------- Sections ---------- */
section { padding: 88px 0; }
section.tight { padding: 64px 0; }
section.on-cream { background: var(--cream); }
section.on-dark { background: var(--dark); color: var(--white); }

.section-head { max-width: 680px; margin-bottom: 48px; }
.section-head h2 { font-size: clamp(26px, 3.2vw, 36px); color: var(--dark); margin-bottom: 16px; }
.on-dark .section-head h2 { color: var(--white); }
.section-head p { font-size: 17px; color: var(--gray); }
.on-dark .section-head p { color: rgba(255,255,255,.72); }
.section-head.center { margin-left: auto; margin-right: auto; text-align: center; }

/* ---------- Stat cards ---------- */
.stat-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.stat-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 32px 28px;
  box-shadow: var(--shadow);
}
.stat-card .num {
  font-size: 42px;
  font-weight: 800;
  color: var(--gold);
  line-height: 1;
  margin-bottom: 14px;
}
.stat-card p { color: var(--gray); font-size: 15px; }
.source-note {
  font-size: 12px;
  color: var(--gray-light);
  margin-top: 22px;
}

/* ---------- Feature / icon rows ---------- */
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.feature-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.feature-grid.cols-2 { grid-template-columns: repeat(2, 1fr); }
.feature-card {
  background: var(--white);
  border-radius: var(--radius);
  padding: 30px 26px;
  box-shadow: var(--shadow);
}
.on-dark .feature-card { background: var(--dark-2); box-shadow: none; border: 1px solid rgba(255,255,255,.08); }
.icon-badge {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--gold-light);
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 18px;
}
.on-dark .icon-badge { background: rgba(201,162,39,.16); }
.icon-badge svg { width: 24px; height: 24px; stroke: var(--gold); fill: none; }
.feature-card h3 { font-size: 18px; margin-bottom: 10px; color: var(--dark); }
.on-dark .feature-card h3 { color: var(--white); }
.feature-card p { font-size: 14.5px; color: var(--gray); }
.on-dark .feature-card p { color: rgba(255,255,255,.68); }

/* ---------- Process steps ---------- */
.steps {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 16px;
  counter-reset: step;
}
.step {
  position: relative;
  padding: 26px 20px 20px;
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
}
.step .step-num {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--dark);
  color: var(--gold);
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 16px;
  font-size: 15px;
}
.step h4 { font-size: 15px; margin-bottom: 6px; color: var(--dark); }
.step p { font-size: 13.5px; color: var(--gray); }

/* ---------- Two column ---------- */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: center;
}
.two-col.reverse .col-media { order: 2; }

/* ---------- Quote / callout ---------- */
.callout {
  border-radius: var(--radius);
  background: var(--dark);
  color: var(--white);
  padding: 40px 44px;
  position: relative;
}
.callout p.quote {
  font-size: 20px;
  font-style: italic;
  line-height: 1.5;
  color: var(--white);
}
.callout .quote-mark { color: var(--gold); font-size: 42px; line-height: 0; }

/* ---------- Case study card ---------- */
.case-card {
  background: var(--white);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  padding: 40px;
  border: 1px solid var(--border-light);
}
.case-tag {
  display: inline-block;
  background: var(--gold-light);
  color: #7A611A;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: .04em;
  text-transform: uppercase;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 18px;
}
.case-metrics {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
  margin: 26px 0;
  padding: 24px 0;
  border-top: 1px solid var(--border-light);
  border-bottom: 1px solid var(--border-light);
}
.case-metrics .m-num { font-size: 26px; font-weight: 800; color: var(--dark); }
.case-metrics .m-label { font-size: 13px; color: var(--gray); margin-top: 4px; }

/* ---------- Timeline ---------- */
.timeline {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 14px;
}
.tl-item {
  background: var(--white);
  border-radius: 12px;
  padding: 20px 16px;
  box-shadow: var(--shadow);
  border-top: 3px solid var(--gold);
}
.tl-item .tl-month { font-size: 12px; font-weight: 700; color: var(--gold); text-transform: uppercase; letter-spacing: .04em; margin-bottom: 8px; }
.tl-item h4 { font-size: 14.5px; margin-bottom: 8px; }
.tl-item p { font-size: 12.5px; color: var(--gray); }

/* ---------- Logos strip ---------- */
.logo-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 14px 34px;
  align-items: center;
  justify-content: center;
}
.logo-strip span {
  font-weight: 700;
  font-size: 17px;
  color: var(--gray);
  opacity: .85;
}

/* ---------- FAQ ---------- */
.faq-item {
  border-bottom: 1px solid var(--border-light);
  padding: 22px 0;
}
.faq-item summary {
  cursor: pointer;
  font-weight: 700;
  font-size: 16.5px;
  color: var(--dark);
  list-style: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 20px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-item summary::after {
  content: "+";
  font-size: 24px;
  color: var(--gold);
  flex-shrink: 0;
}
.faq-item[open] summary::after { content: "–"; }
.faq-item p { margin-top: 14px; color: var(--gray); font-size: 15px; line-height: 1.65; }

/* ---------- CTA band ---------- */
.cta-band {
  background: var(--dark);
  color: var(--white);
  border-radius: 22px;
  padding: 56px 48px;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-band h2 { color: var(--white); font-size: clamp(24px,3vw,32px); margin-bottom: 14px; }
.cta-band p { color: rgba(255,255,255,.75); max-width: 520px; margin: 0 auto 30px; font-size: 16px; }

/* ---------- Form ---------- */
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
}
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13.5px; font-weight: 700; margin-bottom: 8px; color: var(--dark); }
.form-field input, .form-field textarea, .form-field select {
  width: 100%;
  padding: 13px 16px;
  border-radius: 10px;
  border: 1.5px solid var(--border-light);
  font-family: var(--font);
  font-size: 15px;
  background: var(--white);
  color: var(--dark);
}
.form-field input:focus, .form-field textarea:focus {
  outline: none;
  border-color: var(--gold);
}
.contact-info-item {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 26px;
}
.contact-info-item .icon-badge { flex-shrink: 0; margin-bottom: 0; width: 44px; height: 44px; }
.contact-info-item h4 { font-size: 15px; margin-bottom: 4px; }
.contact-info-item p, .contact-info-item a { font-size: 14.5px; color: var(--gray); }

/* ---------- Footer ---------- */
footer.site-footer {
  background: var(--dark);
  color: rgba(255,255,255,.65);
  padding: 60px 0 28px;
}
.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  padding-bottom: 40px;
  border-bottom: 1px solid rgba(255,255,255,.1);
}
.footer-grid h5 {
  color: var(--white);
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: .06em;
  margin-bottom: 18px;
}
.footer-grid li { margin-bottom: 10px; font-size: 14.5px; }
.footer-grid a:hover { color: var(--gold); }
.footer-brand p { font-size: 14px; margin: 16px 0; max-width: 280px; color: rgba(255,255,255,.55); }
.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 22px;
  font-size: 13px;
  flex-wrap: wrap;
  gap: 12px;
}

/* ---------- Responsive ---------- */
@media (max-width: 900px) {
  .stat-grid, .feature-grid, .feature-grid.cols-3, .timeline { grid-template-columns: repeat(2, 1fr); }
  .steps { grid-template-columns: repeat(3, 1fr); }
  .two-col, .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .two-col.reverse .col-media { order: 0; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 680px) {
  .nav-links, .nav-cta .btn-ghost { display: none; }
  .nav-toggle { display: block; }
  .nav.open .nav-links {
    display: flex;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: var(--dark);
    flex-direction: column;
    padding: 20px 24px 28px;
    gap: 18px;
    border-bottom: 1px solid rgba(255,255,255,.08);
  }
  .stat-grid, .feature-grid, .feature-grid.cols-3, .feature-grid.cols-2, .steps, .timeline, .case-metrics { grid-template-columns: 1fr; }
  section { padding: 56px 0; }
  .cta-band { padding: 40px 24px; }
  .footer-grid { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom { flex-direction: column; align-items: flex-start; }
}
