/* ==========================================================================
   DOXMED HEALTH TECH — OFFICIAL LANDING PAGE STYLES
   Design System: Light Clinical Theme, Crisp HealthTech SaaS, DoxMed Ocean Blue (#0e5395) & Mint ECG (#32b897)
   Author: DoxMed / Dox Technology
   ========================================================================== */

/* --- Google Fonts Import --- */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@400;500;600;700;800;900&family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&display=swap');

/* --- Root Variables & Design Tokens (Light Clinical Theme) --- */
:root {
  /* Background Palette (Clean Clinical Light) */
  --bg-body: #f8fafc;       /* slate-50 */
  --bg-surface: #ffffff;    /* pure white */
  --bg-card: #ffffff;
  --bg-card-hover: #ffffff;
  --bg-subtle: #f1f5f9;     /* slate-100 */
  --bg-subtle-hover: #e2e8f0;

  /* Primary Brand: DoxMed Ocean Blue */
  --primary: #0e5395;
  --primary-dark: #093c6d;
  --primary-light: #2b7bc7;
  --primary-highlight: #0284c7;
  --primary-subtle: rgba(14, 83, 149, 0.08);
  --primary-glow: rgba(14, 83, 149, 0.18);

  /* Secondary Brand: DoxMed Mint ECG */
  --secondary: #32b897;
  --secondary-dark: #248f74;
  --secondary-light: #44cfac;
  --secondary-subtle: rgba(50, 184, 151, 0.12);
  --secondary-glow: rgba(50, 184, 151, 0.2);

  /* Accents & Statuses */
  --accent-emerald: #10b981;
  --accent-amber: #f59e0b;
  --accent-rose: #ef4444;

  /* Typography Colors (Crisp Slate) */
  --text-main: #0f172a;     /* slate-900 */
  --text-body: #334155;     /* slate-700 */
  --text-muted: #64748b;    /* slate-500 */
  --text-dim: #94a3b8;      /* slate-400 */
  --text-white: #ffffff;

  /* Clinical Borders */
  --border-glass: #e2e8f0;  /* slate-200 */
  --border-glass-highlight: #cbd5e1; /* slate-300 */
  --border-primary: rgba(14, 83, 149, 0.3);
  --border-secondary: rgba(50, 184, 151, 0.35);

  /* Fonts */
  --font-heading: 'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
  --font-body: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;

  /* Radii */
  --radius-sm: 8px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Shadows (Soft Clinical SaaS) */
  --shadow-sm: 0 1px 3px 0 rgba(0, 0, 0, 0.04), 0 1px 2px 0 rgba(0, 0, 0, 0.02);
  --shadow-md: 0 4px 16px -2px rgba(14, 83, 149, 0.06), 0 2px 6px -1px rgba(0, 0, 0, 0.03);
  --shadow-lg: 0 12px 30px -4px rgba(14, 83, 149, 0.08), 0 4px 12px -2px rgba(0, 0, 0, 0.04);
  --shadow-xl: 0 20px 40px -6px rgba(14, 83, 149, 0.12), 0 8px 20px -4px rgba(0, 0, 0, 0.05);

  /* Transitions */
  --transition-fast: 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-normal: 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  --transition-slow: 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* --- Base & Reset --- */
*, *::before, *::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
}

body {
  font-family: var(--font-body);
  background-color: var(--bg-body);
  color: var(--text-body);
  line-height: 1.6;
  overflow-x: hidden;
  position: relative;
  -webkit-font-smoothing: antialiased;
}

/* Ambient Subtle Glow Background (Light Theme) */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 12% 10%, rgba(14, 83, 149, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 88% 30%, rgba(50, 184, 151, 0.045) 0%, transparent 40%),
    radial-gradient(circle at 50% 80%, rgba(14, 83, 149, 0.03) 0%, transparent 50%);
  pointer-events: none;
  z-index: -1;
}

/* Subtle Medical Grid */
.bg-grid {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-size: 48px 48px;
  background-image: 
    linear-gradient(to right, rgba(14, 83, 149, 0.028) 1px, transparent 1px),
    linear-gradient(to bottom, rgba(14, 83, 149, 0.028) 1px, transparent 1px);
  pointer-events: none;
  z-index: 0;
}

/* Typography Utility */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-heading);
  color: var(--text-main);
  line-height: 1.2;
  font-weight: 700;
  letter-spacing: -0.02em;
}

p {
  color: var(--text-body);
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--transition-fast);
}

/* Container */
.container {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 1.5rem;
  position: relative;
  z-index: 1;
}

/* --- Section Styling --- */
section {
  padding: 5.5rem 0;
  position: relative;
}

/* Section Titles */
.section-header {
  text-align: center;
  max-width: 780px;
  margin: 0 auto 3.5rem;
}

.section-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 1rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid rgba(14, 83, 149, 0.2);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  margin-bottom: 1rem;
}

.section-title {
  font-size: 2.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 1.25rem;
}

.section-subtitle {
  font-size: 1.15rem;
  color: var(--text-muted);
  line-height: 1.65;
}

/* Gradients */
.gradient-text {
  color: var(--text-main);
}

