/* ==========================================================================
   DentalClinic365.com - Landing Page 2027
   Ultra-Premium Clinical Aesthetic & Modern Design System
   ========================================================================== */

:root {
  /* Brand Clinical Palette */
  --primary: #1565C0;
  --primary-dark: #11519A;
  --primary-deep: #0B3A6F;
  --primary-light: #1E88E5;
  --primary-lighter: #64B5F6;
  --primary-surface: #E3EFFC;
  --primary-tint: #F0F6FD;
  
  /* WhatsApp Emerald Accent (reserved for WhatsApp items) */
  --wa-green: #25D366;
  --wa-dark: #128C7E;
  --wa-deep: #075E54;
  --wa-light: #DCF8C6;
  --wa-bg: #EFEAE2;
  --wa-bubble: #FFFFFF;
  --wa-bubble-out: #E7FFDB;

  /* Neutrals & Dark Surfaces */
  --slate-950: #07111E;
  --slate-900: #0B1E36;
  --slate-800: #132A4A;
  --slate-700: #243D61;
  --slate-600: #475569;
  --slate-500: #64748B;
  --slate-400: #94A3B8;
  --slate-300: #CBD5E1;
  --slate-200: #E2E8F0;
  --slate-100: #F1F5F9;
  --slate-50: #F8FAFC;
  --white: #FFFFFF;

  /* Clinical Status Accents */
  --success: #10B981;
  --success-bg: #ECFDF5;
  --warning: #F59E0B;
  --warning-bg: #FFFBEB;
  --danger: #EF4444;
  --danger-bg: #FEF2F2;
  --purple: #8B5CF6;
  --purple-bg: #F5F3FF;
  --cyan: #06B6D4;
  --cyan-bg: #ECFEFF;

  /* Typography */
  --font-sans: 'Plus Jakarta Sans', 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  --font-mono: 'JetBrains Mono', 'Fira Code', monospace;

  /* Shadows 2027 (Diffusion & Layered Depth) */
  --shadow-xs: 0 1px 2px rgba(11, 30, 54, 0.04);
  --shadow-sm: 0 2px 6px rgba(11, 30, 54, 0.06);
  --shadow-md: 0 8px 24px rgba(21, 101, 192, 0.08), 0 2px 8px rgba(11, 30, 54, 0.04);
  --shadow-lg: 0 16px 36px rgba(21, 101, 192, 0.12), 0 4px 12px rgba(11, 30, 54, 0.05);
  --shadow-xl: 0 24px 60px rgba(11, 30, 54, 0.14), 0 8px 20px rgba(21, 101, 192, 0.08);
  --shadow-glow: 0 0 40px rgba(21, 101, 192, 0.25);
  --shadow-wa-glow: 0 10px 30px rgba(37, 211, 102, 0.35);

  /* Border Radii */
  --radius-xs: 6px;
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 20px;
  --radius-xl: 28px;
  --radius-full: 9999px;

  /* Transitions */
  --ease-spring: cubic-bezier(0.16, 1, 0.3, 1);
  --ease-smooth: cubic-bezier(0.4, 0, 0.2, 1);
  --transition-fast: 150ms var(--ease-smooth);
  --transition-normal: 250ms var(--ease-smooth);
  --transition-bounce: 400ms var(--ease-spring);
}

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

html {
  scroll-behavior: smooth;
  font-size: 16px;
  -webkit-text-size-adjust: 100%;
  overflow-x: clip;
  max-width: 100vw;
}

body {
  font-family: var(--font-sans);
  background-color: var(--white);
  color: var(--slate-800);
  line-height: 1.6;
  overflow-x: clip;
  max-width: 100vw;
  position: relative;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* Subtle background clinical ambient glow */
body::before {
  content: '';
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background: 
    radial-gradient(circle at 15% 15%, rgba(21, 101, 192, 0.04) 0%, transparent 45%),
    radial-gradient(circle at 85% 25%, rgba(30, 136, 229, 0.03) 0%, transparent 50%),
    radial-gradient(circle at 50% 80%, rgba(37, 211, 102, 0.02) 0%, transparent 55%);
  pointer-events: none;
  z-index: -1;
}

img, svg {
  display: block;
  max-width: 100%;
}

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

button, input, select, textarea {
  font: inherit;
}

/* Layout Container */
.container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 24px;
  padding-right: 24px;
}

.section-padding {
  padding-top: 100px;
  padding-bottom: 100px;
}

.section-padding-sm {
  padding-top: 60px;
  padding-bottom: 60px;
}

/* Typography Helpers */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.section-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--primary-surface);
  color: var(--primary);
  font-size: 0.85rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  padding: 6px 14px;
  border-radius: var(--radius-full);
  margin-bottom: 16px;
  border: 1px solid rgba(21, 101, 192, 0.15);
  box-shadow: 0 2px 8px rgba(21, 101, 192, 0.06);
}

.section-badge i {
  font-size: 1rem;
}

.section-title {
  font-size: clamp(2rem, 3.8vw, 3.1rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--slate-950);
  margin-bottom: 20px;
}

.section-title .gradient-text {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 60%, var(--primary-lighter) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.section-subtitle {
  font-size: clamp(1.05rem, 1.3vw, 1.25rem);
  color: var(--slate-600);
  max-width: 740px;
  line-height: 1.6;
  margin-left: auto;
  margin-right: auto;
}

/* Badges for System States */
.state-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 700;
  padding: 3px 10px;
  border-radius: var(--radius-full);
  letter-spacing: 0.02em;
}

.state-badge.disponible {
  background: #E8F5E9;
  color: #1B5E20;
  border: 1px solid #A5D6A7;
}

.state-badge.se-activa {
  background: #E0F2FE;
  color: #0369A1;
  border: 1px solid #BAE6FD;
}

.state-badge.proximamente {
  background: #F3E8FF;
  color: #7E22CE;
  border: 1px solid #E9D5FF;
}

/* ==========================================================================
   Announcement Top Bar
   ========================================================================== */
.top-bar {
  background: var(--slate-900);
  color: var(--slate-300);
  font-size: 0.82rem;
  padding: 8px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.top-bar-inner {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.top-bar-left {
  display: flex;
  align-items: center;
  gap: 16px;
}

.pulse-indicator {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 600;
  color: #38BDF8;
}

.pulse-dot {
  width: 7px;
  height: 7px;
  background-color: var(--wa-green);
  border-radius: 50%;
  box-shadow: 0 0 8px var(--wa-green);
  animation: pulse-ring 2s infinite ease-out;
}

@keyframes pulse-ring {
  0% { transform: scale(0.95); opacity: 0.9; }
  50% { transform: scale(1.35); opacity: 1; box-shadow: 0 0 12px var(--wa-green); }
  100% { transform: scale(0.95); opacity: 0.9; }
}

.top-bar-right {
  display: flex;
  align-items: center;
  gap: 18px;
}

.lang-switch {
  display: inline-flex;
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-full);
  padding: 2px 4px;
  border: 1px solid rgba(255, 255, 255, 0.15);
}

.lang-btn {
  background: transparent;
  border: none;
  color: var(--slate-300);
  padding: 3px 9px;
  font-size: 0.75rem;
  font-weight: 700;
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: all var(--transition-fast);
}

.lang-btn.active {
  background: var(--primary-light);
  color: var(--white);
  box-shadow: 0 2px 6px rgba(0, 0, 0, 0.2);
}

/* ==========================================================================
   Navigation Bar (Glassmorphic Sticky)
   ========================================================================== */
.main-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(21, 101, 192, 0.08);
  transition: all var(--transition-normal);
}

