/* ============================================================
   DESIGN SYSTEM — Julián Garibello · Terapia Integral del Ser
   Shared stylesheet for the whole site
   ============================================================ */
:root {
  /* Colores */
  --color-primary: #8BA896;
  --color-primary-dark: #6F8E7C;
  --color-primary-soft: #B6C9BC;
  --color-header: #8daa92;
  --color-dark: #2C3B4D;
  --color-dark-deep: #1a2b38;
  --color-accent: #C4A882;
  --color-accent-soft: #E0CDB0;
  --color-bg: #FAFAF8;
  --color-bg-alt: #F2F5F3;
  --color-white: #FFFFFF;
  --color-muted: rgba(44, 59, 77, 0.65);

  /* Tipografía */
  --font-heading: 'Cormorant Garamond', serif;
  --font-subheading: 'Playfair Display', serif;
  --font-body: 'Lato', sans-serif;

  /* Espaciados */
  --spacing-section: 80px;
  --spacing-card: 24px;
  --border-radius: 12px;
  --shadow: 0 4px 20px rgba(44, 59, 77, 0.08);
  --shadow-hover: 0 12px 40px rgba(44, 59, 77, 0.14);

  /* Container */
  --max-width: 1200px;
  --header-h: 80px;
}

/* ============================================================
   RESET & BASE
   ============================================================ */
* { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font-body);
  color: var(--color-dark);
  background: var(--color-bg);
  font-size: 16px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  overflow-x: hidden;
}
img { max-width: 100%; height: auto; display: block; }
a { color: inherit; text-decoration: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

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

/* Reveal on scroll — transform-only entrance (no opacity), so content is
   always visible even if the animation can't paint/advance in a given context. */
.reveal.is-visible { animation: revealUp 0.8s cubic-bezier(0.22, 0.61, 0.36, 1); }
@keyframes revealUp {
  from { transform: translateY(22px); }
  to   { transform: translateY(0); }
}

/* ============================================================
   BUTTONS
   ============================================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 14px 26px;
  border-radius: 999px;
  font-family: var(--font-body);
  font-weight: 600;
  font-size: 14px;
  letter-spacing: 0.02em;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease, color 0.25s ease, border-color 0.25s ease;
  white-space: nowrap;
  text-align: center;
}
.btn-primary {
  background: var(--color-primary);
  color: var(--color-white);
  box-shadow: 0 8px 20px rgba(139, 168, 150, 0.35);
}
.btn-primary:hover {
  background: var(--color-primary-dark);
  transform: translateY(-2px);
  box-shadow: 0 12px 28px rgba(139, 168, 150, 0.45);
}
.btn-outline {
  background: transparent;
  color: var(--color-dark);
  border: 1.5px solid var(--color-dark);
}
.btn-outline:hover {
  background: var(--color-dark);
  color: var(--color-white);
  transform: translateY(-2px);
}
.btn-accent {
  background: var(--color-accent);
  color: var(--color-dark);
  box-shadow: 0 8px 24px rgba(196, 168, 130, 0.4);
  font-weight: 700;
}
.btn-accent:hover {
  background: var(--color-accent-soft);
  transform: translateY(-2px);
  box-shadow: 0 14px 32px rgba(196, 168, 130, 0.5);
}
.btn-light {
  background: var(--color-white);
  color: var(--color-primary-dark);
  font-weight: 700;
  font-size: 16px;
  padding: 18px 36px;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.15);
}
.btn-light:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.22);
}
.btn-ghost {
  background: transparent;
  color: var(--color-primary-dark);
  border: 1.5px solid var(--color-primary);
}
.btn-ghost:hover {
  background: var(--color-primary);
  color: var(--color-white);
  transform: translateY(-2px);
}

/* ============================================================
   NAVBAR (injected by site.js)
   ============================================================ */
.navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  background: var(--color-header);
  transition: box-shadow 0.3s ease, padding 0.3s ease;
  padding: 10px 0;
}
.navbar.scrolled { box-shadow: 0 4px 20px rgba(44, 59, 77, 0.18); }
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
}
.brand-logo { display: block; height: 62px; width: auto; }

.nav-menu {
  display: flex;
  gap: 28px;
  list-style: none;
  align-items: center;
}
.nav-menu > li { position: relative; }
.nav-menu > li > a {
  font-size: 14px;
  font-weight: 600;
  color: var(--color-dark);
  position: relative;
  padding: 8px 0;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  transition: color 0.25s ease;
}
.nav-menu > li > a::after {
  content: "";
  position: absolute;
  left: 0; bottom: 2px;
  height: 2px; width: 0;
  background: var(--color-dark);
  transition: width 0.3s ease;
}
.nav-menu > li > a:hover { color: var(--color-dark-deep); }
.nav-menu > li:not(.has-dropdown) > a:hover::after { width: 100%; }
.nav-menu > li.active > a::after { width: 100%; }
.nav-caret { width: 11px; height: 11px; transition: transform 0.25s ease; }
.has-dropdown:hover .nav-caret { transform: rotate(180deg); }

/* Dropdown */
.dropdown-menu {
  position: absolute;
  top: calc(100% + 14px);
  left: 50%;
  transform: translateX(-50%) translateY(8px);
  min-width: 248px;
  background: var(--color-white);
  border-radius: var(--border-radius);
  box-shadow: 0 18px 50px rgba(44, 59, 77, 0.18);
  padding: 10px;
  list-style: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
  z-index: 120;
}
.dropdown-menu::before {
  content: "";
  position: absolute;
  top: -16px; left: 0; right: 0; height: 16px;
}
.has-dropdown:hover .dropdown-menu,
.has-dropdown:focus-within .dropdown-menu,
.has-dropdown.open .dropdown-menu {
  opacity: 1;
  visibility: visible;
  transform: translateX(-50%) translateY(0);
}
.dropdown-menu a {
  display: block;
  padding: 10px 14px;
  font-size: 13.5px;
  font-weight: 500;
  color: var(--color-dark);
  border-radius: 8px;
  transition: background 0.2s ease, color 0.2s ease, padding-left 0.2s ease;
}
.dropdown-menu a:hover {
  background: var(--color-bg-alt);
  color: var(--color-primary-dark);
  padding-left: 18px;
}
.nav-cta { display: inline-flex; }
.navbar .btn-primary {
  background: var(--color-dark);
  color: var(--color-white);
  box-shadow: 0 6px 16px rgba(44, 59, 77, 0.25);
}
.navbar .btn-primary:hover {
  background: var(--color-dark-deep);
  box-shadow: 0 10px 22px rgba(44, 59, 77, 0.35);
}

