/* ═══════════════════════════════════════════
   WEB OFICIAL OTLI — Design System (Tema Blanco)
   ═══════════════════════════════════════════ */

/* ─── Variables ─── */
:root {
  --bg:           #FFFFFF;
  --bg-alt:       #F7F8FA;
  --bg-card:      #FFFFFF;
  --jade:         #1A8A72;
  --jade-light:   #22B896;
  --jade-glow:    rgba(34, 184, 150, 0.15);
  --jade-border:  rgba(34, 184, 150, 0.25);
  --gold:         #E8B840;
  --obsidian:     #0E0F11;
  --text:         #1A1D23;
  --text-muted:   #5A6275;
  --text-light:   #8A94A6;
  --border:       rgba(0, 0, 0, 0.08);
  --border-hover: rgba(26, 138, 114, 0.3);
  --shadow-sm:    0 1px 4px rgba(0,0,0,0.06);
  --shadow-md:    0 4px 20px rgba(0,0,0,0.08);
  --shadow-lg:    0 12px 40px rgba(0,0,0,0.10);
  --shadow-jade:  0 8px 30px rgba(34, 184, 150, 0.18);
  --font-display: 'Space Grotesk', sans-serif;
  --font-body:    'Inter', sans-serif;
  --radius:       14px;
  --radius-lg:    22px;
  --radius-full:  9999px;
}

/* ─── Page Loader ─── */
#page-loader {
  position: fixed; inset: 0;
  background: #ffffff;
  z-index: 99999;
  display: flex; align-items: center; justify-content: center;
  pointer-events: none;
}
.loader-logo {
  width: 88px; height: 88px;
  opacity: 0;
}

/* ─── Skip Link (WCAG 2.4.1) ─── */
.skip-link {
  position: absolute;
  top: -60px;
  left: 1rem;
  background: var(--jade);
  color: #fff;
  padding: 0.5rem 1rem;
  border-radius: 0 0 var(--radius) var(--radius);
  font-size: 0.9rem;
  font-weight: 600;
  z-index: 9999;
  transition: top 0.2s;
  text-decoration: none;
}
.skip-link:focus { top: 0; }

/* ─── Reset & Base ─── */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  background: var(--bg);
  color: var(--text);
  font-family: var(--font-body);
  font-size: 16px;
  line-height: 1.7;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { text-decoration: none; color: inherit; }
li { list-style: none; }
button { font-family: var(--font-body); cursor: pointer; }

/* ─── Typography ─── */
h1, h2, h3, h4 {
  font-family: var(--font-display);
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.15;
  color: var(--text);
}
h1 { font-size: clamp(2.4rem, 5.5vw, 4.5rem); }
h2 { font-size: clamp(1.9rem, 3.5vw, 3rem); }
h3 { font-size: clamp(1.1rem, 1.8vw, 1.35rem); }
em { font-style: normal; color: var(--jade); }

/* ─── Container ─── */
.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 2rem;
}

/* ─── Buttons ─── */
.btn-primary {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  background: var(--jade);
  color: #fff;
  border: 2px solid var(--jade);
  box-shadow: var(--shadow-jade);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-primary:hover {
  background: var(--jade-light);
  border-color: var(--jade-light);
  transform: translateY(-2px);
  box-shadow: 0 12px 40px rgba(34,184,150,0.3);
}
.btn-ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.85rem 2rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  color: var(--text-muted);
  border: 2px solid var(--border);
  transition: all 0.25s ease;
  cursor: pointer;
  text-decoration: none;
}
.btn-ghost:hover {
  border-color: var(--jade);
  color: var(--jade);
  transform: translateY(-2px);
}
.btn-large { padding: 1.1rem 2.8rem; font-size: 1.05rem; }

/* ─── Tags ─── */
.section-tag {
  display: inline-block;
  background: var(--jade-glow);
  color: var(--jade);
  border: 1px solid var(--jade-border);
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  margin-bottom: 1.2rem;
}

/* ─── Sections ─── */
.section-white { background: var(--bg); padding: 7rem 0; }
.section-alt   { background: var(--bg-alt); padding: 7rem 0; }
.section-cta   { background: var(--bg); padding: 7rem 0; text-align: center; position: relative; overflow: hidden; }
.section-header { text-align: center; margin-bottom: 4rem; }
.section-title { margin-bottom: 1rem; }
.section-subtitle {
  color: var(--text-muted);
  font-size: 1.1rem;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.7;
}
.section-body {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1rem;
  line-height: 1.75;
}