.main-header.scrolled {
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-sm);
  border-bottom-color: var(--slate-200);
}

.nav-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 72px;
  width: 100%;
  position: relative;
}

/* Logo */
.brand-logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  font-size: 1.25rem;
  color: var(--slate-900);
  letter-spacing: -0.03em;
  flex-shrink: 0;
}

.logo-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-size: 1.25rem;
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
  position: relative;
  overflow: hidden;
  flex-shrink: 0;
}

.logo-icon::after {
  content: '';
  position: absolute;
  top: -40%;
  left: -40%;
  width: 80%;
  height: 80%;
  background: rgba(255, 255, 255, 0.25);
  transform: rotate(45deg);
}

.brand-name {
  display: flex;
  flex-direction: column;
  line-height: 1.1;
}

.brand-name-main {
  font-weight: 800;
  font-size: 1.15rem;
  color: var(--slate-950);
}

.brand-name-main span {
  color: var(--primary);
}

.brand-tag {
  font-size: 0.65rem;
  font-weight: 700;
  text-transform: uppercase;
  color: var(--slate-500);
  letter-spacing: 0.08em;
}

/* Nav Menu */
.nav-menu {
  display: flex;
  align-items: center;
  gap: 16px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.nav-link {
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--slate-700);
  position: relative;
  padding: 6px 2px;
  white-space: nowrap;
  transition: color var(--transition-fast);
}

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

.nav-link::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--primary);
  border-radius: 2px;
  transition: width var(--transition-fast);
}

.nav-link:hover::after {
  width: 100%;
}

.nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-shrink: 0;
}

.btn-nav-cta {
  padding: 9px 18px;
  font-size: 0.85rem;
  font-weight: 700;
  border-radius: var(--radius-sm);
  white-space: nowrap;
}

.nav-menu-cta-item {
  display: none;
}

/* Mobile Toggle */
.mobile-toggle {
  display: none;
  background: transparent;
  border: none;
  font-size: 1.6rem;
  color: var(--slate-800);
  cursor: pointer;
  padding: 4px;
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  font-size: 0.96rem;
  font-weight: 700;
  padding: 12px 24px;
  border-radius: var(--radius-md);
  border: 1px solid transparent;
  cursor: pointer;
  transition: all var(--transition-bounce);
  text-decoration: none;
  line-height: 1.2;
  white-space: nowrap;
}

.btn-primary {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.35);
}

.btn-primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(21, 101, 192, 0.45);
  color: var(--white);
}

.btn-whatsapp {
  background: linear-gradient(135deg, #25D366 0%, #128C7E 100%);
  color: var(--white);
  box-shadow: 0 4px 14px rgba(37, 211, 102, 0.35);
}

.btn-whatsapp:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.45);
  color: var(--white);
}

.btn-secondary {
  background: var(--white);
  color: var(--slate-800);
  border-color: var(--slate-200);
  box-shadow: var(--shadow-xs);
}

.btn-secondary:hover {
  background: var(--slate-50);
  border-color: var(--slate-300);
  color: var(--primary);
  transform: translateY(-2px);
}

.btn-lg {
  padding: 16px 32px;
  font-size: 1.05rem;
  border-radius: var(--radius-lg);
}

/* ==========================================================================
   Hero Section (2027 Spatial & Device Showcase)
   ========================================================================== */
.hero-section {
  position: relative;
  padding-top: 60px;
  padding-bottom: 90px;
  overflow: hidden;
  background: linear-gradient(180deg, #FFFFFF 0%, #F5F9FE 100%);
}

.hero-glow-1 {
  position: absolute;
  top: -10%;
  left: 50%;
  transform: translateX(-50%);
  width: 900px;
  height: 500px;
  background: radial-gradient(ellipse at center, rgba(21, 101, 192, 0.12) 0%, rgba(37, 211, 102, 0.04) 40%, transparent 70%);
  filter: blur(40px);
  pointer-events: none;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  text-align: center;
  max-width: 980px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 50px;
}

.hero-tag {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: var(--white);
  border: 1px solid rgba(21, 101, 192, 0.18);
  padding: 6px 16px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-sm);
  font-size: 0.84rem;
  font-weight: 700;
  color: var(--primary-dark);
  margin-bottom: 24px;
}

.hero-tag i {
  color: var(--primary);
}

.hero-title {
  font-size: clamp(2.4rem, 4.6vw, 4rem);
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -0.04em;
  color: var(--slate-950);
  margin-bottom: 24px;
}

.hero-subtitle {
  font-size: clamp(1.05rem, 1.35vw, 1.25rem);
  color: var(--slate-600);
  line-height: 1.65;
  max-width: 820px;
  margin-left: auto;
  margin-right: auto;
  margin-bottom: 36px;
}

.hero-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 36px;
}

.hero-trust-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 28px;
  flex-wrap: wrap;
  color: var(--slate-500);
  font-size: 0.85rem;
  font-weight: 600;
}

.trust-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.trust-item i {
  color: var(--primary);
  font-size: 1rem;
}

/* ==========================================================================
   Hero Devices Showcase (iPhone Live WhatsApp + Clinic Laptop Agenda)
   ========================================================================== */
.hero-showcase {
  position: relative;
  z-index: 2;
  margin-top: 20px;
}

.devices-wrapper {
  position: relative;
  max-width: 1140px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 28px;
  align-items: center;
}

/* Realistic iPhone Pro Mockup */
.iphone-frame {
  width: 100%;
  max-width: 340px;
  background: #1C1C1E;
  border-radius: 46px;
  padding: 12px;
  box-shadow: 
    0 25px 60px -15px rgba(11, 30, 54, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.1),
    inset 0 0 0 2px #3A3A3C;
  position: relative;
  transition: transform var(--transition-bounce);
}

.iphone-frame:hover {
  transform: translateY(-4px);
}

.iphone-screen {
  background: var(--wa-bg);
  border-radius: 36px;
  overflow: hidden;
  height: 560px;
  display: flex;
  flex-direction: column;
  position: relative;
  font-size: 0.82rem;
}

.iphone-notch {
  position: absolute;
  top: 10px;
  left: 50%;
  transform: translateX(-50%);
  width: 90px;
  height: 22px;
  background: #000;
  border-radius: 14px;
  z-index: 100;
}

