/* ================================================
   NOVA E-SALUD — ESTILOS PRINCIPALES
   styles.css
   Paleta: #1a4e9a (azul) | #00a451 (verde) | #fff
================================================ */

/* === VARIABLES CSS === */
:root {
  --blue: #1a4e9a;
  --blue-dark: #123a75;
  --blue-light: #2563c5;
  --blue-pale: #e8f0fb;
  --green: #00a451;
  --green-dark: #007a3d;
  --green-light: #00c060;
  --green-pale: #e6f7ef;
  --white: #ffffff;
  --gray-100: #f8f9fa;
  --gray-200: #e9ecef;
  --gray-500: #6c757d;
  --gray-700: #495057;
  --gray-900: #1a1d23;
  --shadow-sm: 0 2px 8px rgba(26,78,154,0.08);
  --shadow-md: 0 8px 24px rgba(26,78,154,0.12);
  --shadow-lg: 0 20px 60px rgba(26,78,154,0.16);
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --font-heading: 'Plus Jakarta Sans', sans-serif;
  --font-body: 'DM Sans', sans-serif;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* === RESET & BASE === */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; scroll-padding-top: 70px; }
body {
  font-family: var(--font-body);
  color: var(--gray-900);
  background: var(--white);
  line-height: 1.6;
  overflow-x: hidden;
}
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; line-height: 1.2; }
a { text-decoration: none; color: inherit; transition: var(--transition); }
img { max-width: 100%; height: auto; }

/* === UTILITY === */
.section-padding { padding: 90px 0; }
.text-highlight {
  background: linear-gradient(135deg, var(--blue) 0%, var(--green) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.section-label span {
  display: inline-block;
  background: var(--blue-pale);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 6px 16px;
  border-radius: 50px;
  border: 1px solid rgba(26,78,154,0.15);
}
.section-title { font-size: clamp(1.8rem, 3.5vw, 2.6rem); color: var(--gray-900); }
.section-subtitle { font-size: 1.05rem; color: var(--gray-500); max-width: 560px; margin: 0 auto; }
.section-desc { font-size: 1rem; color: var(--gray-700); }

/* === NAVBAR === */
#mainNavbar {
  background: transparent;
  padding: 18px 0;
  transition: var(--transition);
}
#mainNavbar.scrolled {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: var(--shadow-sm);
  padding: 10px 0;
}
.logo-icon {
  width: 38px; height: 38px;
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.1rem;
}
.logo-text { display: flex; flex-direction: column; line-height: 1; }
.logo-nova { font-family: var(--font-heading); font-weight: 800; color: var(--blue); font-size: 1.15rem; }
.logo-esalud { font-family: var(--font-heading); font-weight: 500; color: var(--green); font-size: 0.75rem; letter-spacing: 0.06em; }
.nav-link {
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--gray-700) !important;
  padding: 6px 10px !important;
  border-radius: var(--radius-sm);
  position: relative;
}
.nav-link::after {
  content: '';
  position: absolute;
  bottom: 2px; left: 50%; right: 50%;
  height: 2px;
  background: var(--blue);
  border-radius: 2px;
  transition: var(--transition);
}
.nav-link:hover::after, .nav-link.active::after { left: 10%; right: 10%; }
.nav-link:hover { color: var(--blue) !important; }
#mainNavbar.scrolled .navbar-brand .logo-nova { color: var(--blue); }
.navbar-toggler { border: none; padding: 6px; }
.toggler-icon { font-size: 1.5rem; color: var(--blue); }
.btn-outline-primary {
  border-color: var(--blue); color: var(--blue);
  font-size: 0.85rem; font-weight: 600; border-radius: 8px;
}
.btn-outline-primary:hover { background: var(--blue); color: white; border-color: var(--blue); }
.btn-primary {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
  border: none; color: white;
  font-size: 0.85rem; font-weight: 600; border-radius: 8px;
  transition: var(--transition);
}
.btn-primary:hover { background: linear-gradient(135deg, var(--blue-dark), var(--blue)); transform: translateY(-1px); box-shadow: var(--shadow-md); color: white; }