.gradient-accent {
  background: linear-gradient(135deg, var(--primary) 0%, var(--secondary-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

/* --- Buttons --- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.6rem;
  font-family: var(--font-body);
  font-weight: 600;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all var(--transition-fast);
  border: 1px solid transparent;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--text-white);
  box-shadow: 0 4px 16px var(--primary-glow);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 24px rgba(14, 83, 149, 0.35);
  color: var(--text-white);
}

.btn-secondary {
  background: #ffffff;
  color: var(--primary);
  border: 1px solid var(--border-glass-highlight);
  box-shadow: var(--shadow-sm);
}

.btn-secondary:hover {
  background: #f8fafc;
  border-color: var(--primary);
  color: var(--primary-dark);
  transform: translateY(-2px);
}

.btn-whatsapp {
  background: #25d366;
  color: #ffffff;
  font-weight: 700;
  box-shadow: 0 4px 16px rgba(37, 211, 102, 0.25);
}

.btn-whatsapp:hover {
  background: #20ba59;
  transform: translateY(-2px);
  box-shadow: 0 6px 22px rgba(37, 211, 102, 0.35);
  color: #ffffff;
}

.btn-outline-primary {
  background: transparent;
  color: var(--primary);
  border: 1px solid var(--border-primary);
}

.btn-outline-primary:hover {
  background: var(--primary-subtle);
  border-color: var(--primary);
  transform: translateY(-2px);
}

.btn-sm {
  padding: 0.5rem 1.1rem;
  font-size: 0.875rem;
}

.btn-md {
  padding: 0.75rem 1.5rem;
  font-size: 1rem;
}

.btn-lg {
  padding: 0.95rem 2rem;
  font-size: 1.05rem;
  border-radius: var(--radius-md);
}

/* ==========================================================================
   1. NAVIGATION HEADER
   ========================================================================== */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 100;
  transition: all var(--transition-normal);
  background: rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border-glass);
}

.site-header.scrolled {
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.brand-logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.brand-logo-img {
  height: 38px;
  width: auto;
  object-fit: contain;
  display: block;
}

.brand-badge {
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.6rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid rgba(14, 83, 149, 0.2);
  color: var(--primary);
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.nav-links {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--text-body);
}

.nav-link:hover {
  color: var(--primary);
}

.header-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
}

.mobile-menu-btn {
  display: none;
  background: none;
  border: none;
  color: var(--text-main);
  font-size: 1.75rem;
  cursor: pointer;
}

/* ==========================================================================
   2. HERO SECTION
   ========================================================================== */
.hero-section {
  padding-top: 8rem;
  padding-bottom: 5rem;
}

.hero-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 3.5rem;
  align-items: center;
  margin-bottom: 4rem;
}

.hero-text-col {
  text-align: left;
}

.hero-badge-container {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 1.5rem;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  padding: 0.4rem 1.15rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid rgba(14, 83, 149, 0.25);
  color: var(--primary);
  font-size: 0.88rem;
  font-weight: 700;
}

.pulse-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--secondary);
  box-shadow: 0 0 8px var(--secondary);
  animation: pulse-animation 2s infinite;
}

@keyframes pulse-animation {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(50, 184, 151, 0.6); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(50, 184, 151, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(50, 184, 151, 0); }
}

.hero-title {
  font-size: 3.2rem;
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 1.25rem;
  color: var(--text-main);
  letter-spacing: -0.03em;
}

.hero-subtitle {
  font-size: 1.15rem;
  line-height: 1.7;
  color: var(--text-muted);
  margin-bottom: 2.25rem;
}

.hero-ctas {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 2.5rem;
  flex-wrap: wrap;
}

.hero-guarantee {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.85rem;
  margin-bottom: 2.5rem;
}

.hero-guarantee span {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--text-body);
}

.hero-guarantee span svg {
  color: var(--secondary);
  flex-shrink: 0;
}

/* Social Proof Bar */
.hero-social-proof {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding-top: 1.5rem;
  border-top: 1px solid var(--border-glass);
}

.proof-avatars {
  display: flex;
  align-items: center;
}

.proof-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 2px solid #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
  color: #ffffff;
  margin-left: -8px;
}

.proof-avatar:first-child {
  margin-left: 0;
}

.proof-text {
  font-size: 0.85rem;
  line-height: 1.35;
  color: var(--text-muted);
}

.proof-stars {
  color: #f59e0b;
  font-weight: 700;
  font-size: 0.88rem;
}

/* Hero Right Column: Doctor Showcase */
.hero-doctor-showcase {
  position: relative;
}

.doctor-card-frame {
  position: relative;
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--border-glass-highlight);
  box-shadow: var(--shadow-xl), 0 0 35px rgba(14, 83, 149, 0.08);
}

.doctor-hero-img {
  width: 100%;
  height: auto;
  display: block;
  object-fit: cover;
  transform: scale(1.02);
  transition: transform var(--transition-slow);
}

.doctor-card-frame:hover .doctor-hero-img {
  transform: scale(1.05);
}

.doctor-card-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 1.5rem;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.85) 75%, rgba(15, 23, 42, 0.95) 100%);
  color: #ffffff;
}

.doctor-card-overlay h4 {
  color: #ffffff;
  font-size: 1.1rem;
  margin-bottom: 0.2rem;
}

.doctor-card-overlay p {
  color: #cbd5e1;
  font-size: 0.85rem;
}

/* Floating Chips on Doctor Hero */
.floating-chip {
  position: absolute;
  z-index: 10;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.65rem 1.15rem;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid var(--border-glass-highlight);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--text-main);
  backdrop-filter: blur(12px);
  animation: float-chip 4s ease-in-out infinite alternate;
}

