/* ============================================================
   COMUSAV — Sistema de diseño compartido
   Premium · Institucional · Pixel-perfect
   ============================================================ */

:root {
  /* Brand */
  --navy: #090979;
  --navy-deep: #050538;
  --navy-blackish: #030322;
  --navy-soft: #1a1a7a;
  --cyan: #00D4FF;
  --cyan-soft: #6BE5FF;
  --grad-main: linear-gradient(135deg, #090979 0%, #00D4FF 100%);
  --grad-soft: linear-gradient(135deg, rgba(9,9,121,0.05) 0%, rgba(0,212,255,0.05) 100%);
  --grad-mesh:
    radial-gradient(ellipse 60% 50% at 20% 0%, rgba(0,212,255,0.12), transparent 60%),
    radial-gradient(ellipse 60% 50% at 80% 100%, rgba(9,9,121,0.6), transparent 60%);

  /* Surfaces */
  --bg: #FFFFFF;
  --bg-alt: #F7F9FF;
  --bg-mute: #EFF2FA;
  --bg-dark: #0d0e6e;          /* navy más vivo (antes #050538 — muy oscuro de día) */
  --bg-dark-2: #08085a;

  /* Text */
  --text: #0A0A2E;
  --text-muted: #5A5A7A;
  --text-soft: #8A8AA8;
  --text-light: rgba(255,255,255,0.86);
  --text-light-muted: rgba(255,255,255,0.62);

  /* Borders */
  --border: rgba(9,9,121,0.08);
  --border-strong: rgba(9,9,121,0.16);
  --border-dark: rgba(255,255,255,0.08);

  /* Shape */
  --radius-sm: 8px;
  --radius: 14px;
  --radius-lg: 22px;
  --radius-xl: 32px;

  /* Motion */
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);

  /* Layout */
  --container: 1240px;
  --container-narrow: 980px;

  /* Shadows */
  --shadow-sm: 0 1px 2px rgba(9,9,121,0.04), 0 1px 3px rgba(9,9,121,0.06);
  --shadow: 0 4px 12px -2px rgba(9,9,121,0.08), 0 2px 4px rgba(9,9,121,0.04);
  --shadow-lg: 0 24px 48px -12px rgba(9,9,121,0.16), 0 4px 8px rgba(9,9,121,0.04);
  --shadow-xl: 0 40px 80px -20px rgba(9,9,121,0.25), 0 8px 16px rgba(9,9,121,0.06);
  --shadow-cyan: 0 8px 24px -6px rgba(0,212,255,0.45);
}

/* ---------- Reset ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html {
  scroll-behavior: smooth;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}
body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  color: var(--text);
  background: var(--bg);
  line-height: 1.65;
  font-size: 16px;
  overflow-x: hidden;
  font-feature-settings: "ss01", "cv11";
}
img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; cursor: pointer; border: none; background: none; color: inherit; }
ul { list-style: none; }
input, textarea, select { font: inherit; color: inherit; }

h1, h2, h3, h4, h5 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.12;
  letter-spacing: -0.025em;
  color: var(--text);
}

/* ---------- Containers ---------- */
.container { max-width: var(--container); margin: 0 auto; padding: 0 28px; }
.container-narrow { max-width: var(--container-narrow); margin: 0 auto; padding: 0 28px; }

/* ============================================================
   NAVIGATION
   ============================================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  padding: 10px 0;
  background: var(--bg-dark);
  border-bottom: 1px solid rgba(255,255,255,0.06);
  transition: padding 0.3s var(--ease), background 0.3s var(--ease), border-color 0.3s var(--ease);
  color: white;
}
.nav.scrolled {
  padding: 6px 0;
  background: rgba(255,255,255,0.96);
  backdrop-filter: saturate(180%) blur(24px);
  -webkit-backdrop-filter: saturate(180%) blur(24px);
  border-bottom-color: rgba(9,9,121,0.08);
  color: var(--text);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
}
.brand {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 1;
}
.brand-logo {
  height: 60px;
  width: auto;
  display: block;
  transition: opacity 0.3s var(--ease);
}
/* En nav scrolled, el logo se reduce ligeramente para no romper compactación */
.nav.scrolled .brand-logo { height: 52px; }
.brand:hover .brand-logo { opacity: 0.85; }

/* Swap entre versión clara (nav oscuro) y versión color (nav blanco) */
.brand-logo-light { display: block; }
.brand-logo-dark { display: none; }
.nav.scrolled .brand-logo-light { display: none; }
.nav.scrolled .brand-logo-dark { display: block; }

.brand-logo-footer {
  height: 64px;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 38px;
  font-size: 14.5px;
  font-weight: 500;
}
.nav-links a {
  color: rgba(255,255,255,0.85);
  opacity: 1;
  transition: color 0.2s var(--ease);
  position: relative;
  padding: 4px 0;
}
.nav.scrolled .nav-links a { color: var(--text); opacity: 0.78; }
.nav-links a:hover { color: white; opacity: 1; }
.nav.scrolled .nav-links a:hover { color: var(--navy); opacity: 1; }
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -4px; left: 0;
  width: 0; height: 2px;
  background: var(--grad-main);
  border-radius: 2px;
  transition: width 0.35s var(--ease);
}
.nav-links a:hover::after { width: 100%; }

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

/* Language selector */
.lang { position: relative; }
.lang-toggle {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 13px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255,255,255,0.9);
  transition: background 0.2s var(--ease), color 0.2s var(--ease);
}
.nav.scrolled .lang-toggle { color: var(--text); }
.lang-toggle:hover { background: rgba(255,255,255,0.1); }
.nav.scrolled .lang-toggle:hover { background: var(--bg-alt); }
.lang-flag {
  display: inline-block;
  width: 22px;
  height: 16px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  vertical-align: middle;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.06);
}
.lang-code {
  font-weight: 600;
  letter-spacing: 0.02em;
}
.lang-chev {
  width: 12px; height: 12px;
  opacity: 0.6;
  transition: transform 0.2s var(--ease);
}
.lang.open .lang-chev { transform: rotate(180deg); }

.lang-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  min-width: 260px;
  max-height: 70vh;
  overflow-y: auto;
  background: white;
  border: 1px solid var(--border);
  border-radius: 16px;
  box-shadow: var(--shadow-xl);
  padding: 8px;
  opacity: 0;
  visibility: hidden;
  transform: translateY(-8px);
  transition: all 0.25s var(--ease);
}
.lang.open .lang-menu {
  opacity: 1;
  visibility: visible;
  transform: translateY(0);
}
.lang-section-title {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--text-soft);
  padding: 12px 14px 6px;
}
.lang-item {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 14px;
  color: var(--text);
  text-align: left;
  transition: background 0.15s var(--ease);
}
.lang-item:hover { background: var(--bg-alt); }
.lang-item.active {
  background: var(--grad-soft);
  font-weight: 600;
  color: var(--navy);
}
.lang-divider { height: 1px; background: var(--border); margin: 6px 4px; }
.lang-more {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 10px 14px;
  border-radius: 9px;
  font-size: 13px;
  font-weight: 500;
  color: var(--text-muted);
  transition: background 0.15s var(--ease);
}
.lang-more:hover { background: var(--bg-alt); color: var(--navy); }
.lang-secondary { display: none; }
.lang.show-all .lang-secondary { display: block; }
.lang.show-all .lang-more { display: none; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 13px 24px;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14.5px;
  letter-spacing: 0.005em;
  transition: all 0.25s var(--ease);
  white-space: nowrap;
  cursor: pointer;
  position: relative;
  overflow: hidden;
}
.btn-primary {
  background: var(--grad-main);
  color: white;
  box-shadow: 0 4px 12px -3px rgba(9,9,121,0.35), 0 1px 2px rgba(9,9,121,0.2);
}
.btn-primary::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, #00D4FF 0%, #090979 100%);
  opacity: 0;
  transition: opacity 0.4s var(--ease);
}
.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px -6px rgba(9,9,121,0.4), 0 2px 4px rgba(9,9,121,0.25);
}
.btn-primary:hover::before { opacity: 1; }
.btn-primary > * { position: relative; z-index: 1; }

