/* ================================
   MEDITAX — DESIGN SYSTEM
   ================================ */

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }

:root {
  --white: #FFFFFF;
  --off-white: #FAFBFC;
  --bg-subtle: #F8FAFD;
  --blue-50: #EFF6FF;
  --blue-100: #DBEAFE;
  --blue-200: #BFDBFE;
  --blue-300: #93C5FD;
  --blue-400: #60A5FA;
  --blue-500: #3B82F6;
  --blue-600: #2563EB;
  --blue-700: #1D4ED8;
  --blue-800: #1E40AF;
  --blue-900: #1E3A8A;
  --teal-50: #F0FDFA;
  --teal-100: #CCFBF1;
  --teal-400: #2DD4BF;
  --teal-500: #14B8A6;
  --teal-600: #0D9488;
  --teal-700: #0F766E;
  --slate-50: #F8FAFC;
  --slate-100: #F1F5F9;
  --slate-200: #E2E8F0;
  --slate-300: #CBD5E1;
  --slate-400: #94A3B8;
  --slate-500: #64748B;
  --slate-600: #475569;
  --slate-700: #334155;
  --slate-800: #1E293B;
  --slate-900: #0F172A;
  --font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
  --radius-full: 9999px;
  --shadow-xs: 0 1px 2px rgba(15,23,42,0.04);
  --shadow-sm: 0 1px 3px rgba(15,23,42,0.06), 0 1px 2px rgba(15,23,42,0.04);
  --shadow-md: 0 4px 6px -1px rgba(15,23,42,0.07), 0 2px 4px -1px rgba(15,23,42,0.04);
  --shadow-lg: 0 10px 15px -3px rgba(15,23,42,0.08), 0 4px 6px -2px rgba(15,23,42,0.04);
  --shadow-xl: 0 20px 25px -5px rgba(15,23,42,0.08), 0 10px 10px -5px rgba(15,23,42,0.03);
  --shadow-2xl: 0 25px 50px -12px rgba(15,23,42,0.14);
  --nav-h: 72px;
}

body {
  font-family: var(--font);
  color: var(--slate-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ================================
   LAYOUT
================================ */
.container    { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container-sm { max-width: 800px;  margin: 0 auto; padding: 0 24px; }
.container-lg { max-width: 1400px; margin: 0 auto; padding: 0 24px; }

/* ================================
   BUTTONS
================================ */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 12px 24px;
  border-radius: var(--radius-full);
  font-family: var(--font);
  font-size: 0.9375rem;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
  transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
  border: 1.5px solid transparent;
  text-decoration: none;
  white-space: nowrap;
  letter-spacing: -0.01em;
}

.btn-primary {
  background: var(--blue-600);
  color: var(--white);
  border-color: var(--blue-600);
  box-shadow: 0 1px 2px rgba(37,99,235,0.15), 0 4px 12px rgba(37,99,235,0.2);
}
.btn-primary:hover {
  background: var(--blue-700);
  border-color: var(--blue-700);
  box-shadow: 0 1px 2px rgba(37,99,235,0.2), 0 8px 24px rgba(37,99,235,0.28);
  transform: translateY(-1px);
}

.btn-outline {
  background: transparent;
  color: var(--blue-600);
  border-color: var(--blue-200);
}
.btn-outline:hover {
  background: var(--blue-50);
  border-color: var(--blue-300);
  transform: translateY(-1px);
}

.btn-ghost {
  background: transparent;
  color: var(--slate-600);
  border-color: transparent;
  padding: 12px 16px;
}
.btn-ghost:hover { color: var(--slate-900); background: var(--slate-100); }

.btn-white {
  background: white;
  color: var(--blue-700);
  border-color: white;
  font-weight: 700;
}
.btn-white:hover { background: var(--blue-50); border-color: var(--blue-50); transform: translateY(-1px); }

.btn-outline-white {
  background: rgba(255,255,255,0.08);
  color: white;
  border-color: rgba(255,255,255,0.22);
}
.btn-outline-white:hover {
  background: rgba(255,255,255,0.15);
  border-color: rgba(255,255,255,0.38);
  transform: translateY(-1px);
}

.btn-lg  { padding: 16px 32px; font-size: 1rem; }
.btn-sm  { padding: 8px 16px; font-size: 0.8125rem; }

/* ================================
   NAVIGATION
================================ */
.nav {
  position: fixed;
  top: 0; left: 0; right: 0;
  z-index: 100;
  height: var(--nav-h);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.nav.scrolled {
  background: rgba(255,255,255,0.95);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,0.8);
  box-shadow: 0 1px 4px rgba(15,23,42,0.05);
}
.nav-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 100%;
}
.nav-logo {
  display: flex; align-items: center; gap: 10px;
  text-decoration: none; flex-shrink: 0;
}
.nav-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
}
.nav-logo-mark svg { width: 20px; height: 20px; }
.nav-logo-text { font-size: 1.25rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; }

.nav-links { display: flex; align-items: center; gap: 2px; list-style: none; }
.nav-links a {
  font-size: 0.875rem; font-weight: 500; color: var(--slate-600);
  text-decoration: none; padding: 8px 12px;
  border-radius: var(--radius-sm); transition: all 0.15s; white-space: nowrap;
}
.nav-links a:hover { color: var(--slate-900); background: var(--slate-100); }