.chip-icon-box {
  width: 32px;
  height: 32px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.chip-security {
  top: -18px;
  left: -20px;
  border-color: rgba(50, 184, 151, 0.4);
}

.chip-agenda {
  bottom: 30px;
  right: -25px;
  border-color: rgba(14, 83, 149, 0.4);
  animation-delay: 2s;
}

.chip-recetas {
  top: 45%;
  right: -30px;
  border-color: rgba(14, 83, 149, 0.3);
  animation-delay: 1s;
}

@keyframes float-chip {
  0% { transform: translateY(0px); }
  100% { transform: translateY(-8px); }
}

/* ==========================================================================
   INTERACTIVE MACOS MOCKUP WINDOW (Light Clinical Theme)
   ========================================================================== */
.hero-mockup-wrapper {
  position: relative;
  max-width: 1160px;
  margin: 0 auto;
}

.hero-mockup-glow {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 95%;
  height: 85%;
  background: radial-gradient(circle, rgba(14, 83, 149, 0.12) 0%, rgba(50, 184, 151, 0.08) 50%, transparent 75%);
  filter: blur(50px);
  z-index: 0;
  pointer-events: none;
}

.mac-mockup {
  position: relative;
  z-index: 1;
  background: #ffffff;
  border: 1px solid var(--border-glass-highlight);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xl);
  overflow: hidden;
}

.mac-header {
  height: 44px;
  background: #f1f5f9;
  border-bottom: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  padding: 0 1.25rem;
  position: relative;
}

.mac-traffic-lights {
  display: flex;
  gap: 8px;
}

.traffic-light {
  width: 12px;
  height: 12px;
  border-radius: 50%;
}

.tl-red { background: #ff5f56; }
.tl-yellow { background: #ffbd2e; }
.tl-green { background: #27c93f; }

.mac-url-bar {
  position: absolute;
  left: 50%;
  transform: translateX(-50%);
  background: #ffffff;
  border: 1px solid var(--border-glass);
  padding: 0.25rem 1.25rem;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mac-url-bar span {
  color: var(--primary);
  font-weight: 600;
}

.mac-body {
  padding: 1.5rem;
  background: #f8fafc;
}

/* UI Preview Grid inside Mac Mockup */
.mockup-dashboard {
  display: grid;
  grid-template-columns: 240px 1fr;
  gap: 1.25rem;
  text-align: left;
}

.mockup-sidebar {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.mockup-user-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid var(--border-glass);
}

.mockup-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  color: white;
  font-size: 0.85rem;
}

.mockup-user-info h4 {
  font-size: 0.9rem;
  margin-bottom: 0.1rem;
  color: var(--text-main);
}

.mockup-user-info span {
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 600;
}

.mockup-nav {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}

.mockup-nav-item {
  padding: 0.55rem 0.85rem;
  border-radius: var(--radius-sm);
  font-size: 0.85rem;
  color: var(--text-muted);
  display: flex;
  align-items: center;
  gap: 0.75rem;
  cursor: default;
  transition: all var(--transition-fast);
}

.mockup-nav-item.active {
  background: var(--primary-subtle);
  color: var(--primary);
  border: 1px solid rgba(14, 83, 149, 0.2);
  font-weight: 700;
}

.mockup-content {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}

/* Metrics Top Bar */
.mockup-stats-row {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1rem;
}

.mockup-stat-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  padding: 1rem;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
}

.mockup-stat-label {
  font-size: 0.72rem;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.mockup-stat-val {
  font-family: var(--font-heading);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--text-main);
}

.mockup-stat-badge {
  font-size: 0.72rem;
  color: var(--secondary-dark);
  font-weight: 700;
}

/* Live Appointments Table / EHR Preview */
.mockup-panel-main {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  box-shadow: var(--shadow-sm);
}

.mockup-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 0.75rem;
  border-bottom: 1px solid var(--border-glass);
}

.mockup-panel-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--text-main);
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.mockup-link-badge {
  font-size: 0.75rem;
  color: var(--secondary-dark);
  background: var(--secondary-subtle);
  border: 1px solid rgba(50, 184, 151, 0.25);
  font-weight: 700;
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  display: inline-block;
}

.mockup-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.825rem;
}

.mockup-table th {
  text-align: left;
  color: var(--text-muted);
  font-weight: 700;
  padding: 0.55rem 0.75rem;
  background: #f8fafc;
  border-bottom: 1px solid var(--border-glass);
}

.mockup-table td {
  padding: 0.65rem 0.75rem;
  border-bottom: 1px solid #f1f5f9;
  color: var(--text-body);
}

.badge-status {
  padding: 0.2rem 0.6rem;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
  font-weight: 700;
  display: inline-block;
}

.badge-in-consult { background: rgba(50, 184, 151, 0.12); color: #248f74; border: 1px solid rgba(50, 184, 151, 0.3); }
.badge-waiting { background: rgba(245, 158, 11, 0.12); color: #d97706; border: 1px solid rgba(245, 158, 11, 0.3); }
.badge-completed { background: rgba(16, 185, 129, 0.12); color: #059669; border: 1px solid rgba(16, 185, 129, 0.3); }

/* Mobile Queue Cards (Sala de Espera - Native App UX on Mobile) */
.mockup-queue-mobile {
  display: none;
}

.queue-card-mobile {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 0.85rem 1rem;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.03);
  transition: all var(--transition-fast);
}

.queue-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.65rem;
  padding-bottom: 0.5rem;
  border-bottom: 1px solid #f1f5f9;
}

.queue-time-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.78rem;
  font-weight: 700;
  color: var(--primary);
  background: var(--primary-subtle);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius-full);
}

.queue-card-body {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
}

.queue-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--secondary));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 800;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  box-shadow: 0 2px 6px rgba(14, 83, 149, 0.15);
}

.queue-info {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  flex-grow: 1;
}

.queue-patient-name {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--text-main);
  margin: 0;
  line-height: 1.25;
}

.queue-insurance-pill {
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--secondary-dark);
  background: var(--secondary-subtle);
  padding: 0.15rem 0.5rem;
  border-radius: var(--radius-sm);
  display: inline-block;
  width: fit-content;
}