/* WhatsApp Phone Header */
.wa-chat-header {
  background: var(--wa-deep);
  color: var(--white);
  padding: 34px 14px 12px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: 0 1px 3px rgba(0,0,0,0.15);
}

.wa-header-left {
  display: flex;
  align-items: center;
  gap: 10px;
}

.wa-avatar {
  width: 36px;
  height: 36px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--white);
  font-weight: 700;
  font-size: 0.95rem;
  position: relative;
}

.wa-status-badge {
  position: absolute;
  bottom: 0;
  right: 0;
  width: 10px;
  height: 10px;
  background: var(--wa-green);
  border: 2px solid var(--wa-deep);
  border-radius: 50%;
}

.wa-header-info {
  display: flex;
  flex-direction: column;
}

.wa-contact-name {
  font-weight: 700;
  font-size: 0.86rem;
  line-height: 1.1;
  display: flex;
  align-items: center;
  gap: 5px;
}

.wa-verified {
  color: #38BDF8;
  font-size: 0.78rem;
}

.wa-subtext {
  font-size: 0.68rem;
  opacity: 0.85;
}

.wa-header-actions {
  display: flex;
  gap: 12px;
  font-size: 1rem;
}

/* WhatsApp Message Stream */
.wa-messages-container {
  flex: 1;
  padding: 14px 12px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background-image: radial-gradient(rgba(0,0,0,0.04) 1px, transparent 0);
  background-size: 16px 16px;
}

.wa-date-pill {
  align-self: center;
  background: rgba(255, 255, 255, 0.7);
  padding: 3px 10px;
  border-radius: var(--radius-full);
  font-size: 0.65rem;
  font-weight: 600;
  color: var(--slate-600);
  box-shadow: 0 1px 2px rgba(0,0,0,0.05);
}

.wa-bubble {
  max-width: 86%;
  padding: 8px 12px;
  border-radius: 12px;
  font-size: 0.8rem;
  line-height: 1.35;
  position: relative;
  box-shadow: 0 1px 2px rgba(0,0,0,0.08);
}

.wa-bubble.incoming {
  align-self: flex-start;
  background: var(--wa-bubble);
  border-top-left-radius: 3px;
  color: #111B21;
}

.wa-bubble.outgoing {
  align-self: flex-end;
  background: var(--wa-bubble-out);
  border-top-right-radius: 3px;
  color: #111B21;
}

.wa-time {
  display: inline-block;
  font-size: 0.62rem;
  color: #667781;
  float: right;
  margin-top: 4px;
  margin-left: 8px;
}

.wa-check {
  color: #53BDEB;
  margin-left: 2px;
}

/* Audio Voice Note Bubble */
.wa-voice-bubble {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 190px;
}

.wa-play-btn {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--wa-green);
  color: var(--white);
  border: none;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
  cursor: pointer;
  flex-shrink: 0;
}

.wa-waveform {
  display: flex;
  align-items: center;
  gap: 2px;
  flex: 1;
  height: 24px;
}

.waveform-bar {
  width: 3px;
  background: #A0AAB0;
  border-radius: 2px;
  transition: height 0.2s;
}

.waveform-bar:nth-child(1) { height: 8px; }
.waveform-bar:nth-child(2) { height: 16px; }
.waveform-bar:nth-child(3) { height: 22px; }
.waveform-bar:nth-child(4) { height: 12px; }
.waveform-bar:nth-child(5) { height: 18px; }
.waveform-bar:nth-child(6) { height: 24px; }
.waveform-bar:nth-child(7) { height: 14px; }
.waveform-bar:nth-child(8) { height: 9px; }

.wa-transcription-tag {
  display: block;
  font-size: 0.65rem;
  color: var(--primary);
  font-weight: 700;
  margin-top: 4px;
}

/* Numbered Slot Selection Chips */
.wa-slot-card {
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-radius: 8px;
  padding: 6px 8px;
  margin: 4px 0;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 6px;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.wa-slot-card:hover, .wa-slot-card.selected {
  background: #DCFCE7;
  border-color: #4ADE80;
  transform: translateX(3px);
}

.wa-slot-num {
  width: 20px;
  height: 20px;
  background: var(--wa-dark);
  color: var(--white);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.72rem;
  font-weight: 800;
}

/* Bottom Interactive Quick Replies */
.wa-interactive-bar {
  background: #F0F2F5;
  padding: 8px 10px;
  border-top: 1px solid #E9EDEF;
  display: flex;
  gap: 6px;
  overflow-x: auto;
}

.wa-reply-chip {
  background: var(--white);
  border: 1px solid #D1D7DB;
  border-radius: var(--radius-full);
  padding: 5px 12px;
  font-size: 0.72rem;
  font-weight: 600;
  color: var(--slate-800);
  cursor: pointer;
  white-space: nowrap;
  transition: all var(--transition-fast);
}

.wa-reply-chip:hover {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Realistic Laptop Frame (Desktop System Preview) */
.laptop-frame {
  background: #1E293B;
  border-radius: 20px 20px 6px 6px;
  padding: 10px 10px 14px 10px;
  box-shadow: 
    0 30px 70px -20px rgba(11, 30, 54, 0.35),
    0 0 0 1px rgba(255, 255, 255, 0.15);
  position: relative;
}

.laptop-top-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 4px 10px 8px 10px;
  color: #94A3B8;
  font-size: 0.75rem;
}

.window-dots {
  display: flex;
  gap: 6px;
}

.window-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.window-dot.red { background: #FF5F56; }
.window-dot.yellow { background: #FFBD2E; }
.window-dot.green { background: #27C93F; }

.laptop-screen {
  background: var(--white);
  border-radius: 10px;
  overflow: hidden;
  height: 520px;
  display: flex;
  flex-direction: column;
}

/* Clinic App Internal Mock Header */
.app-mock-header {
  background: var(--slate-900);
  color: var(--white);
  padding: 10px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.8rem;
}

.app-mock-title {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 700;
}

.app-nav-tabs {
  display: flex;
  gap: 14px;
}

.app-nav-tab {
  padding: 4px 10px;
  border-radius: 6px;
  font-weight: 600;
  color: #94A3B8;
  cursor: pointer;
}

.app-nav-tab.active {
  background: var(--primary);
  color: var(--white);
}

.app-mock-body {
  flex: 1;
  padding: 14px;
  background: var(--slate-50);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Agenda Grid Preview */
.agenda-mock-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  background: var(--white);
  padding: 10px 14px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
}

.agenda-date-badge {
  font-weight: 800;
  color: var(--slate-900);
  display: flex;
  align-items: center;
  gap: 8px;
}

.agenda-actions-mini {
  display: flex;
  gap: 8px;
}

.mini-btn {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  border: 1px solid var(--slate-200);
  background: var(--white);
  cursor: pointer;
}

.mini-btn.primary {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
}

/* Chair Columns Grid */
.chair-columns-grid {
  display: grid;
  grid-template-columns: 70px repeat(3, 1fr);
  gap: 10px;
  background: var(--white);
  padding: 12px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-200);
  flex: 1;
}

.col-header {
  font-size: 0.75rem;
  font-weight: 700;
  color: var(--slate-700);
  padding: 6px 8px;
  background: var(--slate-100);
  border-radius: 6px;
  text-align: center;
}

.time-col {
  display: flex;
  flex-direction: column;
  gap: 22px;
  font-size: 0.72rem;
  color: var(--slate-500);
  font-weight: 600;
  padding-top: 36px;
}

.chair-col {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.appointment-card {
  padding: 8px 10px;
  border-radius: 8px;
  font-size: 0.75rem;
  border-left: 4px solid var(--primary);
  box-shadow: 0 1px 3px rgba(0,0,0,0.06);
  cursor: pointer;
  transition: transform var(--transition-fast);
}

.appointment-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.app-card-blue {
  background: #EFF6FF;
  border-left-color: #2563EB;
}

.app-card-emerald {
  background: #ECFDF5;
  border-left-color: #10B981;
}

.app-card-purple {
  background: #FAF5FF;
  border-left-color: #9333EA;
}

.app-card-amber {
  background: #FFFBEB;
  border-left-color: #D97706;
}

.app-patient-name {
  font-weight: 700;
  color: var(--slate-900);
  display: flex;
  justify-content: space-between;
}

.app-service-label {
  font-size: 0.7rem;
  color: var(--slate-600);
  margin-top: 2px;
}

.app-badges-row {
  display: flex;
  gap: 4px;
  margin-top: 4px;
}

.micro-badge {
  font-size: 0.62rem;
  font-weight: 700;
  padding: 1px 6px;
  border-radius: 4px;
}

.micro-badge.ars {
  background: #DBEAFE;
  color: #1E40AF;
}

.micro-badge.alert {
  background: #FEE2E2;
  color: #991B1B;
}

.micro-badge.wa {
  background: #DCFCE7;
  color: #166534;
}

.empty-slot-card {
  border: 1px dashed #CBD5E1;
  border-radius: 8px;
  padding: 8px;
  text-align: center;
  font-size: 0.7rem;
  color: var(--slate-400);
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

/* ==========================================================================
   Section 3: "¿Te pasa esto?" (8 Clinic Pain Points)
   ========================================================================== */
.pain-points-section {
  background: var(--slate-50);
  position: relative;
}

.pain-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.pain-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 30px 26px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  position: relative;
  transition: all var(--transition-bounce);
  overflow: hidden;
}

.pain-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(239, 68, 68, 0.3);
}

.pain-icon-wrap {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  background: #FEF2F2;
  color: #EF4444;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  margin-bottom: 20px;
  border: 1px solid #FEE2E2;
}

.pain-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-950);
  margin-bottom: 10px;
  line-height: 1.3;
}

.pain-desc {
  font-size: 0.92rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 18px;
}

.pain-solution {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--primary-dark);
  background: var(--primary-tint);
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--primary);
}