.btn-ghost {
  color: var(--navy);
  border: 1px solid var(--border-strong);
  background: rgba(255,255,255,0.6);
}
.btn-ghost:hover {
  background: white;
  border-color: var(--navy);
  transform: translateY(-1px);
}
.btn-light {
  background: rgba(255,255,255,0.08);
  color: white;
  border: 1px solid rgba(255,255,255,0.18);
  backdrop-filter: blur(8px);
}
.btn-light:hover {
  background: rgba(255,255,255,0.16);
  border-color: rgba(255,255,255,0.4);
  transform: translateY(-1px);
}
.btn-arrow { transition: transform 0.25s var(--ease); }
.btn:hover .btn-arrow { transform: translateX(4px); }

.menu-btn {
  display: none;
  width: 42px; height: 42px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  color: white;
}
.nav.scrolled .menu-btn { color: var(--navy); }

/* ============================================================
   HERO
   ============================================================ */
.hero {
  position: relative;
  min-height: 100vh;
  padding: 140px 0 100px;
  background: var(--bg-dark);
  color: white;
  overflow: hidden;
  display: flex;
  align-items: center;
}
/* Subtle institutional grid backdrop */
.hero::before {
  content: '';
  position: absolute;
  inset: 0;
  background:
    radial-gradient(ellipse 80% 60% at 75% 35%, rgba(0,212,255,0.12), transparent 60%),
    radial-gradient(ellipse 60% 60% at 15% 80%, rgba(9,9,121,0.5), transparent 60%);
  pointer-events: none;
}
/* (Cuadrícula blueprint eliminada — estética más institucional) */
#network-canvas {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0.22;
}
.hero-inner {
  position: relative;
  z-index: 3;
  display: grid;
  grid-template-columns: 0.85fr 1.4fr;
  gap: 56px;
  align-items: center;
  width: 100%;
}
.hero-content { max-width: 520px; }
.hero-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 16px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(0,212,255,0.3);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: 0.05em;
  color: var(--cyan-soft);
  margin-bottom: 28px;
  backdrop-filter: blur(8px);
}
.hero-eyebrow-dot {
  width: 7px; height: 7px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px var(--cyan);
  animation: pulse 2s infinite var(--ease);
}
@keyframes pulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.5; transform: scale(0.85); }
}

.hero h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2rem, 3.8vw, 3.4rem);
  font-weight: 700;
  line-height: 1.08;
  letter-spacing: -0.025em;
  color: white;
  margin-bottom: 26px;
}
.hero h1 .highlight {
  color: var(--cyan);
  font-weight: 700;
}
.hero-sub {
  font-size: clamp(1rem, 1.45vw, 1.18rem);
  line-height: 1.65;
  color: var(--text-light);
  max-width: 580px;
  margin-bottom: 40px;
}
.hero-ctas {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.hero-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  margin-top: 80px;
  max-width: 720px;
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 36px;
}
.stat { padding: 0 12px; position: relative; }
.stat:not(:last-child)::after {
  content: '';
  position: absolute;
  right: 0; top: 8px; bottom: 8px;
  width: 1px;
  background: rgba(255,255,255,0.1);
}
.stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.8rem, 3vw, 2.5rem);
  font-weight: 700;
  background: linear-gradient(135deg, #ffffff 0%, var(--cyan) 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  letter-spacing: -0.025em;
  line-height: 1;
}
.stat-label {
  font-size: 13px;
  color: var(--text-light-muted);
  margin-top: 8px;
  letter-spacing: 0.015em;
}

/* HERO globe visual */
.hero-globe-wrap {
  position: relative;
  aspect-ratio: 1;
  max-width: 720px;
  width: 100%;
  margin: 0 auto;
}
.hero-globe-wrap::before {
  content: '';
  position: absolute;
  inset: -10%;
  background: radial-gradient(circle, rgba(0,212,255,0.18), transparent 60%);
  filter: blur(20px);
}
#hero-globe {
  position: relative;
  width: 100%;
  height: 100%;
}
.globe-pulse {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 100%; height: 100%;
  pointer-events: none;
}
.globe-pulse circle {
  fill: none;
  stroke: var(--cyan);
  stroke-width: 1;
  opacity: 0;
  transform-origin: center;
  animation: globePulse 4s ease-out infinite;
}
.globe-pulse circle:nth-child(2) { animation-delay: 1.3s; }
.globe-pulse circle:nth-child(3) { animation-delay: 2.6s; }
@keyframes globePulse {
  0% { opacity: 0.7; r: 35%; }
  100% { opacity: 0; r: 50%; }
}

.scroll-cue {
  position: absolute;
  bottom: 28px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  color: var(--text-light-muted);
  font-size: 10.5px;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  font-weight: 500;
  animation: float 3s ease-in-out infinite;
}
@keyframes float {
  0%, 100% { transform: translateX(-50%) translateY(0); }
  50% { transform: translateX(-50%) translateY(6px); }
}
.scroll-cue-line {
  width: 1px; height: 36px;
  background: linear-gradient(180deg, transparent, var(--cyan));
}

/* ============================================================
   SECTIONS
   ============================================================ */
section { padding: 120px 0; position: relative; }
.section-alt { background: var(--bg-alt); }
.section-dark {
  background: var(--bg-dark);
  color: white;
  position: relative;
  overflow: hidden;
}
.section-dark::before {
  content: '';
  position: absolute;
  inset: 0;
  background: var(--grad-mesh);
  pointer-events: none;
}
.section-dark > * { position: relative; z-index: 2; }
.section-dark h2,
.section-dark h3 { color: white; }

.section-head {
  max-width: 780px;
  margin: 0 auto 80px;
  text-align: center;
}