.queue-card-footer {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.8rem;
  color: var(--text-body);
  background: #f8fafc;
  padding: 0.4rem 0.65rem;
  border-radius: var(--radius-sm);
  border: 1px solid #f1f5f9;
}

.queue-card-footer svg {
  color: var(--primary);
  flex-shrink: 0;
}

/* ==========================================================================
   3. TRUST & STATS BAR
   ========================================================================== */
.trust-bar {
  padding: 3.5rem 0;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
  background: #ffffff;
}

.trust-metrics-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2rem;
  text-align: center;
}

.trust-metric-card {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.trust-metric-num {
  font-family: var(--font-heading);
  font-size: 2.75rem;
  font-weight: 900;
  color: var(--primary);
  margin-bottom: 0.35rem;
  line-height: 1;
}

.trust-metric-label {
  font-size: 0.95rem;
  color: var(--text-muted);
  font-weight: 600;
}

/* ==========================================================================
   4. AUDIENCE SEGMENTATION SECTION (3 Soluciones Claras)
   ========================================================================== */
.audience-section {
  background: var(--bg-body);
}

.audience-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 2rem;
}

.audience-card {
  background: var(--bg-card);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-normal);
  box-shadow: var(--shadow-sm);
  position: relative;
  overflow: hidden;
}

.audience-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 4px;
  background: linear-gradient(90deg, var(--primary), var(--secondary));
  opacity: 0;
  transition: opacity var(--transition-normal);
}

.audience-card:hover {
  transform: translateY(-6px);
  border-color: rgba(14, 83, 149, 0.3);
  box-shadow: var(--shadow-lg);
}

.audience-card:hover::before {
  opacity: 1;
}

.audience-card-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  margin-bottom: 1.25rem;
  background: var(--primary-subtle);
  border: 1px solid rgba(14, 83, 149, 0.2);
  color: var(--primary);
  width: fit-content;
}

.audience-icon {
  width: 52px;
  height: 52px;
  border-radius: var(--radius-md);
  background: var(--primary-subtle);
  border: 1px solid rgba(14, 83, 149, 0.2);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  margin-bottom: 1.25rem;
  transition: all var(--transition-fast);
}

.audience-card:hover .audience-icon {
  background: var(--primary);
  border-color: var(--primary-dark);
  color: #ffffff;
  transform: translateY(-2px);
}

.audience-title {
  font-size: 1.55rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.75rem;
}

.audience-desc {
  font-size: 0.95rem;
  color: var(--text-muted);
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.audience-features {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
}

.audience-features li {
  font-size: 0.9rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
}

.audience-features li svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.15rem;
}

.audience-cta-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 700;
  font-size: 0.95rem;
  transition: gap var(--transition-fast);
}

.audience-cta-link:hover {
  gap: 0.75rem;
  color: var(--primary-dark);
}

/* ==========================================================================
   5. MODULES DEEP-DIVE SECTION
   ========================================================================== */
.modules-deepdive-section {
  padding: 6rem 0;
  background: #f8fafc;
  border-top: 1px solid var(--border-glass);
  border-bottom: 1px solid var(--border-glass);
}

.module-tabs-nav {
  display: flex;
  justify-content: center;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-bottom: 3.5rem;
}

.module-nav-btn {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-full);
  padding: 0.6rem 1.25rem;
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 0.55rem;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-fast);
}

.module-nav-btn svg {
  flex-shrink: 0;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.module-nav-btn:hover {
  color: var(--primary);
  border-color: var(--border-glass-highlight);
  background: #ffffff;
}

.module-nav-btn:hover svg {
  transform: translateY(-1px);
}

.module-nav-btn.active {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: #ffffff;
  border-color: transparent;
  box-shadow: 0 4px 16px var(--primary-glow);
}

.module-nav-btn.active svg {
  color: #ffffff;
}

/* Module Showcase Panels */
.module-panel {
  display: none;
}

.module-panel.active {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 3.5rem;
  align-items: center;
  animation: fadeIn 0.4s ease forwards;
}

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

.module-content-side {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  text-align: left;
}

.module-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0.85rem;
  border-radius: var(--radius-full);
  background: var(--primary-subtle);
  border: 1px solid rgba(14, 83, 149, 0.2);
  color: var(--primary);
  font-size: 0.8rem;
  font-weight: 700;
  text-transform: uppercase;
  width: fit-content;
}

.module-title {
  font-size: 2.2rem;
  font-weight: 800;
  color: var(--text-main);
  line-height: 1.2;
}

.module-desc {
  font-size: 1.05rem;
  color: var(--text-muted);
  line-height: 1.7;
}

.module-checklist {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
  margin: 1rem 0;
}

.module-checklist li {
  display: flex;
  align-items: flex-start;
  gap: 0.75rem;
  font-size: 0.95rem;
  color: var(--text-body);
}

.module-checklist li svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* Visual Card Side inside Module */
.module-visual-side {
  background: #ffffff;
  border: 1px solid var(--border-glass-highlight);
  border-radius: var(--radius-xl);
  padding: 2rem;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}

.visual-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-bottom: 1.25rem;
  margin-bottom: 1.25rem;
  border-bottom: 1px solid var(--border-glass);
}

.visual-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--text-main);
}

.visual-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: var(--radius-full);
}

/* Mini Visual Components */
.ehr-card {
  background: #f8fafc;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1.25rem;
  margin-bottom: 1rem;
}

.ehr-card strong {
  color: var(--text-main) !important;
}

.ehr-card [style*="color: #fff"] {
  color: var(--text-main) !important;
}