.nav-cta { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.nav-mobile-btn {
  display: none; background: none; border: none; cursor: pointer;
  padding: 8px; color: var(--slate-700); align-items: center; justify-content: center;
}

/* Mobile Menu */
.mobile-menu {
  display: none; position: fixed;
  top: var(--nav-h); left: 0; right: 0; bottom: 0;
  background: white; z-index: 99; padding: 24px;
  overflow-y: auto;
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}
.mobile-menu.open { transform: translateX(0); }
.mobile-menu-links { list-style: none; display: flex; flex-direction: column; gap: 4px; }
.mobile-menu-links a {
  display: block; font-size: 1rem; font-weight: 500; color: var(--slate-700);
  text-decoration: none; padding: 14px 16px; border-radius: var(--radius-md); transition: all 0.15s;
}
.mobile-menu-links a:hover { background: var(--slate-100); color: var(--slate-900); }
.mobile-menu-cta { margin-top: 24px; display: flex; flex-direction: column; gap: 12px; }

/* ================================
   SECTIONS COMMON
================================ */
.section    { padding: 96px 0; }
.section-sm { padding: 64px 0; }
.section-lg { padding: 120px 0; }

.section-label {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600;
  letter-spacing: 0.06em; text-transform: uppercase;
  color: var(--blue-600); margin-bottom: 16px;
}
.section-label::before {
  content: ''; display: block; width: 20px; height: 2px;
  background: var(--blue-600); border-radius: 1px;
}
.section-title {
  font-size: clamp(1.875rem, 4vw, 2.75rem);
  font-weight: 800; letter-spacing: -0.035em;
  color: var(--slate-900); line-height: 1.15;
  margin-bottom: 16px;
}
.section-subtitle {
  font-size: 1.0625rem; color: var(--slate-500);
  line-height: 1.72; max-width: 560px;
}
.section-header { margin-bottom: 64px; }
.section-header.center {
  text-align: center; display: flex;
  flex-direction: column; align-items: center;
}

/* ================================
   ANIMATIONS
================================ */
.fade-up {
  opacity: 0; transform: translateY(28px);
  transition: opacity 0.65s cubic-bezier(0.4,0,0.2,1), transform 0.65s cubic-bezier(0.4,0,0.2,1);
}
.fade-up.visible { opacity: 1; transform: translateY(0); }
.fade-up.delay-1 { transition-delay: 0.08s; }
.fade-up.delay-2 { transition-delay: 0.16s; }
.fade-up.delay-3 { transition-delay: 0.24s; }
.fade-up.delay-4 { transition-delay: 0.32s; }
.fade-up.delay-5 { transition-delay: 0.40s; }
.fade-up.delay-6 { transition-delay: 0.48s; }
.fade-up.delay-7 { transition-delay: 0.56s; }
.fade-up.delay-8 { transition-delay: 0.64s; }

/* ================================
   HERO
================================ */
.hero {
  min-height: 100vh; display: flex; align-items: center;
  padding-top: var(--nav-h);
  position: relative; overflow: hidden;
  background: linear-gradient(160deg, #FFFFFF 0%, #EFF6FF 45%, #F0FDFA 100%);
}
.hero-bg { position: absolute; inset: 0; pointer-events: none; overflow: hidden; }
.hero-orb-1 {
  position: absolute; width: 800px; height: 800px; border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.07) 0%, transparent 65%);
  top: -250px; right: -150px;
}
.hero-orb-2 {
  position: absolute; width: 600px; height: 600px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,0.06) 0%, transparent 65%);
  bottom: -200px; right: 150px;
}
.hero-orb-3 {
  position: absolute; width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(59,130,246,0.04) 0%, transparent 65%);
  top: 35%; left: -120px;
}
.hero-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(37,99,235,0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(37,99,235,0.025) 1px, transparent 1px);
  background-size: 64px 64px;
}
.hero-inner {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 80px; align-items: center;
  position: relative; z-index: 1; width: 100%;
  padding: 80px 0;
}
.hero-content { max-width: 580px; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: white; border: 1px solid var(--blue-100);
  border-radius: var(--radius-full); padding: 6px 14px 6px 8px;
  margin-bottom: 28px; box-shadow: var(--shadow-sm);
}
.hero-badge-dot {
  width: 26px; height: 26px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  display: flex; align-items: center; justify-content: center;
}
.hero-badge-dot svg { width: 13px; height: 13px; fill: white; }
.hero-badge span { font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); }
.hero-title {
  font-size: clamp(2.25rem, 4.5vw, 3.75rem);
  font-weight: 800; letter-spacing: -0.04em;
  line-height: 1.07; color: var(--slate-900); margin-bottom: 22px;
}
.hero-title .gradient-text {
  background: linear-gradient(135deg, var(--blue-600) 0%, var(--teal-500) 100%);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.hero-subtitle {
  font-size: 1.125rem; color: var(--slate-500);
  line-height: 1.72; margin-bottom: 38px;
}
.hero-ctas { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 52px; }
.hero-trust {
  display: flex; align-items: center; gap: 20px;
  padding-top: 24px; border-top: 1px solid var(--slate-200);
}
.hero-trust-item { display: flex; flex-direction: column; }
.hero-trust-item strong {
  font-size: 1.375rem; font-weight: 800;
  color: var(--slate-900); letter-spacing: -0.035em; line-height: 1.2;
}
.hero-trust-item span { font-size: 0.75rem; color: var(--slate-500); font-weight: 500; }
.hero-trust-divider { width: 1px; height: 36px; background: var(--slate-200); }

/* Hero Visual */
.hero-visual { position: relative; display: flex; justify-content: center; align-items: center; }
.hero-card-main {
  background: white; border-radius: 22px; padding: 28px;
  box-shadow: var(--shadow-2xl); width: 100%; max-width: 400px;
  border: 1px solid rgba(226,232,240,0.7); position: relative;
}
.hero-card-header {
  display: flex; align-items: center; justify-content: space-between; margin-bottom: 22px;
}
.hero-card-title {
  font-size: 0.6875rem; font-weight: 700;
  text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-400);
}
.hero-card-badge {
  font-size: 0.6875rem; font-weight: 700;
  color: var(--teal-600); background: var(--teal-50);
  border: 1px solid var(--teal-100); padding: 3px 10px; border-radius: var(--radius-full);
}
.hero-profile {
  display: flex; align-items: center; gap: 12px;
  padding: 14px; background: var(--slate-50);
  border-radius: var(--radius-md); margin-bottom: 16px;
}
.hero-avatar {
  width: 42px; height: 42px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-avatar svg { width: 21px; height: 21px; fill: none; stroke: white; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
.hero-profile-info strong { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.01em; }
.hero-profile-info span { font-size: 0.8125rem; color: var(--slate-500); }
.hero-items { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; }
.hero-item {
  display: flex; align-items: center; gap: 10px;
  padding: 9px 12px; border-radius: var(--radius-sm); transition: background 0.15s; cursor: default;
}
.hero-item:hover { background: var(--slate-50); }
.hero-item-icon {
  width: 30px; height: 30px; border-radius: 8px;
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-item-icon.blue   { background: var(--blue-50); }
.hero-item-icon.teal   { background: var(--teal-50); }
.hero-item-icon.purple { background: #F5F3FF; }
.hero-item-icon svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.hero-item-icon.blue   svg { color: var(--blue-600); }
.hero-item-icon.teal   svg { color: var(--teal-600); }
.hero-item-icon.purple svg { color: #7C3AED; }
.hero-item-text { flex: 1; }
.hero-item-text strong { display: block; font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); line-height: 1.3; }
.hero-item-text span { font-size: 0.75rem; color: var(--slate-400); }
.hero-item-check {
  width: 20px; height: 20px; border-radius: 50%;
  background: var(--teal-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.hero-item-check svg { width: 10px; height: 10px; stroke: var(--teal-600); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; fill: none; }
.hero-card-footer {
  padding: 14px; text-decoration: none;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-600));
  border-radius: var(--radius-sm);
  display: flex; align-items: center; justify-content: space-between;
}
.hero-card-footer-text strong { display: block; font-size: 0.8125rem; font-weight: 700; color: white; }
.hero-card-footer-text span { font-size: 0.6875rem; color: rgba(255,255,255,0.65); }
.hero-card-footer-cta {
  font-size: 0.75rem; font-weight: 600; color: white;
  background: rgba(255,255,255,0.18); padding: 6px 12px;
  border-radius: var(--radius-full); cursor: pointer; transition: background 0.15s;
}
.hero-card-footer:hover .hero-card-footer-cta { background: rgba(255,255,255,0.28); }

/* Floating cards */
.hero-float-1 {
  position: absolute; top: -18px; right: -28px;
  background: white; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-xl); border: 1px solid var(--slate-100);
  display: flex; align-items: center; gap: 10px;
  animation: float1 4s ease-in-out infinite;
}
.hero-float-2 {
  position: absolute; bottom: -18px; left: -28px;
  background: white; border-radius: 14px; padding: 12px 16px;
  box-shadow: var(--shadow-xl); border: 1px solid var(--slate-100);
  animation: float2 5s ease-in-out infinite;
}
@keyframes float1 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
@keyframes float2 { 0%,100% { transform: translateY(0); } 50% { transform: translateY(7px); } }
.hero-float-1-icon {
  width: 34px; height: 34px;
  background: linear-gradient(135deg, var(--blue-500), var(--blue-700));
  border-radius: 9px; display: flex; align-items: center; justify-content: center;
}
.hero-float-1-icon svg { width: 16px; height: 16px; fill: none; stroke: white; stroke-width: 1.5; stroke-linecap: round; }
.hero-float-1-text strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--slate-900); }
.hero-float-1-text span  { font-size: 0.6875rem; color: var(--slate-400); }
.hero-float-2-text  { font-size: 0.8125rem; font-weight: 600; color: var(--slate-700); margin-bottom: 7px; }
.hero-float-2-dots  { display: flex; gap: 4px; }
.hero-float-2-dot   { height: 5px; border-radius: 3px; background: var(--blue-100); }
.hero-float-2-dot.active { background: linear-gradient(90deg, var(--blue-600), var(--teal-500)); }

/* ================================
   STAGES
================================ */
.stages { background: var(--bg-subtle); }
.stages-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 24px;
}
.stage-card {
  background: white; border-radius: var(--radius-xl); padding: 40px 36px;
  border: 1px solid var(--slate-100);
  transition: all 0.25s cubic-bezier(0.4,0,0.2,1);
  position: relative; overflow: hidden;
  display: flex; flex-direction: column;
}
.stage-card::after {
  content: ''; position: absolute; inset: 0;
  background: linear-gradient(135deg, transparent 60%, rgba(37,99,235,0.025));
  opacity: 0; transition: opacity 0.25s;
  pointer-events: none;
}
.stage-card:hover { border-color: var(--blue-200); box-shadow: var(--shadow-xl); transform: translateY(-3px); }
.stage-card:hover::after { opacity: 1; }
.stage-icon {
  width: 56px; height: 56px; border-radius: 15px;
  display: flex; align-items: center; justify-content: center; margin-bottom: 22px;
}
.stage-icon svg { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.stage-icon.color-1 { background: var(--blue-50);  } .stage-icon.color-1 svg { color: var(--blue-600);  }
.stage-icon.color-2 { background: var(--teal-50);  } .stage-icon.color-2 svg { color: var(--teal-600);  }
.stage-icon.color-3 { background: #F5F3FF; } .stage-icon.color-3 svg { color: #7C3AED; }
.stage-icon.color-4 { background: #FFF7ED; } .stage-icon.color-4 svg { color: #C2410C; }
.stage-icon.color-5 { background: #F0FDF4; } .stage-icon.color-5 svg { color: #15803D; }
.stage-icon.color-6 { background: #FDF4FF; } .stage-icon.color-6 svg { color: #9333EA; }
.stage-icon.color-7 { background: #FFF1F2; } .stage-icon.color-7 svg { color: #BE123C; }
.stage-icon.color-8 { background: var(--blue-50); } .stage-icon.color-8 svg { color: var(--blue-700); }
.stage-title { font-size: 1.1875rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; margin-bottom: 14px; line-height: 1.35; }
.stage-desc { font-size: 0.9375rem; color: var(--slate-500); line-height: 1.7; margin-bottom: 24px; flex: 1; }
.stage-cta { display: inline-flex; align-items: center; gap: 6px; font-size: 0.875rem; font-weight: 600; color: var(--blue-600); text-decoration: none; transition: gap 0.2s; margin-top: auto; }
.stage-cta svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; transition: transform 0.2s; }
.stage-card:hover .stage-cta { gap: 9px; }
.stage-card:hover .stage-cta svg { transform: translateX(2px); }

/* ================================
   DIFFERENTIATOR
================================ */
.diff-section { background: white; }
.diff-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; }
.diff-content .section-subtitle { margin-bottom: 36px; }
.diff-points { display: flex; flex-direction: column; gap: 22px; }
.diff-point { display: flex; gap: 16px; align-items: flex-start; }
.diff-point-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: var(--blue-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.diff-point-icon svg { width: 20px; height: 20px; fill: none; stroke: var(--blue-600); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.diff-point-text strong { display: block; font-size: 0.9375rem; font-weight: 700; color: var(--slate-900); margin-bottom: 4px; letter-spacing: -0.01em; }
.diff-point-text p { font-size: 0.875rem; color: var(--slate-500); line-height: 1.7; }
.diff-visual { position: relative; }
.diff-card-wrap {
  background: linear-gradient(160deg, var(--blue-900) 0%, #163560 100%);
  border-radius: 24px; padding: 40px; position: relative; overflow: hidden;
}
.diff-card-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 70% 20%, rgba(59,130,246,0.18) 0%, transparent 50%),
    radial-gradient(circle at 20% 80%, rgba(13,148,136,0.12) 0%, transparent 50%);
}
.diff-card-content { position: relative; z-index: 1; }
.diff-card-label {
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: rgba(255,255,255,0.35); margin-bottom: 24px;
}
.diff-stat-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-bottom: 14px; }
.diff-stat {
  background: rgba(255,255,255,0.06); border-radius: 12px; padding: 18px;
  border: 1px solid rgba(255,255,255,0.07);
}
.diff-stat strong {
  display: block; font-size: 1.875rem; font-weight: 800; color: white;
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 5px;
}
.diff-stat span { font-size: 0.75rem; color: rgba(255,255,255,0.45); font-weight: 500; }
.diff-tag-row { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 20px; }
.diff-tag {
  font-size: 0.75rem; font-weight: 600; padding: 6px 12px;
  border-radius: var(--radius-full); background: rgba(255,255,255,0.07);
  color: rgba(255,255,255,0.55); border: 1px solid rgba(255,255,255,0.1);
}
.diff-tag.active {
  background: rgba(59,130,246,0.3); color: rgba(255,255,255,0.9);
  border-color: rgba(59,130,246,0.35);
}

/* ================================
   PLANS
================================ */
.plans-section { background: var(--bg-subtle); }
.plans-toggle-wrap { display: flex; justify-content: center; margin-bottom: 52px; }
.plans-toggle {
  display: inline-flex; background: var(--slate-100);
  border-radius: var(--radius-full); padding: 4px; gap: 4px;
}
.plans-toggle-btn {
  padding: 10px 22px; border-radius: var(--radius-full);
  font-size: 0.875rem; font-weight: 600; cursor: pointer;
  transition: all 0.2s; border: none; background: transparent;
  color: var(--slate-500); font-family: var(--font);
}
.plans-toggle-btn.active { background: white; color: var(--slate-900); box-shadow: var(--shadow-sm); }
.plans-save-badge {
  font-size: 0.6875rem; font-weight: 700; color: var(--teal-700);
  background: var(--teal-50); border: 1px solid var(--teal-100);
  padding: 2px 8px; border-radius: var(--radius-full); margin-left: 6px;
}
.plans-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 22px; max-width: 860px; margin: 0 auto;
}
.plan-card {
  background: white; border-radius: var(--radius-xl); padding: 38px;
  border: 1.5px solid var(--slate-200); position: relative; transition: all 0.25s;
}
.plan-card.featured { border-color: var(--blue-300); box-shadow: 0 0 0 4px rgba(37,99,235,0.05), var(--shadow-xl); }
.plan-card:hover { box-shadow: var(--shadow-xl); transform: translateY(-2px); }
.plan-badge {
  position: absolute; top: -13px; left: 50%; transform: translateX(-50%);
  font-size: 0.6875rem; font-weight: 700; letter-spacing: 0.05em; text-transform: uppercase;
  color: white; background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  padding: 5px 14px; border-radius: var(--radius-full); white-space: nowrap;
}
.plan-type { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.06em; color: var(--slate-400); margin-bottom: 6px; }
.plan-name { font-size: 1.375rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; margin-bottom: 24px; }
.plan-price-wrap { margin-bottom: 26px; }
.plan-price { display: flex; align-items: baseline; gap: 3px; margin-bottom: 4px; }
.plan-price-currency { font-size: 1rem; font-weight: 700; color: var(--slate-600); }
.plan-price-amount {
  font-size: 2.75rem; font-weight: 800; color: var(--slate-900);
  letter-spacing: -0.04em; line-height: 1;
  transition: opacity 0.2s, transform 0.2s;
}
.plan-price-period { font-size: 0.875rem; color: var(--slate-400); font-weight: 500; margin-left: 2px; }
.plan-price-note { font-size: 0.8125rem; color: var(--slate-400); transition: opacity 0.2s; }
.plan-price-note.savings { color: var(--teal-600); font-weight: 600; }
.plan-separator { height: 1px; background: var(--slate-100); margin: 22px 0; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 12px; margin-bottom: 30px; }
.plan-feature { display: flex; align-items: flex-start; gap: 10px; font-size: 0.875rem; color: var(--slate-600); line-height: 1.55; }
.plan-feature-check {
  width: 18px; height: 18px; border-radius: 50%;
  background: var(--teal-50); display: flex; align-items: center; justify-content: center; flex-shrink: 0; margin-top: 1px;
}
.plan-feature-check svg { width: 10px; height: 10px; stroke: var(--teal-600); stroke-width: 2.5; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.plans-footer-note {
  text-align: center; margin-top: 32px; font-size: 0.9375rem; color: var(--slate-500);
}
.plans-footer-note a { color: var(--blue-600); text-decoration: none; font-weight: 600; }
.plans-footer-note a:hover { text-decoration: underline; }

/* ================================
   CALCULATOR
================================ */
.calc-section { background: white; }
.calc-wrap {
  background: linear-gradient(160deg, var(--slate-50) 0%, var(--blue-50) 100%);
  border-radius: 28px; padding: 60px;
  border: 1px solid rgba(191,219,254,0.5);
}
.calc-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.calc-form-title { font-size: 1.25rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; margin-bottom: 24px; }
.calc-form { display: flex; flex-direction: column; gap: 20px; }
.form-group { display: flex; flex-direction: column; gap: 7px; }
.form-label { font-size: 0.875rem; font-weight: 600; color: var(--slate-700); letter-spacing: -0.01em; }
.form-input {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md); font-family: var(--font); font-size: 0.9375rem;
  color: var(--slate-900); background: white; transition: all 0.2s;
  appearance: none; -webkit-appearance: none; outline: none;
}
.form-input:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,0.09); }
.form-input::placeholder { color: var(--slate-400); }
.form-select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394A3B8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'%3E%3C/polyline%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center;
  padding-right: 40px; cursor: pointer;
}
.form-hint { font-size: 0.75rem; color: var(--slate-400); line-height: 1.5; }
.calc-result { position: sticky; top: calc(var(--nav-h) + 24px); }
.calc-result-card {
  background: white; border-radius: 20px; padding: 34px;
  box-shadow: var(--shadow-xl); border: 1px solid var(--slate-100);
}
.calc-result-label { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em; color: var(--slate-400); margin-bottom: 10px; }
.calc-result-amount {
  font-size: 2.5rem; font-weight: 800; color: var(--slate-900);
  letter-spacing: -0.04em; line-height: 1; margin-bottom: 5px;
}
.calc-result-amount.placeholder { color: var(--slate-300); font-size: 1.5rem; font-weight: 600; }
.calc-result-period { font-size: 0.8125rem; color: var(--slate-400); margin-bottom: 24px; }
.calc-result-breakdown { display: flex; flex-direction: column; gap: 10px; margin-bottom: 20px; }
.calc-progress-bar-wrap { margin-bottom: 4px; }
.calc-progress-label { display: flex; justify-content: space-between; font-size: 0.75rem; color: var(--slate-500); margin-bottom: 7px; }
.calc-progress-bar { height: 7px; background: var(--slate-100); border-radius: 4px; overflow: hidden; }
.calc-progress-fill {
  height: 100%; border-radius: 4px;
  background: linear-gradient(90deg, var(--blue-500), var(--teal-400));
  transition: width 0.7s cubic-bezier(0.4,0,0.2,1);
}
.calc-result-row { display: flex; justify-content: space-between; align-items: center; font-size: 0.875rem; }
.calc-result-row-label { color: var(--slate-500); }
.calc-result-row-value { font-weight: 600; color: var(--slate-700); }
.calc-result-row-value.highlight { color: var(--blue-600); }
.calc-result-row-value.warning   { color: var(--teal-600); }
.calc-disclaimer {
  font-size: 0.75rem; color: var(--slate-400); line-height: 1.65;
  padding: 12px 14px; background: var(--slate-50);
  border-radius: var(--radius-sm); border-left: 3px solid var(--slate-200); margin-top: 16px;
}
.calc-disclaimer strong { color: var(--slate-500); }