/* ─── Screen reader only ─── */
.sr-only {
  position: absolute;
  width: 1px; height: 1px;
  padding: 0; margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border-width: 0;
}

/* ════════════════════════════
   NAVBAR
════════════════════════════ */
#navbar {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 1000;
  transition: all 0.35s ease;
  padding: 0;
}
#navbar.scrolled {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  box-shadow: 0 2px 20px rgba(0,0,0,0.06);
}
.nav-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.4rem 1.2rem 0.4rem 0.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}
.nav-logo img {
  height: 48px;
  width: auto;
  transition: transform 0.3s ease;
}
.nav-logo img:hover { transform: scale(1.04); }
.nav-links {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  background: transparent;
  border: 1.5px solid var(--jade);
  border-radius: 9999px;
  padding: 0.4rem 1.2rem;
  transition: background 0.2s ease;
}
.nav-links:hover {
  background: var(--jade-glow);
}
.nav-links a {
  position: relative;
  color: var(--jade);
  font-size: 0.88rem;
  font-weight: 500;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  transition: color 0.2s, background 0.2s;
}
.nav-links a::after {
  content: '';
  position: absolute;
  bottom: -3px; left: 0;
  width: 100%; height: 1.5px;
  background: var(--jade);
  transform: scaleX(0);
  transform-origin: left center;
  transition: transform 0.22s ease;
  pointer-events: none;
}
.nav-links a:hover::after { transform: scaleX(1); }
.nav-links a:hover {
  color: var(--jade);
  background: rgba(34,184,150,0.12);
}
.nav-actions { display: flex; align-items: center; gap: 0.75rem; }
.nav-login-btn {
  position: relative;
  overflow: hidden;
  padding: 0.5rem 1.3rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-size: 0.88rem;
  font-weight: 600;
  background: transparent;
  color: var(--jade);
  border: 2px solid var(--jade-border);
  transition: all 0.2s ease;
  cursor: pointer;
}
.nav-login-btn::before {
  content: '';
  position: absolute;
  top: 0; left: 0;
  width: 45%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(34,184,150,0.3), transparent);
  animation: navShimmer 3s ease-in-out 1.2s infinite;
  pointer-events: none;
}
@keyframes navShimmer {
  0%   { transform: translateX(-200%) skewX(-15deg); }
  100% { transform: translateX(500%)  skewX(-15deg); }
}
.nav-login-btn:hover {
  background: var(--jade-glow);
  border-color: var(--jade);
}
.nav-hamburger {
  display: none;
  flex-direction: column;
  gap: 5px;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
}
.nav-hamburger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--text);
  border-radius: 2px;
  transition: all 0.3s;
}