/* ================================================
   HERO SECTION
================================================ */
.hero-section {
  background: linear-gradient(145deg, #0d2e5e 0%, #1a4e9a 40%, #1e5bb5 70%, #0e7a3e 100%);
  min-height: 100vh;
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-bg-shapes { position: absolute; inset: 0; pointer-events: none; }
.shape {
  position: absolute;
  border-radius: 50%;
  opacity: 0.07;
  background: white;
}
.shape-1 { width: 600px; height: 600px; top: -200px; right: -200px; }
.shape-2 { width: 400px; height: 400px; bottom: -100px; left: -100px; }
.shape-3 { width: 200px; height: 200px; top: 40%; left: 30%; }
.hero-grid-overlay {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(255,255,255,0.04) 1px, transparent 1px),
                    linear-gradient(90deg, rgba(255,255,255,0.04) 1px, transparent 1px);
  background-size: 50px 50px;
}
.hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.12);
  border: 1px solid rgba(255,255,255,0.2);
  color: rgba(255,255,255,0.9);
  font-size: 0.78rem; font-weight: 500;
  padding: 8px 16px; border-radius: 50px;
  backdrop-filter: blur(8px);
}
.hero-title {
  font-size: clamp(2rem, 4.5vw, 3.2rem);
  color: white;
  font-weight: 800;
  line-height: 1.15;
  margin-bottom: 1.2rem;
}
.hero-highlight {
  background: linear-gradient(90deg, #00e080, #00c4ff);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}
.hero-description { color: rgba(255,255,255,0.82); font-size: 1.05rem; line-height: 1.7; }
.hero-features { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.hero-feature-item { color: rgba(255,255,255,0.88); font-size: 0.88rem; font-weight: 500; }
.btn-hero-primary {
  background: linear-gradient(135deg, var(--green), var(--green-light));
  color: white; font-weight: 700;
  padding: 14px 28px; border-radius: 12px;
  border: none; font-size: 0.95rem;
  box-shadow: 0 8px 25px rgba(0,164,81,0.35);
  transition: var(--transition);
}
.btn-hero-primary:hover { transform: translateY(-3px); box-shadow: 0 12px 35px rgba(0,164,81,0.45); color: white; }
.btn-hero-outline {
  background: rgba(255,255,255,0.1);
  color: white; font-weight: 600;
  padding: 14px 28px; border-radius: 12px;
  border: 1.5px solid rgba(255,255,255,0.3);
  font-size: 0.95rem;
  backdrop-filter: blur(8px);
  transition: var(--transition);
}
.btn-hero-outline:hover { background: rgba(255,255,255,0.2); color: white; transform: translateY(-2px); }
.trust-label { color: rgba(255,255,255,0.75); font-size: 0.88rem; margin-bottom: 8px; }
.trust-avatars { display: flex; align-items: center; gap: 16px; }
.avatar-group { display: flex; }
.avatar { font-size: 1.4rem; margin-right: -5px; filter: drop-shadow(0 2px 4px rgba(0,0,0,0.3)); }
.trust-stars { display: flex; align-items: center; gap: 4px; color: #ffc107; font-size: 0.9rem; }
.trust-stars span { color: white; margin-left: 4px; font-weight: 600; }

/* Dashboard Visual */
.hero-visual { position: relative; }
.hero-dashboard {
  background: rgba(255,255,255,0.95);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 30px 80px rgba(0,0,0,0.3);
  border: 1px solid rgba(255,255,255,0.3);
}
.dashboard-header {
  background: var(--gray-900);
  padding: 12px 20px;
  display: flex; align-items: center; gap: 12px;
}
.dash-dots { display: flex; gap: 6px; }
.dot { width: 12px; height: 12px; border-radius: 50%; }
.dot.red { background: #ff5f57; }
.dot.yellow { background: #febc2e; }
.dot.green { background: #28c840; }
.dash-title { color: rgba(255,255,255,0.6); font-size: 0.78rem; font-family: monospace; }
.dashboard-body { padding: 20px; background: #f8f9fa; }
.dash-stats { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 15px; }
.dash-stat-card {
  background: white;
  border-radius: 12px;
  padding: 12px;
  display: flex; align-items: center; gap: 8px;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--gray-200);
}
.dash-stat-card i { font-size: 1.3rem; color: var(--blue); }
.dash-stat-card.success i { color: var(--green); }
.stat-number { display: block; font-weight: 800; font-size: 0.95rem; color: var(--gray-900); font-family: var(--font-heading); }
.stat-label { display: block; font-size: 0.68rem; color: var(--gray-500); }
.dash-agenda { background: white; border-radius: 12px; padding: 14px; margin-bottom: 12px; box-shadow: var(--shadow-sm); }
.agenda-title { font-size: 0.8rem; font-weight: 700; color: var(--gray-700); margin-bottom: 10px; font-family: var(--font-heading); }
.agenda-item {
  display: flex; align-items: center; gap: 8px;
  padding: 6px 8px; border-radius: 8px;
  font-size: 0.75rem; margin-bottom: 4px;
  transition: var(--transition);
}
.agenda-item.active { background: var(--blue-pale); }
.time { font-weight: 700; color: var(--blue); min-width: 35px; }
.patient { flex: 1; color: var(--gray-700); }
.badge-status { font-size: 0.65rem; padding: 2px 8px; border-radius: 20px; font-weight: 600; white-space: nowrap; }
.badge-status.confirmed { background: var(--green-pale); color: var(--green-dark); }
.badge-status.active-now { background: var(--blue-pale); color: var(--blue); }
.badge-status.pending { background: #fff3cd; color: #856404; }
.dash-notify { display: flex; flex-direction: column; gap: 6px; }
.notify-item { display: flex; align-items: center; gap: 8px; font-size: 0.73rem; color: var(--gray-700); background: white; padding: 8px 10px; border-radius: 8px; box-shadow: var(--shadow-sm); }
.floating-badge {
  position: absolute;
  background: white;
  border-radius: 50px;
  padding: 8px 16px;
  font-size: 0.82rem; font-weight: 600;
  box-shadow: var(--shadow-lg);
  display: flex; align-items: center; gap: 6px;
  color: var(--gray-900);
  border: 1px solid var(--gray-200);
}
.badge-top { top: -15px; right: -20px; }
.badge-bottom { bottom: 30px; left: -30px; }

/* Scroll Indicator */
.scroll-indicator {
  position: absolute; bottom: 30px; left: 50%;
  transform: translateX(-50%);
  display: flex; flex-direction: column; align-items: center; gap: 6px;
  color: rgba(255,255,255,0.5); font-size: 0.75rem;
}
.scroll-mouse {
  width: 22px; height: 36px;
  border: 2px solid rgba(255,255,255,0.3);
  border-radius: 12px;
  display: flex; justify-content: center; padding-top: 6px;
}
.scroll-wheel {
  width: 4px; height: 8px;
  background: rgba(255,255,255,0.5);
  border-radius: 2px;
  animation: scrollWheel 1.8s infinite;
}
@keyframes scrollWheel {
  0% { transform: translateY(0); opacity: 1; }
  100% { transform: translateY(10px); opacity: 0; }
}

/* Menú link Clientes especial */
.nav-link-clientes {
  color: var(--green) !important;
  font-weight: 700 !important;
}
.nav-link-clientes:hover {
  background: var(--green-pale) !important;
  color: var(--green-dark) !important;
  border-radius: 8px;
}