/* ================================
   HOW WE WORK
================================ */
.how-section { background: var(--bg-subtle); }
.how-steps { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; position: relative; }
.how-steps::before {
  content: ''; position: absolute;
  top: 58px; left: calc(16.67% + 16px); right: calc(16.67% + 16px);
  height: 2px; background: linear-gradient(90deg, var(--blue-200), var(--teal-200));
  z-index: 0;
}
.how-step {
  background: white; border-radius: var(--radius-xl); padding: 32px 28px;
  text-align: center; position: relative;
  border: 1px solid var(--slate-100); transition: all 0.25s;
}
.how-step:hover { border-color: var(--blue-200); box-shadow: var(--shadow-lg); transform: translateY(-2px); }
.how-step-icon {
  width: 52px; height: 52px; border-radius: 14px;
  background: linear-gradient(135deg, var(--blue-50), var(--teal-50));
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 8px; position: relative; z-index: 1;
  border: 4px solid var(--bg-subtle);
}
.how-step-icon svg { width: 24px; height: 24px; fill: none; stroke: var(--blue-600); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.how-step-num {
  width: 60px; height: 60px; border-radius: 50%;
  background: white; border: 2px solid var(--slate-200);
  display: flex; align-items: center; justify-content: center;
  margin: 0 auto 22px; position: relative; z-index: 1;
}
.how-step-num span { font-size: 1.25rem; font-weight: 800; color: var(--blue-600); }
.how-step-title { font-size: 1.0625rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.02em; margin-bottom: 10px; }
.how-step-desc { font-size: 0.875rem; color: var(--slate-500); line-height: 1.68; }

/* ================================
   AGENDA / CALENDLY
================================ */
.calendly-section { background: white; }
.calendly-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: center; }
.calendly-content .section-subtitle { margin-bottom: 30px; }
.calendly-features { display: flex; flex-direction: column; gap: 14px; margin-bottom: 30px; }
.calendly-feature { display: flex; align-items: flex-start; gap: 12px; font-size: 0.9375rem; color: var(--slate-600); line-height: 1.55; }
.calendly-feature-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--teal-400); flex-shrink: 0; margin-top: 7px; }
.calendly-embed {
  background: white; border-radius: 20px;
  border: 1px solid var(--slate-200); overflow: hidden;
  min-height: 680px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.06);
}
.calendly-inline-widget { border-radius: 20px; }