/* ─── Login Modal ─── */
.login-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 15, 17, 0.5);
  backdrop-filter: blur(4px);
  z-index: 9999;
  align-items: center;
  justify-content: center;
}
.login-overlay.active { display: flex; }
.login-modal {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 420px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.18);
  position: relative;
  animation: modalIn 0.25s ease;
}
@keyframes modalIn {
  from { opacity: 0; transform: translateY(-16px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}
.login-modal-close {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--text-muted);
  cursor: pointer;
  line-height: 1;
  padding: 0.2rem;
  transition: color 0.2s;
}
.login-modal-close:hover { color: var(--text); }
.login-modal-logo {
  display: block;
  height: 72px;
  width: 72px;
  margin: 0 auto 1.5rem;
}
.login-modal h2 {
  font-size: 1.4rem;
  text-align: center;
  margin-bottom: 0.4rem;
}
.login-modal-sub {
  color: var(--text-muted);
  font-size: 0.88rem;
  text-align: center;
  margin-bottom: 1.8rem;
}
.login-form-group {
  margin-bottom: 1rem;
}
.login-form-group label {
  display: block;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.login-input {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s;
  outline: none;
}
.login-input:focus { border-color: var(--jade); }
.login-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  width: 100%;
  margin-top: 1.2rem;
  padding: 0.85rem;
  border-radius: var(--radius-full);
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 1rem;
  background: var(--jade);
  color: #fff;
  border: none;
  cursor: pointer;
  transition: all 0.25s ease;
  box-shadow: var(--shadow-jade);
}
.login-submit:hover { background: var(--jade-light); transform: translateY(-1px); }
.login-submit:disabled { opacity: 0.6; cursor: not-allowed; transform: none; }
.login-error {
  display: none;
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  color: #dc2626;
  font-size: 0.88rem;
  text-align: center;
}
.login-error.visible { display: block; }
.login-lockout {
  display: none;
  margin-top: 0.8rem;
  padding: 0.7rem 1rem;
  background: rgba(239,68,68,0.08);
  border: 1px solid rgba(239,68,68,0.25);
  border-radius: var(--radius);
  color: #dc2626;
  font-size: 0.85rem;
  text-align: center;
}
.login-lockout.visible { display: block; }
.form-honeypot { display: none !important; visibility: hidden !important; }
.login-demo-note {
  margin-top: 1.2rem;
  padding: 0.7rem 1rem;
  background: var(--jade-glow);
  border: 1px solid var(--jade-border);
  border-radius: var(--radius);
  font-size: 0.82rem;
  color: var(--jade);
  text-align: center;
}

/* ════════════════════════════
   HERO
════════════════════════════ */
#hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding-top: 120px;
  padding-bottom: 120px;
  overflow: hidden;
  background: var(--bg);
}
#vanta-bg {
  position: absolute;
  inset: 0;
  z-index: 0;
}
.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  width: 100%;
  padding: 2rem;
  max-width: 900px;
  margin: 0 auto;
}
.hero-badge {
  display: inline-block;
  background: var(--jade-glow);
  color: var(--jade);
  border: 1px solid var(--jade-border);
  padding: 0.4rem 1.2rem;
  border-radius: var(--radius-full);
  font-size: 0.78rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  margin-bottom: 1.8rem;
  opacity: 0;
  transform: translateY(20px);
  animation: heroFadeUp 0.7s ease 0.2s forwards;
}
.hero-title {
  color: var(--text);
  margin-bottom: 1.5rem;
  opacity: 0;
  transform: translateY(30px);
  animation: heroFadeUp 0.7s ease 0.45s forwards;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:0} }
/* ── Stats scene wrapper with geometric SVG ── */
.stats-scene {
  position: relative;
  display: inline-block;
  margin: 0 auto;
  width: 100%;
  max-width: 760px;
}
.stats-net-svg {
  position: absolute;
  inset: -30px -40px;
  width: calc(100% + 80px);
  height: calc(100% + 60px);
  opacity: 0.12;
  pointer-events: none;
}

/* ── Hero typewriter ── */
.hero-typed-wrap {
  display: block;
  color: var(--jade);
  min-height: 1.3em;
}
.typed-cursor {
  color: var(--jade);
  animation: blink 0.8s infinite;
  font-weight: 300;
}

@keyframes heroFadeUp {
  to { opacity: 1; transform: translateY(0); }
}
.hero-subtitle {
  color: var(--text-muted);
  font-size: clamp(1rem, 2vw, 1.18rem);
  margin-bottom: 2.5rem;
  opacity: 0;
  animation: heroFadeUp 0.7s ease 0.65s forwards;
  max-width: 640px;
  margin-left: auto;
  margin-right: auto;
}
.hero-actions {
  display: flex;
  gap: 1rem;
  justify-content: center;
  flex-wrap: wrap;
  margin-bottom: 3rem;
}
.hero-stats {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0;
  width: 100%;
  max-width: 820px;
  margin: 0 auto;
  background: #ffffff;
  border: 1px solid #f1f2f4;
  border-radius: 24px;
  padding: 1.8rem 2.4rem;
  box-shadow: 0 12px 48px rgba(0,0,0,0.09), 0 2px 8px rgba(34,184,150,0.07);
  position: relative;
  z-index: 2;
}
.stat { text-align: center; flex: 1; }
.stat-num {
  font-family: var(--font-display);
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--jade);
  line-height: 1;
}
.stat-unit { color: var(--jade); font-size: 2rem; font-weight: 700; }
.stat p { color: var(--text-muted); font-size: 0.8rem; margin-top: 0.35rem; font-weight: 500; }
.stat-divider { width: 1px; height: 52px; background: #e5e7eb; flex-shrink: 0; }

/* ════════════════════════════
   QUÉ ES OTLI — SPLIT
════════════════════════════ */
.split-layout {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5rem;
  align-items: center;
}
.split-cards { display: flex; flex-direction: column; gap: 1rem; }
.value-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}
.value-card:hover {
  border-color: var(--jade-border);
  box-shadow: var(--shadow-jade);
  transform: translateY(-3px);
}
.value-card-icon { font-size: 1.6rem; margin-bottom: 0.6rem; }
.value-card h3 { font-size: 1rem; margin-bottom: 0.4rem; }
.value-card p { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; }

