/* ═══════════════════════════════════════════════
   VitalCapitalHumano — main.css
   Paleta: Verde oliva · Arena · Terracota acento
════════════════════════════════════════════════ */

:root {
  --olive:       #3D4F2E;
  --olive-md:    #556B3A;
  --olive-lt:    #7A9455;
  --olive-pale:  #EDF0E7;
  --terra:       #B05E3A;
  --terra-lt:    #C97A52;
  --sand:        #F5F0E8;
  --sand-dark:   #EDE5D8;
  --white:       #FDFCF9;
  --border:      #DDD5C8;
  --text:        #2A2A1E;
  --muted:       #5A5A48;
  --light-muted: #8A8A72;
  --danger:      #C0392B;

  --font-display: 'Playfair Display', serif;
  --font-body:    'DM Sans', sans-serif;

  --radius-sm:  4px;
  --radius-md:  8px;
  --radius-lg:  12px;
  --radius-xl:  20px;

  --shadow-card: 0 1px 3px rgba(42,42,30,0.07), 0 4px 16px rgba(42,42,30,0.05);
  --shadow-lift: 0 4px 20px rgba(42,42,30,0.12);

  --max-width: 1080px;
  --nav-h: 68px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--font-body);
  font-weight: 400;
  color: var(--text);
  background: var(--white);
  line-height: 1.7;
  -webkit-font-smoothing: antialiased;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { cursor: pointer; font-family: var(--font-body); }

.container {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
}
.section-pad { padding: 5rem 0; }

/* ── Buttons ── */
.btn-primary {
  display: inline-block;
  background: var(--olive);
  color: var(--white);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.75rem;
  border-radius: var(--radius-md);
  border: none;
  transition: background 0.2s, transform 0.15s;
}
.btn-primary:hover { background: var(--olive-md); transform: translateY(-1px); }
.btn-primary:active { transform: translateY(0); }
.btn-full { width: 100%; text-align: center; }

.btn-ghost {
  display: inline-block;
  color: var(--olive);
  font-family: var(--font-body);
  font-size: 0.95rem;
  font-weight: 500;
  padding: 0.75rem 1.5rem;
  border-radius: var(--radius-md);
  border: 1.5px solid var(--olive);
  background: transparent;
  transition: background 0.2s;
}
.btn-ghost:hover { background: var(--olive-pale); }

/* ── Navbar ── */
.nav-wrap {
  position: sticky;
  top: 0;
  z-index: 100;
  background: rgba(253,252,249,0.95);
  backdrop-filter: blur(8px);
  border-bottom: 0.5px solid var(--border);
  height: var(--nav-h);
  display: flex;
  align-items: center;
}
.nav-inner {
  display: flex;
  align-items: center;
  gap: 2rem;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 1.5rem;
  width: 100%;
}
.logo {
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1.2rem;
  letter-spacing: -0.2px;
  flex-shrink: 0;
  font-style: italic;
}
.logo-vital   { color: var(--terra); }
.logo-capital { color: var(--olive); }
.logo-humano  { color: var(--olive-lt); }
.logo--footer .logo-capital { color: var(--white); }
.logo--footer .logo-vital   { color: var(--terra-lt); }
.logo--footer .logo-humano  { color: rgba(255,255,255,0.6); }

.nav-links {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  margin-left: auto;
}
.nav-links li a {
  font-size: 0.9rem;
  font-weight: 400;
  color: var(--muted);
  padding: 0.4rem 0.85rem;
  border-radius: var(--radius-sm);
  transition: color 0.15s, background 0.15s;
}
.nav-links li a:hover { color: var(--olive); background: var(--olive-pale); }
.nav-cta {
  background: var(--olive) !important;
  color: var(--white) !important;
  font-weight: 500 !important;
  padding: 0.45rem 1rem !important;
  border-radius: var(--radius-md) !important;
  margin-left: 0.5rem;
}
.nav-cta:hover { background: var(--olive-md) !important; }

.nav-toggle {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  padding: 4px;
  margin-left: auto;
}
.nav-toggle span {
  display: block;
  width: 22px; height: 2px;
  background: var(--olive);
  border-radius: 2px;
  transition: transform 0.2s, opacity 0.2s;
}