/* ================================
   CONTACT
================================ */
.contact-section { background: var(--bg-subtle); }
.contact-inner { display: grid; grid-template-columns: 1fr 1.45fr; gap: 64px; align-items: start; }
.contact-info { position: sticky; top: calc(var(--nav-h) + 24px); }
.contact-info .section-subtitle { margin-bottom: 34px; }
.contact-details { display: flex; flex-direction: column; gap: 16px; }
.contact-detail { display: flex; align-items: center; gap: 14px; }
.contact-detail-icon {
  width: 42px; height: 42px; border-radius: 11px;
  background: white; border: 1px solid var(--slate-200);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.contact-detail-icon svg { width: 18px; height: 18px; fill: none; stroke: var(--blue-600); stroke-width: 1.75; stroke-linecap: round; stroke-linejoin: round; }
.contact-detail-text strong { display: block; font-size: 0.8125rem; font-weight: 700; color: var(--slate-900); margin-bottom: 2px; }
.contact-detail-text span  { font-size: 0.875rem; color: var(--slate-500); }
.contact-form-wrap {
  background: white; border-radius: 24px; padding: 44px;
  box-shadow: var(--shadow-lg); border: 1px solid var(--slate-100);
}
.contact-form-title { font-size: 1.375rem; font-weight: 800; color: var(--slate-900); letter-spacing: -0.03em; margin-bottom: 6px; }
.contact-form-subtitle { font-size: 0.875rem; color: var(--slate-500); margin-bottom: 30px; line-height: 1.6; }
.contact-form { display: flex; flex-direction: column; gap: 18px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-textarea {
  width: 100%; padding: 12px 16px; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-md); font-family: var(--font); font-size: 0.9375rem;
  color: var(--slate-900); background: white; transition: all 0.2s;
  outline: none; resize: vertical; min-height: 108px; line-height: 1.6;
}
.form-textarea:focus { border-color: var(--blue-400); box-shadow: 0 0 0 3px rgba(37,99,235,0.09); }
.form-textarea::placeholder { color: var(--slate-400); }
.form-submit-row { display: flex; align-items: center; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.form-privacy-note { font-size: 0.75rem; color: var(--slate-400); line-height: 1.55; max-width: 200px; }
.form-privacy-note a { color: var(--blue-600); text-decoration: none; }
.form-success {
  display: none; text-align: center; padding: 40px;
  flex-direction: column; align-items: center; gap: 14px;
}
.form-success.visible { display: flex; }
.form-success-icon {
  width: 64px; height: 64px; background: var(--teal-50);
  border-radius: 50%; display: flex; align-items: center; justify-content: center;
}
.form-success-icon svg { width: 30px; height: 30px; stroke: var(--teal-600); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ================================
   FAQ
================================ */
.faq-section { background: white; }
.faq-list { display: flex; flex-direction: column; gap: 8px; max-width: 760px; margin: 0 auto; }
.faq-item {
  background: white; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-lg); overflow: hidden; transition: border-color 0.2s, box-shadow 0.2s;
}
.faq-item.open { border-color: var(--blue-200); box-shadow: 0 0 0 3px rgba(37,99,235,0.05); }
.faq-question {
  display: flex; align-items: center; justify-content: space-between;
  padding: 20px 24px; cursor: pointer; gap: 16px; user-select: none;
}
.faq-question-text { font-size: 0.9375rem; font-weight: 600; color: var(--slate-900); letter-spacing: -0.01em; line-height: 1.4; }
.faq-toggle {
  width: 28px; height: 28px; border-radius: 50%; background: var(--slate-100);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
  transition: all 0.25s;
}
.faq-item.open .faq-toggle { background: var(--blue-600); transform: rotate(45deg); }
.faq-toggle svg { width: 14px; height: 14px; stroke: var(--slate-500); stroke-width: 2.5; fill: none; stroke-linecap: round; transition: stroke 0.25s; }
.faq-item.open .faq-toggle svg { stroke: white; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.35s cubic-bezier(0.4,0,0.2,1); }
.faq-answer-inner { padding: 0 24px 22px; font-size: 0.9375rem; color: var(--slate-500); line-height: 1.75; }

/* ================================
   CTA FINAL
================================ */
.cta-section {
  background: linear-gradient(160deg, var(--blue-900) 0%, #163560 55%, var(--teal-700) 100%);
  position: relative; overflow: hidden;
}
.cta-bg {
  position: absolute; inset: 0;
  background-image: radial-gradient(circle at 18% 50%, rgba(59,130,246,0.22) 0%, transparent 50%),
    radial-gradient(circle at 82% 20%, rgba(13,148,136,0.18) 0%, transparent 50%);
}
.cta-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.018) 1px, transparent 1px);
  background-size: 52px 52px;
}
.cta-inner { position: relative; z-index: 1; text-align: center; }
.cta-title {
  font-size: clamp(2rem, 4.5vw, 3.5rem); font-weight: 800;
  color: white; letter-spacing: -0.04em; line-height: 1.1; margin-bottom: 20px;
}
.cta-subtitle {
  font-size: 1.0625rem; color: rgba(255,255,255,0.58);
  line-height: 1.72; max-width: 500px; margin: 0 auto 40px;
}
.cta-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-bottom: 52px; }
.cta-trust { display: flex; justify-content: center; flex-wrap: wrap; gap: 28px; }
.cta-trust-item { display: flex; align-items: center; gap: 8px; font-size: 0.875rem; color: rgba(255,255,255,0.45); }
.cta-trust-item svg { width: 15px; height: 15px; stroke: var(--teal-400); stroke-width: 2; fill: none; stroke-linecap: round; stroke-linejoin: round; }

