:root {
  --primary: #2563EB;
  --primary-dark: #1E3A8A;
  --light-bg: #F8FAFC;
  --dark: #0F172A;
  --muted: #64748B;
  --border: #E2E8F0;
  --white: #FFFFFF;
  --success: #16A34A;
  --gradient: linear-gradient(135deg, #2563EB 0%, #1E3A8A 100%);
  --soft-gradient: linear-gradient(135deg, rgba(37,99,235,.12), rgba(30,58,138,.04));
  --shadow-sm: 0 10px 30px rgba(15,23,42,.08);
  --shadow-md: 0 24px 70px rgba(15,23,42,.14);
  --radius: 24px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  font-family: "Inter", sans-serif;
  color: var(--dark);
  background: var(--white);
  overflow-x: hidden;
}
a { text-decoration: none; }
.section-padding { padding: 110px 0; }
.text-muted-custom { color: var(--muted); }
.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border: 1px solid rgba(37,99,235,.16);
  border-radius: 999px;
  color: var(--primary);
  background: rgba(37,99,235,.06);
  font-weight: 700;
  font-size: .88rem;
  margin-bottom: 18px;
}
.section-title {
  font-size: clamp(2rem, 4vw, 3.3rem);
  font-weight: 900;
  letter-spacing: -0.055em;
  line-height: 1.05;
  margin-bottom: 18px;
}
.section-subtitle {
  color: var(--muted);
  font-size: 1.08rem;
  line-height: 1.75;
  max-width: 720px;
  margin: 0 auto;
}
.navbar {
  padding: 18px 0;
  transition: .35s ease;
  background: rgba(255,255,255,.72);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(226,232,240,.7);
}
.navbar.scrolled {
  padding: 12px 0;
  box-shadow: 0 10px 35px rgba(15,23,42,.08);
  background: rgba(255,255,255,.88);
}
.navbar-brand {
  font-weight: 900;
  color: var(--primary-dark);
  letter-spacing: -0.04em;
  font-size: 1.45rem;
}
.brand-dot {
  width: 12px;
  height: 12px;
  display: inline-block;
  border-radius: 50%;
  background: var(--primary);
  margin-right: 8px;
  box-shadow: 0 0 0 7px rgba(37,99,235,.12);
}
.nav-link {
  color: #334155;
  font-weight: 600;
  margin: 0 9px;
  transition: .25s ease;
}
.nav-link:hover { color: var(--primary); }
.btn-primary-custom {
  background: var(--gradient);
  color: white;
  font-weight: 800;
  border: 0;
  border-radius: 999px;
  padding: 14px 24px;
  box-shadow: 0 14px 35px rgba(37,99,235,.25);
  transition: .28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-primary-custom:hover {
  color: white;
  transform: translateY(-3px);
  box-shadow: 0 22px 50px rgba(37,99,235,.34);
}
.btn-secondary-custom {
  color: var(--primary-dark);
  background: white;
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 800;
  transition: .28s ease;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
}
.btn-secondary-custom:hover {
  color: var(--primary);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}
.hero {
  position: relative;
  padding: 170px 0 80px;
  background: radial-gradient(circle at 15% 10%, rgba(37,99,235,.18), transparent 30%), radial-gradient(circle at 85% 20%, rgba(30,58,138,.15), transparent 32%), linear-gradient(180deg, #F8FAFC 0%, #FFFFFF 78%);
  overflow: hidden;
}
.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(37,99,235,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(37,99,235,.05) 1px, transparent 1px);
  background-size: 48px 48px;
  mask-image: linear-gradient(to bottom, black, transparent 80%);
  pointer-events: none;
}
.hero-content { position: relative; z-index: 2; }
.hero h1 {
  font-size: clamp(2.8rem, 6vw, 5.7rem);
  line-height: .96;
  letter-spacing: -0.075em;
  font-weight: 900;
  margin-bottom: 26px;
}
.hero h1 span {
  background: var(--gradient);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}
.hero p {
  color: var(--muted);
  font-size: 1.18rem;
  line-height: 1.75;
  max-width: 610px;
  margin-bottom: 32px;
}
.trust-list { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 28px; }
.trust-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255,255,255,.85);
  border: 1px solid rgba(226,232,240,.9);
  color: #334155;
  font-weight: 700;
  font-size: .92rem;
  box-shadow: 0 10px 25px rgba(15,23,42,.04);
}
.trust-pill i { color: var(--success); }
.dashboard-wrap { position: relative; z-index: 2; }
.dashboard-shell {
  background: rgba(255,255,255,.82);
  border: 1px solid rgba(226,232,240,.9);
  border-radius: 34px;
  box-shadow: var(--shadow-md);
  padding: 18px;
  backdrop-filter: blur(20px);
  transform: perspective(1200px) rotateY(-7deg) rotateX(4deg);
  transition: .45s ease;
}
.dashboard-shell:hover { transform: perspective(1200px) rotateY(-3deg) rotateX(2deg) translateY(-6px); }
.dashboard-top {
  height: 54px;
  border-radius: 22px 22px 0 0;
  background: #0F172A;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  color: white;
}
.window-dots span {
  display: inline-block;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  margin-right: 6px;
  background: rgba(255,255,255,.35);
}
.dashboard-body {
  background: linear-gradient(180deg, #FFFFFF, #F8FAFC);
  border: 1px solid var(--border);
  border-top: none;
  border-radius: 0 0 24px 24px;
  padding: 18px;
}
.metric-card, .chart-card, .stat-card, .feature-card, .testimonial-card, .comparison-card {
  background: white;
  border: 1px solid var(--border);
  box-shadow: 0 10px 30px rgba(15,23,42,.05);
}
.metric-card { border-radius: 22px; padding: 18px; height: 100%; }
.metric-icon, .mini-app-icon {
  display: grid;
  place-items: center;
  background: rgba(37,99,235,.1);
  color: var(--primary);
}
.metric-icon { width: 42px; height: 42px; border-radius: 14px; margin-bottom: 12px; }
.metric-value { font-size: 1.75rem; font-weight: 900; letter-spacing: -0.04em; }
.metric-label { color: var(--muted); font-size: .86rem; font-weight: 700; }
.chart-card { border-radius: 24px; padding: 18px; margin-top: 16px; }
.chart-bars { height: 145px; display: flex; align-items: end; gap: 12px; padding-top: 22px; }
.bar {
  flex: 1;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #60A5FA, #2563EB);
  min-height: 34px;
  animation: growBar 1.4s ease forwards;
  transform-origin: bottom;
}
.bar:nth-child(1) { height: 45%; }
.bar:nth-child(2) { height: 70%; }
.bar:nth-child(3) { height: 55%; }
.bar:nth-child(4) { height: 88%; }
.bar:nth-child(5) { height: 62%; }
.bar:nth-child(6) { height: 96%; }
@keyframes growBar { from { transform: scaleY(.25); opacity: .4; } to { transform: scaleY(1); opacity: 1; } }
.patient-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px;
  border-radius: 16px;
  background: #F8FAFC;
  margin-bottom: 10px;
}
.avatar-mini {
  width: 34px; height: 34px; border-radius: 50%; background: var(--soft-gradient); display: grid; place-items: center; color: var(--primary);
}
.status-chip { font-size: .72rem; font-weight: 800; color: var(--success); background: rgba(22,163,74,.1); border-radius: 999px; padding: 5px 9px; }
.mini-stats { margin-top: 60px; position: relative; z-index: 2; }
.stat-card { border-radius: var(--radius); padding: 26px; height: 100%; transition: .28s ease; }
.stat-card:hover, .testimonial-card:hover, .mini-app:hover { transform: translateY(-8px); box-shadow: var(--shadow-md); }
.stat-card h3 { font-size: 2.25rem; font-weight: 900; letter-spacing: -0.055em; color: var(--primary); margin-bottom: 4px; }
.stat-card p { margin: 0; color: var(--muted); font-weight: 700; }
.feature-card { height: 100%; border-radius: var(--radius); padding: 30px; transition: .32s ease; position: relative; overflow: hidden; }
.feature-card::after { content: ""; position: absolute; inset: auto -40px -60px auto; width: 150px; height: 150px; background: rgba(37,99,235,.08); border-radius: 50%; transition: .32s ease; }
.feature-card:hover { transform: translateY(-10px); box-shadow: var(--shadow-md); border-color: rgba(37,99,235,.3); }
.feature-card:hover::after { transform: scale(1.4); background: rgba(37,99,235,.12); }
.feature-icon { width: 56px; height: 56px; display: grid; place-items: center; border-radius: 18px; background: var(--gradient); color: white; font-size: 1.25rem; margin-bottom: 22px; box-shadow: 0 14px 30px rgba(37,99,235,.25); }
.feature-card h4 { font-weight: 900; letter-spacing: -0.03em; margin-bottom: 10px; }
.feature-card p { color: var(--muted); line-height: 1.7; margin: 0; }
.modules-section { background: var(--light-bg); position: relative; overflow: hidden; }
.modules-dashboard { background: #0F172A; border-radius: 34px; padding: 22px; box-shadow: var(--shadow-md); border: 1px solid rgba(255,255,255,.08); }
.module-sidebar { background: rgba(255,255,255,.05); border: 1px solid rgba(255,255,255,.08); border-radius: 24px; padding: 18px; height: 100%; }
.module-menu-item { color: rgba(255,255,255,.72); display: flex; gap: 10px; align-items: center; padding: 12px 14px; border-radius: 14px; font-weight: 700; margin-bottom: 8px; }
.module-menu-item.active, .module-menu-item:hover { background: rgba(37,99,235,.22); color: white; }
.mini-app { background: white; border-radius: 24px; padding: 22px; height: 100%; min-height: 170px; box-shadow: 0 14px 40px rgba(0,0,0,.12); transition: .28s ease; }
.mini-app-icon { width: 46px; height: 46px; border-radius: 16px; margin-bottom: 14px; }
.progress-soft { height: 8px; background: #E2E8F0; border-radius: 999px; overflow: hidden; margin-top: 16px; }
.progress-soft span { display: block; height: 100%; border-radius: 999px; background: var(--gradient); }
.comparison-card { border-radius: 30px; padding: 34px; height: 100%; }
.comparison-card.highlight { background: linear-gradient(180deg, #FFFFFF, #EFF6FF); border-color: rgba(37,99,235,.28); box-shadow: var(--shadow-md); position: relative; }
.comparison-card h3 { font-weight: 900; letter-spacing: -0.04em; margin-bottom: 24px; }
.comparison-list { list-style: none; padding: 0; margin: 0; }
.comparison-list li { display: flex; gap: 12px; align-items: flex-start; padding: 13px 0; border-bottom: 1px solid #EEF2F7; color: #475569; font-weight: 650; }
.comparison-list li:last-child { border-bottom: 0; }
.comparison-list .bad { color: #EF4444; }
.comparison-list .good { color: var(--success); }
.vs-badge { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 64px; height: 64px; border-radius: 50%; background: var(--gradient); color: white; display: grid; place-items: center; font-weight: 900; box-shadow: 0 18px 40px rgba(37,99,235,.3); z-index: 3; }
.testimonial-card { border-radius: var(--radius); padding: 30px; height: 100%; transition: .28s ease; }
.testimonial-avatar { width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; color: white; background: var(--gradient); font-weight: 900; margin-bottom: 16px; box-shadow: 0 14px 30px rgba(37,99,235,.22); }
.stars { color: #F59E0B; margin-bottom: 14px; letter-spacing: 2px; }
.testimonial-card p { color: #475569; line-height: 1.75; font-weight: 550; }
.testimonial-card h5 { font-weight: 900; letter-spacing: -0.03em; margin: 0; }
.big-stats { background: radial-gradient(circle at top left, rgba(37,99,235,.18), transparent 32%), #0F172A; color: white; }
.big-stat-item { text-align: center; padding: 30px; }
.big-stat-number { font-size: clamp(3rem, 6vw, 5.5rem); font-weight: 900; letter-spacing: -0.07em; margin-bottom: 8px; }
.big-stat-item p { color: rgba(255,255,255,.74); font-size: 1.05rem; font-weight: 700; margin: 0; }
.cta-section { background: var(--gradient); color: white; position: relative; overflow: hidden; }
.cta-section::before { content: ""; position: absolute; width: 520px; height: 520px; border-radius: 50%; background: rgba(255,255,255,.12); top: -220px; right: -160px; }
.cta-section::after { content: ""; position: absolute; width: 380px; height: 380px; border-radius: 50%; background: rgba(255,255,255,.08); bottom: -190px; left: -120px; }
.cta-content { position: relative; z-index: 2; }
.cta-card { background: rgba(255,255,255,.96); color: var(--dark); border-radius: 32px; padding: 36px; box-shadow: 0 30px 90px rgba(0,0,0,.22); border: 1px solid rgba(255,255,255,.45); }
.form-label { font-weight: 800; color: #334155; font-size: .9rem; }
.input-group-custom { position: relative; margin-bottom: 18px; }
.input-group-custom i { position: absolute; left: 17px; top: 50%; transform: translateY(-50%); color: var(--primary); z-index: 2; }
.form-control, .form-select { border-radius: 16px; padding: 15px 16px 15px 46px; border: 1px solid #DCE4EF; font-weight: 600; color: var(--dark); transition: .25s ease; background: #F8FAFC; }
.form-control:focus, .form-select:focus { border-color: var(--primary); box-shadow: 0 0 0 .25rem rgba(37,99,235,.12); background: white; }
textarea.form-control { min-height: 116px; padding-left: 16px; }
.btn-form { width: 100%; border: 0; border-radius: 18px; padding: 16px 20px; background: var(--gradient); color: white; font-weight: 900; box-shadow: 0 18px 40px rgba(37,99,235,.26); transition: .28s ease; }
.btn-form:hover { transform: translateY(-3px); box-shadow: 0 24px 55px rgba(37,99,235,.34); }
footer { background: #020617; color: white; padding: 70px 0 30px; }
footer p { color: rgba(255,255,255,.64); }
.footer-link { color: rgba(255,255,255,.68); font-weight: 650; display: inline-block; margin: 0 12px 12px 0; transition: .25s ease; }
.footer-link:hover { color: white; }
.social-icon { width: 42px; height: 42px; border-radius: 50%; display: inline-grid; place-items: center; background: rgba(255,255,255,.08); color: white; margin-right: 8px; transition: .25s ease; }
.social-icon:hover { background: var(--primary); transform: translateY(-4px); color: white; }
.fade-in { opacity: 0; transform: translateY(24px); transition: .75s ease; }
.fade-in.visible { opacity: 1; transform: translateY(0); }
.floating { animation: float 4.2s ease-in-out infinite; }
@keyframes float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-12px); } }
.alert-floating { position: fixed; right: 20px; bottom: 20px; z-index: 9999; border-radius: 18px; box-shadow: var(--shadow-md); }
.admin-body { background: #F8FAFC; }
.admin-shell { min-height: 100vh; }
.admin-sidebar { background: #0F172A; color: white; min-height: 100vh; padding: 26px 18px; position: sticky; top: 0; }
.admin-link { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.7); padding: 13px 14px; border-radius: 14px; font-weight: 700; margin-bottom: 8px; }
.admin-link:hover, .admin-link.active { background: rgba(37,99,235,.25); color: white; }
.admin-card { background: white; border: 1px solid var(--border); border-radius: 24px; box-shadow: var(--shadow-sm); padding: 24px; }
.table { vertical-align: middle; }
.badge-state { border-radius: 999px; padding: 7px 10px; font-weight: 800; }
.badge-pendiente { background: rgba(245,158,11,.12); color: #B45309; }
.badge-contactado { background: rgba(22,163,74,.12); color: #15803D; }
.badge-descartado { background: rgba(239,68,68,.12); color: #B91C1C; }
@media (max-width: 991px) {
  .hero { padding-top: 145px; }
  .dashboard-shell, .dashboard-shell:hover { transform: none; margin-top: 45px; }
  .vs-badge { position: static; transform: none; margin: 24px auto; }
  .section-padding { padding: 80px 0; }
  .admin-sidebar { min-height: auto; position: static; }
}
@media (max-width: 575px) {
  .hero .d-flex { flex-direction: column; align-items: stretch !important; }
  .btn-primary-custom, .btn-secondary-custom { width: 100%; }
  .cta-card { padding: 24px; }
  .modules-dashboard { padding: 14px; }
}