/* Mobile toggle */
.mobile-toggle {
  display: none;
  width: 44px; height: 44px;
  flex-direction: column;
  justify-content: center;
  align-items: center;
  gap: 5px;
}
.mobile-toggle span {
  width: 24px; height: 2px;
  background: var(--color-dark);
  display: block;
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============================================================
   MOBILE MENU (drawer)
   ============================================================ */
.mobile-menu {
  position: fixed;
  inset: 0;
  z-index: 200;
  visibility: hidden;
  pointer-events: none;
}
.mobile-menu.open { visibility: visible; pointer-events: auto; }
.mobile-menu-overlay {
  position: absolute;
  inset: 0;
  background: rgba(26, 43, 56, 0.5);
  opacity: 0;
  transition: opacity 0.3s ease;
}
.mobile-menu.open .mobile-menu-overlay { opacity: 1; }
.mobile-menu-panel {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(360px, 88vw);
  background: var(--color-bg);
  box-shadow: -20px 0 60px rgba(44, 59, 77, 0.25);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
}
.mobile-menu.open .mobile-menu-panel { transform: translateX(0); }
.mobile-menu-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: var(--color-header);
  position: sticky; top: 0; z-index: 2;
}
.mobile-menu-head .micro {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 15px;
  color: var(--color-dark);
}
.mobile-close {
  width: 38px; height: 38px;
  display: grid; place-items: center;
  border-radius: 50%;
  color: var(--color-dark);
  font-size: 22px;
}
.mobile-nav { list-style: none; padding: 14px 16px 0; }
.mobile-nav > li { border-bottom: 1px solid rgba(44, 59, 77, 0.08); }
.mobile-nav > li > a,
.mobile-acc-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 16px 8px;
  font-size: 16px;
  font-weight: 600;
  color: var(--color-dark);
  font-family: var(--font-body);
  text-align: left;
}
.mobile-acc-trigger .nav-caret { transition: transform 0.3s ease; }
.mobile-acc.open .mobile-acc-trigger .nav-caret { transform: rotate(180deg); }
.mobile-sub {
  list-style: none;
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease;
}
.mobile-acc.open .mobile-sub { max-height: 520px; }
.mobile-sub li a {
  display: block;
  padding: 11px 8px 11px 22px;
  font-size: 14px;
  font-weight: 500;
  color: var(--color-muted);
  border-left: 2px solid var(--color-primary-soft);
  margin-left: 6px;
}
.mobile-sub li a:hover { color: var(--color-primary-dark); }
.mobile-sub li:last-child a { margin-bottom: 10px; }
.mobile-sticky-cta {
  position: sticky;
  bottom: 0;
  margin-top: auto;
  padding: 18px 22px 22px;
  background: linear-gradient(180deg, rgba(250,250,248,0) 0%, var(--color-bg) 30%);
  text-align: center;
}
.mobile-sticky-cta .btn { width: 100%; justify-content: center; }
.mobile-sticky-cta .micro {
  display: block;
  margin-top: 10px;
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 13px;
  color: var(--color-muted);
}

/* ============================================================
   BREADCRUMB (injected)
   ============================================================ */
.breadcrumb-bar {
  padding: calc(var(--header-h) + 26px) 0 0;
  background: var(--color-bg);
}
.breadcrumb {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  font-size: 13px;
  color: var(--color-muted);
}
.breadcrumb a { color: var(--color-primary-dark); font-weight: 600; transition: color 0.2s ease; }
.breadcrumb a:hover { color: var(--color-dark); }
.breadcrumb .sep { opacity: 0.5; }
.breadcrumb .current { color: var(--color-dark); font-weight: 600; }

/* ============================================================
   IMAGE PLACEHOLDERS
   ============================================================ */
.ph {
  position: relative;
  display: grid;
  place-items: center;
  background:
    repeating-linear-gradient(45deg, rgba(44,59,77,0.025) 0 12px, transparent 12px 24px),
    var(--color-bg-alt);
  border: 1.5px dashed rgba(44, 59, 77, 0.22);
  border-radius: var(--border-radius);
  color: var(--color-muted);
  text-align: center;
  min-height: 220px;
  overflow: hidden;
}
.ph span {
  font-family: var(--font-body);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,0.7);
  box-shadow: var(--shadow);
}
.ph-circle { border-radius: 50%; aspect-ratio: 1; min-height: 0; }
.ph-tall { min-height: 320px; }
.ph-avatar {
  width: 48px; height: 48px; min-height: 0;
  border-radius: 50%; flex-shrink: 0;
}
.ph-avatar span {
  font-size: 8px; padding: 3px 6px;
  letter-spacing: 0.04em; box-shadow: none;
  background: rgba(255,255,255,0.85);
}

/* ============================================================
   PAGE HERO (interior, simple/centered)
   ============================================================ */
.page-hero {
  position: relative;
  padding: 56px 0 64px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 60%);
  overflow: hidden;
}
.page-hero.no-crumb { padding-top: calc(var(--header-h) + 56px); }
.page-hero .blob {
  position: absolute;
  width: 560px; height: 560px;
  right: -160px; top: -160px;
  background: radial-gradient(circle at 30% 30%, var(--color-primary-soft), transparent 60%);
  border-radius: 50%; opacity: 0.5; z-index: 0;
}
.page-hero .container { position: relative; z-index: 1; }
.page-hero-narrow { max-width: 760px; }
/* Servicios hero: human figure blended into the background (no card/border/shadow) */
.page-hero.has-figure { overflow: hidden; }
.page-hero.has-figure { min-height: 480px; display: flex; align-items: center; }
.page-hero.has-figure .container { width: 100%; }
.page-hero.has-figure .page-hero-narrow { max-width: 440px; }
.page-hero-figure {
  position: absolute;
  top: 0; right: 0; bottom: 0;
  width: min(66%, 940px);
  background-size: cover;
  background-position: 60% 16%;
  background-repeat: no-repeat;
  z-index: 0;
  /* organic fluid blob mask: feathered fade confined to the left ~28%, the rest fully visible & sharp */
  -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='f'%3E%3CfeGaussianBlur%20stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath%20d='M106,-6%20L27,-6%20C19,17%2032,29%2024,45%20C17,59%2033,71%2026,106%20L106,106%20Z'%20fill='%23fff'%20filter='url(%23f)'/%3E%3C/svg%3E");
          mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='f'%3E%3CfeGaussianBlur%20stdDeviation='3'/%3E%3C/filter%3E%3C/defs%3E%3Cpath%20d='M106,-6%20L27,-6%20C19,17%2032,29%2024,45%20C17,59%2033,71%2026,106%20L106,106%20Z'%20fill='%23fff'%20filter='url(%23f)'/%3E%3C/svg%3E");
  -webkit-mask-size: 100% 100%;
          mask-size: 100% 100%;
  -webkit-mask-repeat: no-repeat;
          mask-repeat: no-repeat;
}
/* whisper-soft diagonal veil from the top-left, fading inward (≤14% opacity) */
.page-hero-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: radial-gradient(125% 120% at 0% 0%, rgba(244,239,231,0.14), rgba(244,239,231,0.05) 42%, rgba(122,138,107,0) 70%);
  pointer-events: none;
}
@media (max-width: 880px) {
  .page-hero.has-figure { min-height: 0; }
  .page-hero-figure {
    position: relative; width: 100%; height: 300px; margin-top: 24px;
    background-position: center 18%;
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='g'%3E%3CfeGaussianBlur%20stdDeviation='3.4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath%20d='M-6,108%20L-6,52%20C12,44%2022,60%2034,50%20C46,40%2055,58%2066,46%20C76,36%2086,57%20106,51%20L106,108%20Z'%20fill='%23fff'%20filter='url(%23g)'/%3E%3C/svg%3E");
            mask-image: url("data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20100%20100'%20preserveAspectRatio='none'%3E%3Cdefs%3E%3Cfilter%20id='g'%3E%3CfeGaussianBlur%20stdDeviation='3.4'/%3E%3C/filter%3E%3C/defs%3E%3Cpath%20d='M-6,108%20L-6,52%20C12,44%2022,60%2034,50%20C46,40%2055,58%2066,46%20C76,36%2086,57%20106,51%20L106,108%20Z'%20fill='%23fff'%20filter='url(%23g)'/%3E%3C/svg%3E");
  }
}
.page-hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(38px, 5vw, 64px);
  line-height: 1.08;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 20px;
  text-wrap: pretty;
}
.page-hero h1 em {
  font-family: var(--font-subheading);
  font-style: italic; font-weight: 400;
  color: var(--color-primary-dark);
}
.page-hero .lead {
  font-size: 18px;
  color: var(--color-muted);
  max-width: 620px;
  line-height: 1.7;
}
.page-hero .hero-ctas { margin-top: 32px; }
.page-hero .microcopy {
  display: block;
  margin-top: 16px;
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 14px;
  color: var(--color-muted);
}