/* ================================
   FOOTER
================================ */
.footer { background: var(--slate-900); padding: 64px 0 32px; }
.footer-top {
  display: grid; grid-template-columns: 1.7fr 1fr 1fr 1fr;
  gap: 48px; padding-bottom: 48px;
  border-bottom: 1px solid rgba(255,255,255,0.06); margin-bottom: 28px;
}
.footer-brand { display: flex; flex-direction: column; }
.footer-logo { display: flex; align-items: center; gap: 10px; margin-bottom: 16px; text-decoration: none; }
.footer-logo-mark {
  width: 36px; height: 36px;
  background: linear-gradient(135deg, var(--blue-500), var(--teal-500));
  border-radius: 10px; display: flex; align-items: center; justify-content: center;
}
.footer-logo-mark svg { width: 20px; height: 20px; }
.footer-logo-text { font-size: 1.25rem; font-weight: 800; color: white; letter-spacing: -0.03em; }
.footer-brand-desc { font-size: 0.875rem; color: rgba(255,255,255,0.38); line-height: 1.72; margin-bottom: 22px; }
.footer-contact-items { display: flex; flex-direction: column; gap: 10px; }
.footer-contact-item {
  display: flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.15s;
}
.footer-contact-item:hover { color: rgba(255,255,255,0.75); }
.footer-contact-item svg { width: 13px; height: 13px; flex-shrink: 0; stroke: currentColor; stroke-width: 1.75; fill: none; stroke-linecap: round; stroke-linejoin: round; }
.footer-col-title { font-size: 0.75rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.07em; color: rgba(255,255,255,0.4); margin-bottom: 16px; }
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a { font-size: 0.875rem; color: rgba(255,255,255,0.42); text-decoration: none; transition: color 0.15s; }
.footer-links a:hover { color: rgba(255,255,255,0.8); }
.footer-bottom { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 14px; }
.footer-bottom-left { font-size: 0.8125rem; color: rgba(255,255,255,0.28); }
.footer-bottom-right { display: flex; gap: 20px; }
.footer-bottom-right a { font-size: 0.8125rem; color: rgba(255,255,255,0.28); text-decoration: none; transition: color 0.15s; }
.footer-bottom-right a:hover { color: rgba(255,255,255,0.55); }