/* ════════════════════════════
   METODOLOGÍA
════════════════════════════ */
.methodology-cards {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.5rem;
}
.method-card {
  position: relative;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  overflow: hidden;
  cursor: default;
  transition: border-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: var(--shadow-sm);
}
.method-card:hover {
  border-color: var(--jade-border);
  box-shadow: var(--shadow-jade);
}
.method-number {
  font-family: var(--font-display);
  font-size: 4rem;
  font-weight: 900;
  color: rgba(0,0,0,0.04);
  position: absolute;
  top: 1rem;
  right: 1.5rem;
  line-height: 1;
  user-select: none;
}
.method-icon-wrap { margin-bottom: 1.2rem; }
.method-icon { font-size: 2.5rem; display: block; }
.method-card h3 { font-size: 1.3rem; margin-bottom: 1rem; }
.method-card p { color: var(--text-muted); font-size: 0.93rem; line-height: 1.7; }
.method-glow {
  position: absolute;
  bottom: -40px; left: 50%;
  transform: translateX(-50%);
  width: 120px; height: 80px;
  background: var(--jade-glow);
  border-radius: 50%;
  filter: blur(30px);
  opacity: 0;
  transition: opacity 0.4s ease;
  pointer-events: none;
}
.method-card:hover .method-glow { opacity: 1; }

/* ════════════════════════════
   SERVICIOS — Z-Pattern
════════════════════════════ */
.services-zigzag {
  display: flex;
  flex-direction: column;
  gap: 6rem;
  padding-top: 0.5rem;
}

/* Container más ancho solo para servicios */
#servicios > .container {
  max-width: 1440px;
}

.service-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  gap: 3.5rem;
}

.service-row--reverse {
  flex-direction: row-reverse;
}

.service-text {
  flex: 1 1 0;
  min-width: 260px;
}

.service-label {
  display: inline-block;
  font-family: var(--font-display);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: var(--jade);
  background: rgba(26, 138, 114, 0.08);
  border: 1px solid rgba(26, 138, 114, 0.18);
  padding: 0.28rem 0.8rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
}

.service-text h3 {
  font-family: var(--font-display);
  font-size: clamp(1.6rem, 2.4vw, 2.4rem);
  font-weight: 700;
  color: #1C1C1A;
  line-height: 1.18;
  margin-bottom: 1.1rem;
  letter-spacing: -0.02em;
}

.service-text p {
  font-size: 1.05rem;
  line-height: 1.78;
  color: var(--text-muted);
  max-width: 38ch;
}

.service-media {
  flex: 0 0 62%;
  max-width: none;
  min-width: 0;
}

.service-video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  border-radius: 18px;
  object-fit: cover;
  background: #F4F5F7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  box-shadow: 0 2px 16px rgba(0, 0, 0, 0.04);
}

/* ════════════════════════════
   PROCESO — TIMELINE
════════════════════════════ */
.timeline {
  position: relative;
  max-width: 720px;
  margin: 0 auto;
  padding-left: 3rem;
}
.timeline-line {
  position: absolute;
  left: 1.4rem;
  top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(to bottom, var(--jade), rgba(34,184,150,0.1));
}
.timeline-item {
  position: relative;
  margin-bottom: 2rem;
  display: flex;
  align-items: flex-start;
  gap: 1.5rem;
}
.timeline-num {
  position: absolute;
  left: -1.55rem;
  top: 1.5rem;
  width: 36px; height: 36px;
  background: var(--jade);
  border: 3px solid var(--bg-alt);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: var(--font-display);
  font-weight: 700;
  font-size: 0.85rem;
  color: #fff;
  box-shadow: 0 0 16px var(--jade-glow);
  flex-shrink: 0;
}
.timeline-content {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  box-shadow: var(--shadow-sm);
}
.timeline-content h3 { font-size: 1.1rem; margin-bottom: 0.4rem; }
.timeline-content p { color: var(--text-muted); font-size: 0.93rem; }