/* HERO with split image */
.hero-split {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 56px;
  align-items: center;
}
.hero-split .ph { min-height: 380px; }
.hero-split .ph-circle { width: 100%; max-width: 420px; margin: 0 auto; }

/* ============================================================
   HERO with full overlay (service / corporate / nature)
   ============================================================ */
.hero-overlay {
  position: relative;
  min-height: 82vh;
  display: flex;
  align-items: center;
  padding: calc(var(--header-h) + 60px) 0 70px;
  overflow: hidden;
}
.hero-overlay .ph {
  position: absolute;
  inset: 0;
  border: none;
  border-radius: 0;
  min-height: 0;
  z-index: 0;
}
.hero-overlay .ph span { position: absolute; top: 24px; left: 24px; }
.hero-overlay .overlay {
  position: absolute; inset: 0; z-index: 1;
}
/* Unified soft, neutral overlay for all photo heroes (Type A) — soft at top,
   a touch deeper at the bottom only to protect text legibility */
.hero-overlay.tint-green .overlay,
.hero-overlay.tint-dark .overlay,
.hero-overlay.tint-nature .overlay {
  background: linear-gradient(to bottom, rgba(0,0,0,0.12) 0%, rgba(0,0,0,0.30) 55%, rgba(0,0,0,0.46) 100%);
}
.hero-overlay .container { position: relative; z-index: 2; }
.hero-overlay-inner { max-width: 720px; color: var(--color-white); }
.hero-overlay .eyebrow {
  display: inline-block;
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: #C7D2CC;
  margin-bottom: 16px;
  text-shadow: 0 1px 8px rgba(0,0,0,0.28);
}
.hero-overlay h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(36px, 5vw, 60px);
  line-height: 1.1;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
  color: var(--color-white);
  text-wrap: pretty;
  text-shadow: 0 2px 20px rgba(0,0,0,0.34);
}
.hero-overlay .lead {
  font-size: 18px;
  color: rgba(255,255,255,0.9);
  max-width: 600px;
  line-height: 1.7;
  margin-bottom: 30px;
  text-shadow: 0 1px 14px rgba(0,0,0,0.32);
}
.hero-overlay .microcopy {
  display: block;
  margin-top: 16px;
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 14px;
  color: rgba(255,255,255,0.8);
}

/* ============================================================
   SECTION SCAFFOLD
   ============================================================ */
.section { padding: var(--spacing-section) 0; position: relative; }
.section-sm { padding: calc(var(--spacing-section) * 0.7) 0; }
.section-alt { background: var(--color-bg-alt); }
.section-eyebrow {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.18em; text-transform: uppercase;
  color: var(--color-primary-dark);
  margin-bottom: 16px;
}
.section-title {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(32px, 4vw, 50px);
  line-height: 1.15;
  color: var(--color-dark);
  margin-bottom: 18px;
  text-wrap: balance;
}
.section-title em {
  font-family: var(--font-subheading);
  font-style: italic; color: var(--color-primary-dark); font-weight: 400;
}
.section-sub {
  font-family: var(--font-subheading);
  font-style: italic;
  font-size: 20px;
  color: var(--color-primary-dark);
}
.section-head { text-align: center; max-width: 760px; margin: 0 auto 56px; }
.section-head.left { text-align: left; margin-left: 0; }
.lead-text {
  font-size: 17.5px;
  color: var(--color-muted);
  line-height: 1.8;
  max-width: 760px;
}
.section-head .lead-text { margin: 0 auto; }

/* ============================================================
   HERO (Home, two column with portrait)
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 80px;
  background: linear-gradient(135deg, var(--color-bg-alt) 0%, var(--color-bg) 60%);
  overflow: hidden;
}
.hero-blob {
  position: absolute;
  width: 720px; height: 720px;
  right: -180px; top: -120px;
  background: radial-gradient(circle at 30% 30%, var(--color-primary-soft), transparent 60%);
  border-radius: 50%; opacity: 0.55; z-index: 0;
}
.hero-blob-2 {
  position: absolute;
  width: 400px; height: 400px;
  left: -120px; bottom: -100px;
  background: radial-gradient(circle, rgba(196, 168, 130, 0.18), transparent 70%);
  border-radius: 50%; z-index: 0;
}
.hero-inner {
  position: relative; z-index: 1;
  display: grid;
  grid-template-columns: 1.4fr 1fr;
  gap: 64px; align-items: center;
}
.hero-eyebrow {
  display: inline-flex; align-items: center; gap: 10px;
  font-family: var(--font-subheading);
  font-style: italic; font-size: 18px;
  color: var(--color-primary-dark);
  margin-bottom: 24px;
}
.hero-eyebrow::before { content: ""; width: 36px; height: 1px; background: var(--color-primary-dark); }
.hero h1 {
  font-family: var(--font-heading);
  font-weight: 500;
  font-size: clamp(44px, 6vw, 76px);
  line-height: 1.05;
  letter-spacing: -0.01em;
  color: var(--color-dark);
  margin-bottom: 24px;
  text-wrap: pretty;
}
.hero h1 em { font-family: var(--font-subheading); font-style: italic; font-weight: 400; color: var(--color-primary-dark); }
.hero-lead { font-size: 17px; color: var(--color-muted); max-width: 540px; margin-bottom: 36px; line-height: 1.7; }
.hero-ctas { display: flex; gap: 14px; flex-wrap: wrap; margin-bottom: 48px; }
.trust-row { display: flex; gap: 28px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid rgba(44, 59, 77, 0.1); }
.trust-item { display: flex; align-items: center; gap: 8px; font-size: 13px; color: var(--color-muted); font-weight: 500; }
.trust-item svg { width: 16px; height: 16px; flex-shrink: 0; }
.trust-item strong { color: var(--color-dark); font-weight: 700; }
.hero-portrait { position: relative; display: grid; place-items: center; }
.portrait-circle {
  position: relative; width: 100%; max-width: 440px; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden; background: var(--color-primary);
  box-shadow: 0 30px 60px rgba(44, 59, 77, 0.18);
}
.portrait-circle img { width: 100%; height: 100%; object-fit: cover; object-position: center 20%; }
.portrait-circle .ph { position: absolute; inset: 0; border: none; border-radius: 50%; }
.portrait-ring { position: absolute; inset: -22px; border: 1.5px dashed var(--color-accent); border-radius: 50%; opacity: 0.55; animation: slowSpin 60s linear infinite; }
@keyframes slowSpin { to { transform: rotate(360deg); } }
.portrait-badge {
  position: absolute; bottom: 28px; right: -12px;
  background: var(--color-white); padding: 14px 18px;
  border-radius: var(--border-radius); box-shadow: var(--shadow);
  display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600;
}
.portrait-badge .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--color-primary); box-shadow: 0 0 0 4px rgba(139, 168, 150, 0.25); }

/* ============================================================
   ABOUT / SPLIT
   ============================================================ */
.about-grid { display: grid; grid-template-columns: 1fr 1.2fr; gap: 72px; align-items: center; }
.about-grid.reverse { grid-template-columns: 1.2fr 1fr; }
.about-image { position: relative; display: grid; place-items: center; }
.about-image .img-wrap {
  width: 100%; max-width: 420px; aspect-ratio: 1;
  border-radius: 50%; overflow: hidden;
  border: 6px solid var(--color-accent-soft);
  box-shadow: 0 20px 50px rgba(44, 59, 77, 0.15);
}
.about-image .img-wrap .ph { position: absolute; inset: 0; border: none; border-radius: 50%; }
.about-image .img-wrap img { width: 100%; height: 100%; object-fit: cover; object-position: center 18%; }
.about-rect .img-wrap { border-radius: var(--border-radius); aspect-ratio: 4/5; max-width: 460px; border: none; }
.about-quote {
  position: absolute; top: 20px; left: -10px;
  background: var(--color-white); padding: 14px 18px;
  border-radius: var(--border-radius); box-shadow: var(--shadow);
  font-family: var(--font-subheading); font-style: italic; font-size: 14px; color: var(--color-primary-dark);
}
.about-text h2 { margin-bottom: 24px; }
.about-text > p {
  font-size: 17px; color: var(--color-muted); line-height: 1.75; margin-bottom: 20px;
}
.about-text > p + p { margin-top: 0; }
.about-text .lead-block { margin-bottom: 32px; }