.pain-solution i {
  color: var(--primary);
  font-size: 1rem;
  margin-top: 1px;
}

/* ==========================================================================
   Section 4: El Asistente de WhatsApp ("Auto Agenda AI")
   ========================================================================== */
.assistant-section {
  background: var(--white);
  position: relative;
}

.features-split {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 50px;
  align-items: center;
  margin-top: 40px;
}

.diff-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.diff-item {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  padding: 16px 20px;
  background: var(--white);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-xs);
  transition: all var(--transition-fast);
}

.diff-item:hover {
  border-color: var(--primary-lighter);
  background: var(--primary-tint);
  transform: translateX(4px);
}

.diff-num {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 0.88rem;
  flex-shrink: 0;
}

.diff-content h4 {
  font-size: 1.02rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.diff-content p {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* Clinical Scenarios Showcase Card */
.clinical-showcase-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-lg);
  padding: 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  position: relative;
  overflow: hidden;
}

.showcase-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--slate-100);
}

.showcase-header-left {
  display: flex;
  align-items: center;
  gap: 12px;
}

.showcase-header-left i {
  font-size: 1.5rem;
  color: var(--primary);
}

.showcase-title-wrap {
  display: flex;
  flex-direction: column;
}

.showcase-title-wrap strong {
  font-size: 1rem;
  font-weight: 800;
  color: var(--slate-950);
}

.showcase-subtitle {
  font-size: 0.76rem;
  color: var(--slate-500);
}

/* Scenario Pills */
.scenario-nav-pills {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

@media (min-width: 640px) {
  .scenario-nav-pills {
    grid-template-columns: repeat(4, 1fr);
  }
}

.scenario-pill {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 9px 12px;
  border-radius: var(--radius-sm);
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.scenario-pill:hover {
  background: var(--slate-200);
  color: var(--slate-900);
}

.scenario-pill.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 12px rgba(21, 101, 192, 0.25);
}

/* Scenario Display Screen */
.scenario-display-screen {
  background: var(--wa-bg);
  border-radius: var(--radius-md);
  padding: 16px;
  min-height: 290px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  border: 1px solid #E2E8F0;
  transition: opacity 0.2s ease;
}

/* Impact Bar */
.scenario-impact-bar {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: #F0FDF4;
  border: 1px solid #BBF7D0;
  border-left: 4px solid #10B981;
  border-radius: var(--radius-sm);
  padding: 12px 14px;
  font-size: 0.82rem;
  color: #166534;
  line-height: 1.45;
}

/* ==========================================================================
   Section 5: Menos ausencias, más sillones llenos
   ========================================================================== */
.retention-section {
  background: #F8FAFD;
  position: relative;
}

.timeline-flow {
  position: relative;
  max-width: 980px;
  margin: 50px auto 0 auto;
}

.timeline-line {
  position: absolute;
  top: 36px;
  left: 40px;
  right: 40px;
  height: 4px;
  background: #E2E8F0;
  z-index: 1;
}

.timeline-progress {
  position: absolute;
  top: 0;
  left: 0;
  width: 65%;
  height: 100%;
  background: linear-gradient(90deg, var(--primary) 0%, var(--wa-green) 100%);
  border-radius: 2px;
}

.timeline-steps {
  position: relative;
  z-index: 2;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 20px;
}

.timeline-step {
  text-align: center;
  cursor: pointer;
}

.step-node {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--white);
  border: 4px solid var(--primary);
  color: var(--primary);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  margin: 0 auto 16px auto;
  font-weight: 800;
  font-size: 0.95rem;
  box-shadow: var(--shadow-md);
  transition: all var(--transition-bounce);
}

.timeline-step:hover .step-node, .timeline-step.active .step-node {
  background: var(--primary);
  color: var(--white);
  transform: scale(1.1);
  box-shadow: var(--shadow-glow);
}

.step-time {
  font-size: 0.8rem;
  font-weight: 800;
  color: var(--slate-900);
  margin-bottom: 4px;
}

.step-desc {
  font-size: 0.82rem;
  color: var(--slate-600);
  line-height: 1.35;
}