/* ════════════════════════════
   COMUNIDAD
════════════════════════════ */
.connect-dashboard {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  box-shadow: var(--shadow-md);
}
.connect-filters {
  display: flex;
  gap: 1rem;
  margin-bottom: 2rem;
  flex-wrap: wrap;
  align-items: center;
}
.connect-input {
  flex: 1;
  min-width: 220px;
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  outline: none;
  transition: border-color 0.2s;
}
.connect-input:focus { border-color: var(--jade); }
.connect-select {
  padding: 0.7rem 1.1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-full);
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  background: var(--bg-alt);
  cursor: pointer;
  outline: none;
  transition: border-color 0.2s;
}
.connect-select:focus { border-color: var(--jade); }
.connect-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1.25rem;
}
.profile-card {
  background: var(--bg-alt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 1.5rem;
  transition: all 0.3s ease;
}
.profile-card:hover {
  border-color: var(--jade-border);
  box-shadow: var(--shadow-jade);
  transform: translateY(-3px);
}
.profile-card.new-profile { border-color: var(--jade-border); animation: newCard 0.5s ease; }
@keyframes newCard { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
.p-header { display: flex; align-items: center; gap: 0.9rem; margin-bottom: 1rem; }
.p-avatar { font-size: 2rem; }
.p-info h4 { font-size: 0.95rem; margin-bottom: 0.1rem; }
.p-info span { font-size: 0.8rem; color: var(--jade); font-weight: 600; }
.p-stack { color: var(--text-muted); font-size: 0.88rem; line-height: 1.6; margin-bottom: 1.2rem; font-style: italic; }
.p-footer { display: flex; justify-content: space-between; align-items: center; }
.p-status { font-size: 0.78rem; color: var(--text-light); font-weight: 500; }
.p-connect-btn {
  padding: 0.35rem 0.9rem;
  border-radius: var(--radius-full);
  font-size: 0.82rem;
  font-weight: 600;
  background: transparent;
  color: var(--jade);
  border: 1.5px solid var(--jade-border);
  cursor: pointer;
  transition: all 0.2s;
}
.p-connect-btn:hover { background: var(--jade-glow); }

/* Community Modal */
.connect-modal {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14,15,17,0.5);
  backdrop-filter: blur(4px);
  z-index: 9000;
  align-items: center;
  justify-content: center;
}
.connect-modal.active { display: flex; }
.connect-modal-content {
  background: var(--bg);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem;
  width: 100%;
  max-width: 480px;
  box-shadow: 0 24px 80px rgba(0,0,0,0.15);
  position: relative;
  animation: modalIn 0.25s ease;
}
.close-modal {
  position: absolute;
  top: 1.2rem; right: 1.2rem;
  font-size: 1.5rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: color 0.2s;
  line-height: 1;
  background: none;
  border: none;
}
.close-modal:hover { color: var(--text); }
.connect-modal-content h3 { font-size: 1.4rem; margin-bottom: 0.5rem; }
.connect-modal-content > p { color: var(--text-muted); font-size: 0.9rem; margin-bottom: 1.5rem; }
.modal-form { display: flex; flex-direction: column; gap: 0.85rem; }
.connect-input-full, .connect-select-full, .connect-textarea {
  width: 100%;
  padding: 0.75rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.93rem;
  color: var(--text);
  background: var(--bg-alt);
  outline: none;
  transition: border-color 0.2s;
}
.connect-input-full:focus, .connect-select-full:focus, .connect-textarea:focus { border-color: var(--jade); }
.connect-textarea { resize: vertical; min-height: 90px; }

/* ════════════════════════════
   CTA SECTION
════════════════════════════ */
.cta-bg-glow {
  position: absolute;
  top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 700px; height: 400px;
  background: radial-gradient(ellipse, rgba(34,184,150,0.08) 0%, transparent 70%);
  pointer-events: none;
}
.cta-inner { position: relative; z-index: 1; max-width: 700px; margin: 0 auto; }
.cta-title { font-size: clamp(2rem, 4.5vw, 3.2rem); margin-bottom: 1rem; }
.cta-subtitle { color: var(--text-muted); font-size: 1.1rem; margin-bottom: 2.5rem; }
.cta-actions { display: flex; justify-content: center; margin-bottom: 1.2rem; }
.cta-note { color: var(--text-light); font-size: 0.85rem; }

/* ════════════════════════════
   FOOTER
════════════════════════════ */
#footer {
  background: var(--obsidian);
  padding: 3rem 0;
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 2rem;
}
.footer-logo { height: 32px; width: auto; }
.footer-logo--circle { height: 44px; width: 44px; border-radius: 50%; object-fit: contain; }
.footer-tagline { color: rgba(255,255,255,0.4); font-size: 0.88rem; margin-top: 0.4rem; font-style: italic; }
.footer-links { display: flex; gap: 2rem; }
.footer-links a { color: rgba(255,255,255,0.45); font-size: 0.88rem; transition: color 0.2s; }
.footer-links a:hover { color: var(--jade-light); }
.footer-copy { color: rgba(255,255,255,0.25); font-size: 0.78rem; }