/* feature bullet list */
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 14px; margin: 4px 0 32px; }
.feature-item { display: flex; align-items: flex-start; gap: 12px; font-size: 16px; color: var(--color-dark); font-weight: 500; }
.feature-item .tick {
  width: 26px; height: 26px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: rgba(139,168,150,0.18);
  color: var(--color-primary-dark);
  margin-top: 1px;
}
.feature-item .tick svg { width: 14px; height: 14px; }

/* ============================================================
   VALUES / PILLARS GRID
   ============================================================ */
.values-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; }
.value-card {
  background: var(--color-bg-alt); padding: 22px;
  border-radius: var(--border-radius); border-left: 3px solid var(--color-primary);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.value-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.value-icon {
  width: 40px; height: 40px; display: grid; place-items: center;
  background: var(--color-white); border-radius: 50%; margin-bottom: 14px; color: var(--color-primary-dark);
}
.value-card h4 { font-family: var(--font-heading); font-size: 21px; font-weight: 600; color: var(--color-dark); margin-bottom: 4px; }
.value-card p { font-size: 13.5px; color: var(--color-muted); margin: 0; line-height: 1.55; }

.pillars-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
.pillars-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.pillar {
  background: var(--color-white);
  border: 1px solid rgba(44,59,77,0.08);
  border-radius: var(--border-radius);
  padding: 30px 26px;
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.pillar:hover { transform: translateY(-5px); box-shadow: var(--shadow-hover); }
.pillar .num {
  font-family: var(--font-heading);
  font-size: 30px; font-weight: 700;
  color: var(--color-accent);
  display: block; margin-bottom: 10px;
}
.pillar .p-icon {
  width: 54px; height: 54px; margin: 0 auto 16px;
  display: grid; place-items: center;
  border-radius: 50%; background: rgba(139,168,150,0.15);
  color: var(--color-primary-dark);
}
.pillar h4 { font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--color-dark); line-height: 1.2; }
.pillar p { font-size: 13.5px; color: var(--color-muted); margin-top: 8px; line-height: 1.55; }

/* ============================================================
   TECHNIQUE TAGS (Formación)
   ============================================================ */
.tech-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.tech-card {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-white);
  border: 1px solid rgba(44,59,77,0.05);
  border-radius: var(--border-radius);
  padding: 14px 20px;
  transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
}
.tech-card:hover { transform: translateY(-2px); box-shadow: 0 8px 22px rgba(44,59,77,0.06); border-color: var(--color-primary-soft); }
.tech-card .t-icon {
  width: 40px; height: 40px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; border-radius: 50%;
  background: rgba(0,0,0,0.03); color: var(--color-primary-dark);
}
.tech-card .t-icon img { width: 34px; height: 34px; object-fit: contain; display: block; }
.tech-card .t-icon svg { width: 22px; height: 22px; display: block; }
.tech-card h4 { font-family: var(--font-heading); font-size: 19px; font-weight: 600; color: var(--color-dark); line-height: 1.2; }

/* ============================================================
   STATS / CIFRAS
   ============================================================ */
.stats-row { display: grid; grid-template-columns: repeat(4, 1fr); gap: 24px; align-items: stretch; max-width: 980px; margin: 0 auto; }
.stats-row.cols-3 { grid-template-columns: repeat(3, 1fr); }
.stat-block {
  text-align: center; padding: 32px 22px;
  display: flex; flex-direction: column; align-items: center; justify-content: flex-start; gap: 10px;
  background: var(--color-bg-alt); border-radius: var(--border-radius);
}
.stat-block .big {
  font-family: var(--font-heading); font-weight: 700;
  font-size: clamp(36px, 4vw, 48px); color: var(--color-primary-dark);
  line-height: 1; letter-spacing: -0.02em;
  height: 52px; display: flex; align-items: center; justify-content: center;
}
.stat-block .big svg { width: 44px; height: 44px; margin: 0 !important; }
.stat-block p { font-size: 14px; color: var(--color-muted); line-height: 1.45; margin: 0; max-width: 18ch; }

/* ============================================================
   SERVICES GRID (cards with placeholder image + CTA)
   ============================================================ */
.services-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.service-card {
  background: var(--color-white);
  border-radius: var(--border-radius);
  border-bottom: 3px solid var(--color-accent);
  transition: transform 0.3s ease, box-shadow 0.3s ease, border-color 0.3s ease;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.service-card:hover { transform: translateY(-6px); box-shadow: var(--shadow-hover); border-bottom-color: var(--color-primary); }
.service-card .ph { border-radius: 0; border: none; border-bottom: 1px dashed rgba(44,59,77,0.18); min-height: 180px; }
.service-card .card-body { padding: 26px 26px 28px; display: flex; flex-direction: column; gap: 14px; flex: 1; }
.service-card .s-icon {
  width: 88px; height: 88px; margin-top: -56px; position: relative; z-index: 2;
  display: grid; place-items: center; background: var(--color-white);
  border-radius: 50%; padding: 12px; box-shadow: var(--shadow);
}
.service-card .s-icon img { width: 100%; height: 100%; object-fit: contain; mix-blend-mode: multiply; }
.service-card h3 { font-family: var(--font-heading); font-size: 25px; font-weight: 600; color: var(--color-dark); line-height: 1.2; }
.service-card p { font-size: 14.5px; color: var(--color-muted); line-height: 1.65; flex: 1; }
.service-card .card-link {
  display: inline-flex; align-items: center; gap: 7px;
  font-size: 13.5px; font-weight: 700; color: var(--color-primary-dark);
  letter-spacing: 0.02em; margin-top: 4px;
  transition: gap 0.25s ease, color 0.25s ease;
}
.service-card .card-link:hover { gap: 12px; color: var(--color-dark); }
.service-card .card-link svg { width: 15px; height: 15px; }

/* Icon-only services (no photo): icon sits in a white circle at the top */
.service-card.icon-card { align-items: center; text-align: center; padding-top: 8px; }
.service-card.icon-card .s-icon { margin-top: 0; width: 88px; height: 88px; background: var(--color-white); box-shadow: var(--shadow); padding: 12px; }
.service-card.icon-card .card-body { padding-top: 24px; align-items: center; }
.service-card.icon-card .card-link { justify-content: center; }

/* ============================================================
   EMPRESAS (B2B dark section)
   ============================================================ */
.empresas { background: var(--color-dark); color: var(--color-white); position: relative; overflow: hidden; }
.empresas::before { content: ""; position: absolute; width: 600px; height: 600px; border-radius: 50%; background: radial-gradient(circle, rgba(139,168,150,0.15), transparent 70%); top: -200px; right: -150px; }
.empresas::after { content: ""; position: absolute; width: 500px; height: 500px; border-radius: 50%; background: radial-gradient(circle, rgba(196,168,130,0.08), transparent 70%); bottom: -200px; left: -100px; }
.empresas .container { position: relative; z-index: 1; }
.empresas .section-eyebrow { color: var(--color-primary); }
.empresas .section-title { color: var(--color-white); }
.empresas .section-title em { color: var(--color-accent); }
.empresas-lead { font-size: 17px; color: rgba(255, 255, 255, 0.78); max-width: 780px; line-height: 1.75; margin: 0 auto 56px; }
.empresas .section-head { text-align: center; }
.empresas-stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; margin-bottom: 56px; }
.stat-card { background: rgba(255, 255, 255, 0.04); border: 1px solid rgba(255, 255, 255, 0.1); border-radius: var(--border-radius); padding: 36px 28px; text-align: center; transition: transform 0.3s ease, background 0.3s ease, border-color 0.3s ease; }
.stat-card:hover { transform: translateY(-4px); background: rgba(139, 168, 150, 0.08); border-color: var(--color-primary); }
.stat-icon { width: 56px; height: 56px; margin: 0 auto 18px; display: grid; place-items: center; background: rgba(139, 168, 150, 0.18); border-radius: 50%; color: var(--color-primary); }
.stat-card h3 { font-family: var(--font-heading); font-size: 40px; font-weight: 600; color: var(--color-accent); margin-bottom: 8px; letter-spacing: -0.02em; }
.stat-card p { font-size: 14px; color: rgba(255, 255, 255, 0.72); line-height: 1.5; }
.empresas-cta { text-align: center; display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }
.empresas-microcopy { display: block; margin-top: 16px; font-family: var(--font-subheading); font-style: italic; color: rgba(255, 255, 255, 0.6); font-size: 14px; width: 100%; }