.ehr-card [style*="color: #94a3b8"] {
  color: var(--text-muted) !important;
}

.ehr-card [style*="color: #cbd5e1"] {
  color: var(--text-body) !important;
}

.ehr-card [style*="border-bottom: 1px solid rgba(255,255,255"] {
  border-bottom: 1px solid var(--border-glass) !important;
}

.ehr-card [style*="border-top: 1px solid rgba(255,255,255"] {
  border-top: 1px solid var(--border-glass) !important;
}

.vital-signs-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0.75rem;
  margin-top: 1rem;
}

.vital-box {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-sm);
  padding: 0.65rem;
  text-align: center;
}

.vital-box span {
  display: block;
  font-size: 0.7rem;
  color: var(--text-muted);
  text-transform: uppercase;
  font-weight: 600;
}

.vital-box strong {
  font-size: 1.05rem;
  color: var(--text-main);
}

/* ==========================================================================
   6. COMPARISON SECTION (DoxMed vs Alternativas)
   ========================================================================== */
.comparison-section {
  padding: 6rem 0;
  background: var(--bg-body);
}

.comparison-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius-lg);
  border: 1px solid var(--border-glass);
  background: #ffffff;
  box-shadow: var(--shadow-md);
}

.comparison-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 780px;
}

.comparison-table th, .comparison-table td {
  padding: 1.25rem 1.5rem;
  text-align: left;
  border-bottom: 1px solid var(--border-glass);
}

.comparison-table th {
  font-size: 1rem;
  font-weight: 700;
  background: #f1f5f9;
  color: var(--text-main);
}

.comparison-table th.col-highlight {
  background: var(--primary-subtle);
  color: var(--primary);
  border-top: 3px solid var(--secondary);
}

.comparison-table td.col-highlight {
  background: rgba(14, 83, 149, 0.03);
  font-weight: 600;
  color: var(--text-main);
}

.feature-check {
  color: var(--secondary-dark);
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.feature-check svg {
  flex-shrink: 0;
  color: var(--secondary);
}

.feature-cross {
  color: var(--accent-rose);
  opacity: 0.85;
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
}

.feature-cross svg {
  flex-shrink: 0;
  color: var(--accent-rose);
}

/* ==========================================================================
   7. PRICING SECTION
   ========================================================================== */
.pricing-section {
  padding: 6.5rem 0;
  background: #f8fafc;
}

.billing-toggle-container {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
  margin-bottom: 3.5rem;
}

.billing-label {
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  cursor: pointer;
}

.billing-label.active {
  color: var(--text-main);
  font-weight: 700;
}

.toggle-switch {
  position: relative;
  width: 56px;
  height: 30px;
  background: #e2e8f0;
  border: 1px solid var(--border-glass-highlight);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: background var(--transition-fast);
}

.toggle-slider {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 22px;
  height: 22px;
  background: var(--primary);
  border-radius: 50%;
  transition: transform var(--transition-fast);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

.toggle-switch.annual .toggle-slider {
  transform: translateX(26px);
  background: var(--secondary-dark);
}

.discount-badge {
  font-size: 0.75rem;
  font-weight: 700;
  padding: 0.25rem 0.75rem;
  border-radius: var(--radius-full);
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  color: #059669;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  max-width: 960px;
  margin: 0 auto;
}

.pricing-card {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-lg);
  padding: 2.5rem 2rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  position: relative;
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-normal);
}

.pricing-card:hover {
  transform: translateY(-8px);
  border-color: rgba(14, 83, 149, 0.3);
  box-shadow: var(--shadow-lg);
}

.pricing-card.featured {
  background: #ffffff;
  border: 2px solid var(--primary);
  box-shadow: 0 16px 36px -4px rgba(14, 83, 149, 0.15);
  transform: scale(1.03);
}

.pricing-card.featured:hover {
  transform: scale(1.03) translateY(-8px);
}

.card-badge-top {
  position: absolute;
  top: -14px;
  left: 50%;
  transform: translateX(-50%);
  background: linear-gradient(135deg, var(--primary), var(--primary-dark));
  color: white;
  font-size: 0.75rem;
  font-weight: 800;
  text-transform: uppercase;
  padding: 0.3rem 1rem;
  border-radius: var(--radius-full);
  box-shadow: 0 4px 12px rgba(14, 83, 149, 0.3);
}

.plan-header {
  margin-bottom: 1.5rem;
}

.plan-name {
  font-size: 1.5rem;
  font-weight: 800;
  color: var(--text-main);
  margin-bottom: 0.5rem;
}

.plan-desc {
  font-size: 0.85rem;
  color: var(--text-muted);
  line-height: 1.5;
  min-height: 42px;
}

.plan-price-wrapper {
  margin-bottom: 1.75rem;
  display: flex;
  align-items: baseline;
  gap: 0.4rem;
}

.plan-currency {
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--text-muted);
}

.plan-price {
  font-family: var(--font-heading);
  font-size: 3rem;
  font-weight: 900;
  color: var(--text-main);
  line-height: 1;
}

.plan-period {
  font-size: 0.9rem;
  color: var(--text-muted);
}

.plan-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-bottom: 2rem;
  flex-grow: 1;
}

.plan-features-list li {
  font-size: 0.875rem;
  color: var(--text-body);
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
}

.plan-features-list li svg {
  color: var(--secondary);
  flex-shrink: 0;
  margin-top: 0.2rem;
}

/* ==========================================================================
   8. FAQ SECTION (Accordion)
   ========================================================================== */
.faq-section {
  padding: 6rem 0;
  background: var(--bg-body);
}