.section-num {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  font-family: 'Montserrat', sans-serif;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-dark .section-num { color: var(--cyan); }
.section-num::before {
  content: '';
  width: 28px;
  height: 1px;
  background: currentColor;
  opacity: 0.5;
}

.eyebrow {
  display: inline-block;
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 18px;
}
.section-dark .eyebrow { color: var(--cyan); }

h2 {
  font-size: clamp(2rem, 3.6vw, 3rem);
  font-weight: 700;
  letter-spacing: -0.022em;
  line-height: 1.08;
  margin-bottom: 22px;
}
.section-lead {
  font-size: clamp(1rem, 1.3vw, 1.15rem);
  color: var(--text-muted);
  line-height: 1.7;
}
.section-dark .section-lead { color: var(--text-light); }

/* ============================================================
   EVOLUCIÓN — De Coalición a Comunidad
   ============================================================ */
.transition-grid {
  display: grid;
  grid-template-columns: 1fr 80px 1fr;
  gap: 0;
  align-items: stretch;
  max-width: 1080px;
  margin: 0 auto 80px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid var(--border);
  background: white;
  box-shadow: var(--shadow-lg);
}
.transition-card {
  padding: 50px 44px;
}
.transition-card.before {
  background: var(--bg-alt);
}
.transition-card.after {
  background: white;
  position: relative;
}
.transition-card.after::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 4px; height: 100%;
  background: var(--grad-main);
}
.transition-stage {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-bottom: 18px;
}
.transition-card.after .transition-stage {
  background: var(--grad-main);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
}
.transition-name {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.65rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  margin-bottom: 16px;
  line-height: 1.15;
  color: var(--text);
}
.transition-card.before .transition-name {
  color: var(--text-muted);
}
.transition-desc {
  font-size: 0.97rem;
  color: var(--text-muted);
  line-height: 1.65;
}
.transition-arrow {
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  position: relative;
}
.transition-arrow::before,
.transition-arrow::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 30%;
  height: 1px;
  background: var(--border-strong);
}
.transition-arrow::before { left: 0; }
.transition-arrow::after { right: 0; }
.transition-arrow svg {
  width: 28px; height: 28px;
  color: var(--cyan);
  background: white;
  border-radius: 50%;
  padding: 4px;
  border: 1px solid var(--border-strong);
  z-index: 1;
}

/* ============================================================
   EVOLUTION VISUAL (orbital symbol)
   ============================================================ */
.evolution-grid {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 80px;
  align-items: center;
}
.evolution-text p {
  color: var(--text-muted);
  font-size: 1.05rem;
  line-height: 1.75;
  margin-bottom: 20px;
}
.evolution-text p strong { color: var(--text); font-weight: 600; }
.evolution-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 480px;
  margin-left: auto;
}
.evolution-visual svg { width: 100%; height: 100%; }

/* ============================================================
   ACRONYM BLOCK — 4 tarjetas horizontales (CO · MU · SA · V)
   ============================================================ */
.acronym-block {
  max-width: 1180px;
  margin: 0 auto;
  text-align: center;
}
.acronym-cards {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
  margin-bottom: 56px;
}
.acronym-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 34px 24px 28px;
  text-align: center;
  position: relative;
  overflow: hidden;
  transition: all 0.4s var(--ease);
}
.acronym-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 0.5s var(--ease);
}
.acronym-card:hover {
  transform: translateY(-4px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.acronym-card:hover::before { transform: scaleX(1); }

.acronym-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9,9,121,0.06), rgba(0,212,255,0.1));
  color: var(--navy);
  transition: all 0.4s var(--ease);
}
.acronym-card:hover .acronym-icon {
  background: var(--grad-main);
  color: white;
  transform: scale(1.06);
}
.acronym-icon svg { width: 30px; height: 30px; }

.acronym-letter {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.4rem, 4.4vw, 3.2rem);
  font-weight: 800;
  line-height: 1;
  letter-spacing: -0.025em;
  background: linear-gradient(135deg, #090979 0%, #00D4FF 100%);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: 4px;
}
.acronym-word {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--text-muted);
  letter-spacing: -0.01em;
  margin-bottom: 16px;
}
.acronym-desc {
  font-size: 0.85rem;
  line-height: 1.5;
  color: var(--text-soft);
  margin: 0;
}

.acronym-conviction {
  font-size: 1.05rem;
  line-height: 1.7;
  color: var(--text-muted);
  max-width: 700px;
  margin: 0 auto;
  padding-top: 32px;
  border-top: 1px solid var(--border);
}
.acronym-link {
  margin-top: 18px;
  font-size: 0.95rem;
  font-weight: 600;
}
.acronym-link a {
  color: var(--navy);
  border-bottom: 1px solid rgba(9,9,121,0.2);
  padding-bottom: 2px;
  transition: all 0.25s var(--ease);
}
.acronym-link a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

@media (max-width: 900px) {
  .acronym-cards { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 520px) {
  .acronym-cards { grid-template-columns: 1fr; }
}

/* ============================================================
   QUOTE — Salud y verdad
   ============================================================ */
.quote-block {
  max-width: 920px;
  margin: 0 auto;
  text-align: center;
  padding: 90px 50px;
  border-radius: var(--radius-xl);
  position: relative;
  background:
    linear-gradient(135deg, rgba(9,9,121,0.04), rgba(0,212,255,0.04)),
    white;
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
}
.quote-block::before,
.quote-block::after {
  content: '';
  position: absolute;
  width: 80px; height: 80px;
  border: 1px solid var(--border-strong);
}
.quote-block::before {
  top: -1px; left: -1px;
  border-right: 0; border-bottom: 0;
  border-top-left-radius: var(--radius-xl);
}
.quote-block::after {
  bottom: -1px; right: -1px;
  border-left: 0; border-top: 0;
  border-bottom-right-radius: var(--radius-xl);
  background: var(--grad-soft);
}
.quote-mark {
  font-family: 'Montserrat', sans-serif;
  font-size: 5rem;
  line-height: 1;
  background: var(--grad-main);
  background-clip: text;
  -webkit-background-clip: text;
  color: transparent;
  margin-bottom: -20px;
  font-weight: 800;
}
.quote-text {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(1.6rem, 3vw, 2.4rem);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -0.02em;
  color: var(--text);
  margin-bottom: 28px;
}
.quote-text em {
  font-style: normal;
  font-weight: 700;
  color: var(--navy);
  position: relative;
  display: inline-block;
}
.quote-text em::after {
  content: '';
  position: absolute;
  left: 0; right: 0;
  bottom: 0.04em;
  height: 0.18em;
  background: linear-gradient(180deg, transparent 50%, rgba(0,212,255,0.35) 50%);
  z-index: -1;
}
.quote-attr {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--text-soft);
  font-weight: 600;
}

/* ============================================================
   VALORES
   ============================================================ */