/* ── Section headers ── */
.section-kicker {
  font-family: var(--font-body);
  font-size: 0.75rem;
  font-weight: 500;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--olive-lt);
  margin-bottom: 0.6rem;
}
.section-title {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 3vw, 2.2rem);
  font-weight: 700;
  font-style: italic;
  color: var(--olive);
  line-height: 1.2;
  margin-bottom: 1rem;
}
.section-sub {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 600px;
  line-height: 1.75;
}
.section-header { margin-bottom: 3rem; }

/* ── Hero ── */
.hero {
  position: relative;
  padding: 5.5rem 0 4.5rem;
  background: var(--white);
  overflow: hidden;
}
.hero-bg-accent {
  position: absolute;
  top: -80px; right: -100px;
  width: 480px; height: 480px;
  border-radius: 50%;
  background: var(--olive-pale);
  opacity: 0.7;
  pointer-events: none;
}
.hero-bg-accent2 {
  position: absolute;
  bottom: -60px; left: -60px;
  width: 280px; height: 280px;
  border-radius: 50%;
  background: var(--sand-dark);
  opacity: 0.5;
  pointer-events: none;
}
.hero-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 0.8rem;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--olive-lt);
  margin-bottom: 1.25rem;
}
.kicker-dot {
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--terra);
  flex-shrink: 0;
}
.hero-title {
  font-family: var(--font-display);
  font-size: clamp(2.4rem, 5vw, 3.8rem);
  font-weight: 700;
  font-style: italic;
  color: var(--olive);
  line-height: 1.1;
  letter-spacing: -0.3px;
  margin-bottom: 1.5rem;
}
.hero-title em {
  font-style: normal;
  color: var(--terra);
}
.hero-body {
  font-size: 1.05rem;
  color: var(--muted);
  font-weight: 300;
  max-width: 560px;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 2.5rem;
}
.hero-pillars {
  display: flex;
  gap: 1.5rem;
  flex-wrap: wrap;
}
.pillar-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 0.82rem;
  color: var(--muted);
  font-weight: 400;
  padding: 5px 12px;
  background: var(--sand);
  border-radius: 20px;
  border: 0.5px solid var(--border);
}
.pillar-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--olive-lt);
  flex-shrink: 0;
}

/* ── Stats bar ── */
.stats-bar {
  background: var(--olive);
  padding: 2rem 0;
}
.stats-grid {
  display: flex;
  align-items: center;
  justify-content: space-around;
  gap: 1rem;
  flex-wrap: wrap;
}
.stat-item { text-align: center; }
.stat-num {
  display: block;
  font-family: var(--font-display);
  font-size: 2.2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--terra-lt);
  line-height: 1;
  margin-bottom: 0.25rem;
}
.stat-label {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
}
.stat-divider {
  width: 1px; height: 40px;
  background: rgba(255,255,255,0.1);
}

/* ── Services ── */
.services { background: var(--sand); }
.services-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
}
.service-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 0.5px solid var(--border);
  box-shadow: var(--shadow-card);
  transition: box-shadow 0.2s, transform 0.2s;
  border-top: 3px solid var(--olive-lt);
}
.service-card:hover {
  box-shadow: var(--shadow-lift);
  transform: translateY(-2px);
}
.service-card--accent { border-top-color: var(--terra); }

.service-icon {
  width: 44px; height: 44px;
  border-radius: var(--radius-md);
  background: var(--olive-pale);
  display: flex; align-items: center; justify-content: center;
  color: var(--olive);
  margin-bottom: 1rem;
  font-size: 1.2rem;
}
.service-icon--terra { background: #FAF0EB; color: var(--terra); }

.service-name {
  font-family: var(--font-display);
  font-size: 1.15rem;
  font-weight: 700;
  font-style: italic;
  color: var(--olive);
  margin-bottom: 0.6rem;
}
.service-desc {
  font-size: 0.9rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
  margin-bottom: 1.25rem;
}
.service-features {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  margin-bottom: 1.5rem;
}
.service-features li {
  font-size: 0.83rem;
  color: var(--muted);
  padding-left: 1rem;
  position: relative;
  line-height: 1.5;
}
.service-features li::before {
  content: '·';
  position: absolute;
  left: 0;
  color: var(--olive-lt);
  font-weight: 700;
}
.service-link {
  font-size: 0.88rem;
  font-weight: 500;
  color: var(--olive);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  transition: gap 0.15s;
}
.service-link:hover { gap: 8px; }

/* ── Propuesta de valor ── */
.value-section { background: var(--white); }
.value-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: center;
}
.value-body {
  font-size: 1rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 1.5rem;
}
.value-list { display: flex; flex-direction: column; gap: 1rem; }
.value-list li {
  display: flex;
  gap: 0.85rem;
  align-items: flex-start;
}
.vl-icon {
  color: var(--terra);
  font-size: 0.5rem;
  margin-top: 0.6rem;
  flex-shrink: 0;
}
.value-list strong {
  display: block;
  font-size: 0.92rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 0.15rem;
}
.value-list span {
  font-size: 0.85rem;
  color: var(--muted);
  font-weight: 300;
}