.faq-accordion {
  max-width: 820px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.faq-item {
  background: #ffffff;
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.open {
  border-color: var(--primary);
  box-shadow: 0 6px 20px -2px rgba(14, 83, 149, 0.08);
}

.faq-question {
  width: 100%;
  padding: 1.35rem 1.75rem;
  background: none;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-family: var(--font-heading);
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--text-main);
  cursor: pointer;
  text-align: left;
}

.faq-toggle-icon {
  font-size: 1.4rem;
  color: var(--primary);
  transition: transform var(--transition-fast);
}

.faq-item.open .faq-toggle-icon {
  transform: rotate(45deg);
  color: var(--secondary-dark);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.3s ease-out;
  padding: 0 1.75rem;
}

.faq-answer p {
  padding-bottom: 1.5rem;
  font-size: 0.95rem;
  line-height: 1.7;
  color: var(--text-muted);
}

/* ==========================================================================
   9. FINAL CTA SECTION
   ========================================================================== */
.final-cta-section {
  padding: 6.5rem 0 5rem;
}

.cta-box {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: var(--radius-xl);
  padding: 4.5rem 2rem;
  text-align: center;
  box-shadow: var(--shadow-xl);
  position: relative;
  overflow: hidden;
  color: #ffffff;
}

.cta-title {
  font-size: 2.85rem;
  font-weight: 900;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.cta-desc {
  font-size: 1.15rem;
  max-width: 680px;
  margin: 0 auto 2.5rem;
  line-height: 1.7;
  color: #e2e8f0;
}

.cta-buttons {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   10. SITE FOOTER (Deep Navy Grounding)
   ========================================================================== */
.site-footer {
  padding: 5rem 0 2.5rem;
  background: #0a1628;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: #94a3b8;
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1.5fr;
  gap: 3rem;
  margin-bottom: 4rem;
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  margin-top: 1rem;
  max-width: 320px;
  color: #94a3b8;
}

.footer-col h4 {
  font-size: 1rem;
  font-weight: 700;
  margin-bottom: 1.25rem;
  color: #ffffff;
}

.footer-links {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.footer-links a {
  font-size: 0.9rem;
  color: #cbd5e1;
}

.footer-links a:hover {
  color: #ffffff;
  padding-left: 4px;
}

.footer-bottom {
  padding-top: 2rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.85rem;
  color: #64748b;
  flex-wrap: wrap;
  gap: 1rem;
}

.footer-bottom a {
  color: #7eb6eb;
}

/* ==========================================================================
   OFF-CANVAS MOBILE NAVIGATION DRAWER
   ========================================================================== */
.mobile-drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.6);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 9998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.3s cubic-bezier(0.16, 1, 0.3, 1);
}

.mobile-drawer-overlay.active {
  opacity: 1;
  pointer-events: auto;
}

.mobile-drawer {
  position: fixed;
  top: 0;
  right: 0;
  width: 86%;
  max-width: 360px;
  height: 100vh;
  height: 100dvh;
  background: #ffffff;
  z-index: 9999;
  box-shadow: -10px 0 35px rgba(15, 23, 42, 0.2);
  transform: translateX(100%);
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  border-left: 1px solid var(--border-glass);
}

.mobile-drawer.active {
  transform: translateX(0);
}

body.drawer-open {
  overflow: hidden !important;
  touch-action: none;
}

.drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1.25rem 1.5rem;
  border-bottom: 1px solid var(--border-glass);
  background: #ffffff;
  position: sticky;
  top: 0;
  z-index: 2;
}

.drawer-brand {
  display: flex;
  align-items: center;
  gap: 0.6rem;
}

.drawer-logo-img {
  height: 32px;
  width: auto;
  object-fit: contain;
}

.drawer-close-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--bg-body);
  border: 1px solid var(--border-glass);
  color: var(--text-main);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.drawer-close-btn:hover {
  background: #fee2e2;
  color: var(--accent-rose);
  border-color: rgba(239, 68, 68, 0.3);
}

.drawer-body {
  padding: 1.5rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
  overflow-y: auto;
}

.drawer-section-title {
  font-size: 0.75rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--text-dim);
  margin-bottom: 0.25rem;
}

.drawer-nav-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.drawer-nav-link {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  padding: 0.8rem 0.95rem;
  border-radius: var(--radius-md);
  color: var(--text-main);
  font-weight: 600;
  font-size: 0.95rem;
  background: transparent;
  transition: all var(--transition-fast);
}

.drawer-nav-link:hover,
.drawer-nav-link:active {
  background: var(--primary-subtle);
  color: var(--primary);
  transform: translateX(4px);
}

.drawer-nav-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-sm);
  background: var(--bg-body);
  border: 1px solid var(--border-glass);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary);
  flex-shrink: 0;
  transition: all var(--transition-fast);
}

.drawer-nav-link:hover .drawer-nav-icon {
  background: var(--primary);
  color: #ffffff;
  border-color: var(--primary);
}

.drawer-badge-card {
  background: var(--bg-body);
  border: 1px solid var(--border-glass);
  border-radius: var(--radius-md);
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.5rem;
}

.drawer-badge-item {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--text-body);
}

.drawer-footer {
  padding: 1.25rem 1.5rem 1.75rem;
  border-top: 1px solid var(--border-glass);
  background: #f8fafc;
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.drawer-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.drawer-action-btn {
  width: 100%;
  justify-content: center;
  padding: 0.8rem 1rem;
  font-size: 0.92rem;
}

.drawer-company-info {
  text-align: center;
  font-size: 0.75rem;
  color: var(--text-dim);
}

/* Comparison Mobile Hint */
.comparison-mobile-hint {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--primary);
  background: var(--primary-subtle);
  border: 1px dashed var(--border-primary);
  border-radius: var(--radius-full);
  padding: 0.45rem 1rem;
  margin-bottom: 1rem;
  text-align: center;
}