.values-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.value-card {
  padding: 38px 32px;
  border-radius: var(--radius);
  background: white;
  border: 1px solid var(--border);
  transition: all 0.4s var(--ease);
  position: relative;
  overflow: hidden;
}
.value-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 3px;
  background: var(--grad-main);
  transform: scaleX(0);
  transform-origin: left;
  transition: transform 0.5s var(--ease);
}
.value-card:hover {
  transform: translateY(-6px);
  border-color: var(--border-strong);
  box-shadow: var(--shadow-lg);
}
.value-card:hover::before { transform: scaleX(1); }
.value-icon {
  width: 54px; height: 54px;
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(9,9,121,0.08), rgba(0,212,255,0.12));
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  color: var(--navy);
  transition: all 0.4s var(--ease);
}
.value-card:hover .value-icon {
  background: var(--grad-main);
  color: white;
  transform: scale(1.06) rotate(-4deg);
}
.value-icon svg { width: 26px; height: 26px; stroke-width: 1.8; }
.value-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  color: var(--text-soft);
  margin-bottom: 8px;
}
.value-card h3 {
  font-size: 1.22rem;
  font-weight: 700;
  margin-bottom: 12px;
  letter-spacing: -0.012em;
}
.value-card p {
  font-size: 0.96rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* ============================================================
   COMUNIDAD GLOBAL
   ============================================================ */
.community-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 80px;
  align-items: center;
}
.community-text .section-lead { color: var(--text-light); margin-bottom: 32px; }
.audience-list {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.audience-item {
  display: flex;
  align-items: center;
  gap: 14px;
  font-size: 0.97rem;
  color: var(--text-light);
}
.audience-item::before {
  content: '';
  flex-shrink: 0;
  width: 8px; height: 8px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 12px rgba(0,212,255,0.5);
}
.globe-visual {
  position: relative;
  aspect-ratio: 1;
  max-width: 460px;
  margin: 0 auto;
}
.globe-svg {
  width: 100%;
  height: 100%;
  animation: rotate-slow 60s linear infinite;
}
@keyframes rotate-slow {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}
.globe-dot { animation: dot-pulse 2.5s infinite var(--ease); }
@keyframes dot-pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.4; }
}

/* Doble hélice de ADN (generada por JS) */
.dna-helix {
  width: 100%;
  height: 100%;
  position: relative;
}
.dna-helix svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

/* ============================================================
   MEDICINA INTEGRATIVA
   ============================================================ */
.integrative-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
}
.integrative-card {
  padding: 48px 40px;
  border-radius: var(--radius-lg);
  background: white;
  border: 1px solid var(--border);
  transition: all 0.35s var(--ease);
  position: relative;
  overflow: hidden;
}
.integrative-card.featured {
  background: var(--grad-main);
  color: white;
  border: none;
  position: relative;
}
.integrative-card.featured::before {
  content: '';
  position: absolute;
  inset: 0;
  background-image:
    radial-gradient(circle at 80% 20%, rgba(255,255,255,0.15), transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(0,212,255,0.2), transparent 50%);
}
.integrative-card.featured > * { position: relative; z-index: 1; }
.integrative-card.featured h3,
.integrative-card.featured .integrative-num { color: white; }
.integrative-card.featured p { color: rgba(255,255,255,0.88); }
.integrative-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
}
.integrative-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 0.82rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  color: var(--text-soft);
  margin-bottom: 16px;
}
.integrative-card h3 {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.018em;
  margin-bottom: 18px;
  line-height: 1.18;
}
.integrative-card p {
  color: var(--text-muted);
  line-height: 1.7;
  font-size: 1rem;
}

/* ============================================================
   TRUST LINE — premium institutional band
   ============================================================ */
.trust-band {
  padding: 36px 0;
  background: white;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.trust-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 40px;
  flex-wrap: wrap;
}
.trust-label {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--text-soft);
}
.trust-items {
  display: flex;
  gap: 48px;
  flex-wrap: wrap;
  align-items: center;
}
.trust-item {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 13.5px;
  color: var(--text-muted);
  font-weight: 500;
}
.trust-item strong {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 1.4rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}

/* ============================================================
   CTA FINAL
   ============================================================ */
.cta-section {
  padding: 140px 0;
  background: var(--bg-dark);
  color: white;
  text-align: center;
  position: relative;
  overflow: hidden;
}
.cta-section::before {
  content: '';
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 120%;
  aspect-ratio: 1;
  background: radial-gradient(circle, rgba(0,212,255,0.16), transparent 60%);
}
/* (Cuadrícula blueprint del CTA eliminada — estética más institucional) */
.cta-content {
  position: relative;
  z-index: 2;
  max-width: 780px;
  margin: 0 auto;
}
.cta-content h2 {
  color: white;
  font-size: clamp(2.2rem, 4.4vw, 3.6rem);
  margin-bottom: 22px;
}
.cta-content p {
  font-size: 1.15rem;
  color: var(--text-light);
  margin-bottom: 40px;
  line-height: 1.6;
}
.cta-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
}

/* ============================================================
   LEGAL PAGES — content layout
   ============================================================ */
.page-header {
  padding: 180px 0 80px;
  background: var(--bg-alt);
  border-bottom: 1px solid var(--border);
}
.page-header-inner {
  max-width: 920px;
  margin: 0 auto;
  padding: 0 28px;
  text-align: center;
}
.page-header h1 {
  font-family: 'Montserrat', sans-serif;
  font-size: clamp(2.2rem, 4vw, 3.2rem);
  font-weight: 700;
  letter-spacing: -0.025em;
  margin-bottom: 16px;
}
.page-header .updated {
  font-size: 13px;
  color: var(--text-soft);
  letter-spacing: 0.06em;
}
.page-content {
  padding: 80px 0 120px;
}
.page-content-inner {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 28px;
}
.page-content h2 {
  font-size: 1.5rem;
  margin-top: 48px;
  margin-bottom: 16px;
  color: var(--navy);
}
.page-content h2:first-child { margin-top: 0; }
.page-content h3 {
  font-size: 1.1rem;
  margin-top: 32px;
  margin-bottom: 12px;
  font-weight: 600;
}
.page-content p {
  margin-bottom: 18px;
  color: var(--text-muted);
  line-height: 1.75;
  font-size: 1rem;
}
.page-content ul {
  margin-bottom: 22px;
  padding-left: 22px;
}
.page-content ul li {
  margin-bottom: 10px;
  color: var(--text-muted);
  line-height: 1.65;
  list-style: disc;
}
.page-content a {
  color: var(--navy);
  border-bottom: 1px solid rgba(9,9,121,0.3);
  transition: all 0.2s var(--ease);
}
.page-content a:hover {
  color: var(--cyan);
  border-bottom-color: var(--cyan);
}

/* ============================================================
   MANIFIESTO — Página dedicada
   ============================================================ */
.manifest-layout {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 60px;
  align-items: start;
  margin-bottom: 80px;
}
@media (max-width: 900px) {
  .manifest-layout { grid-template-columns: 1fr; gap: 40px; }
}
.manifest-info p {
  font-size: 1rem;
  line-height: 1.75;
  color: var(--text-muted);
  margin-bottom: 18px;
}
.manifest-lead {
  font-size: 1.18rem !important;
  line-height: 1.7 !important;
  color: var(--text) !important;
}
.manifest-info strong { color: var(--navy); font-weight: 600; }
.manifest-info em {
  font-style: italic;
  color: var(--navy);
  background: linear-gradient(180deg, transparent 60%, rgba(0,212,255,0.2) 60%);
  padding: 0 2px;
}
.manifest-cta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin: 28px 0 24px;
}
.manifest-share {
  padding: 18px 22px;
  border-left: 3px solid var(--cyan);
  background: var(--bg-alt);
  border-radius: 0 10px 10px 0;
  font-size: 0.95rem !important;
  margin: 24px 0 0 !important;
}
.manifest-share strong { color: var(--navy); }