/* ════════════════════════════
   REVEAL ANIMATIONS
════════════════════════════ */
.reveal-up, .reveal-left, .reveal-right, .reveal-timeline {
  opacity: 0;
  transition: opacity 0.7s ease, transform 0.7s ease;
}
.reveal-up      { transform: translateY(35px); }
.reveal-left    { transform: translateX(-40px); }
.reveal-right   { transform: translateX(40px); }
.reveal-timeline{ transform: translateX(-25px); }
.revealed {
  opacity: 1 !important;
  transform: translate(0) !important;
}

/* ════════════════════════════
   DIAGNÓSTICO
════════════════════════════ */
#diagnostico {
  background: var(--bg-alt);
  padding: 6rem 0;
}

.diag-inner {
  max-width: 680px;
  margin: 0 auto;
  padding: 0 1.5rem;
}

.diag-header {
  text-align: center;
  margin-bottom: 2.5rem;
}

.diag-hidden { display: none !important; }

/* ─── Cards compartidas ─── */
.diag-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  box-shadow: var(--shadow-md);
}

/* ─── PASO A — Formulario registro ─── */
.diag-form-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.4rem;
}
.diag-form-sub {
  font-size: 0.9rem;
  color: var(--text-muted);
  margin-bottom: 1.75rem;
}
.diag-form-group {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  margin-bottom: 1.1rem;
}
.diag-form-group label {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--text);
}
.diag-input {
  width: 100%;
  padding: 0.7rem 1rem;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  font-family: var(--font-body);
  font-size: 0.95rem;
  color: var(--text);
  background: var(--bg);
  transition: border-color 0.2s, box-shadow 0.2s;
  outline: none;
}
.diag-input:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-glow);
}
.diag-input--error {
  border-color: #dc3545;
  box-shadow: 0 0 0 3px rgba(220, 53, 69, 0.1);
}
.diag-field-error {
  font-size: 0.78rem;
  color: #dc3545;
  display: none;
}
.diag-field-error.visible { display: block; }

.form-honeypot { display: none !important; }

.diag-form-error {
  background: #fff3cd;
  border: 1px solid #ffc107;
  border-radius: var(--radius);
  padding: 0.65rem 1rem;
  font-size: 0.85rem;
  color: #664d03;
  margin-bottom: 1rem;
  display: none;
}
.diag-form-error.visible { display: block; }

/* ─── PASO B — Chat ─── */
#diag-chat {
  display: flex;
  flex-direction: column;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  background: var(--bg);
  border: 1px solid var(--border);
}

.chat-header {
  background: var(--jade);
  padding: 1rem 1.25rem;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.chat-header-logo {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255,255,255,0.15);
  padding: 3px;
  object-fit: contain;
}
.chat-header-info { flex: 1; }
.chat-header-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: #fff;
}
.chat-header-status {
  font-size: 0.75rem;
  color: rgba(255,255,255,0.75);
}
.chat-progress-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}
.chat-progress-label {
  font-size: 0.72rem;
  color: rgba(255,255,255,0.8);
  white-space: nowrap;
}
.chat-progress-track {
  width: 80px;
  height: 4px;
  background: rgba(255,255,255,0.25);
  border-radius: 9999px;
  overflow: hidden;
}
.chat-progress-fill {
  height: 100%;
  background: rgba(255,255,255,0.9);
  border-radius: 9999px;
  width: 0%;
  transition: width 0.5s ease;
}

.chat-messages {
  flex: 1;
  min-height: 320px;
  max-height: 420px;
  overflow-y: auto;
  padding: 1.25rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  scroll-behavior: smooth;
  background: #F9FAFB;
}
.chat-messages::-webkit-scrollbar { width: 4px; }
.chat-messages::-webkit-scrollbar-thumb { background: var(--border); border-radius: 9999px; }