/* Timeline Message Preview Card */
.timeline-card-preview {
  margin-top: 40px;
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--slate-200);
  padding: 24px 30px;
  box-shadow: var(--shadow-md);
  max-width: 780px;
  margin-left: auto;
  margin-right: auto;
  display: flex;
  gap: 24px;
  align-items: center;
}

.preview-bubble-side {
  flex: 1;
}

.preview-info-side {
  flex: 1;
  border-left: 1px solid var(--slate-200);
  padding-left: 24px;
}

/* Pillars Grid (3 cards) */
.pillars-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 60px;
}

.pillar-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 32px 28px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  transition: all var(--transition-bounce);
}

.pillar-card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-light);
}

.pillar-icon {
  width: 58px;
  height: 58px;
  border-radius: 16px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.6rem;
  margin-bottom: 20px;
}

.pillar-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--slate-950);
  margin-bottom: 12px;
}

.pillar-desc {
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Section 6: Todo tu día en una pantalla (Multi-Device Workspace)
   ========================================================================== */
.multidevice-section {
  background: var(--white);
}

.device-tab-bar {
  display: flex;
  justify-content: center;
  gap: 12px;
  margin-top: 36px;
  margin-bottom: 40px;
  flex-wrap: wrap;
}

.device-tab-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--slate-100);
  border: 1px solid var(--slate-200);
  color: var(--slate-700);
  padding: 12px 22px;
  border-radius: var(--radius-full);
  font-size: 0.92rem;
  font-weight: 700;
  cursor: pointer;
  transition: all var(--transition-fast);
}

.device-tab-btn:hover {
  background: var(--slate-200);
}

.device-tab-btn.active {
  background: var(--primary);
  color: var(--white);
  border-color: var(--primary);
  box-shadow: 0 4px 14px rgba(21, 101, 192, 0.3);
}

.device-display-box {
  background: var(--slate-950);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  min-height: 520px;
  display: flex;
  flex-direction: column;
}

.device-view-content {
  display: none;
  height: 100%;
}

.device-view-content.active {
  display: block;
  animation: fadeIn 0.3s ease-in;
}

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

/* Tablero "Hoy" Reception View */
.hoy-board-container {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 14px;
  height: 100%;
  overflow-x: auto;
}

.hoy-column {
  background: var(--slate-900);
  border-radius: var(--radius-md);
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 170px;
}

.hoy-col-title {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.8rem;
  font-weight: 700;
  color: var(--slate-300);
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.hoy-count-badge {
  background: rgba(255, 255, 255, 0.1);
  padding: 2px 7px;
  border-radius: var(--radius-full);
  font-size: 0.72rem;
}

.hoy-patient-card {
  background: var(--white);
  border-radius: var(--radius-sm);
  padding: 10px;
  color: var(--slate-900);
  font-size: 0.78rem;
  box-shadow: var(--shadow-sm);
  transition: transform var(--transition-fast);
}

.hoy-patient-card:hover {
  transform: translateY(-2px);
}

.hoy-card-header {
  display: flex;
  justify-content: space-between;
  font-weight: 700;
  margin-bottom: 4px;
}

.hoy-one-touch-btns {
  display: flex;
  gap: 4px;
  margin-top: 8px;
}

.touch-btn {
  flex: 1;
  padding: 4px 6px;
  font-size: 0.68rem;
  font-weight: 700;
  border: none;
  border-radius: 4px;
  cursor: pointer;
  background: var(--slate-100);
  color: var(--slate-700);
  transition: all var(--transition-fast);
}

.touch-btn:hover {
  background: var(--primary);
  color: var(--white);
}

/* Ficha del Paciente View */
.ficha-view-container {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--slate-900);
}

.ficha-header-glance {
  display: flex;
  justify-content: space-between;
  align-items: center;
  border-bottom: 1px solid var(--slate-200);
  padding-bottom: 16px;
  margin-bottom: 16px;
  flex-wrap: wrap;
  gap: 16px;
}

.medical-alert-traffic {
  display: flex;
  align-items: center;
  gap: 8px;
  background: #FEF2F2;
  border: 1px solid #FCA5A5;
  padding: 6px 12px;
  border-radius: var(--radius-full);
  font-size: 0.8rem;
  font-weight: 700;
  color: #B91C1C;
}

.traffic-light-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #EF4444;
  box-shadow: 0 0 6px #EF4444;
}

/* Odontograma Preview View */
.odontograma-interactive-wrap {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 20px;
  color: var(--slate-900);
}

.teeth-arch-row {
  display: flex;
  justify-content: center;
  gap: 8px;
  margin: 14px 0;
  flex-wrap: wrap;
}

.tooth-item {
  width: 44px;
  height: 60px;
  border: 1px solid var(--slate-300);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: space-between;
  padding: 4px;
  cursor: pointer;
  background: var(--slate-50);
  transition: all var(--transition-fast);
}

.tooth-item:hover, .tooth-item.selected {
  border-color: var(--primary);
  background: var(--primary-surface);
  transform: translateY(-3px);
  box-shadow: var(--shadow-sm);
}

.tooth-num {
  font-size: 0.65rem;
  font-weight: 800;
  color: var(--slate-600);
}

.tooth-graphic {
  width: 22px;
  height: 22px;
}

.tooth-status-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success);
}

.tooth-status-dot.caries { background: var(--danger); }
.tooth-status-dot.crown { background: var(--purple); }
.tooth-status-dot.filling { background: var(--cyan); }

/* ==========================================================================
   Section 7: Módulos del Sistema (Interactive Showcase Grid)
   ========================================================================== */
.modules-section {
  background: var(--slate-50);
}

.modules-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(340px, 1fr));
  gap: 24px;
  margin-top: 48px;
}

.module-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  transition: all var(--transition-bounce);
}

.module-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: var(--primary-lighter);
}

.module-top {
  margin-bottom: 20px;
}

.module-icon-badge {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
}

.module-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
}

.module-title {
  font-size: 1.2rem;
  font-weight: 800;
  color: var(--slate-950);
  margin-bottom: 8px;
}

.module-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.55;
  margin-bottom: 16px;
}

.module-features-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
  border-top: 1px solid var(--slate-100);
  padding-top: 14px;
}

.module-features-list li {
  font-size: 0.84rem;
  color: var(--slate-700);
  display: flex;
  align-items: center;
  gap: 8px;
}

.module-features-list li i {
  color: var(--primary);
  font-size: 0.9rem;
}

/* ==========================================================================
   Section 8: Tablero de Valor (Value Dashboard)
   ========================================================================== */
.value-board-section {
  background: linear-gradient(180deg, #0B1E36 0%, #07111E 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.value-board-section::before {
  content: '';
  position: absolute;
  top: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 1000px;
  height: 500px;
  background: radial-gradient(circle, rgba(21, 101, 192, 0.15) 0%, transparent 70%);
  pointer-events: none;
}

.value-board-header {
  text-align: center;
  margin-bottom: 48px;
  position: relative;
  z-index: 1;
}

.value-board-header .section-title {
  color: var(--white);
}

.value-board-header .section-subtitle {
  color: var(--slate-400);
}

.value-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 20px;
  position: relative;
  z-index: 1;
}