/* ================================
   NAV — extra top breathing room
================================ */
.nav-inner { padding: 6px 0; }

/* ================================
   PLANS — UF price styling
================================ */
.plan-price-uf {
  font-size: 2.75rem; font-weight: 800; color: var(--slate-900);
  letter-spacing: -0.04em; line-height: 1;
  transition: opacity 0.2s, transform 0.2s;
}

/* Calculator regime badge */
.calc-regime-badge {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 0.8125rem; font-weight: 600; color: var(--blue-700);
  background: var(--blue-50); border: 1px solid var(--blue-100);
  border-radius: var(--radius-full); padding: 7px 14px;
  margin-bottom: 4px;
}
.calc-regime-badge svg { width: 14px; height: 14px; stroke: var(--blue-600); flex-shrink: 0; }

/* Calculator tipo toggle (persona natural / sociedad) */
.calc-tipo-toggle {
  display: grid; grid-template-columns: 1fr 1fr; gap: 6px;
  padding: 4px; background: var(--slate-50);
  border: 1px solid var(--slate-100); border-radius: var(--radius-full);
}
.calc-tipo-btn {
  border: none; background: transparent; cursor: pointer;
  font-family: var(--font); font-size: 0.875rem; font-weight: 600;
  color: var(--slate-500); padding: 10px 14px; border-radius: var(--radius-full);
  transition: background 0.2s, color 0.2s, box-shadow 0.2s;
}
.calc-tipo-btn:hover { color: var(--slate-800); }
.calc-tipo-btn.active {
  background: white; color: var(--blue-700);
  box-shadow: 0 1px 3px rgba(15,23,42,0.08), 0 0 0 1px var(--blue-100);
}

/* ================================
   WHATSAPP BUTTON
================================ */
.wa-float {
  position: fixed; bottom: 28px; left: 24px; z-index: 9999;
  width: 52px; height: 52px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,211,102,0.4), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  text-decoration: none;
}
.wa-float:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37,211,102,0.45), 0 4px 10px rgba(0,0,0,0.14);
}
.wa-float svg { width: 28px; height: 28px; }

/* ================================
   CHATBOT
================================ */
.chatbot-wrap {
  position: fixed; bottom: 24px; right: 24px; z-index: 9999;
  width: 56px; height: 56px;
}

/* Bubble */
.chatbot-bubble {
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 4px 16px rgba(37,99,235,0.35), 0 2px 6px rgba(0,0,0,0.12);
  transition: transform 0.2s, box-shadow 0.2s;
  position: relative; flex-shrink: 0;
}
.chatbot-bubble:hover {
  transform: translateY(-3px) scale(1.05);
  box-shadow: 0 8px 24px rgba(37,99,235,0.4), 0 4px 10px rgba(0,0,0,0.14);
}
.chatbot-bubble svg { width: 24px; height: 24px; }
.chatbot-notify {
  position: absolute; top: -2px; right: -2px;
  width: 14px; height: 14px; border-radius: 50%;
  background: #EF4444; border: 2px solid white;
  display: none;
}
.chatbot-notify.visible { display: block; }

/* Panel */
.chatbot-panel {
  position: absolute; bottom: calc(100% + 12px); right: 0;
  width: 340px; max-width: calc(100vw - 32px);
  background: white; border-radius: 20px;
  box-shadow: 0 16px 48px rgba(15,23,42,0.14), 0 4px 12px rgba(15,23,42,0.06);
  border: 1px solid var(--slate-100);
  overflow: hidden;
  transform: scale(0.9) translateY(12px);
  opacity: 0; pointer-events: none;
  transform-origin: bottom right;
  transition: transform 0.25s cubic-bezier(0.4,0,0.2,1), opacity 0.25s cubic-bezier(0.4,0,0.2,1);
}
.chatbot-panel.open {
  transform: scale(1) translateY(0);
  opacity: 1; pointer-events: all;
}