.bubble-row {
  display: flex;
  gap: 0.5rem;
  align-items: flex-end;
}
.bubble-row--agent { justify-content: flex-start; }
.bubble-row--user  { justify-content: flex-end; }

.bubble-avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--jade-glow);
  padding: 2px;
  flex-shrink: 0;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: center;
}
.bubble-avatar img {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  object-fit: contain;
}

.bubble {
  max-width: 78%;
  padding: 0.65rem 1rem;
  border-radius: 18px;
  font-size: 0.9rem;
  line-height: 1.5;
  word-break: break-word;
}
.bubble--agent {
  background: #fff;
  color: var(--text);
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
}
.bubble--user {
  background: var(--jade);
  color: #fff;
  border-bottom-right-radius: 4px;
}

/* Typing indicator */
.bubble--typing {
  background: #fff;
  border: 1px solid var(--border);
  border-bottom-left-radius: 4px;
  display: flex;
  align-items: center;
  gap: 4px;
  padding: 0.7rem 0.9rem;
}
.typing-dot {
  width: 7px;
  height: 7px;
  background: var(--jade-light);
  border-radius: 50%;
  animation: typing-bounce 1.2s infinite ease-in-out;
}
.typing-dot:nth-child(2) { animation-delay: 0.2s; }
.typing-dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes typing-bounce {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.4; }
  30%            { transform: translateY(-6px); opacity: 1; }
}

/* Input area */
.chat-input-area {
  border-top: 1px solid var(--border);
  padding: 0.85rem 1rem;
  background: var(--bg);
  display: flex;
  gap: 0.65rem;
  align-items: flex-end;
}
#chat-textarea {
  flex: 1;
  border: 1.5px solid var(--border);
  border-radius: var(--radius);
  padding: 0.6rem 0.85rem;
  font-family: var(--font-body);
  font-size: 0.9rem;
  color: var(--text);
  resize: none;
  max-height: 110px;
  line-height: 1.5;
  outline: none;
  transition: border-color 0.2s;
}
#chat-textarea:focus {
  border-color: var(--jade);
  box-shadow: 0 0 0 3px var(--jade-glow);
}
.char-count {
  font-size: 0.7rem;
  color: var(--text-light);
  text-align: right;
  align-self: flex-end;
  white-space: nowrap;
}
.char-count--limit { color: #dc3545; }

#chat-send-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: none;
  background: var(--jade);
  color: #fff;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  transition: background 0.2s, transform 0.15s;
}
#chat-send-btn:hover { background: var(--jade-light); transform: scale(1.05); }
#chat-send-btn:disabled { background: var(--border); cursor: not-allowed; transform: none; }
#chat-send-btn svg { width: 17px; height: 17px; }

/* ─── PASO C — Cierre ─── */
#diag-close {
  text-align: center;
  animation: fadeInUp 0.5s ease both;
}
.diag-close-icon {
  font-size: 3rem;
  margin-bottom: 0.75rem;
}
.diag-close-title {
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text);
  margin-bottom: 0.5rem;
}
.diag-close-body {
  font-size: 0.95rem;
  color: var(--text-muted);
  margin-bottom: 2rem;
  max-width: 440px;
  margin-left: auto;
  margin-right: auto;
}
.diag-close-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  align-items: center;
}
.btn-whatsapp {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: #25d366;
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  padding: 0.85rem 2.2rem;
  border-radius: var(--radius-full);
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s, box-shadow 0.2s;
  box-shadow: 0 4px 18px rgba(37, 211, 102, 0.35);
}
.btn-whatsapp:hover {
  background: #1ebe5a;
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
}
.btn-whatsapp svg { width: 22px; height: 22px; flex-shrink: 0; }
.btn-reiniciar {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.85rem;
  cursor: pointer;
  text-decoration: underline;
  padding: 0.25rem;
}
.btn-reiniciar:hover { color: var(--jade); }