.value-card {
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-lg);
  padding: 24px;
  backdrop-filter: blur(12px);
  transition: all var(--transition-bounce);
  position: relative;
}

.value-card:hover {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(30, 136, 229, 0.4);
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.3);
}

.value-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 12px;
}

.value-card-label {
  font-size: 0.88rem;
  color: var(--slate-300);
  font-weight: 600;
}

.value-info-tooltip-btn {
  background: transparent;
  border: none;
  color: var(--slate-400);
  cursor: pointer;
  font-size: 1rem;
  transition: color var(--transition-fast);
}

.value-info-tooltip-btn:hover {
  color: #38BDF8;
}

.value-card-num {
  font-size: 2.2rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--white);
  line-height: 1.1;
  margin-bottom: 8px;
}

.value-card-comparison {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.78rem;
  font-weight: 700;
}

.comp-up {
  color: #34D399;
}

.comp-down {
  color: #F87171;
}

.value-card-desc {
  font-size: 0.76rem;
  color: var(--slate-400);
  margin-top: 10px;
  line-height: 1.4;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  padding-top: 10px;
}

/* ==========================================================================
   Section 9: Cómo Funciona (4 Pasos)
   ========================================================================== */
.how-it-works-section {
  background: var(--white);
}

.steps-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 28px;
  margin-top: 50px;
  position: relative;
}

.step-box {
  background: var(--slate-50);
  border-radius: var(--radius-lg);
  padding: 32px 24px;
  border: 1px solid var(--slate-200);
  position: relative;
  transition: all var(--transition-bounce);
}

.step-box:hover {
  background: var(--white);
  border-color: var(--primary);
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
}

.step-num-badge {
  position: absolute;
  top: -16px;
  left: 24px;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--white);
  font-weight: 800;
  font-size: 1rem;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 4px 10px rgba(21, 101, 192, 0.35);
}

.step-box-icon {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: 16px;
  margin-top: 8px;
}

.step-box-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--slate-950);
  margin-bottom: 10px;
}

.step-box-desc {
  font-size: 0.9rem;
  color: var(--slate-600);
  line-height: 1.55;
}

/* ==========================================================================
   Section 10: Bilingüe de Verdad (Spanish / English Comparison)
   ========================================================================== */
.bilingual-section {
  background: var(--slate-50);
}

.bilingual-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  border: 1px solid var(--slate-200);
  box-shadow: var(--shadow-md);
  padding: 40px;
  margin-top: 40px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 40px;
}

.bilingual-lang-col {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.bilingual-flag-header {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-900);
  padding-bottom: 10px;
  border-bottom: 2px solid var(--slate-100);
}

/* ==========================================================================
   Section 11: Seguridad y Privacidad (Compliance & Trust)
   ========================================================================== */
.security-section {
  background: var(--white);
}

.security-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-top: 44px;
}

.security-card {
  background: #F8FAFD;
  border-radius: var(--radius-lg);
  padding: 28px;
  border: 1px solid var(--slate-200);
  transition: all var(--transition-fast);
}

.security-card:hover {
  background: var(--white);
  border-color: var(--primary);
  box-shadow: var(--shadow-md);
}

.security-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  background: var(--primary-surface);
  color: var(--primary);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  margin-bottom: 16px;
}

.security-title {
  font-size: 1.1rem;
  font-weight: 800;
  color: var(--slate-950);
  margin-bottom: 8px;
}

.security-desc {
  font-size: 0.88rem;
  color: var(--slate-600);
  line-height: 1.5;
}

/* ==========================================================================
   Section 12: Lo que viene ("Próximamente")
   ========================================================================== */
.roadmap-section {
  background: #F4F6FB;
}

.roadmap-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
  margin-top: 40px;
}

.roadmap-card {
  background: var(--white);
  border-radius: var(--radius-md);
  padding: 22px;
  border: 1px dashed #C084FC;
  box-shadow: var(--shadow-xs);
  position: relative;
}

.roadmap-card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 10px;
}

.roadmap-card-title {
  font-size: 1.05rem;
  font-weight: 800;
  color: var(--slate-900);
}

.roadmap-card-desc {
  font-size: 0.86rem;
  color: var(--slate-600);
  line-height: 1.45;
}

/* ==========================================================================
   Section 13: FAQ (Preguntas Frecuentes Accordion)
   ========================================================================== */
.faq-section {
  background: var(--white);
}

.faq-wrapper {
  max-width: 860px;
  margin: 44px auto 0 auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.faq-item {
  background: var(--slate-50);
  border-radius: var(--radius-md);
  border: 1px solid var(--slate-200);
  overflow: hidden;
  transition: all var(--transition-fast);
}

.faq-item.active {
  border-color: var(--primary);
  background: var(--white);
  box-shadow: var(--shadow-sm);
}

.faq-question-btn {
  width: 100%;
  padding: 20px 24px;
  background: transparent;
  border: none;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-align: left;
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--slate-900);
  cursor: pointer;
}

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

.faq-item.active .faq-icon {
  transform: rotate(180deg);
}

.faq-answer {
  max-height: 0;
  overflow: hidden;
  transition: max-height 0.35s ease-out;
  padding: 0 24px;
}

.faq-answer-inner {
  padding-bottom: 20px;
  font-size: 0.95rem;
  color: var(--slate-600);
  line-height: 1.6;
}

/* ==========================================================================
   Section 14: Llamada Final & Formulario de Conversión
   ========================================================================== */
.cta-conversion-section {
  background: linear-gradient(135deg, #0B1E36 0%, #071526 100%);
  color: var(--white);
  position: relative;
  overflow: hidden;
}

.conversion-box {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
}

.conversion-info h2 {
  font-size: clamp(2rem, 3.5vw, 2.8rem);
  font-weight: 900;
  line-height: 1.15;
  margin-bottom: 20px;
}

.conversion-info p {
  font-size: 1.1rem;
  color: var(--slate-300);
  line-height: 1.65;
  margin-bottom: 30px;
}

.conversion-bullets {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 14px;
  margin-bottom: 36px;
}

.conversion-bullets li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.95rem;
  color: var(--slate-200);
  font-weight: 600;
}

.conversion-bullets li i {
  color: var(--wa-green);
  font-size: 1.2rem;
}

/* Form Card */
.lead-form-card {
  background: var(--white);
  border-radius: var(--radius-xl);
  padding: 36px;
  color: var(--slate-900);
  box-shadow: var(--shadow-xl);
}

.form-group {
  margin-bottom: 18px;
}

.form-label {
  display: block;
  font-size: 0.85rem;
  font-weight: 700;
  color: var(--slate-800);
  margin-bottom: 6px;
}