/* ==========================================================================
   RESPONSIVE DESIGN (Breakpoints)
   ========================================================================== */
@media (max-width: 1024px) {
  .hero-grid { grid-template-columns: 1fr; gap: 3rem; }
  .hero-title { font-size: 2.75rem; }
  .pricing-grid { grid-template-columns: repeat(2, 1fr); }
  .audience-grid { grid-template-columns: 1fr; }
  .trust-metrics-grid { grid-template-columns: repeat(2, 1fr); gap: 1.5rem; }
  .module-panel.active { grid-template-columns: 1fr; gap: 2.5rem; }
  .footer-grid { grid-template-columns: repeat(2, 1fr); gap: 2rem; }
  .mockup-dashboard { grid-template-columns: 1fr; }
  .mockup-sidebar { display: none; }
  .chip-agenda, .chip-recetas { display: none; }
}

@media (max-width: 768px) {
  /* Header & Navigation */
  .site-header .nav-links { display: none !important; }
  .site-header .header-actions .btn { display: none !important; }
  .header-inner { height: 64px; }
  .mobile-menu-btn {
    display: flex !important;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: var(--radius-sm);
    border: 1px solid var(--border-glass);
    background: #ffffff;
    color: var(--primary);
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-fast);
  }
  .mobile-menu-btn:hover {
    background: var(--primary-subtle);
    border-color: var(--border-primary);
  }
  .brand-logo-img { height: 32px; }
  .brand-badge { display: none; }

  /* Hero Section */
  .hero-section {
    padding-top: 5.75rem;
    padding-bottom: 3.5rem;
  }
  .hero-badge-container {
    justify-content: flex-start;
  }
  .hero-badge {
    font-size: 0.78rem;
    padding: 0.35rem 0.85rem;
    white-space: normal;
  }
  .hero-title {
    font-size: 2.05rem;
    line-height: 1.22;
    letter-spacing: -0.02em;
  }
  .hero-subtitle {
    font-size: 1.02rem;
    line-height: 1.6;
    margin-bottom: 1.75rem;
  }
  .hero-ctas {
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    gap: 0.75rem;
    margin-bottom: 2rem;
  }
  .hero-ctas .btn {
    width: 100%;
    justify-content: center;
  }
  .hero-guarantee {
    grid-template-columns: 1fr;
    gap: 0.6rem;
    margin-bottom: 2rem;
  }
  .hero-social-proof {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.75rem;
  }
  .floating-chip {
    display: none !important;
  }
  .doctor-card-overlay {
    padding: 1rem;
  }
  .doctor-card-overlay h4 {
    font-size: 1rem;
  }

  /* MacOS Interactive Mockup */
  .mac-header {
    height: 38px;
    padding: 0 0.85rem;
  }
  .mac-url-bar {
    display: none !important;
  }
  .mac-body {
    padding: 0.85rem;
  }
  .mockup-dashboard {
    grid-template-columns: 1fr;
    gap: 1rem;
  }
  .mockup-sidebar {
    display: none !important;
  }
  .mockup-stats-row {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 0.55rem;
  }
  .mockup-stat-card {
    padding: 0.65rem 0.75rem;
  }
  .mockup-stat-label {
    font-size: 0.62rem;
    margin-bottom: 0.2rem;
  }
  .mockup-stat-val {
    font-size: 1.15rem;
    line-height: 1.1;
    margin-bottom: 0.15rem;
  }
  .mockup-stat-badge {
    font-size: 0.65rem;
  }
  .mockup-panel-main {
    padding: 0.85rem;
  }
  .mockup-panel-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
  }
  .mockup-table {
    display: none !important;
  }
  .mockup-queue-mobile {
    display: flex !important;
    flex-direction: column;
    gap: 0.65rem;
  }

  /* Trust Bar */
  .trust-bar {
    padding: 2.75rem 0;
  }
  .trust-metrics-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.5rem;
  }
  .trust-metric-num {
    font-size: 2.25rem;
  }
  .trust-metric-label {
    font-size: 0.88rem;
  }

  /* Audience Solutions */
  .audience-section {
    padding: 4.5rem 0;
  }
  .audience-grid {
    grid-template-columns: 1fr;
    gap: 1.5rem;
  }
  .audience-card {
    padding: 1.85rem 1.35rem;
  }

  /* Modules Deep-Dive: Touch Pill-Scroller */
  .modules-deepdive-section {
    padding: 4.5rem 0;
  }
  .module-tabs-nav {
    justify-content: flex-start;
    flex-wrap: nowrap;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 0.25rem 0.25rem 1rem;
    margin-bottom: 2rem;
    scrollbar-width: none;
    -ms-overflow-style: none;
    mask-image: linear-gradient(to right, black 85%, transparent 100%);
    -webkit-mask-image: linear-gradient(to right, black 85%, transparent 100%);
  }
  .module-tabs-nav::-webkit-scrollbar {
    display: none;
  }
  .module-nav-btn {
    flex-shrink: 0;
    white-space: nowrap;
    padding: 0.55rem 1rem;
    font-size: 0.82rem;
  }
  .module-panel.active {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .module-title {
    font-size: 1.45rem;
  }
  .module-desc {
    font-size: 0.92rem;
  }
  .module-visual-side {
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
  .vital-signs-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 0.4rem;
  }
  .vital-box {
    padding: 0.4rem 0.25rem;
  }
  .vital-box strong {
    font-size: 0.85rem;
  }
  .vital-box span {
    font-size: 0.62rem;
  }

  /* Comparison Section */
  .comparison-section {
    padding: 4.5rem 0;
  }
  .comparison-mobile-hint {
    display: flex;
  }
  .comparison-table-wrapper {
    -webkit-overflow-scrolling: touch;
  }
  .comparison-table th, 
  .comparison-table td {
    padding: 0.85rem 1rem;
    font-size: 0.85rem;
  }

  /* Pricing Section */
  .pricing-section {
    padding: 4.5rem 0;
  }
  .billing-toggle-container {
    margin-bottom: 2.25rem;
    flex-wrap: wrap;
    gap: 0.65rem;
  }
  .pricing-grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }
  .pricing-card {
    padding: 2rem 1.35rem;
  }
  .pricing-card.featured {
    transform: none;
  }
  .plan-price {
    font-size: 2.5rem;
  }
  .pricing-card .btn {
    width: 100%;
  }

  /* FAQ Section */
  .faq-section {
    padding: 4.5rem 0;
  }
  .faq-question {
    padding: 1.1rem 1.25rem;
    font-size: 0.98rem;
    gap: 0.75rem;
  }
  .faq-answer {
    padding: 0 1.25rem;
  }
  .faq-answer p {
    font-size: 0.9rem;
    line-height: 1.6;
  }

  /* Final CTA */
  .final-cta-section {
    padding: 4.5rem 0 3rem;
  }
  .cta-box {
    padding: 2.75rem 1.25rem;
    border-radius: var(--radius-lg);
  }
  .cta-title {
    font-size: 1.85rem;
    line-height: 1.25;
  }
  .cta-desc {
    font-size: 0.98rem;
    margin-bottom: 1.75rem;
  }
  .cta-buttons {
    flex-direction: column;
    width: 100%;
    gap: 0.75rem;
  }
  .cta-buttons .btn {
    width: 100%;
    justify-content: center;
  }

  /* Site Footer */
  .site-footer {
    padding: 3.5rem 0 2rem;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
    margin-bottom: 2.5rem;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 0.75rem;
    text-align: center;
  }

  /* General Section Typography & Container */
  .section-header {
    margin-bottom: 2.5rem;
  }
  .section-title {
    font-size: 1.85rem;
  }
  .section-subtitle {
    font-size: 0.98rem;
  }
  .container {
    padding: 0 1.15rem;
  }
}