/* Quote visual */
.value-visual {
  background: var(--olive);
  border-radius: var(--radius-xl);
  padding: 2.5rem;
  position: relative;
  overflow: hidden;
}
.value-visual::before {
  content: '"';
  font-family: var(--font-display);
  font-size: 10rem;
  color: rgba(255,255,255,0.06);
  position: absolute;
  top: -1rem; left: 1.5rem;
  line-height: 1;
  pointer-events: none;
}
.vv-quote {
  font-family: var(--font-display);
  font-size: 1.3rem;
  font-style: italic;
  font-weight: 700;
  color: var(--white);
  line-height: 1.5;
  margin-bottom: 1.5rem;
  position: relative;
}
.vv-sub {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.55);
  font-weight: 300;
  line-height: 1.7;
  position: relative;
}
.vv-tag {
  margin-top: 1.5rem;
  font-size: 0.72rem;
  color: var(--terra-lt);
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  position: relative;
}

/* ── Cómo trabajamos (resumen) ── */
.how-section { background: var(--sand); }
.how-steps {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  border: 0.5px solid var(--border);
}
.how-step {
  background: var(--white);
  padding: 1.75rem 1.5rem;
}
.how-step:hover { background: var(--olive-pale); }
.step-num {
  font-family: var(--font-display);
  font-size: 2rem;
  font-weight: 700;
  font-style: italic;
  color: var(--olive-lt);
  opacity: 0.35;
  line-height: 1;
  margin-bottom: 0.5rem;
}
.step-title {
  font-family: var(--font-display);
  font-size: 1rem;
  font-weight: 700;
  font-style: italic;
  color: var(--olive);
  margin-bottom: 0.5rem;
}
.step-desc {
  font-size: 0.83rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.7;
}
.how-cta { text-align: center; margin-top: 2.5rem; }

/* ── FAQ ── */
.faq-section { background: var(--white); }
.faq-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px;
  background: var(--border);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 0.5px solid var(--border);
}
.faq-item { background: var(--white); padding: 1.5rem; }
.faq-item:hover { background: var(--sand); }
.faq-q {
  font-family: var(--font-display);
  font-size: 0.95rem;
  font-weight: 700;
  font-style: italic;
  color: var(--olive);
  margin-bottom: 0.5rem;
  line-height: 1.4;
}
.faq-a {
  font-size: 0.88rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.75;
}

/* ── Contact ── */
.contact-section { background: var(--sand); }
.contact-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4rem;
  align-items: start;
}
.contact-title {
  font-family: var(--font-display);
  font-size: clamp(1.8rem, 3vw, 2.4rem);
  font-weight: 700;
  font-style: italic;
  color: var(--olive);
  line-height: 1.15;
  margin-bottom: 1rem;
}
.contact-body {
  font-size: 0.95rem;
  color: var(--muted);
  font-weight: 300;
  line-height: 1.85;
  margin-bottom: 2rem;
}
.contact-data { display: flex; flex-direction: column; gap: 1rem; }
.cd-item { display: flex; flex-direction: column; gap: 2px; }
.cd-label { font-size: 0.72rem; font-weight: 500; letter-spacing: 1px; text-transform: uppercase; color: var(--olive-lt); }
.cd-value { font-size: 1rem; color: var(--olive); font-weight: 400; }
.cd-value:hover { color: var(--terra); }