.form-input, .form-select, .form-textarea {
  width: 100%;
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  border: 1px solid var(--slate-300);
  background: var(--slate-50);
  color: var(--slate-900);
  font-size: 0.95rem;
  transition: all var(--transition-fast);
}

.form-input:focus, .form-select:focus, .form-textarea:focus {
  outline: none;
  border-color: var(--primary);
  background: var(--white);
  box-shadow: 0 0 0 3px rgba(21, 101, 192, 0.15);
}

.form-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  font-size: 0.78rem;
  color: var(--slate-600);
  line-height: 1.4;
  margin-top: 14px;
  margin-bottom: 20px;
}

.form-check input {
  margin-top: 3px;
  cursor: pointer;
}

/* ==========================================================================
   Footer & Legal
   ========================================================================== */
.main-footer {
  background: #050D18;
  color: var(--slate-400);
  padding-top: 70px;
  padding-bottom: 30px;
  font-size: 0.88rem;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 50px;
}

.footer-col h5 {
  color: var(--white);
  font-size: 0.95rem;
  font-weight: 800;
  margin-bottom: 18px;
  letter-spacing: 0.02em;
}

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

.footer-links a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255, 255, 255, 0.06);
  font-size: 0.8rem;
  flex-wrap: wrap;
  gap: 16px;
}

/* Floating WhatsApp Button */
.floating-whatsapp {
  position: fixed;
  bottom: 28px;
  right: 28px;
  z-index: 999;
  display: flex;
  align-items: center;
  gap: 10px;
  background: #25D366;
  color: var(--white);
  padding: 12px 20px;
  border-radius: var(--radius-full);
  box-shadow: var(--shadow-wa-glow);
  font-weight: 700;
  font-size: 0.95rem;
  text-decoration: none;
  transition: all var(--transition-bounce);
}

.floating-whatsapp:hover {
  transform: translateY(-4px) scale(1.03);
  box-shadow: 0 14px 34px rgba(37, 211, 102, 0.5);
  color: var(--white);
}

.floating-whatsapp i {
  font-size: 1.4rem;
}

/* Back to Top */
.back-to-top {
  position: fixed;
  bottom: 28px;
  left: 28px;
  width: 44px;
  height: 44px;
  background: var(--white);
  color: var(--slate-800);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: var(--shadow-md);
  border: 1px solid var(--slate-200);
  cursor: pointer;
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: all var(--transition-fast);
}

.back-to-top.visible {
  opacity: 1;
  pointer-events: auto;
}

.back-to-top:hover {
  background: var(--primary);
  color: var(--white);
}

/* ==========================================================================
   Helper & Form Layout Classes
   ========================================================================== */
.form-row-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
}

.view-inner-card {
  background: #FFFFFF;
  border-radius: 12px;
  padding: 18px;
  color: #0B1E36;
}

.view-card-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 14px;
}

.pulse-dot {
  flex-shrink: 0;
}

.wa-slot-num {
  flex-shrink: 0;
}

.faq-icon {
  flex-shrink: 0;
  margin-left: 12px;
}

/* Prevent grid children from blowing out container width on mobile */
.devices-wrapper > *,
.features-split > *,
.bilingual-card > *,
.conversion-box > *,
.pain-grid > *,
.modules-grid > *,
.value-grid > *,
.steps-roadmap > *,
.security-grid > * {
  min-width: 0;
  max-width: 100%;
}

/* ==========================================================================
   Responsive Breakpoints
   ========================================================================== */
@media (max-width: 1200px) {
  .nav-menu {
    gap: 12px;
  }
  .nav-link {
    font-size: 0.8rem;
    padding: 6px 1px;
  }
  .btn-nav-cta {
    padding: 8px 14px;
    font-size: 0.8rem;
  }
  .devices-wrapper {
    grid-template-columns: 320px 1fr;
    gap: 20px;
  }
}