/* Extra small devices (phones <= 480px) */
@media (max-width: 480px) {
  .hero-title {
    font-size: 1.7rem;
  }
  .trust-metrics-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
  .section-title {
    font-size: 1.6rem;
  }
  .section-tag {
    font-size: 0.75rem;
    padding: 0.3rem 0.75rem;
  }
  .whatsapp-float-container {
    bottom: 1.25rem;
    right: 1.25rem;
  }
  .whatsapp-float-btn {
    width: 52px;
    height: 52px;
  }
  .whatsapp-float-btn svg {
    width: 28px;
    height: 28px;
  }
}

/* ==========================================================================
   FLOATING WHATSAPP BUTTON (Dox Technology Standard)
   ========================================================================== */
.whatsapp-float-container {
  position: fixed;
  bottom: 1.75rem;
  right: 1.75rem;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.whatsapp-float-tooltip {
  display: none;
  background: rgba(15, 23, 42, 0.95);
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 600;
  padding: 0.5rem 0.9rem;
  border-radius: var(--radius-full);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.3);
  backdrop-filter: blur(8px);
  pointer-events: none;
  transition: opacity 0.3s ease, transform 0.3s ease;
  white-space: nowrap;
}

@media (min-width: 640px) {
  .whatsapp-float-tooltip {
    display: inline-block;
  }
}

.whatsapp-float-btn {
  width: 58px;
  height: 58px;
  background-color: #25d366;
  color: #ffffff;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 10px 25px rgba(37, 211, 102, 0.4);
  transition: all 0.3s cubic-bezier(0.16, 1, 0.3, 1);
  text-decoration: none;
  position: relative;
  animation: wa-pulse 2.5s infinite;
}

.whatsapp-float-btn:hover {
  background-color: #20ba5a;
  transform: scale(1.1);
  box-shadow: 0 14px 30px rgba(37, 211, 102, 0.55);
}

.whatsapp-float-btn:active {
  transform: scale(0.95);
}

.whatsapp-float-btn svg {
  width: 32px;
  height: 32px;
}

@keyframes wa-pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0.55), 0 10px 25px rgba(37, 211, 102, 0.4);
  }
  70% {
    box-shadow: 0 0 0 16px rgba(37, 211, 102, 0), 0 10px 25px rgba(37, 211, 102, 0.4);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(37, 211, 102, 0), 0 10px 25px rgba(37, 211, 102, 0.4);
  }
}

/* ==========================================================================
   AOS ANIMATION REFINEMENTS & CARD LIFTING
   ========================================================================== */
[data-aos] {
  pointer-events: auto;
}

.audience-card,
.trust-metric-card,
.pricing-card,
.faq-item {
  transition: transform 0.35s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.35s cubic-bezier(0.16, 1, 0.3, 1), border-color 0.35s ease;
}

.audience-card:hover {
  transform: translateY(-7px);
  border-color: rgba(14, 83, 149, 0.35);
  box-shadow: 0 16px 32px -4px rgba(14, 83, 149, 0.12);
}

.trust-metric-card:hover {
  transform: translateY(-4px);
  border-color: rgba(50, 184, 151, 0.4);
  box-shadow: 0 12px 24px -4px rgba(50, 184, 151, 0.12);
}