.manifest-toc {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  position: sticky;
  top: 100px;
}
.manifest-toc-label {
  font-family: 'Montserrat', sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 16px;
}
.manifest-toc-list {
  list-style: none;
  padding: 0;
  margin: 0;
  counter-reset: toc-counter;
}
.manifest-toc-list li {
  display: flex;
  gap: 12px;
  padding: 8px 0;
  font-size: 13.5px;
  line-height: 1.45;
  color: var(--text);
  border-bottom: 1px solid var(--border);
}
.manifest-toc-list li:last-child { border-bottom: none; }
.manifest-toc-list li span {
  flex-shrink: 0;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  color: var(--cyan);
  font-size: 11px;
  letter-spacing: 0.04em;
  width: 22px;
  padding-top: 2px;
}
.manifest-toc-list li small {
  display: block;
  font-size: 11px;
  color: var(--text-soft);
  margin-top: 2px;
}

.manifest-final {
  text-align: center;
  padding: 60px 30px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  margin-top: 40px;
}
.manifest-final h2 {
  font-size: clamp(1.6rem, 2.8vw, 2rem);
  margin-bottom: 12px;
}
.manifest-final p {
  font-size: 1rem;
  color: var(--text-muted);
  margin-bottom: 28px;
}
.manifest-final-actions {
  display: flex;
  gap: 12px;
  justify-content: center;
  flex-wrap: wrap;
}

/* ============================================================
   TIMELINE — Página Nuestra historia
   ============================================================ */
.history-intro {
  max-width: 760px;
  margin: 0 auto 80px;
  text-align: center;
}
.history-intro p {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
}

.timeline {
  position: relative;
  max-width: 1080px;
  margin: 0 auto;
  padding: 40px 0 80px;
}
.timeline-line {
  position: absolute;
  left: 50%;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg,
    transparent 0%,
    var(--cyan) 8%,
    var(--navy) 50%,
    var(--cyan) 92%,
    transparent 100%);
  transform: translateX(-50%);
}

/* Year separator badge */
.timeline-year {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 32px 0 28px;
  z-index: 2;
}
.year-badge {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  letter-spacing: 0.02em;
  background: var(--grad-main);
  color: white;
  padding: 10px 26px;
  border-radius: 999px;
  box-shadow: 0 4px 16px -4px rgba(9,9,121,0.35);
  border: 4px solid var(--bg-alt);
}
.year-subtitle {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: var(--text-soft);
  margin-top: 6px;
}

/* Timeline item (single milestone) */
.timeline-item {
  position: relative;
  width: 50%;
  padding: 28px 56px;
  z-index: 1;
}
.timeline-item.left {
  left: 0;
  text-align: right;
  padding-right: 56px;
}
.timeline-item.right {
  left: 50%;
  text-align: left;
  padding-left: 56px;
}

/* Dot on the central line */
.timeline-dot {
  position: absolute;
  top: 44px;
  width: 18px; height: 18px;
  border-radius: 50%;
  background: var(--grad-main);
  border: 3px solid var(--bg-alt);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.15);
  z-index: 2;
}
.timeline-item.left .timeline-dot { right: -10px; }
.timeline-item.right .timeline-dot { left: -10px; }

/* Milestone card */
.timeline-card {
  display: inline-block;
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 28px 30px;
  box-shadow: var(--shadow);
  transition: all 0.35s var(--ease);
  position: relative;
  text-align: left;
  max-width: 100%;
}
.timeline-card:hover {
  transform: translateY(-3px);
  box-shadow: var(--shadow-lg);
  border-color: var(--border-strong);
}

/* Featured (logro clave 🏆) */
.timeline-card.featured {
  border-color: rgba(0,212,255,0.4);
  background:
    linear-gradient(135deg, rgba(0,212,255,0.04) 0%, rgba(9,9,121,0.04) 100%),
    white;
}
.timeline-card.featured::before {
  content: '★';
  position: absolute;
  top: -10px;
  width: 32px; height: 32px;
  border-radius: 50%;
  background: var(--grad-main);
  color: white;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  box-shadow: 0 4px 12px -2px rgba(9,9,121,0.3);
}
.timeline-item.left .timeline-card.featured::before { right: 16px; }
.timeline-item.right .timeline-card.featured::before { left: 16px; }

.timeline-date {
  display: inline-block;
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--cyan);
  background: rgba(0,212,255,0.08);
  padding: 5px 12px;
  border-radius: 999px;
  margin-bottom: 14px;
}
.timeline-card.featured .timeline-date {
  background: var(--grad-main);
  color: white;
}
.timeline-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.25;
  letter-spacing: -0.015em;
  color: var(--text);
  margin-bottom: 12px;
}
.timeline-desc {
  font-size: 0.96rem;
  line-height: 1.65;
  color: var(--text-muted);
}
.timeline-desc strong {
  color: var(--navy);
  font-weight: 600;
}

/* Stats inside cards */
.timeline-stats {
  display: flex;
  gap: 18px;
  margin-top: 16px;
  flex-wrap: wrap;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}
.timeline-stat {
  display: flex;
  flex-direction: column;
  gap: 2px;
}
.timeline-stat-num {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.01em;
}
.timeline-stat-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-soft);
}

/* Manifest promo box (in history page, before final CTA) */
.manifest-promo {
  display: grid;
  grid-template-columns: 70px 1fr;
  gap: 24px;
  align-items: center;
  margin-top: 40px;
  padding: 32px 36px;
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-left: 4px solid var(--cyan);
  border-radius: var(--radius-lg);
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
}
.manifest-promo-icon {
  width: 70px; height: 70px;
  background: var(--grad-main);
  border-radius: var(--radius);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}
.manifest-promo-icon svg { width: 32px; height: 32px; }
.manifest-promo-content h3 {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  margin-bottom: 8px;
}
.manifest-promo-content p {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 16px;
  line-height: 1.6;
}
@media (max-width: 640px) {
  .manifest-promo { grid-template-columns: 1fr; gap: 18px; text-align: center; }
  .manifest-promo-icon { margin: 0 auto; }
}