@media (max-width: 1080px) {
  .nav-menu {
    display: none;
    position: absolute;
    top: 72px;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    flex-direction: column;
    padding: 20px 24px 24px 24px;
    border-bottom: 1px solid var(--slate-200);
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.12);
    gap: 10px;
    margin: 0;
    z-index: 1000;
  }

  .nav-menu.mobile-open {
    display: flex;
  }

  .nav-menu li {
    width: 100%;
  }

  .nav-menu .nav-link {
    display: block;
    font-size: 0.95rem;
    padding: 10px 0;
    width: 100%;
    border-bottom: 1px solid var(--slate-100);
  }

  .mobile-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 4px;
  }

  .btn-nav-cta {
    display: none;
  }

  .nav-menu-cta-item {
    display: block;
    width: 100%;
    margin-top: 8px;
    padding-top: 4px;
  }

  .nav-menu-cta {
    display: inline-flex;
    width: 100%;
    justify-content: center;
  }

  .devices-wrapper {
    grid-template-columns: 1fr;
    max-width: 680px;
    margin: 0 auto;
    gap: 28px;
  }

  .iphone-frame {
    margin: 0 auto;
    max-width: 340px;
  }

  .features-split {
    grid-template-columns: 1fr;
    gap: 32px;
  }

  .bilingual-card {
    grid-template-columns: 1fr;
    padding: 24px;
    gap: 24px;
  }

  .bilingual-lang-col .wa-bubble {
    max-width: 100%;
    width: 100%;
  }

  .conversion-box {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .footer-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 16px;
    padding-right: 16px;
  }

  .section-padding {
    padding-top: 64px;
    padding-bottom: 64px;
  }

  /* Top Bar */
  .top-bar {
    padding: 6px 0;
  }

  .top-bar-inner {
    gap: 10px;
  }

  .top-bar-left {
    min-width: 0;
    flex: 1;
  }

  .pulse-indicator {
    font-size: 0.72rem;
    line-height: 1.25;
    gap: 6px;
  }

  .top-bar-right {
    flex-shrink: 0;
  }

  /* Header */
  .nav-container {
    height: 64px;
  }

  .nav-menu {
    top: 64px;
    padding: 16px;
  }

  /* Section Badges & Titles */
  .hero-tag,
  .section-badge {
    max-width: 100%;
    white-space: normal;
    text-align: center;
    justify-content: center;
    line-height: 1.35;
    font-size: 0.76rem;
    padding: 6px 12px;
  }

  .hero-section {
    padding-top: 32px;
    padding-bottom: 56px;
  }

  .hero-content {
    margin-bottom: 32px;
  }

  .hero-title {
    font-size: clamp(1.85rem, 7vw, 2.35rem);
    line-height: 1.15;
    margin-bottom: 16px;
  }

  .section-title {
    font-size: clamp(1.65rem, 6vw, 2.15rem);
    line-height: 1.2;
    margin-bottom: 14px;
  }

  .hero-subtitle,
  .section-subtitle {
    font-size: 0.96rem;
    line-height: 1.55;
    margin-bottom: 24px;
  }

  /* Buttons */
  .btn {
    white-space: normal;
    text-align: center;
    padding: 13px 18px;
  }

  .btn-lg {
    padding: 14px 20px;
    font-size: 0.98rem;
  }

  .hero-cta-group {
    flex-direction: column;
    width: 100%;
    gap: 12px;
    margin-bottom: 24px;
  }

  .hero-cta-group .btn {
    width: 100%;
  }

  .conversion-info .btn {
    width: 100%;
  }

  /* Hero Trust Bar */
  .hero-trust-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 10px 12px;
    text-align: left;
    font-size: 0.78rem;
    background: var(--white);
    padding: 14px;
    border-radius: var(--radius-md);
    border: 1px solid var(--slate-200);
  }

  .trust-item {
    align-items: flex-start;
    line-height: 1.3;
  }

  /* iPhone Simulator in Hero */
  .iphone-frame {
    max-width: 100%;
    width: 100%;
    border-radius: 32px;
    padding: 8px;
  }

  .iphone-screen {
    border-radius: 24px;
    height: 490px;
  }

  .wa-bubble {
    max-width: 92%;
  }

  .wa-voice-bubble {
    min-width: 0;
    width: 100%;
  }

  /* 2x2 grid for quick reply chips so none are cut off on mobile */
  .wa-interactive-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 6px;
    overflow-x: visible;
    padding: 8px;
  }

  .wa-reply-chip {
    width: 100%;
    text-align: center;
    padding: 6px 8px;
    font-size: 0.71rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  /* Laptop Mockup in Hero & Multi-device Agenda */
  .laptop-frame {
    border-radius: 16px;
    padding: 8px;
    width: 100%;
  }

  .laptop-top-bar {
    font-size: 0.7rem;
    padding: 2px 6px 6px 6px;
  }

  .laptop-screen {
    height: auto;
    max-height: none;
  }

  .app-mock-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 10px 12px;
  }

  .app-nav-tabs {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 4px;
  }

  .app-nav-tab {
    text-align: center;
    padding: 5px 4px;
    font-size: 0.72rem;
  }

  .app-mock-body {
    padding: 10px;
  }

  .agenda-mock-top {
    flex-wrap: wrap;
    gap: 8px;
    padding: 8px 10px;
    font-size: 0.78rem;
  }

  /* Stack chairs cleanly on mobile so zero columns are cut off */
  .chair-columns-grid {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 10px;
    overflow-x: visible;
  }

  .time-col {
    display: none;
  }

  /* Grids: single column on mobile to prevent 340px card overflow */
  .pain-grid,
  .modules-grid,
  .value-grid,
  .steps-roadmap,
  .security-grid {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 28px;
  }

  .pain-card,
  .module-card,
  .value-card,
  .step-box,
  .security-card {
    padding: 22px 18px;
  }

  /* Assistant Section */
  .diff-item {
    padding: 14px 16px;
    gap: 12px;
  }

  .clinical-showcase-card {
    padding: 16px;
    border-radius: var(--radius-lg);
  }

  .scenario-pill {
    font-size: 0.76rem;
    padding: 8px 8px;
    text-align: center;
  }

  .scenario-display-screen {
    padding: 12px;
    min-height: 250px;
  }

  /* Retention Timeline: 2x2 grid on mobile */
  .timeline-flow {
    margin-top: 28px;
  }

  .timeline-steps {
    grid-template-columns: 1fr 1fr;
    gap: 16px 12px;
  }

  .timeline-line {
    display: none;
  }

  .step-node {
    width: 54px;
    height: 54px;
    margin-bottom: 10px;
    font-size: 0.85rem;
  }

  .step-desc {
    font-size: 0.76rem;
  }

  .timeline-card-preview {
    flex-direction: column;
    align-items: stretch;
    padding: 18px 16px;
    margin-top: 24px;
    gap: 16px;
  }

  .preview-bubble-side,
  .preview-info-side {
    width: 100%;
  }

  .preview-info-side {
    border-left: none;
    border-top: 1px solid var(--slate-200);
    padding-left: 0;
    padding-top: 14px;
  }

  /* Multi-Device Workspace */
  .device-tab-bar {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 24px;
    margin-bottom: 20px;
  }

  .device-tab-btn {
    width: 100%;
    justify-content: center;
    padding: 10px 10px;
    font-size: 0.78rem;
    border-radius: var(--radius-sm);
    text-align: center;
  }

  .device-tab-btn:last-child:nth-child(odd) {
    grid-column: 1 / -1;
  }

  .device-display-box {
    padding: 12px;
    border-radius: var(--radius-lg);
    min-height: auto;
  }

  .view-inner-card,
  .ficha-view-container,
  .odontograma-interactive-wrap {
    padding: 14px;
  }

  .hoy-board-container {
    grid-template-columns: 1fr;
    gap: 10px;
    overflow-x: visible;
    padding-bottom: 4px;
  }

  .hoy-column {
    min-width: 0;
    width: 100%;
  }

  .medical-alert-traffic {
    font-size: 0.74rem;
    border-radius: var(--radius-sm);
    width: 100%;
  }

  .tooth-item {
    width: 36px;
    height: 52px;
  }

  /* Bilingual Section */
  .bilingual-card {
    padding: 18px 16px;
    margin-top: 24px;
  }

  /* FAQ Section */
  .faq-question-btn {
    padding: 16px;
    font-size: 0.94rem;
  }

  .faq-answer {
    padding: 0 16px;
  }

  .faq-answer-inner {
    font-size: 0.88rem;
    padding-bottom: 16px;
  }

  /* Lead Form */
  .conversion-info h2 {
    font-size: 1.75rem;
  }

  .conversion-info p {
    font-size: 0.96rem;
    margin-bottom: 20px;
  }

  .conversion-bullets {
    margin-bottom: 24px;
  }

  .lead-form-card {
    padding: 22px 16px;
    border-radius: var(--radius-lg);
  }

  .form-row-2 {
    grid-template-columns: 1fr;
    gap: 0;
  }

  /* Footer */
  .main-footer {
    padding-top: 48px;
    padding-bottom: 84px;
  }

  .footer-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    margin-bottom: 32px;
  }

  .footer-bottom {
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
  }

  /* Floating Buttons */
  .floating-whatsapp {
    bottom: 18px;
    right: 16px;
    width: 50px;
    height: 50px;
    padding: 0;
    justify-content: center;
    border-radius: 50%;
  }

  .floating-whatsapp span {
    display: none;
  }

  .back-to-top {
    bottom: 18px;
    left: 16px;
    width: 42px;
    height: 42px;
  }
}

@media (max-width: 400px) {
  .hero-trust-bar {
    grid-template-columns: 1fr;
  }

  .top-bar-left span {
    font-size: 0.68rem;
  }

  .brand-name-main {
    font-size: 1.02rem;
  }

  .brand-tag {
    font-size: 0.58rem;
  }

  .logo-icon {
    width: 34px;
    height: 34px;
    font-size: 1.05rem;
  }
}