/* Header */
.chatbot-header {
  background: linear-gradient(135deg, var(--blue-700), var(--teal-600));
  padding: 16px 20px;
}
.chatbot-header-info { display: flex; align-items: center; gap: 12px; }
.chatbot-avatar {
  width: 38px; height: 38px; border-radius: 50%;
  background: rgba(255,255,255,0.2);
  display: flex; align-items: center; justify-content: center; flex-shrink: 0;
}
.chatbot-avatar svg { width: 20px; height: 20px; }
.chatbot-header-name { font-size: 0.9375rem; font-weight: 700; color: white; letter-spacing: -0.01em; }
.chatbot-header-status { display: flex; align-items: center; gap: 5px; font-size: 0.75rem; color: rgba(255,255,255,0.7); }
.chatbot-status-dot { width: 7px; height: 7px; border-radius: 50%; background: #4ADE80; flex-shrink: 0; }

/* Messages */
.chatbot-messages {
  height: 260px; overflow-y: auto; padding: 16px;
  display: flex; flex-direction: column; gap: 10px;
  scroll-behavior: smooth;
}
.chatbot-messages::-webkit-scrollbar { width: 4px; }
.chatbot-messages::-webkit-scrollbar-thumb { background: var(--slate-200); border-radius: 2px; }

.chat-msg {
  max-width: 82%; padding: 10px 14px;
  border-radius: 16px; font-size: 0.875rem; line-height: 1.55;
  animation: msgIn 0.25s cubic-bezier(0.4,0,0.2,1);
}
@keyframes msgIn {
  from { opacity: 0; transform: translateY(6px); }
  to   { opacity: 1; transform: translateY(0); }
}
.chat-msg.bot {
  background: var(--slate-100); color: var(--slate-800);
  border-bottom-left-radius: 4px; align-self: flex-start;
}
.chat-msg.user {
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: white; border-bottom-right-radius: 4px; align-self: flex-end;
}
.chat-msg.bot.typing {
  display: flex; gap: 4px; align-items: center; padding: 12px 16px;
}
.chat-typing-dot {
  width: 7px; height: 7px; border-radius: 50%; background: var(--slate-400);
  animation: typingBounce 1.2s ease-in-out infinite;
}
.chat-typing-dot:nth-child(2) { animation-delay: 0.15s; }
.chat-typing-dot:nth-child(3) { animation-delay: 0.3s; }
@keyframes typingBounce {
  0%,60%,100% { transform: translateY(0); }
  30% { transform: translateY(-5px); }
}

/* Input */
.chatbot-input-wrap {
  display: flex; align-items: center; gap: 8px;
  padding: 12px 14px; border-top: 1px solid var(--slate-100);
}
.chatbot-input {
  flex: 1; border: 1.5px solid var(--slate-200);
  border-radius: var(--radius-full); padding: 9px 14px;
  font-family: var(--font); font-size: 0.875rem; color: var(--slate-900);
  background: white; outline: none; transition: border-color 0.2s;
}
.chatbot-input:focus { border-color: var(--blue-400); }
.chatbot-input::placeholder { color: var(--slate-400); }
.chatbot-send {
  width: 36px; height: 36px; border-radius: 50%;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  border: none; cursor: pointer; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.15s, opacity 0.15s;
}
.chatbot-send:hover { transform: scale(1.08); }
.chatbot-send svg { width: 15px; height: 15px; margin-left: 1px; }

@media (max-width: 480px) {
  .chatbot-wrap { bottom: 16px; right: 16px; }
  .wa-float     { bottom: 16px; left: 16px; }
  .chatbot-panel { width: calc(100vw - 32px); }
}

/* ================================
   MISC
================================ */
:target { scroll-margin-top: calc(var(--nav-h) + 20px); }
input[type=number]::-webkit-outer-spin-button,
input[type=number]::-webkit-inner-spin-button { -webkit-appearance: none; }
input[type=number] { -moz-appearance: textfield; }

/* ================================
   RESPONSIVE
================================ */
@media (max-width: 1024px) {
  .hero-inner        { grid-template-columns: 1fr; gap: 0; padding-bottom: 64px; }
  .hero-visual       { display: none; }
  .diff-inner        { grid-template-columns: 1fr; gap: 48px; }
  .calc-inner        { grid-template-columns: 1fr; gap: 40px; }
  .calc-result       { position: static; }
  .calendly-inner    { grid-template-columns: 1fr; gap: 40px; }
  .contact-inner     { grid-template-columns: 1fr; gap: 40px; }
  .contact-info      { position: static; }
  .footer-top        { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  :root { --nav-h: 64px; }
  .section    { padding: 64px 0; }
  .section-lg { padding: 80px 0; }
  .container  { padding: 0 16px; }

  .nav-links  { display: none; }
  .nav-cta .btn:not(.btn-sm) { display: none; }
  .nav-mobile-btn { display: flex; }
  .mobile-menu    { display: block; }

  .stages-grid    { grid-template-columns: 1fr; }
  .plans-grid     { grid-template-columns: 1fr; }
  .how-steps      { grid-template-columns: 1fr; }
  .how-steps::before { display: none; }
  .form-row       { grid-template-columns: 1fr; }
  .footer-top     { grid-template-columns: 1fr; gap: 28px; }
  .footer-bottom  { flex-direction: column; text-align: center; }
  .calc-wrap      { padding: 28px 20px; }
  .hero-ctas      { flex-direction: column; align-items: flex-start; }
  .cta-actions    { flex-direction: column; align-items: center; }
  .contact-form-wrap { padding: 28px 20px; }
  .form-submit-row { flex-direction: column; align-items: stretch; }
  .form-privacy-note { max-width: 100%; }
}

@media (max-width: 480px) {
  .hero-trust { flex-wrap: wrap; gap: 14px; }
  .plans-toggle-btn { padding: 8px 14px; font-size: 0.8125rem; }
  .plans-save-badge { display: none; }
  .diff-stat-row { grid-template-columns: 1fr; }
}

/* ================================
   DIAGNÓSTICO SECTION
   ================================ */
.diagnostico-section { background: var(--bg-subtle); padding: 80px 0; }
.diag-card {
  background: white;
  border-radius: 28px;
  border: 1px solid var(--slate-200);
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.06), 0 4px 12px rgba(15, 23, 42, 0.03);
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 60px;
  padding: 56px;
  align-items: center;
}
.diag-content { display: flex; flex-direction: column; }
.diag-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: linear-gradient(135deg, rgba(37,99,235,0.08), rgba(20,184,166,0.08));
  border: 1px solid rgba(37,99,235,0.18);
  color: var(--blue-700);
  padding: 8px 14px; border-radius: 999px;
  font-size: 0.8125rem; font-weight: 600;
  align-self: flex-start;
  margin-bottom: 20px;
}
.diag-badge-dot {
  width: 8px; height: 8px; border-radius: 50%;
  background: var(--teal-500);
  box-shadow: 0 0 0 4px rgba(20,184,166,0.2);
  animation: pulseDot 2s ease-in-out infinite;
}
@keyframes pulseDot {
  0%, 100% { box-shadow: 0 0 0 4px rgba(20,184,166,0.15); }
  50%      { box-shadow: 0 0 0 8px rgba(20,184,166,0.05); }
}
.diag-title {
  font-size: clamp(1.75rem, 3vw, 2.35rem);
  font-weight: 700;
  letter-spacing: -0.03em;
  color: var(--slate-900);
  line-height: 1.15;
  margin-bottom: 16px;
}
.diag-subtitle {
  font-size: 1.0625rem;
  color: var(--slate-600);
  line-height: 1.65;
  margin-bottom: 28px;
}
.diag-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 32px;
}
.diag-features li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.9375rem;
  color: var(--slate-700);
}
.diag-features svg {
  width: 18px; height: 18px;
  color: white;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  padding: 4px;
  border-radius: 50%;
  flex-shrink: 0;
}
.diag-ctas { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; }
.diag-note {
  font-size: 0.8125rem;
  color: var(--slate-500);
}