/* Final CTA inside history page */
.history-cta {
  margin-top: 60px;
  text-align: center;
  padding: 60px 30px;
  background: white;
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  box-shadow: var(--shadow-lg);
  max-width: 760px;
  margin-left: auto;
  margin-right: auto;
}
.history-cta h2 {
  font-size: clamp(1.6rem, 2.8vw, 2.2rem);
  margin-bottom: 14px;
}
.history-cta p {
  font-size: 1.02rem;
  color: var(--text-muted);
  margin-bottom: 28px;
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Reveal animation: cards slide in from their side */
.timeline-item.left .timeline-card,
.timeline-item.left .timeline-dot {
  opacity: 0;
  transform: translateX(40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.timeline-item.right .timeline-card,
.timeline-item.right .timeline-dot {
  opacity: 0;
  transform: translateX(-40px);
  transition: opacity 0.7s var(--ease), transform 0.7s var(--ease);
}
.timeline-item.visible .timeline-card,
.timeline-item.visible .timeline-dot {
  opacity: 1;
  transform: translateX(0);
}

/* Responsive timeline */
@media (max-width: 900px) {
  .timeline-line {
    left: 28px;
    transform: none;
  }
  .timeline-year {
    align-items: flex-start;
    padding-left: 50px;
    padding-right: 0;
  }
  .timeline-item,
  .timeline-item.left,
  .timeline-item.right {
    width: 100%;
    left: 0;
    text-align: left;
    padding: 16px 0 16px 56px;
  }
  .timeline-item.left .timeline-dot,
  .timeline-item.right .timeline-dot {
    left: 19px;
    right: auto;
  }
  .timeline-item.left .timeline-card.featured::before,
  .timeline-item.right .timeline-card.featured::before { left: 16px; right: auto; }

  .timeline-item.left .timeline-card,
  .timeline-item.right .timeline-card {
    transform: translateX(-30px);
  }
  .timeline-item.visible .timeline-card { transform: translateX(0); }
}

/* ============================================================
   CALENDARIO — Página Eventos
   ============================================================ */
.events-layout {
  display: grid;
  grid-template-columns: 1.1fr 1fr;
  gap: 56px;
  align-items: start;
  max-width: 1080px;
  margin: 0 auto;
}
@media (max-width: 900px) {
  .events-layout { grid-template-columns: 1fr; gap: 36px; }
}

.calendar {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  box-shadow: var(--shadow);
}
.calendar-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 22px;
}
.calendar-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.3rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  color: var(--navy);
  text-transform: capitalize;
}
.calendar-nav {
  display: flex;
  gap: 6px;
}
.calendar-nav button {
  width: 32px; height: 32px;
  border-radius: 8px;
  border: 1px solid var(--border);
  color: var(--text-soft);
  background: white;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: not-allowed;
  opacity: 0.5;
}
.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
  margin-bottom: 8px;
}
.calendar-weekday {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  text-align: center;
  color: var(--text-soft);
  padding: 8px 0;
}
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 6px;
}
.calendar-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 500;
  color: var(--text);
  border-radius: 10px;
  position: relative;
  transition: background 0.2s var(--ease);
}
.calendar-day.empty { color: transparent; }
.calendar-day:not(.empty):not(.event):hover { background: var(--bg-alt); }
.calendar-day.event {
  background: var(--grad-main);
  color: white;
  font-weight: 700;
  cursor: pointer;
  box-shadow: var(--shadow-cyan);
}
.calendar-day.event::after {
  content: '';
  position: absolute;
  bottom: 6px; left: 50%;
  transform: translateX(-50%);
  width: 4px; height: 4px;
  border-radius: 50%;
  background: white;
}

.event-card {
  background: white;
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 36px;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.event-card::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 100%; height: 4px;
  background: var(--grad-main);
}
.event-date {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 6px 14px;
  border-radius: 999px;
  background: rgba(0,212,255,0.1);
  color: var(--navy);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  margin-bottom: 18px;
}
.event-date-dot {
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--cyan);
  box-shadow: 0 0 8px var(--cyan);
  animation: pulse 2s infinite var(--ease);
}
.event-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.6rem;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.018em;
  color: var(--text);
  margin-bottom: 14px;
}
.event-meta {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 24px 0;
  padding: 18px 0;
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
}
.event-meta-row {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-muted);
}
.event-meta-row svg {
  width: 16px; height: 16px;
  color: var(--navy);
}
.event-desc {
  font-size: 0.97rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 24px;
}

.empty-events {
  text-align: center;
  padding: 60px 30px;
  color: var(--text-soft);
}
.empty-events h3 {
  font-size: 1.3rem;
  margin-bottom: 10px;
  color: var(--navy);
}

/* ============================================================
   FORM — Modal contacto
   ============================================================ */
.modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(5,5,56,0.7);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  opacity: 0;
  visibility: hidden;
  transition: all 0.35s var(--ease);
}
.modal-overlay.open { opacity: 1; visibility: visible; }

.modal {
  background: white;
  border-radius: var(--radius-xl);
  max-width: 560px;
  width: 100%;
  max-height: 92vh;
  overflow-y: auto;
  padding: 48px 44px;
  position: relative;
  transform: translateY(20px) scale(0.96);
  transition: transform 0.35s var(--ease);
  box-shadow: var(--shadow-xl);
}
.modal-overlay.open .modal { transform: translateY(0) scale(1); }
.modal-close {
  position: absolute;
  top: 18px; right: 18px;
  width: 36px; height: 36px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  transition: all 0.2s var(--ease);
}
.modal-close:hover { background: var(--bg-alt); color: var(--text); }

.modal-header {
  margin-bottom: 28px;
}
.modal-eyebrow {
  font-size: 11.5px;
  font-weight: 600;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}
.modal-title {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.7rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 10px;
}
.modal-sub {
  color: var(--text-muted);
  font-size: 0.95rem;
  line-height: 1.6;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}
.field { display: flex; flex-direction: column; }
.field.full { grid-column: 1 / -1; }
.field label {
  font-size: 12.5px;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--text);
  margin-bottom: 7px;
}
.field input,
.field select,
.field textarea {
  background: var(--bg-alt);
  border: 1px solid transparent;
  border-radius: 11px;
  padding: 13px 14px;
  font-size: 14.5px;
  color: var(--text);
  transition: all 0.2s var(--ease);
  font-family: inherit;
}
.field input:focus,
.field select:focus,
.field textarea:focus {
  outline: none;
  background: white;
  border-color: var(--cyan);
  box-shadow: 0 0 0 4px rgba(0,212,255,0.12);
}
.field textarea {
  min-height: 110px;
  resize: vertical;
}
.field .hint {
  font-size: 11.5px;
  color: var(--text-soft);
  margin-top: 6px;
}
.checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 13px;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1.45;
}
.checkbox input { margin-top: 3px; accent-color: var(--navy); }
.checkbox a { color: var(--navy); text-decoration: underline; }
.form-actions {
  margin-top: 24px;
  display: flex;
  gap: 10px;
  align-items: center;
}
.form-status {
  margin-top: 16px;
  padding: 12px 14px;
  border-radius: 10px;
  font-size: 13.5px;
  display: none;
}
.form-status.success {
  background: rgba(0,212,255,0.08);
  color: var(--navy);
  border: 1px solid rgba(0,212,255,0.25);
  display: block;
}
.form-status.error {
  background: #fef2f2;
  color: #b91c1c;
  border: 1px solid #fecaca;
  display: block;
}

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--navy-blackish);
  color: var(--text-light-muted);
  padding: 80px 0 32px;
  position: relative;
  overflow: hidden;
}
footer::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(0,212,255,0.4), transparent);
}
.footer-grid {
  display: grid;
  grid-template-columns: 1.5fr 1fr 1fr 1fr;
  gap: 60px;
  margin-bottom: 56px;
}
.footer-brand .brand-logo { height: 36px; filter: brightness(1.1); }
.footer-lema {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-style: italic;
  font-size: 18px;
  line-height: 1.4;
  color: var(--cyan, #00D4FF);
  margin: 20px 0 8px;
  max-width: 340px;
  letter-spacing: 0.2px;
}
.footer-tagline {
  font-size: 14px;
  line-height: 1.65;
  max-width: 340px;
  margin: 0 0 24px;
}
.social-links { display: flex; gap: 10px; }
.social-link {
  width: 38px; height: 38px;
  border-radius: 10px;
  background: rgba(255,255,255,0.04);
  border: 1px solid rgba(255,255,255,0.08);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-light-muted);
  transition: all 0.25s var(--ease);
}
.social-link:hover {
  background: var(--grad-main);
  border-color: transparent;
  color: white;
  transform: translateY(-2px);
}
.social-link svg { width: 16px; height: 16px; }