@keyframes fadeInUp {
  from { opacity: 0; transform: translateY(20px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive diagnóstico ─── */
@media (max-width: 640px) {
  .diag-card { padding: 1.75rem 1.25rem; }
  .chat-messages { min-height: 260px; max-height: 340px; }
  .chat-progress-track { width: 55px; }
}

/* ════════════════════════════
   GSAP ANIMATION STATES
════════════════════════════ */
.gsap-active .hero-badge,
.gsap-active .hero-title,
.gsap-active .hero-subtitle,
.gsap-active .hero-actions,
.gsap-active .hero-stats {
  animation-name: none !important;
}
.gsap-reveal         { opacity: 0; }
.gsap-reveal--up     { transform: translateY(40px); }
.gsap-reveal--left   { transform: translateX(-50px); }
.gsap-reveal--right  { transform: translateX(50px); }
.gsap-reveal--tl     { transform: translateX(-30px); }

/* ── Hero badge shimmer ── */
.hero-badge { position: relative; overflow: hidden; }
.hero-badge::after {
  content: '';
  position: absolute;
  top: 0; left: -60%;
  width: 40%; height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,0.55), transparent);
  transform: skewX(-15deg);
  animation: badgeShimmer 4s ease-in-out 2s infinite;
  pointer-events: none;
}
@keyframes badgeShimmer {
  0%   { left: -60%; opacity: 0; }
  10%  { opacity: 1; }
  60%  { left: 140%; }
  100% { left: 140%; opacity: 0; }
}

/* ── Hero word-split helpers ── */
.hw       { display: inline-block; overflow: hidden; vertical-align: bottom; }
.hw-inner { display: inline-block; }

/* ════════════════════════════
   CURSOR PERSONALIZADO
════════════════════════════ */
.cursor-dot {
  position: fixed;
  top: 0; left: 0;
  width: 14px; height: 14px;
  background: #22B896;
  border-radius: 50%;
  pointer-events: none;
  z-index: 9997;
  opacity: 0;
  will-change: transform;
}

/* ════════════════════════════
   WHATSAPP FLOTANTE
════════════════════════════ */
.wa-float {
  position: fixed;
  bottom: 2rem; right: 2rem;
  z-index: 9000;
  width: 54px; height: 54px;
  background: #1A8A72;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 24px rgba(26,138,114,0.35);
  text-decoration: none;
  will-change: transform;
  opacity: 0;
  transform: scale(0);
}
.wa-float svg {
  width: 28px; height: 28px;
  fill: #fff;
  display: block;
}
.wa-pulse {
  position: absolute; inset: -5px;
  border-radius: 50%;
  background: rgba(34,184,150,0.4);
  pointer-events: none;
  z-index: -1;
}

/* ════════════════════════════
   BOTONES — helpers
════════════════════════════ */
.split-cta         { margin-top: 1.5rem; }
.btn-center        { justify-content: center; }

/* ════════════════════════════
   RESPONSIVE
════════════════════════════ */
@media (max-width: 1024px) {
  .methodology-cards { grid-template-columns: 1fr 1fr; }
  .service-row { gap: 3rem; }
}
@media (max-width: 900px) {
  .split-layout { grid-template-columns: 1fr; gap: 3rem; }
  .methodology-cards { grid-template-columns: 1fr; }
  .connect-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 768px) {
  .nav-inner { padding: 0.5rem 1rem !important; }
  .nav-logo img { height: 50px !important; width: auto !important; }
}
@media (max-width: 640px) {
  .wa-float {
    opacity: 1 !important;
    transform: scale(1) !important;
    bottom: 1.25rem;
    right: 1.25rem;
    width: 52px;
    height: 52px;
    z-index: 9999;
  }
  .nav-inner { padding: 0.5rem 1rem !important; }
  .nav-logo img { height: 50px !important; width: auto !important; }
  .nav-links { display: none; }
  .nav-hamburger { display: flex; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 70px; left: 0; right: 0;
    background: rgba(255, 255, 255, 0.97);
    padding: 1.5rem 2rem;
    border-bottom: 1px solid var(--border);
    box-shadow: var(--shadow-md);
    gap: 1.25rem;
  }
  .hero-stats { flex-direction: column; gap: 1.5rem; padding: 1.2rem 1.5rem; }
  .stat-divider { width: 50px; height: 1px; }
  .services-zigzag { gap: 3.5rem; }
  .service-row,
  .service-row--reverse { flex-direction: column-reverse; gap: 1.75rem; }
  .service-media { flex: none; width: 100%; }
  .service-text { min-width: 0; }
  .service-text h3 { font-size: 1.5rem; }
  .service-text p { max-width: none; }
  .connect-grid { grid-template-columns: 1fr; }
  .footer-inner { flex-direction: column; text-align: center; }
  .footer-links { flex-wrap: wrap; justify-content: center; }
  .timeline { padding-left: 2.5rem; }
  .login-modal { margin: 1rem; }
}