.diag-visual {
  background: linear-gradient(160deg, var(--blue-50), var(--teal-50), white);
  border-radius: 22px;
  padding: 40px 32px;
  border: 1px solid var(--slate-100);
  position: relative;
  overflow: hidden;
}
.diag-visual::before {
  content: '';
  position: absolute;
  top: -40px; right: -40px;
  width: 180px; height: 180px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(37,99,235,0.12), transparent 65%);
  pointer-events: none;
}
.diag-steps { display: flex; flex-direction: column; gap: 6px; position: relative; z-index: 1; }
.diag-step {
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 14px;
  padding: 16px 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}
.diag-step-num {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: white;
  font-weight: 700;
  font-size: 0.9375rem;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.diag-step-text { display: flex; flex-direction: column; gap: 2px; }
.diag-step-text strong { font-size: 0.9375rem; font-weight: 600; color: var(--slate-900); }
.diag-step-text span { font-size: 0.8125rem; color: var(--slate-500); line-height: 1.5; }
.diag-step-connector {
  width: 2px; height: 18px;
  background: linear-gradient(to bottom, var(--slate-200), transparent);
  margin-left: 34px;
}

@media (max-width: 980px) {
  .diag-card { grid-template-columns: 1fr; gap: 36px; padding: 40px 28px; }
}
@media (max-width: 480px) {
  .diag-card { padding: 32px 20px; border-radius: 20px; }
  .diagnostico-section { padding: 56px 0; }
}

/* ================================
   COOKIE BANNER
   ================================ */
.cookie-banner {
  position: fixed;
  bottom: 20px; left: 20px; right: 20px;
  max-width: 560px;
  margin: 0 auto;
  background: white;
  border: 1px solid var(--slate-200);
  border-radius: 18px;
  box-shadow: 0 16px 48px rgba(15, 23, 42, 0.18), 0 4px 14px rgba(15, 23, 42, 0.08);
  padding: 20px 22px;
  z-index: 10000;
  display: none;
  animation: cookieSlideUp 0.4s cubic-bezier(0.22, 1, 0.36, 1);
}
.cookie-banner.visible { display: block; }
@keyframes cookieSlideUp {
  from { transform: translateY(20px); opacity: 0; }
  to   { transform: translateY(0);     opacity: 1; }
}
.cookie-banner-inner {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.cookie-banner-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.cookie-banner-icon {
  width: 32px; height: 32px;
  border-radius: 10px;
  background: linear-gradient(135deg, var(--blue-600), var(--teal-500));
  color: white;
  display: flex; align-items: center; justify-content: center;
  flex-shrink: 0;
}
.cookie-banner-icon svg { width: 16px; height: 16px; }
.cookie-banner-title { font-size: 0.9375rem; font-weight: 700; color: var(--slate-900); letter-spacing: -0.01em; }
.cookie-banner-text { font-size: 0.8125rem; color: var(--slate-600); line-height: 1.6; }
.cookie-banner-text a { color: var(--blue-700); text-decoration: underline; }
.cookie-banner-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.cookie-banner-actions .btn {
  flex: 1;
  min-width: 120px;
  font-size: 0.8125rem;
  padding: 10px 16px;
}
@media (max-width: 520px) {
  .cookie-banner { left: 12px; right: 12px; bottom: 12px; padding: 18px; }
  .cookie-banner-actions .btn { min-width: 100%; }
}

/* ================================
   HONEYPOT ANTI-BOT
   Oculto para humanos, visible al DOM para bots.
================================ */
.hp-field {
  position: absolute !important;
  left: -9999px !important;
  top: auto;
  width: 1px;
  height: 1px;
  overflow: hidden;
  opacity: 0;
}

/* ================================
   EXIT-INTENT MODAL
================================ */
.exit-modal {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.exit-modal.visible {
  display: flex;
  animation: exitFadeIn 0.25s ease-out;
}
.exit-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
}
.exit-modal-card {
  position: relative;
  background: #fff;
  border-radius: 24px;
  padding: 44px 40px 36px;
  max-width: 460px;
  width: 100%;
  box-shadow: 0 30px 80px -20px rgba(15, 23, 42, 0.3);
  text-align: center;
  animation: exitSlideUp 0.35s cubic-bezier(0.16, 1, 0.3, 1);
}
.exit-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--slate-50);
  border: none;
  color: var(--slate-500);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}
.exit-modal-close:hover {
  background: var(--slate-100);
  color: var(--slate-800);
}
.exit-modal-close svg { width: 18px; height: 18px; }
.exit-modal-icon {
  width: 64px;
  height: 64px;
  margin: 0 auto 20px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-500), var(--brand-700));
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  box-shadow: 0 10px 30px -10px rgba(37, 99, 235, 0.45);
}
.exit-modal-icon svg { width: 30px; height: 30px; }
.exit-modal-title {
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--slate-900);
  margin-bottom: 12px;
}
.exit-modal-text {
  font-size: 1rem;
  line-height: 1.6;
  color: var(--slate-600);
  margin-bottom: 28px;
}
.exit-modal-text strong { color: var(--slate-900); font-weight: 600; }
.exit-modal-actions {
  display: flex;
  gap: 10px;
  justify-content: center;
  flex-wrap: wrap;
}
.exit-modal-actions .btn { flex: 1; min-width: 160px; justify-content: center; }

@keyframes exitFadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}
@keyframes exitSlideUp {
  from { opacity: 0; transform: translateY(20px) scale(0.96); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@media (max-width: 480px) {
  .exit-modal-card { padding: 36px 26px 28px; border-radius: 20px; }
  .exit-modal-title { font-size: 1.25rem; }
  .exit-modal-actions { flex-direction: column; }
  .exit-modal-actions .btn { width: 100%; }
}