.footer-col h4 {
  color: white;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 22px;
}
.footer-col ul li { margin-bottom: 12px; }
.footer-col a {
  font-size: 14.5px;
  color: var(--text-light-muted);
  transition: color 0.2s var(--ease);
}
.footer-col a:hover { color: var(--cyan); }

.coming-soon {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
  color: var(--text-light-muted);
  opacity: 0.7;
}
.coming-soon small {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 3px 8px;
  border-radius: 4px;
  background: rgba(0,212,255,0.12);
  color: var(--cyan);
}

.footer-bottom {
  padding-top: 32px;
  border-top: 1px solid rgba(255,255,255,0.06);
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  font-size: 13px;
}
.footer-bottom-links { display: flex; gap: 28px; flex-wrap: wrap; }
.footer-bottom-links a { font-size: 13px; }

/* ============================================================
   SCROLL REVEAL
   ============================================================ */
.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.9s var(--ease), transform 0.9s var(--ease);
}
.reveal.visible {
  opacity: 1;
  transform: translateY(0);
}
.reveal[data-delay="100"] { transition-delay: 0.1s; }
.reveal[data-delay="200"] { transition-delay: 0.2s; }
.reveal[data-delay="300"] { transition-delay: 0.3s; }
.reveal[data-delay="400"] { transition-delay: 0.4s; }
.reveal[data-delay="500"] { transition-delay: 0.5s; }

/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 1080px) {
  .hero-inner { grid-template-columns: 1fr; gap: 40px; }
  .hero-globe-wrap { max-width: 460px; margin: 0 auto; order: -1; }
}
@media (max-width: 960px) {
  .nav-links { display: none; }
  .menu-btn { display: flex; }
  .evolution-grid,
  .community-inner { grid-template-columns: 1fr; gap: 48px; }
  .evolution-visual { margin: 0 auto; }
  .values-grid { grid-template-columns: 1fr 1fr; }
  .integrative-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 40px; }
  .hero-stats { margin-top: 56px; }
  .transition-grid { grid-template-columns: 1fr; }
  .transition-arrow {
    padding: 14px 0;
    transform: rotate(90deg);
  }
}
@media (max-width: 640px) {
  section { padding: 80px 0; }
  .hero { padding: 120px 0 80px; }
  .values-grid { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; gap: 36px; }
  .footer-bottom { flex-direction: column; text-align: center; }
  .stat-num { font-size: 1.7rem; }
  .quote-block { padding: 56px 28px; }
  .modal { padding: 36px 24px; }
  .form-grid { grid-template-columns: 1fr; }
  .trust-items { gap: 24px; }
  .trust-item strong { font-size: 1.2rem; }
}

/* =====================================================
   Campo opcional (etiqueta más sutil)
   ===================================================== */