/* ============================================================
   TESTIMONIOS
   ============================================================ */
.testimonios-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 28px; }
.testimonios-grid.cols-2 { grid-template-columns: repeat(2, 1fr); max-width: 880px; margin: 0 auto; }
.testimonio { background: var(--color-white); border: 1px solid rgba(44, 59, 77, 0.08); border-radius: var(--border-radius); padding: 32px; display: flex; flex-direction: column; gap: 20px; transition: transform 0.3s ease, box-shadow 0.3s ease; position: relative; }
.testimonio:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.testimonio-stars { display: flex; gap: 2px; color: var(--color-accent); }
.testimonio-stars svg { width: 16px; height: 16px; fill: var(--color-accent); }
.testimonio-text { font-family: var(--font-subheading); font-style: italic; font-size: 17px; line-height: 1.65; color: var(--color-dark); flex: 1; }
.testimonio-author { display: flex; align-items: center; gap: 14px; padding-top: 18px; border-top: 1px solid rgba(44, 59, 77, 0.1); }
.avatar { width: 48px; height: 48px; border-radius: 50%; background: var(--color-bg-alt); display: grid; place-items: center; font-family: var(--font-heading); font-size: 22px; font-weight: 600; color: var(--color-primary-dark); flex-shrink: 0; }
.testimonio-author strong { display: block; font-family: var(--font-body); font-size: 14px; font-weight: 700; color: var(--color-dark); }
.testimonio-author span { font-size: 12px; color: var(--color-muted); }
.avatar-photo {
  width: 52px; height: 52px;
  border-radius: 50%;
  object-fit: cover;
  object-position: center top;
  flex-shrink: 0;
  display: block;
  background: var(--color-bg-alt);
}

/* ============================================================
   PROCESS STEPS
   ============================================================ */
.steps { display: flex; flex-direction: column; gap: 0; max-width: 820px; margin: 0 auto; }
.step { display: grid; grid-template-columns: auto 1fr; gap: 24px; position: relative; padding-bottom: 36px; }
.step:last-child { padding-bottom: 0; }
.step::before {
  content: ""; position: absolute; left: 26px; top: 56px; bottom: -4px;
  width: 2px; background: linear-gradient(180deg, var(--color-primary-soft), transparent);
}
.step:last-child::before { display: none; }
.step-num {
  width: 54px; height: 54px; flex-shrink: 0;
  display: grid; place-items: center;
  border-radius: 50%;
  background: var(--color-primary);
  color: var(--color-white);
  font-family: var(--font-heading);
  font-size: 24px; font-weight: 700;
  box-shadow: 0 8px 20px rgba(139,168,150,0.4);
  z-index: 1;
}
.step-body { padding-top: 6px; }
.step-body h4 { font-family: var(--font-heading); font-size: 23px; font-weight: 600; color: var(--color-dark); margin-bottom: 5px; }
.step-body p { font-size: 15.5px; color: var(--color-muted); line-height: 1.6; }