.contact-form-wrap {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 2rem;
  border: 0.5px solid var(--border);
}
.form-row { margin-bottom: 1rem; }
.form-label {
  display: block;
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--olive);
  margin-bottom: 0.35rem;
}
.req { color: var(--terra); }
input[type="text"],
input[type="email"],
select,
textarea {
  width: 100%;
  padding: 0.65rem 0.9rem;
  font-family: var(--font-body);
  font-size: 0.92rem;
  color: var(--text);
  background: var(--sand);
  border: 0.5px solid var(--border);
  border-radius: var(--radius-md);
  outline: none;
  transition: border-color 0.15s, box-shadow 0.15s;
  appearance: none;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--olive);
  box-shadow: 0 0 0 3px rgba(61,79,46,0.1);
  background: var(--white);
}
textarea { resize: vertical; min-height: 80px; }
.cf-turnstile { margin: 1rem 0; }

.form-success {
  background: var(--olive-pale);
  border-radius: var(--radius-xl);
  padding: 3rem 2rem;
  text-align: center;
  border: 0.5px solid rgba(61,79,46,0.2);
}
.success-icon { font-size: 2rem; color: var(--olive); margin-bottom: 0.75rem; }
.form-success h3 { font-family: var(--font-display); font-size: 1.4rem; font-style: italic; color: var(--olive); margin-bottom: 0.5rem; }
.form-success p { font-size: 0.92rem; color: var(--muted); }
.form-error {
  background: #FEF2F2;
  border-radius: var(--radius-lg);
  padding: 1rem;
  font-size: 0.88rem;
  color: var(--danger);
  border: 0.5px solid rgba(192,57,43,0.2);
  margin-top: 0.75rem;
  display: none;
}
.form-error a { color: var(--olive); text-decoration: underline; }

/* ── Footer ── */
.site-footer { background: var(--olive); padding: 3rem 0 0; }
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr;
  gap: 3rem;
  padding-bottom: 3rem;
}
.footer-tagline {
  font-size: 0.85rem;
  color: rgba(255,255,255,0.45);
  font-weight: 300;
  line-height: 1.7;
  margin-top: 0.5rem;
}
.footer-col-title {
  font-family: var(--font-display);
  font-size: 0.8rem;
  font-weight: 600;
  font-style: italic;
  letter-spacing: 0.5px;
  color: rgba(255,255,255,0.35);
  margin-bottom: 1rem;
}
.footer-links ul { display: flex; flex-direction: column; gap: 0.6rem; }
.footer-links a {
  font-size: 0.88rem;
  color: rgba(255,255,255,0.6);
  font-weight: 300;
  transition: color 0.15s;
}
.footer-links a:hover { color: var(--terra-lt); }
.footer-bottom {
  border-top: 0.5px solid rgba(255,255,255,0.08);
  padding: 1.25rem 0;
}
.footer-bottom .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
}
.footer-bottom p { font-size: 0.78rem; color: rgba(255,255,255,0.3); font-weight: 300; }

/* ── Page hero (interiores) ── */
.page-hero {
  padding: 4rem 0 3rem;
  background: var(--white);
  border-bottom: 0.5px solid var(--border);
}
.page-hero-inner { max-width: 700px; }

/* ═══════════════════════════════════════════════
   RESPONSIVE
════════════════════════════════════════════════ */
@media (max-width: 900px) {
  .services-grid,
  .value-grid,
  .contact-grid { grid-template-columns: 1fr; gap: 2rem; }
  .how-steps { grid-template-columns: 1fr 1fr; }
  .faq-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 2rem; }
  .stat-divider { display: none; }
  .nav-links { display: none; flex-direction: column; position: absolute; top: var(--nav-h); left: 0; right: 0; background: var(--white); padding: 1rem 1.5rem; border-bottom: 0.5px solid var(--border); gap: 0.5rem; box-shadow: 0 8px 24px rgba(42,42,30,0.1); }
  .nav-links.open { display: flex; }
  .nav-links li a { padding: 0.65rem 0.5rem; font-size: 1rem; }
  .nav-cta { margin-left: 0 !important; }
  .nav-toggle { display: flex; }
}
@media (max-width: 600px) {
  .hero { padding: 3.5rem 0 3rem; }
  .section-pad { padding: 3.5rem 0; }
  .hero-title { font-size: 2.2rem; }
  .hero-actions { flex-direction: column; }
  .hero-actions .btn-ghost { align-self: flex-start; }
  .how-steps { grid-template-columns: 1fr; }
  .stats-grid { flex-direction: column; gap: 1.5rem; }
}