.field-optional {
  color: var(--muted, #5A5A7A);
  font-weight: 400;
  font-size: 0.85em;
  margin-left: 4px;
}

/* =====================================================
   Páginas de estado: gracias.html + email-verificado.html
   ===================================================== */
.status-card {
  background: #ffffff;
  border-radius: 18px;
  padding: 56px 48px;
  box-shadow: 0 14px 50px rgba(9,9,121,0.08);
  border: 1px solid #E6E9F5;
  margin: 24px 0 60px;
  text-align: left;
}
.status-card-success {
  border-color: rgba(0,212,255,0.25);
}
.status-icon {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 24px;
  color: var(--cyan, #00D4FF);
  background: linear-gradient(135deg, rgba(9,9,121,0.06), rgba(0,212,255,0.12));
}
.status-icon-success {
  color: var(--navy, #090979);
  background: linear-gradient(135deg, rgba(0,212,255,0.15), rgba(9,9,121,0.10));
}
.status-eyebrow {
  text-align: center;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--cyan, #00B8E0);
  margin-bottom: 14px;
}
.status-eyebrow-success {
  color: var(--navy, #090979);
}
.status-title {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: clamp(1.7rem, 3.4vw, 2.4rem);
  line-height: 1.2;
  color: var(--navy, #090979);
  margin: 0 0 24px;
}
.status-lead {
  text-align: center;
  font-size: 16px;
  line-height: 1.65;
  color: #0A0A2E;
  max-width: 580px;
  margin: 0 auto 20px;
}
.status-steps {
  background: #F7F9FF;
  border-radius: 12px;
  padding: 24px 28px;
  margin: 32px 0 24px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.status-step {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  font-size: 14.5px;
  line-height: 1.55;
  color: #0A0A2E;
}
.status-step-num {
  flex-shrink: 0;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--navy, #090979);
  color: #ffffff;
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.status-note {
  text-align: center;
  font-size: 13px;
  color: var(--muted, #5A5A7A);
  margin: 20px 0 32px;
  line-height: 1.55;
}
.status-note a { color: var(--navy, #090979); }
.status-actions {
  display: flex;
  justify-content: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 24px;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin: 36px 0 32px;
}
.status-card-link {
  display: block;
  background: #F7F9FF;
  border: 1px solid #E6E9F5;
  border-radius: 12px;
  padding: 20px 22px;
  text-decoration: none;
  color: inherit;
  transition: all 0.25s ease;
  text-align: left;
}
.status-card-link:hover {
  border-color: var(--cyan, #00D4FF);
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(9,9,121,0.08);
}
.status-card-link-eyebrow {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 1.5px;
  text-transform: uppercase;
  color: var(--cyan, #00B8E0);
  margin-bottom: 6px;
}
.status-card-link-title {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  font-size: 16px;
  color: var(--navy, #090979);
  margin-bottom: 6px;
}
.status-card-link-desc {
  font-size: 13px;
  line-height: 1.5;
  color: var(--muted, #5A5A7A);
}
.status-lema {
  text-align: center;
  font-family: 'Montserrat', sans-serif;
  font-style: italic;
  font-weight: 600;
  font-size: 18px;
  color: var(--cyan, #00B8E0);
  margin: 36px 0 24px;
  padding: 20px 0;
  border-top: 1px solid #E6E9F5;
  border-bottom: 1px solid #E6E9F5;
}

@media (max-width: 720px) {
  .status-card { padding: 40px 24px; }
  .status-steps { padding: 20px; }
  .status-grid { grid-template-columns: 1fr; gap: 12px; }
  .status-actions { flex-direction: column; }
  .status-actions .btn { width: 100%; justify-content: center; }
}

/* =====================================================
   Directorio internacional — directorio.html
   ===================================================== */
.directorio-container {
  max-width: 1100px;
}

/* Stats */
.directorio-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
  margin: 8px 0 40px;
  padding: 32px;
  background: linear-gradient(135deg, #f7f9ff 0%, #ffffff 100%);
  border: 1px solid #E6E9F5;
  border-radius: 16px;
  box-shadow: 0 4px 24px rgba(9,9,121,0.04);
}
.dir-stat {
  text-align: center;
}
.dir-stat-num {
  display: block;
  font-family: 'Montserrat', sans-serif;
  font-weight: 800;
  font-size: clamp(1.8rem, 4vw, 2.6rem);
  line-height: 1.1;
  color: var(--navy, #090979);
  letter-spacing: -0.5px;
}
.dir-stat-label {
  display: block;
  margin-top: 6px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 1px;
  text-transform: uppercase;
  color: var(--muted, #5A5A7A);
}

/* Filtros */
.directorio-filters {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid #E6E9F5;
  border-radius: 12px;
  box-shadow: 0 2px 12px rgba(9,9,121,0.03);
}
.dir-search {
  position: relative;
  display: flex;
  align-items: center;
}
.dir-search-icon {
  position: absolute;
  left: 14px;
  color: var(--muted, #5A5A7A);
  pointer-events: none;
}
.dir-search input {
  width: 100%;
  height: 44px;
  padding: 0 40px 0 42px;
  border: 1px solid #D8DDF0;
  border-radius: 10px;
  background: #fff;
  font-family: 'Inter', 'Montserrat', sans-serif;
  font-size: 14px;
  color: #0A0A2E;
  transition: border-color 0.2s, box-shadow 0.2s;
}
.dir-search input:focus {
  outline: none;
  border-color: var(--cyan, #00D4FF);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}
.dir-search-clear {
  position: absolute;
  right: 8px;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  background: #f0f3fb;
  border-radius: 50%;
  cursor: pointer;
  color: var(--muted, #5A5A7A);
  transition: background 0.15s;
}
.dir-search-clear:hover { background: #e3e8f5; color: #0A0A2E; }

.dir-chips {
  display: flex;
  gap: 6px;
  padding: 4px;
  background: #f0f3fb;
  border-radius: 10px;
}
.dir-chip {
  padding: 8px 16px;
  border: none;
  background: transparent;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 13px;
  color: var(--muted, #5A5A7A);
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.18s;
}
.dir-chip:hover { color: var(--navy, #090979); }
.dir-chip.active {
  background: var(--navy, #090979);
  color: #fff;
  box-shadow: 0 2px 8px rgba(9,9,121,0.2);
}

.dir-country select {
  height: 44px;
  padding: 0 36px 0 14px;
  border: 1px solid #D8DDF0;
  border-radius: 10px;
  background: #fff url("data:image/svg+xml,%3Csvg width='10' height='6' viewBox='0 0 10 6' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M1 1l4 4 4-4' stroke='%235A5A7A' stroke-width='1.5' fill='none' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat right 14px center;
  font-family: 'Inter', sans-serif;
  font-size: 13px;
  color: #0A0A2E;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  min-width: 240px;
  max-width: 280px;
}
.dir-country select:focus {
  outline: none;
  border-color: var(--cyan, #00D4FF);
  box-shadow: 0 0 0 3px rgba(0,212,255,0.15);
}

/* Info de resultados */
.directorio-results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin: 18px 4px 12px;
  font-size: 13px;
  color: var(--muted, #5A5A7A);
}
.dir-reset {
  background: transparent;
  border: none;
  color: var(--navy, #090979);
  font-weight: 600;
  font-size: 13px;
  cursor: pointer;
  padding: 4px 10px;
  border-radius: 6px;
  transition: background 0.15s;
}
.dir-reset:hover { background: #f0f3fb; }

/* ===== Lista premium en una sola columna centrada ===== */
.directorio-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-width: 880px;
  margin: 0 auto 32px;
}
.dir-card {
  background: #fff;
  border: 1px solid #E6E9F5;
  border-radius: 14px;
  padding: 18px 22px;
  transition: border-color .2s, box-shadow .2s, transform .2s;
  position: relative;
  overflow: hidden;
}
.dir-card::before {
  content: "";
  position: absolute;
  left: 0; top: 0; bottom: 0;
  width: 4px;
  background: var(--navy, #090979);
  opacity: .85;
}
.dir-card.is-terapeuta::before {
  background: var(--cyan, #00D4FF);
}
.dir-card:hover {
  border-color: rgba(0,212,255,0.45);
  transform: translateY(-1px);
  box-shadow: 0 10px 28px rgba(9,9,121,0.08);
}
.dir-card-main {
  display: flex;
  align-items: center;
  gap: 18px;
}
.dir-card-flag {
  flex-shrink: 0;
  width: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.dir-flag-img {
  display: block;
  width: 40px;
  height: 30px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 0 0 1px rgba(0,0,0,0.08), 0 2px 4px rgba(9,9,121,0.06);
}
.dir-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.dir-card-name {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 16px;
  color: #0A0A2E;
  line-height: 1.3;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  flex: 1;
  min-width: 0;
}
.dir-card-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 13px;
  color: var(--muted, #5A5A7A);
  flex-shrink: 0;
}
.dir-card-country {
  font-weight: 500;
}
.dir-card-cat {
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(9,9,121,0.08);
  color: var(--navy, #090979);
}
.is-terapeuta .dir-card-cat {
  background: rgba(0,212,255,0.12);
  color: #0099C2;
}
.dir-card-dot {
  display: none;
}

/* Estado vacío */
.dir-empty {
  text-align: center;
  padding: 60px 24px;
  background: #f7f9ff;
  border-radius: 12px;
  border: 1px dashed #D8DDF0;
}
.dir-empty-icon {
  font-size: 48px;
  margin-bottom: 12px;
  opacity: 0.6;
}
.dir-empty h3 {
  margin: 0 0 8px;
  font-family: 'Montserrat', sans-serif;
  font-weight: 600;
  color: var(--navy, #090979);
  font-size: 18px;
}
.dir-empty p {
  margin: 0;
  color: var(--muted, #5A5A7A);
  font-size: 14px;
}

/* Sentinel infinite scroll */
.dir-sentinel {
  height: 20px;
  margin: 10px 0;
}

/* Nota legal */
.dir-note {
  margin-top: 40px;
  padding: 22px 24px;
  background: #f7f9ff;
  border-left: 3px solid var(--cyan, #00D4FF);
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.65;
  color: #0A0A2E;
}
.dir-note strong { color: var(--navy, #090979); }
.dir-note a { color: var(--navy, #090979); text-decoration: underline; }

/* Responsive */
@media (max-width: 860px) {
  .directorio-filters {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .dir-country select {
    width: 100%;
    max-width: none;
  }
  .dir-chips {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}
@media (max-width: 640px) {
  .directorio-stats {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding: 24px 18px;
  }
  .directorio-results-info {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .dir-card { padding: 14px 16px 14px 18px; }
  .dir-card-main { gap: 14px; }
  .dir-card-flag { font-size: 28px; width: 36px; }
  .dir-card-body {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
  }
  .dir-card-name { font-size: 15px; white-space: normal; }
  .dir-card-meta { font-size: 12px; }
}