/* compact numbered list (for short flows) */
.flow-grid { display: grid; grid-template-columns: repeat(5, 1fr); gap: 16px; }
.flow-grid.cols-3 { grid-template-columns: repeat(3, 1fr); }
.flow-card { background: var(--color-white); border: 1px solid rgba(44,59,77,0.08); border-radius: var(--border-radius); padding: 26px 20px; text-align: center; }
.flow-card .num { width: 40px; height: 40px; margin: 0 auto 14px; display: grid; place-items: center; border-radius: 50%; background: var(--color-primary); color: #fff; font-family: var(--font-heading); font-weight: 700; font-size: 18px; }
.flow-card h4 { font-family: var(--font-heading); font-size: 19px; font-weight: 600; color: var(--color-dark); margin-bottom: 6px; line-height: 1.2; }
.flow-card p { font-size: 13px; color: var(--color-muted); line-height: 1.5; }

/* ============================================================
   FAQ ACCORDION
   ============================================================ */
.faq-wrap { max-width: 820px; margin: 0 auto; display: flex; flex-direction: column; gap: 14px; }
.faq-item { background: var(--color-white); border: 1px solid rgba(44,59,77,0.1); border-radius: var(--border-radius); overflow: hidden; transition: box-shadow 0.25s ease; }
.faq-item.open { box-shadow: var(--shadow); }
.faq-q {
  display: flex; align-items: center; justify-content: space-between; gap: 16px;
  width: 100%; padding: 22px 24px; text-align: left;
  font-family: var(--font-heading); font-size: 21px; font-weight: 600; color: var(--color-dark);
}
.faq-q .ic { width: 24px; height: 24px; flex-shrink: 0; color: var(--color-primary-dark); transition: transform 0.3s ease; }
.faq-item.open .faq-q .ic { transform: rotate(45deg); }
.faq-a { max-height: 0; overflow: hidden; transition: max-height 0.35s ease; }
.faq-a-inner { padding: 0 24px 22px; font-size: 15.5px; color: var(--color-muted); line-height: 1.7; }

/* ============================================================
   "QUÉ INCLUYE" / CHECK LIST CARD
   ============================================================ */
.check-card {
  background: var(--color-white);
  border: 1px solid rgba(44,59,77,0.08);
  border-radius: var(--border-radius);
  box-shadow: var(--shadow);
  padding: 36px 38px;
  max-width: 760px;
  margin: 0 auto;
}
.check-list { list-style: none; display: flex; flex-direction: column; gap: 16px; }
.check-list li { display: flex; align-items: flex-start; gap: 14px; font-size: 16.5px; color: var(--color-dark); line-height: 1.5; }
.check-list .tick {
  width: 28px; height: 28px; flex-shrink: 0; margin-top: 1px;
  display: grid; place-items: center; border-radius: 50%;
  background: rgba(139,168,150,0.18); color: var(--color-primary-dark);
}
.check-list .tick svg { width: 15px; height: 15px; }
.card-microcopy { margin-top: 22px; padding-top: 20px; border-top: 1px solid rgba(44,59,77,0.1); font-family: var(--font-subheading); font-style: italic; font-size: 15px; color: var(--color-muted); }

/* two-up cards layout */
.duo { display: grid; grid-template-columns: 1fr 1fr; gap: 28px; }
.soft-card {
  background: var(--color-white); border: 1px solid rgba(44,59,77,0.08);
  border-radius: var(--border-radius); padding: 32px 34px; box-shadow: var(--shadow);
}
.soft-card h3 { font-family: var(--font-heading); font-size: 24px; font-weight: 600; color: var(--color-dark); margin-bottom: 18px; }

/* programs list (empresas) — editorial human bands, no card */
.programs { display: flex; flex-direction: column; gap: 18px; }
.program-row {
  display: grid; grid-template-columns: 1.1fr 1fr; gap: 0; align-items: center;
  background: transparent; border: none; border-radius: 0; overflow: visible;
  min-height: 300px;
}
.program-row:hover { transform: none; box-shadow: none; }
.program-row:nth-child(even) { grid-template-columns: 1fr 1.1fr; }
.program-row:nth-child(even) .program-media { order: 2; }
.program-media {
  align-self: stretch;
  min-height: 300px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* fade softly toward the text (right) so the photo melts into the page */
  -webkit-mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0,0,0,0.35) 80%, transparent 100%);
          mask-image: linear-gradient(90deg, #000 0%, #000 52%, rgba(0,0,0,0.35) 80%, transparent 100%);
}
.program-row:nth-child(even) .program-media {
  /* image on the right, fade toward the left */
  -webkit-mask-image: linear-gradient(270deg, #000 0%, #000 52%, rgba(0,0,0,0.35) 80%, transparent 100%);
          mask-image: linear-gradient(270deg, #000 0%, #000 52%, rgba(0,0,0,0.35) 80%, transparent 100%);
}
.program-body { padding: 30px 48px; }
.program-row:nth-child(even) .program-body { padding-left: 8px; }
.program-body .num { font-family: var(--font-heading); font-size: 22px; font-weight: 700; color: var(--color-accent); }
.program-body h4 { font-family: var(--font-heading); font-size: 26px; font-weight: 600; color: var(--color-dark); margin: 4px 0 10px; }
.program-body p { font-size: 15.5px; color: var(--color-muted); line-height: 1.65; }

/* differentiators chips */
.diff-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 16px; max-width: 920px; margin: 0 auto; }
.diff-item {
  display: flex; align-items: center; gap: 14px;
  background: var(--color-bg-alt); border-radius: var(--border-radius);
  padding: 20px 24px; font-size: 16px; font-weight: 600; color: var(--color-dark);
}
.diff-item .tick { width: 30px; height: 30px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: var(--color-white); color: var(--color-primary-dark); }
.diff-item .tick svg { width: 16px; height: 16px; }

/* casos de éxito */
.cases-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.case-card { background: var(--color-white); border-radius: var(--border-radius); border-top: 3px solid var(--color-primary); padding: 30px; box-shadow: var(--shadow); }
.case-card .case-num { font-family: var(--font-heading); font-size: 20px; font-weight: 700; color: var(--color-accent); margin-bottom: 10px; }
.case-card p { font-size: 15.5px; color: var(--color-dark); line-height: 1.6; }
.cases-note { text-align: center; margin-top: 24px; font-family: var(--font-subheading); font-style: italic; font-size: 14px; color: var(--color-muted); }

/* ============================================================
   CONTACT
   ============================================================ */
.contact-grid { display: grid; grid-template-columns: 1fr 1.1fr; gap: 56px; align-items: start; }
.contact-methods { display: flex; flex-direction: column; gap: 18px; }
.contact-method {
  display: flex; align-items: center; gap: 18px;
  background: var(--color-white); border: 1px solid rgba(44,59,77,0.08);
  border-radius: var(--border-radius); padding: 22px 24px; box-shadow: var(--shadow);
  transition: transform 0.25s ease, box-shadow 0.25s ease;
}
.contact-method:hover { transform: translateY(-3px); box-shadow: var(--shadow-hover); }
.contact-method .c-icon { width: 50px; height: 50px; flex-shrink: 0; display: grid; place-items: center; border-radius: 50%; background: rgba(139,168,150,0.16); color: var(--color-primary-dark); }
.contact-method .c-label { font-size: 12px; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--color-primary-dark); }
.contact-method .c-value { font-size: 16px; font-weight: 600; color: var(--color-dark); }
.contact-method .c-value small { display: block; font-size: 13px; font-weight: 400; color: var(--color-muted); }
.contact-form { background: var(--color-white); border: 1px solid rgba(44,59,77,0.08); border-radius: var(--border-radius); padding: 36px 38px; box-shadow: var(--shadow); }
.form-field { margin-bottom: 20px; }
.form-field label { display: block; font-size: 13px; font-weight: 700; color: var(--color-dark); margin-bottom: 8px; letter-spacing: 0.02em; }
.form-field input, .form-field textarea {
  width: 100%; font-family: var(--font-body); font-size: 15px; color: var(--color-dark);
  background: var(--color-bg); border: 1.5px solid rgba(44,59,77,0.14);
  border-radius: 10px; padding: 14px 16px; transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.form-field textarea { resize: vertical; min-height: 130px; }
.form-field input:focus, .form-field textarea:focus { outline: none; border-color: var(--color-primary); box-shadow: 0 0 0 4px rgba(139,168,150,0.15); }
.form-microcopy { margin-top: 6px; font-family: var(--font-subheading); font-style: italic; font-size: 14px; color: var(--color-muted); }

/* ============================================================
   FINAL CTA
   ============================================================ */
.final-cta { background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-dark) 100%); color: var(--color-white); text-align: center; position: relative; overflow: hidden; }
.final-cta::before, .final-cta::after { content: ""; position: absolute; border-radius: 50%; background: radial-gradient(circle, rgba(255,255,255,0.08), transparent 70%); }
.final-cta::before { width: 500px; height: 500px; top: -250px; left: -150px; }
.final-cta::after { width: 600px; height: 600px; bottom: -300px; right: -200px; }
.final-cta .container { position: relative; z-index: 1; }
.final-cta h2 { font-family: var(--font-heading); font-weight: 500; font-size: clamp(34px, 5vw, 58px); line-height: 1.15; margin-bottom: 16px; text-wrap: balance; }
.final-cta h2 em { font-family: var(--font-subheading); font-style: italic; color: var(--color-accent-soft); font-weight: 400; }
.final-cta p { font-family: var(--font-subheading); font-style: italic; font-size: 20px; margin-bottom: 36px; color: rgba(255, 255, 255, 0.88); max-width: 640px; margin-left: auto; margin-right: auto; }
.final-cta .phone { display: block; margin-top: 22px; font-size: 14px; color: rgba(255, 255, 255, 0.7); letter-spacing: 0.04em; }
.final-cta .phone a { color: rgba(255, 255, 255, 0.92); text-decoration: underline; text-underline-offset: 3px; text-decoration-thickness: 1px; transition: color 0.2s ease; }
.final-cta .phone a:hover { color: var(--color-white); }
.final-cta .cta-row { display: flex; gap: 14px; justify-content: center; flex-wrap: wrap; }

/* ============================================================
   THANK YOU
   ============================================================ */
.ty-hero { text-align: center; }
.ty-check {
  width: 92px; height: 92px; margin: 0 auto 28px;
  display: grid; place-items: center; border-radius: 50%;
  background: var(--color-white); color: var(--color-primary);
  box-shadow: 0 14px 40px rgba(0,0,0,0.18);
}
.ty-check svg { width: 46px; height: 46px; }
.ty-signature { font-family: var(--font-subheading); font-style: italic; font-size: 22px; color: var(--color-primary-dark); }

/* ============================================================
   FOOTER
   ============================================================ */
.footer { background: var(--color-dark-deep); color: rgba(255, 255, 255, 0.7); padding: 72px 0 28px; }
.footer-grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1.1fr; gap: 40px; margin-bottom: 48px; }
.footer-brand { display: flex; flex-direction: column; gap: 18px; }
.footer-logo { display: inline-block; width: fit-content; }
.footer-logo img { display: block; width: 150px; height: auto; }
.footer-brand p { font-size: 14px; max-width: 300px; line-height: 1.7; margin-top: 4px; }
.footer h5 { font-family: var(--font-heading); font-size: 18px; font-weight: 600; color: var(--color-white); margin-bottom: 20px; letter-spacing: 0.01em; }
.footer ul { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer ul a { font-size: 14px; color: rgba(255, 255, 255, 0.65); transition: color 0.2s ease, padding-left 0.2s ease; display: inline-block; }
.footer ul a:hover { color: var(--color-primary); padding-left: 4px; }
.footer-contact-item { display: flex; align-items: flex-start; gap: 10px; font-size: 14px; color: rgba(255, 255, 255, 0.7); }
.footer-contact-item svg { width: 16px; height: 16px; flex-shrink: 0; margin-top: 3px; color: var(--color-primary); }
.footer-contact-item a { color: rgba(255,255,255,0.7); transition: color 0.2s ease; }
.footer-contact-item a:hover { color: var(--color-primary); }
.footer-bottom { border-top: 1px solid rgba(255, 255, 255, 0.08); padding-top: 28px; display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.footer-bottom small { font-size: 12.5px; color: rgba(255, 255, 255, 0.5); letter-spacing: 0.02em; }
.footer-socials { display: flex; gap: 10px; }
.footer-socials a { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; background: rgba(255, 255, 255, 0.06); border: 1px solid rgba(255, 255, 255, 0.08); color: rgba(255, 255, 255, 0.7); transition: all 0.25s ease; }
.footer-socials a:hover { background: var(--color-primary); color: var(--color-white); transform: translateY(-2px); border-color: var(--color-primary); }
.footer-socials svg { width: 16px; height: 16px; }

/* Anchor targets clear the fixed header when jumped to */
#programas, .program-row[id] { scroll-margin-top: 100px; }

/* ============================================================
   REAL IMAGES — media slots (cards, program rows, hero bg)
   ============================================================ */
.card-media {
  width: 100%; height: 240px;
  object-fit: cover; object-position: center;
  display: block;
}
.service-card .card-media { height: 230px; border-bottom: 1px solid rgba(44,59,77,0.06); }
.program-media .card-media { height: 100%; min-height: 240px; }
.program-media { overflow: hidden; }
/* Service icons: show provided icons as-is — original color, centered, no crop/stretch */
.service-card .s-icon img { mix-blend-mode: normal; object-fit: contain; width: 100%; height: 100%; }
/* Full-bleed hero background image (sits under .overlay) */
.hero-bg {
  position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center;
  background-repeat: no-repeat;
}
/* Decorative 1:1 texture block (retiros) */
.texture-square {
  max-width: 480px; margin: 0 auto; aspect-ratio: 1;
  border-radius: var(--border-radius); overflow: hidden;
  border: 6px solid var(--color-white);
  box-shadow: var(--shadow-hover);
}
.texture-square img { width: 100%; height: 100%; object-fit: cover; display: block; }
/* Decorative interior image band (16:9) used between sections on service pages */
.image-band {
  position: relative;
  width: 100%;
  max-width: 1040px;
  margin: 0 auto;
  aspect-ratio: 16 / 9;
  border-radius: var(--border-radius);
  overflow: hidden;
  box-shadow: var(--shadow-hover);
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}
/* very light wash only (≤12%) so the imagery stays luminous */
.image-band::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,59,77,0.04), rgba(44,59,77,0.12));
  pointer-events: none;
}
.section-band { padding: calc(var(--spacing-section) * 0.55) 0; }
@media (max-width: 768px) { .image-band { border-radius: 10px; } }

/* Human interior image (1:1) — emotional, integrated, premium.
   Contained square, soft corners, very minimal shadow, never competes with text. */
.human-figure {
  position: relative;
  width: 100%;
  max-width: 440px;
  margin: 0 auto;
  aspect-ratio: 1 / 1;
  border-radius: 18px;
  overflow: hidden;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  border: 1px solid rgba(44, 59, 77, 0.06);
  box-shadow: 0 6px 22px rgba(44, 59, 77, 0.07);
}
/* barely-there wash to seat the image into the page tone */
.human-figure::after {
  content: "";
  position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(44,59,77,0.0), rgba(44,59,77,0.05));
  pointer-events: none;
}
.human-band { padding: calc(var(--spacing-section) * 0.5) 0; }
@media (max-width: 768px) { .human-figure { max-width: 340px; border-radius: 14px; } }

/* ============================================================
   SERVICE SPLIT — full-bleed 50/50: text left, soft image right
   ============================================================ */
.service-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: stretch;
  width: 100%;
  position: relative;
}
.service-split.is-alt { background: var(--color-bg-alt); }
/* Reversed split: image LEFT, text RIGHT, fade toward the right */
.service-split.is-reverse .service-split__image { grid-column: 1; }
.service-split.is-reverse .service-split__text { grid-column: 2; }
.service-split.is-reverse .service-split__text {
  padding-left: clamp(32px, 5vw, 80px);
  padding-right: max(24px, calc((100vw - var(--max-width)) / 2 + 0px));
}
.service-split.is-reverse .service-split__image {
  -webkit-mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.55) 13%, #000 38%);
          mask-image: linear-gradient(to left, transparent 0%, rgba(0,0,0,0.55) 13%, #000 38%);
}
.service-split__text {
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: var(--spacing-section);
  padding-bottom: var(--spacing-section);
  padding-right: clamp(32px, 5vw, 80px);
  padding-left: max(24px, calc((100vw - var(--max-width)) / 2 + 0px));
}
.service-split__text-inner { max-width: 560px; }
.service-split__text .section-title { margin-bottom: 26px; }
.service-split__image {
  position: relative;
  min-height: 540px;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* soft fade toward the text (left) — blends into page bg, no hard edge */
  -webkit-mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 13%, #000 38%);
          mask-image: linear-gradient(to right, transparent 0%, rgba(0,0,0,0.55) 13%, #000 38%);
}
@media (max-width: 880px) {
  .service-split { grid-template-columns: 1fr; }
  /* reversed split on mobile: text first (top), image below */
  .service-split.is-reverse .service-split__text { grid-column: 1; order: 0; padding-left: 24px; padding-right: 24px; }
  .service-split.is-reverse .service-split__image { grid-column: 1; order: 1; }
  .service-split__text {
    padding: var(--spacing-section) 24px calc(var(--spacing-section) * 0.5);
  }
  .service-split__text-inner { max-width: none; }
  .service-split__image {
    min-height: 0;
    width: 100%;
    aspect-ratio: 1 / 1;
    -webkit-mask-image: none;
            mask-image: none;
  }
}
/* Subtle full-section background wash (home soft sections) */
.bg-wash { position: relative; }
.bg-wash::before {
  content: ""; position: absolute; inset: 0; z-index: 0;
  background-size: cover; background-position: center; background-repeat: no-repeat;
  opacity: 0.12; pointer-events: none;
}
.bg-wash > .container { position: relative; z-index: 1; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1200px) { :root { --spacing-section: 72px; } }
@media (max-width: 992px) {
  .hero-inner { grid-template-columns: 1fr; gap: 56px; }
  .hero-portrait { order: -1; }
  .portrait-circle { max-width: 320px; }
  .about-grid, .about-grid.reverse { grid-template-columns: 1fr; gap: 48px; }
  .about-image .img-wrap { max-width: 320px; margin: 0 auto; }
  .hero-split { grid-template-columns: 1fr; gap: 40px; }
  .hero-split .ph-img { order: -1; }
  .services-grid { grid-template-columns: repeat(2, 1fr); }
  .testimonios-grid { grid-template-columns: 1fr; max-width: 600px; margin: 0 auto; }
  .testimonios-grid.cols-2 { grid-template-columns: 1fr; max-width: 600px; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .pillars-grid, .pillars-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .stats-row { grid-template-columns: repeat(2, 1fr); }
  .tech-grid { grid-template-columns: repeat(2, 1fr); }
  .flow-grid, .flow-grid.cols-3 { grid-template-columns: repeat(2, 1fr); }
  .cases-grid { grid-template-columns: 1fr; max-width: 560px; margin: 0 auto; }
  .contact-grid { grid-template-columns: 1fr; gap: 36px; }
  .program-row, .program-row:nth-child(even) { grid-template-columns: 1fr; min-height: 0; }
  .program-row:nth-child(even) .program-media { order: 0; }
  .program-media, .program-row:nth-child(even) .program-media {
    min-height: 220px; height: 220px;
    -webkit-mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,0.35) 82%, transparent 100%);
            mask-image: linear-gradient(180deg, #000 0%, #000 58%, rgba(0,0,0,0.35) 82%, transparent 100%);
  }
  .program-body, .program-row:nth-child(even) .program-body { padding: 18px 8px 12px; }
}
@media (max-width: 768px) {
  :root { --spacing-section: 56px; }
  .nav-menu, .nav-cta { display: none; }
  .mobile-toggle { display: flex; }
  .brand-logo { height: 52px; }
  .hero { padding: 110px 0 56px; }
  .hero-ctas { flex-direction: column; align-items: stretch; }
  .hero-ctas .btn { justify-content: center; }
  .trust-row { gap: 14px; }
  .values-grid { grid-template-columns: 1fr; }
  .services-grid { grid-template-columns: 1fr; }
  .empresas-stats { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 32px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  /* Mobile: center all footer text */
  .footer-grid { text-align: center; }
  .footer-brand { align-items: center; }
  .footer-brand p { max-width: none; }
  .footer ul { align-items: center; }
  .footer-contact-item { justify-content: center; }
  .section-head { margin-bottom: 40px; }
  .pillars-grid, .pillars-grid.cols-3, .stats-row, .stats-row.cols-3, .tech-grid, .flow-grid, .flow-grid.cols-3, .diff-grid { grid-template-columns: 1fr; }
  .duo { grid-template-columns: 1fr; }
  .hero-overlay .lead, .page-hero .lead { font-size: 16px; }
  .hero-overlay { min-height: 60vh; padding: calc(var(--header-h) + 36px) 0 48px; }
  .hero-overlay-inner { max-width: none; text-align: center; margin: 0 auto; }
  .hero-overlay-inner .lead { margin-left: auto; margin-right: auto; }
  .hero-overlay-inner .hero-ctas { justify-content: center; }
  .check-card, .contact-form { padding: 26px 22px; }
  .faq-q { font-size: 18px; padding: 18px 20px; }
  .step-num { width: 46px; height: 46px; font-size: 20px; }
  .step::before { left: 22px; }
}

/* ========== FLOATING WHATSAPP BUTTON ========== */
.wa-float {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 56px;
  height: 56px;
  border-radius: 50%;
  background: #25D366;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  z-index: 9000;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.18);
  transition: transform 0.2s ease, box-shadow 0.2s ease, background 0.2s ease;
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 26px rgba(0, 0, 0, 0.24);
  background: #1ebe5a;
}
.wa-float svg {
  width: 30px;
  height: 30px;
  display: block;
}
@media (max-width: 768px) {
  .wa-float {
    bottom: 18px;
    right: 18px;
    width: 52px;
    height: 52px;
  }
  .wa-float svg {
    width: 28px;
    height: 28px;
  }
}

/* ============================================================
   DROPDOWN HIERARCHY (Empresas — hub + programas + divider)
   ============================================================ */
.dropdown-menu li.dd-parent > a { font-weight: 700; color: var(--color-dark); }
.dropdown-menu li.dd-child > a {
  padding-left: 26px;
  font-size: 13px;
  color: var(--color-muted);
  position: relative;
}
.dropdown-menu li.dd-child > a::before {
  content: "";
  position: absolute;
  left: 14px; top: 50%;
  width: 5px; height: 5px;
  border-radius: 50%;
  background: var(--color-primary-soft);
  transform: translateY(-50%);
}
.dropdown-menu li.dd-child > a:hover { padding-left: 30px; color: var(--color-primary-dark); }
.dropdown-menu li.dd-divider {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(44, 59, 77, 0.1);
}
.dropdown-menu li.dd-divider > a { font-weight: 700; color: var(--color-dark); }

.mobile-sub li.ms-parent > a { font-weight: 700; color: var(--color-dark); }
.mobile-sub li.ms-child > a { padding-left: 38px; font-size: 13.5px; }
.mobile-sub li.ms-divider { margin-top: 6px; }
.mobile-sub li.ms-divider > a {
  font-weight: 700;
  color: var(--color-dark);
  border-top: 1px solid rgba(44, 59, 77, 0.12);
  padding-top: 14px;
}

/* ============================================================
   CORPORATE PROGRAM PAGES — structural scaffold
   ============================================================ */
/* ratio-controlled placeholder (overrides .ph min-height) */
.ph-ratio { min-height: 0 !important; width: 100%; }

/* two-column text + media block */
.prog-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: clamp(36px, 5vw, 64px);
  align-items: center;
}
.prog-split__text .section-eyebrow { margin-bottom: 12px; }
.prog-split__text .lead-text { margin-bottom: 0; }
.prog-split.reverse .prog-split__media { order: -1; }
@media (max-width: 880px) {
  .prog-split { grid-template-columns: 1fr; gap: 32px; }
  .prog-split.reverse .prog-split__media { order: 0; }
}

/* placeholder / results bullet list */
.prog-bullets { list-style: none; display: flex; flex-direction: column; gap: 14px; }
.prog-bullets li {
  display: flex; align-items: flex-start; gap: 13px;
  font-size: 16px; line-height: 1.5; color: var(--color-dark);
}
.prog-bullets li .dot {
  flex-shrink: 0; width: 9px; height: 9px; margin-top: 8px;
  border-radius: 50%; background: var(--color-primary);
}

/* methodology quick-tags (comma-free compact list) */
.prog-tags { list-style: none; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.prog-tags li {
  font-size: 13.5px; font-weight: 600; color: var(--color-primary-dark);
  background: var(--color-bg-alt); border-radius: 999px; padding: 8px 16px;
}
.section-alt .prog-tags li { background: var(--color-white); }

/* subtle contextual note (constelaciones, protocols) — top rule, no box */
.prog-aside {
  margin-top: 22px; padding-top: 18px;
  border-top: 1px solid rgba(44, 59, 77, 0.12);
  font-size: 14.5px; line-height: 1.7; color: var(--color-muted);
}
.prog-aside strong { color: var(--color-dark); font-weight: 700; }

/* hero placeholder band under the intro */
.prog-hero-media { margin-top: 44px; }

/* inline pending-text tag */
.pending {
  display: inline-block;
  font-family: var(--font-body);
  font-size: 12px; font-weight: 700;
  letter-spacing: 0.1em; text-transform: uppercase;
  color: var(--color-primary-dark);
  background: rgba(139, 168, 150, 0.14);
  border: 1px dashed rgba(111, 142, 124, 0.5);
  border-radius: 8px;
  padding: 6px 12px;
}
/* stacked prose paragraphs in a split text column */
.prog-split__text p + p { margin-top: 16px; }
.prog-split__text .lead-text + p { margin-top: 16px; }

/* real images in split media slots — cover, centered, no distortion, no frame */
.prog-media-slot {
  position: relative;
  width: 100%;
  overflow: hidden;
  border-radius: var(--border-radius);
  box-shadow: 0 10px 30px rgba(44, 59, 77, 0.10);
}
.prog-media-slot img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}
