﻿/* ===================================
   CONSULTORIOS.PRO - Demo Page Styles
   =================================== */

:root {
  --bg-dark: #0b0f1a;
  --bg-surface: #0f172a;
  --bg-card: #1e293b;
  --bg-elevated: #334155;
  --border: rgba(255, 255, 255, 0.08);
  --border-hover: rgba(255, 255, 255, 0.15);
  
  --primary: #6366f1;
  --primary-light: #818cf8;
  --primary-dark: #4f46e5;
  --secondary: #22d3ee;
  --accent: #a855f7;
  
  --success: #22c55e;
  --warning: #f59e0b;
  --danger: #ef4444;
  --info: #0ea5e9;
  
  --text: #f1f5f9;
  --text-muted: #94a3b8;
  --text-dim: #64748b;
  
  --gradient-1: linear-gradient(135deg, #6366f1, #8b5cf6);
  --gradient-2: linear-gradient(135deg, #06b6d4, #3b82f6);
  --gradient-3: linear-gradient(135deg, #22c55e, #10b981);
  --gradient-4: linear-gradient(135deg, #22c55e, #06b6d4);
  --gradient-5: linear-gradient(135deg, #f59e0b, #ef4444);
  --gradient-6: linear-gradient(135deg, #ec4899, #8b5cf6);
  
  --shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.2);
  --shadow-md: 0 8px 24px rgba(0, 0, 0, 0.3);
  --shadow-lg: 0 16px 48px rgba(0, 0, 0, 0.4);
  --shadow-glow: 0 0 40px rgba(99, 102, 241, 0.3);
  
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 16px;
  --radius-xl: 24px;
}

* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
  overflow-x: hidden;
}

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
  background: var(--bg-dark);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Particles Background */
.particles {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
  overflow: hidden;
}

.particle {
  position: absolute;
  width: 4px;
  height: 4px;
  background: var(--primary);
  border-radius: 50%;
  opacity: 0.3;
  animation: float 15s infinite ease-in-out;
}

@keyframes float {
  0%, 100% { transform: translateY(0) translateX(0); }
  25% { transform: translateY(-30px) translateX(20px); }
  50% { transform: translateY(-10px) translateX(-10px); }
  75% { transform: translateY(-50px) translateX(30px); }
}

/* Navigation */
.nav-demo {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 48px;
  background: rgba(11, 15, 26, 0.8);
  backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--border);
}

.nav-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 1.25rem;
  font-weight: 700;
}

.logo-icon {
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--gradient-1);
  border-radius: var(--radius-md);
  color: white;
  font-size: 1.1rem;
}

.logo-icon.small {
  width: 32px;
  height: 32px;
  font-size: 0.9rem;
}

.nav-brand .highlight {
  color: var(--primary-light);
}

.nav-links {
  display: flex;
  gap: 32px;
}

.nav-links a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.9rem;
  transition: color 0.2s;
}

.nav-links a:hover {
  color: var(--text);
}

/* Hero Section */
.hero {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1fr 1.2fr;
  gap: 60px;
  align-items: center;
  padding: 120px 60px 60px;
  position: relative;
  z-index: 1;
}

.hero::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: radial-gradient(ellipse at 30% 20%, rgba(99, 102, 241, 0.15) 0%, transparent 50%),
              radial-gradient(ellipse at 70% 80%, rgba(34, 211, 238, 0.1) 0%, transparent 50%);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
}

.hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 8px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 24px;
}

.hero-badge i {
  color: var(--secondary);
}

.hero h1 {
  font-size: 3.5rem;
  font-weight: 800;
  line-height: 1.1;
  margin-bottom: 24px;
}

.gradient-text {
  background: var(--gradient-1);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-description {
  font-size: 1.2rem;
  color: var(--text-muted);
  max-width: 500px;
  margin-bottom: 40px;
}

.hero-stats {
  display: flex;
  gap: 32px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 12px;
}

.stat-icon {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  color: var(--primary-light);
  font-size: 1.2rem;
}

.stat-info {
  display: flex;
  flex-direction: column;
}

.stat-value {
  font-weight: 600;
  color: var(--text);
}

.stat-label {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Hero Mockup */
.hero-mockup {
  position: relative;
  z-index: 2;
  max-width: 100%;
  overflow: hidden;
}

.mockup-window {
  background: var(--bg-surface);
  border-radius: var(--radius-xl);
  border: 1px solid var(--border);
  overflow: hidden;
  box-shadow: var(--shadow-lg), var(--shadow-glow);
  animation: floatMockup 6s ease-in-out infinite;
  max-width: 100%;
}

@keyframes floatMockup {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-10px); }
}

.mockup-header {
  display: flex;
  align-items: center;
  gap: 16px;
  padding: 12px 16px;
  background: var(--bg-card);
  border-bottom: 1px solid var(--border);
}

.mockup-dots {
  display: flex;
  gap: 6px;
}

.mockup-dots span {
  width: 10px;
  height: 10px;
  border-radius: 50%;
}

.mockup-dots span:nth-child(1) { background: #ef4444; }
.mockup-dots span:nth-child(2) { background: #f59e0b; }
.mockup-dots span:nth-child(3) { background: #22c55e; }

.mockup-title {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.mockup-content {
  display: grid;
  grid-template-columns: 180px 1fr;
  min-height: 400px;
  overflow: hidden;
}

/* Mock Sidebar */
.mock-sidebar {
  background: rgba(15, 23, 42, 0.8);
  padding: 16px;
  border-right: 1px solid var(--border);
}

.mock-user {
  display: flex;
  align-items: center;
  gap: 10px;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 16px;
}

.mock-avatar {
  width: 36px;
  height: 36px;
  background: var(--gradient-1);
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 0.9rem;
}

.mock-user-info {
  display: flex;
  flex-direction: column;
}

.mock-name {
  font-weight: 600;
  font-size: 0.85rem;
}

.mock-role {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.mock-nav {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.mock-nav-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  color: var(--text-muted);
  cursor: pointer;
  transition: all 0.2s;
}

.mock-nav-item:hover {
  background: rgba(255, 255, 255, 0.05);
}

.mock-nav-item.active {
  background: rgba(99, 102, 241, 0.2);
  color: var(--primary-light);
}

/* Mock Main Content */
.mock-main {
  display: grid;
  grid-template-columns: 1fr 200px;
  padding: 16px;
  gap: 16px;
}

.mock-calendar {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 16px;
}

.mock-calendar-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  font-weight: 600;
}

.mock-nav-btns {
  display: flex;
  gap: 4px;
}

.mock-nav-btns button {
  width: 28px;
  height: 28px;
  background: var(--bg-elevated);
  border: none;
  border-radius: var(--radius-sm);
  color: var(--text-muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.7rem;
}

.mock-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.mock-day-header {
  text-align: center;
  font-size: 0.65rem;
  color: var(--text-dim);
  padding: 4px;
}

.mock-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 0.75rem;
  border-radius: var(--radius-sm);
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.mock-day:hover:not(.empty) {
  background: rgba(255, 255, 255, 0.05);
}

.mock-day.empty {
  opacity: 0.3;
}

.mock-day.today {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.apt-dot {
  width: 4px;
  height: 4px;
  background: var(--warning);
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

.apt-dot.confirmed {
  background: var(--success);
}

/* Mock Day Detail */
.mock-day-detail {
  background: var(--bg-card);
  border-radius: var(--radius-md);
  padding: 12px;
}

.mock-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 12px;
  font-size: 0.85rem;
  font-weight: 600;
}

.mock-btn-primary {
  background: var(--gradient-1);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-sm);
  font-size: 0.7rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
}

.mock-appointments {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.mock-apt {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  background: rgba(255, 255, 255, 0.03);
  border-radius: var(--radius-sm);
  border-left: 3px solid var(--warning);
}

.mock-apt.confirmed {
  border-left-color: var(--success);
}

.mock-apt.pending {
  border-left-color: var(--warning);
}

.mock-apt.available {
  border-left-color: var(--text-dim);
  opacity: 0.6;
}

.mock-apt-time {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 40px;
}

.mock-apt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.mock-apt-name {
  font-size: 0.8rem;
  font-weight: 500;
}

.mock-apt-reason {
  font-size: 0.7rem;
  color: var(--text-dim);
}

.mock-apt-status {
  color: var(--success);
  font-size: 0.9rem;
}

.mock-apt.pending .mock-apt-status {
  color: var(--warning);
}

/* Section Styles */
.section-header {
  text-align: center;
  max-width: 700px;
  margin: 0 auto 60px;
}

.section-badge {
  display: inline-block;
  background: rgba(99, 102, 241, 0.15);
  border: 1px solid rgba(99, 102, 241, 0.3);
  padding: 6px 16px;
  border-radius: 100px;
  font-size: 0.85rem;
  color: var(--primary-light);
  margin-bottom: 16px;
}

.section-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.section-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
}

/* Features Grid */
.features-section {
  padding: 100px 60px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, transparent 0%, rgba(15, 23, 42, 0.5) 100%);
}

.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 24px;
  max-width: 1200px;
  margin: 0 auto;
}

.feature-card {
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}

.feature-card:hover {
  border-color: var(--border-hover);
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.feature-icon {
  width: 56px;
  height: 56px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-md);
  font-size: 1.5rem;
  color: white;
  margin-bottom: 20px;
}

.feature-icon.gradient-1 { background: var(--gradient-1); }
.feature-icon.gradient-2 { background: var(--gradient-2); }
.feature-icon.gradient-3 { background: var(--gradient-3); }
.feature-icon.gradient-4 { background: var(--gradient-4); }
.feature-icon.gradient-5 { background: var(--gradient-5); }
.feature-icon.gradient-6 { background: var(--gradient-6); }

.feature-card h3 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 12px;
}

.feature-card > p {
  color: var(--text-muted);
  margin-bottom: 20px;
  font-size: 0.95rem;
}

.feature-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.feature-list li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 0.9rem;
  color: var(--text-muted);
}

.feature-list li i {
  color: var(--success);
  font-size: 0.8rem;
}

/* Demo Sections */
.demo-section {
  padding: 100px 60px;
  position: relative;
  z-index: 1;
}

.demo-section.alt {
  background: var(--bg-surface);
}

.demo-container {
  max-width: 1200px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 60px;
  align-items: center;
  overflow: hidden;
}

.demo-container.reverse {
  direction: rtl;
}

.demo-container.reverse > * {
  direction: ltr;
}

.demo-info {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.demo-info h2 {
  font-size: 2rem;
  font-weight: 700;
}

.demo-info > p {
  color: var(--text-muted);
  font-size: 1.05rem;
}

.demo-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
  margin-top: 20px;
}

.demo-feature {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}

.demo-feature-icon {
  width: 44px;
  height: 44px;
  background: rgba(99, 102, 241, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--primary-light);
  flex-shrink: 0;
}

.demo-feature div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.demo-feature strong {
  font-weight: 600;
}

.demo-feature span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Interactive Calendar */
.demo-visual {
  position: relative;
  max-width: 100%;
  overflow: hidden;
}

.interactive-calendar {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.cal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
}

.cal-title h4 {
  font-size: 1.25rem;
  font-weight: 600;
}

.cal-title p {
  font-size: 0.85rem;
  color: var(--text-dim);
}

.cal-legend {
  display: flex;
  gap: 16px;
}

.legend-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.dot.confirmed { background: var(--success); }
.dot.pending { background: var(--warning); }
.dot.attended { background: var(--info); }
.dot.treated { background: var(--primary); }
.dot.corona { background: var(--warning); }

.cal-week {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 12px;
}

.cal-day {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 12px;
  min-height: 160px;
}

.cal-day.today {
  border: 2px solid var(--primary);
}

.cal-day-header {
  display: flex;
  flex-direction: column;
  align-items: center;
  margin-bottom: 12px;
}

.cal-day-name {
  font-size: 0.75rem;
  color: var(--text-dim);
  text-transform: uppercase;
}

.cal-day-num {
  font-size: 1.5rem;
  font-weight: 700;
}

.cal-day.today .cal-day-num {
  color: var(--primary-light);
}

.cal-slots {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.cal-slot {
  padding: 8px 10px;
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 2px;
  border-left: 3px solid var(--warning);
  background: rgba(245, 158, 11, 0.1);
}

.cal-slot.confirmed {
  border-left-color: var(--success);
  background: rgba(34, 197, 94, 0.1);
}

.cal-slot.attended {
  border-left-color: var(--info);
  background: rgba(14, 165, 233, 0.1);
}

.cal-slot.empty {
  border-left-color: var(--text-dim);
  background: rgba(100, 116, 139, 0.1);
  opacity: 0.7;
}

.cal-slot.pulse {
  animation: pulse 2s ease-in-out infinite;
}

@keyframes pulse {
  0%, 100% { opacity: 1; }
  50% { opacity: 0.6; }
}

.slot-time {
  font-weight: 600;
  color: var(--text-muted);
}

.slot-patient {
  font-weight: 500;
}

/* Interactive Calendar Demo - Monthly View */
.calendar-demo-container {
  display: grid;
  grid-template-columns: 1fr 280px;
  gap: 20px;
}

.calendar-demo-card {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.calendar-demo-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 20px;
}

.cal-month-title {
  font-size: 1.25rem;
  font-weight: 600;
}

.cal-nav-btn {
  width: 36px;
  height: 36px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  color: var(--text-muted);
}

.cal-nav-btn:hover {
  background: var(--primary);
  border-color: var(--primary);
  color: white;
}

.calendar-demo-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal-weekday {
  text-align: center;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-dim);
  padding: 8px 0;
  text-transform: uppercase;
}

#calendarDaysContainer {
  display: contents;
}

.cal-day-cell {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: var(--radius-md);
  cursor: pointer;
  transition: all 0.2s;
  position: relative;
  background: var(--bg-surface);
  border: 1px solid transparent;
}

.cal-day-cell:hover {
  background: var(--bg-elevated);
  border-color: var(--border);
}

.cal-day-cell.empty {
  background: transparent;
  cursor: default;
}

.cal-day-cell.today {
  background: var(--primary);
  color: white;
}

.cal-day-cell.today .day-number {
  color: white;
}

.cal-day-cell.selected {
  border-color: var(--primary-light);
  box-shadow: 0 0 0 2px rgba(99, 102, 241, 0.3);
}

.day-number {
  font-size: 0.9rem;
  font-weight: 500;
}

.day-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--warning);
}

.day-dot.confirmed {
  background: var(--success);
}

.day-dot.pending {
  background: var(--warning);
}

.day-dot.attended {
  background: var(--info);
}

.calendar-legend {
  display: flex;
  gap: 16px;
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
  font-size: 0.8rem;
  color: var(--text-muted);
}

.calendar-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.legend-dot.confirmed { background: var(--success); }
.legend-dot.pending { background: var(--warning); }
.legend-dot.attended { background: var(--info); }

/* Day Detail Panel */
.day-detail-panel {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 20px;
  box-shadow: var(--shadow-lg);
  opacity: 0;
  transform: translateY(10px);
  transition: all 0.3s ease;
}

.day-detail-panel.visible {
  opacity: 1;
  transform: translateY(0);
}

.ddp-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 16px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border);
}

.ddp-header h4 {
  font-size: 1rem;
  font-weight: 600;
}

.ddp-add-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 6px 12px;
  border-radius: var(--radius-md);
  font-size: 0.75rem;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 4px;
  transition: all 0.2s;
}

.ddp-add-btn:hover {
  background: var(--primary-light);
}

.ddp-appointments {
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 300px;
  overflow-y: auto;
}

.ddp-appointment {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  border-left: 3px solid var(--warning);
}

.ddp-appointment.confirmed {
  border-left-color: var(--success);
}

.ddp-appointment.attended {
  border-left-color: var(--info);
}

.ddp-apt-time {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 45px;
}

.ddp-apt-info {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ddp-apt-patient {
  font-weight: 600;
  font-size: 0.85rem;
}

.ddp-apt-reason {
  font-size: 0.75rem;
  color: var(--text-dim);
}

.ddp-apt-status {
  color: var(--text-dim);
}

.ddp-appointment.confirmed .ddp-apt-status {
  color: var(--success);
}

.ddp-appointment.pending .ddp-apt-status {
  color: var(--warning);
}

.ddp-appointment.attended .ddp-apt-status {
  color: var(--info);
}

.ddp-empty {
  text-align: center;
  padding: 30px 20px;
  color: var(--text-dim);
}

.ddp-empty i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.5;
}

.ddp-empty p {
  margin-bottom: 16px;
}

.ddp-schedule-btn {
  background: var(--primary);
  border: none;
  color: white;
  padding: 8px 16px;
  border-radius: var(--radius-md);
  font-size: 0.85rem;
  cursor: pointer;
}

/* Patient Card Demo */
.patient-card-demo {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-lg);
}

.patient-header-demo {
  display: flex;
  gap: 16px;
  align-items: flex-start;
  padding-bottom: 20px;
  border-bottom: 1px solid var(--border);
  margin-bottom: 20px;
}

.patient-avatar-demo {
  width: 56px;
  height: 56px;
  background: var(--gradient-2);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1.5rem;
}

.patient-info-demo {
  flex: 1;
}

.patient-info-demo h4 {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 4px;
}

.patient-info-demo p {
  font-size: 0.85rem;
  color: var(--text-muted);
  margin: 2px 0;
}

.patient-info-demo i {
  color: var(--success);
}

.patient-badges {
  display: flex;
  gap: 8px;
}

.badge-demo {
  padding: 4px 10px;
  border-radius: 100px;
  font-size: 0.75rem;
  font-weight: 500;
}

.badge-demo.success {
  background: rgba(34, 197, 94, 0.15);
  color: var(--success);
}

.badge-demo.info {
  background: rgba(14, 165, 233, 0.15);
  color: var(--info);
}

.patient-stats-demo {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-bottom: 24px;
}

.patient-stat {
  text-align: center;
  padding: 16px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
}

.stat-num {
  display: block;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--primary-light);
}

.stat-txt {
  font-size: 0.8rem;
  color: var(--text-dim);
}

/* Odontogram Demo */
.odontogram-demo {
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  padding: 16px;
  margin-bottom: 20px;
}

.odonto-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--primary-light);
}

.odonto-mouth {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 12px;
}

.odonto-row {
  display: flex;
  justify-content: center;
  gap: 3px;
}

.tooth {
  width: 22px;
  height: 28px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 4px 4px 6px 6px;
  position: relative;
  cursor: pointer;
  transition: all 0.2s;
}

.odonto-row.lower .tooth {
  border-radius: 6px 6px 4px 4px;
}

.tooth:hover {
  border-color: var(--primary);
  transform: scale(1.1);
}

.tooth.treated {
  background: rgba(99, 102, 241, 0.3);
  border-color: var(--primary);
}

.tooth.corona {
  background: rgba(245, 158, 11, 0.3);
  border-color: var(--warning);
}

.treatment-dot {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 6px;
  height: 6px;
  background: var(--primary-light);
  border-radius: 50%;
}

.tooth.corona .treatment-dot {
  background: var(--warning);
}

.odonto-legend {
  display: flex;
  justify-content: center;
  gap: 20px;
  font-size: 0.75rem;
  color: var(--text-muted);
}

.odonto-legend span {
  display: flex;
  align-items: center;
  gap: 6px;
}

/* Patient Timeline Demo */
.patient-timeline-demo {
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.timeline-title {
  font-weight: 600;
  margin-bottom: 16px;
  color: var(--text-muted);
  font-size: 0.9rem;
}

.timeline-item-demo {
  display: flex;
  gap: 16px;
  padding: 12px;
  background: var(--bg-surface);
  border-radius: var(--radius-md);
  margin-bottom: 8px;
  border-left: 3px solid var(--primary);
}

.timeline-date {
  font-size: 0.8rem;
  color: var(--text-dim);
  min-width: 80px;
}

.timeline-content strong {
  display: block;
  font-size: 0.9rem;
  margin-bottom: 4px;
}

.timeline-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

/* AI Section */
.ai-section {
  padding: 100px 60px;
  position: relative;
  z-index: 1;
  background: linear-gradient(180deg, var(--bg-surface) 0%, var(--bg-dark) 100%);
}

.ai-container {
  max-width: 1100px;
  margin: 0 auto;
}

.ai-header {
  text-align: center;
  margin-bottom: 50px;
}

.ai-badge {
  background: rgba(168, 85, 247, 0.15) !important;
  border-color: rgba(168, 85, 247, 0.3) !important;
  color: var(--accent) !important;
}

.ai-badge i {
  color: var(--accent);
}

.ai-header h2 {
  font-size: 2.5rem;
  font-weight: 700;
  margin-bottom: 16px;
}

.ai-header p {
  font-size: 1.1rem;
  color: var(--text-muted);
  max-width: 600px;
  margin: 0 auto;
}

.ai-demo-chat {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 40px;
  align-items: start;
}

/* Chat Window */
.chat-window {
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.chat-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 16px 20px;
  background: var(--bg-elevated);
  border-bottom: 1px solid var(--border);
}

.chat-contact {
  display: flex;
  align-items: center;
  gap: 12px;
}

.chat-avatar {
  width: 40px;
  height: 40px;
  background: var(--gradient-2);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
}

.chat-info {
  display: flex;
  flex-direction: column;
}

.chat-name {
  font-weight: 600;
}

.chat-status {
  font-size: 0.8rem;
  color: var(--success);
}

.ai-indicator {
  display: flex;
  align-items: center;
  gap: 8px;
  background: rgba(168, 85, 247, 0.15);
  padding: 6px 12px;
  border-radius: 100px;
  font-size: 0.8rem;
  color: var(--accent);
}

.chat-messages {
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-height: 380px;
  overflow-y: auto;
}

.chat-message {
  display: flex;
  flex-direction: column;
  max-width: 85%;
}

.chat-message.incoming {
  align-self: flex-start;
}

.chat-message.outgoing {
  align-self: flex-end;
}

.message-bubble {
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.incoming .message-bubble {
  background: var(--bg-surface);
  border-bottom-left-radius: 4px;
}

.chat-message.outgoing .message-bubble {
  background: var(--gradient-4);
  color: white;
  border-bottom-right-radius: 4px;
}

.ai-tag {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  background: rgba(255, 255, 255, 0.2);
  padding: 2px 8px;
  border-radius: 100px;
  font-size: 0.7rem;
  margin-bottom: 8px;
}

.message-time {
  font-size: 0.7rem;
  color: var(--text-dim);
  margin-top: 4px;
  align-self: flex-end;
}

.chat-message.incoming .message-time {
  align-self: flex-start;
}

.chat-input-demo {
  display: flex;
  gap: 12px;
  padding: 16px 20px;
  background: var(--bg-surface);
  border-top: 1px solid var(--border);
}

.chat-input-demo input {
  flex: 1;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: 100px;
  padding: 12px 20px;
  color: var(--text);
  font-size: 0.9rem;
}

.chat-input-demo button {
  width: 44px;
  height: 44px;
  background: var(--gradient-1);
  border: none;
  border-radius: 50%;
  color: white;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Typing Indicator */
.typing-indicator {
  display: flex;
  gap: 4px;
  padding: 12px 16px;
}

.typing-indicator span {
  width: 8px;
  height: 8px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  animation: typing 1.4s infinite ease-in-out;
}

.typing-indicator span:nth-child(1) { animation-delay: 0s; }
.typing-indicator span:nth-child(2) { animation-delay: 0.2s; }
.typing-indicator span:nth-child(3) { animation-delay: 0.4s; }

@keyframes typing {
  0%, 60%, 100% { transform: translateY(0); opacity: 0.6; }
  30% { transform: translateY(-4px); opacity: 1; }
}

/* AI Features List */
.ai-features {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.ai-feature-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-card);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  transition: all 0.3s;
}

.ai-feature-item:hover {
  border-color: rgba(168, 85, 247, 0.3);
  transform: translateX(8px);
}

.ai-feature-icon {
  width: 48px;
  height: 48px;
  background: rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-md);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--accent);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.ai-feature-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ai-feature-text strong {
  font-weight: 600;
}

.ai-feature-text span {
  font-size: 0.9rem;
  color: var(--text-muted);
}

/* Workflow Section */
.workflow-section {
  padding: 100px 60px;
  position: relative;
  z-index: 1;
}

.workflow-steps {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 0;
  max-width: 1100px;
  margin: 0 auto;
  flex-wrap: wrap;
}

.workflow-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  text-align: center;
  padding: 24px;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  min-width: 200px;
  position: relative;
  transition: all 0.3s;
}

.workflow-step:hover {
  transform: translateY(-8px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary);
}

.step-number {
  width: 40px;
  height: 40px;
  background: var(--gradient-1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.1rem;
  color: white;
}

.step-content h4 {
  font-weight: 600;
  margin-bottom: 8px;
}

.step-content p {
  font-size: 0.85rem;
  color: var(--text-muted);
}

.step-icon {
  width: 60px;
  height: 60px;
  background: rgba(99, 102, 241, 0.1);
  border-radius: var(--radius-lg);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  color: var(--primary-light);
}

.workflow-connector {
  width: 40px;
  height: 2px;
  background: linear-gradient(90deg, var(--primary), transparent);
}

/* CTA Section */
.cta-section {
  padding: 100px 60px;
  position: relative;
  z-index: 1;
}

.cta-container {
  max-width: 900px;
  margin: 0 auto;
  background: var(--bg-surface);
  border: 1px solid var(--border);
  border-radius: var(--radius-xl);
  padding: 60px;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.cta-content {
  position: relative;
  z-index: 2;
}

.cta-content h2 {
  font-size: 2.25rem;
  font-weight: 700;
  margin-bottom: 12px;
}

.cta-content p {
  color: var(--text-muted);
  font-size: 1.1rem;
  margin-bottom: 32px;
}

.cta-button {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  background: var(--gradient-1);
  color: white;
  padding: 18px 36px;
  border-radius: 100px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 12px 30px rgba(99, 102, 241, 0.4);
  transition: all 0.3s;
}

.cta-button:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 40px rgba(99, 102, 241, 0.5);
}

.cta-decoration {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 50%;
  pointer-events: none;
}

.cta-circle {
  position: absolute;
  border-radius: 50%;
  background: var(--gradient-1);
  opacity: 0.1;
}

.cta-circle:nth-child(1) {
  width: 300px;
  height: 300px;
  top: -100px;
  right: -100px;
}

.cta-circle:nth-child(2) {
  width: 200px;
  height: 200px;
  bottom: -50px;
  right: 100px;
  background: var(--gradient-2);
}

.cta-circle:nth-child(3) {
  width: 150px;
  height: 150px;
  top: 50%;
  right: -50px;
  background: var(--gradient-6);
}

/* Footer */
.demo-footer {
  padding: 40px 60px;
  border-top: 1px solid var(--border);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1.1rem;
  font-weight: 600;
}

.footer-content p {
  color: var(--text-dim);
  font-size: 0.9rem;
}

/* Responsive */
@media (max-width: 1024px) {
  .hero {
    grid-template-columns: 1fr;
    gap: 40px;
    padding: 100px 40px 60px;
  }
  
  .hero h1 {
    font-size: 2.5rem;
  }
  
  .mockup-content {
    grid-template-columns: 1fr;
  }
  
  .mock-sidebar {
    display: none;
  }
  
  .mock-main {
    grid-template-columns: 1fr;
  }
  
  .demo-container,
  .demo-container.reverse {
    grid-template-columns: 1fr;
    direction: ltr;
  }
  
  .ai-demo-chat {
    grid-template-columns: 1fr;
  }
  
  .workflow-steps {
    flex-direction: column;
  }
  
  .workflow-connector {
    width: 2px;
    height: 30px;
    background: linear-gradient(180deg, var(--primary), transparent);
  }
  
  .calendar-demo-container {
    grid-template-columns: 1fr;
  }
  
  .day-detail-panel {
    opacity: 1;
    transform: none;
  }
  
  .phone-budget-demo {
    margin-top: 24px;
  }
}

@media (max-width: 768px) {
  .nav-demo {
    padding: 12px 24px;
  }
  
  .nav-links {
    display: none;
  }
  
  .hero {
    padding: 80px 24px 40px;
  }
  
  .hero h1 {
    font-size: 2rem;
  }
  
  .hero-stats {
    flex-direction: column;
    gap: 16px;
  }
  
  .features-section,
  .demo-section,
  .ai-section,
  .workflow-section,
  .cta-section {
    padding: 60px 24px;
  }
  
  .section-header h2 {
    font-size: 1.75rem;
  }
  
  .features-grid {
    grid-template-columns: 1fr;
  }
  
  .cal-week {
    grid-template-columns: repeat(3, 1fr);
  }
  
  .cal-day:nth-child(4),
  .cal-day:nth-child(5) {
    display: none;
  }
  
  .patient-stats-demo {
    grid-template-columns: 1fr;
  }
  
  .cta-container {
    padding: 40px 24px;
  }
  
  .cta-content h2 {
    font-size: 1.5rem;
  }
  
  /* Mobile: Show sidebar as horizontal menu */
  .mock-sidebar {
    display: block;
    border-right: none;
    border-bottom: 1px solid var(--border);
    background: rgba(15, 23, 42, 0.8);
    padding: 10px;
  }
  
  .mock-user {
    display: none;
  }
  
  .mock-nav {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 6px;
  }
  
  .mock-nav-item {
    flex-direction: column;
    justify-content: center;
    align-items: center;
    gap: 4px;
    padding: 8px 4px;
    border: 1px solid rgba(255, 255, 255, 0.1);
    border-radius: 8px;
    font-size: 0.65rem;
    text-align: center;
  }
  
  .mock-nav-item i {
    font-size: 0.9rem;
  }
  
  .phone-budget-demo {
    margin-top: 24px;
  }
}

/* Extra small screens */
@media (max-width: 480px) {
  .hero {
    padding: 70px 16px 30px;
  }
  
  .hero h1 {
    font-size: 1.6rem;
  }
  
  .hero-description {
    font-size: 0.95rem;
  }
  
  .hero-badge {
    font-size: 0.75rem;
    padding: 6px 12px;
  }
  
  .stat {
    gap: 8px;
  }
  
  .stat-icon {
    width: 40px;
    height: 40px;
    font-size: 1rem;
  }
  
  .stat-value {
    font-size: 0.85rem;
  }
  
  .stat-label {
    font-size: 0.7rem;
  }
  
  .features-section,
  .demo-section,
  .ai-section,
  .workflow-section,
  .cta-section {
    padding: 40px 16px;
  }
  
  .section-header h2 {
    font-size: 1.4rem;
  }
  
  .section-header p {
    font-size: 0.9rem;
  }
  
  .section-badge {
    font-size: 0.75rem;
    padding: 5px 12px;
  }
  
  .demo-info h2 {
    font-size: 1.4rem;
  }
  
  .demo-info > p {
    font-size: 0.9rem;
  }
  
  .demo-feature {
    gap: 12px;
  }
  
  .demo-feature-icon {
    width: 36px;
    height: 36px;
    font-size: 0.9rem;
  }
  
  .demo-feature strong {
    font-size: 0.85rem;
  }
  
  .demo-feature span {
    font-size: 0.75rem;
  }
  
  .feature-card {
    padding: 20px;
  }
  
  .feature-icon {
    width: 44px;
    height: 44px;
    font-size: 1.2rem;
  }
  
  .feature-card h3 {
    font-size: 1.1rem;
  }
  
  .feature-card > p {
    font-size: 0.85rem;
  }
  
  .feature-list li {
    font-size: 0.8rem;
  }
  
  /* Mockup mobile adjustments */
  .mockup-window {
    border-radius: 16px;
  }
  
  .mockup-header {
    padding: 8px 12px;
  }
  
  .mockup-title {
    font-size: 0.75rem;
  }
  
  .mock-nav-item {
    padding: 6px 2px;
    font-size: 0.55rem;
  }
  
  .mock-nav-item i {
    font-size: 0.75rem;
  }
  
  .mock-main {
    padding: 10px;
    gap: 10px;
  }
  
  .mock-calendar {
    padding: 10px;
  }
  
  .mock-calendar-header {
    font-size: 0.85rem;
  }
  
  .mock-day {
    font-size: 0.65rem;
  }
  
  .mock-day-detail {
    padding: 10px;
  }
  
  .mock-detail-header {
    font-size: 0.8rem;
  }
  
  .mock-apt {
    padding: 8px;
  }
  
  .mock-apt-time {
    font-size: 0.65rem;
  }
  
  .mock-apt-name {
    font-size: 0.7rem;
  }
  
  .mock-apt-reason {
    font-size: 0.6rem;
  }
  
  /* CTA */
  .cta-content h2 {
    font-size: 1.3rem;
  }
  
  .cta-content p {
    font-size: 0.9rem;
  }
  
  .cta-button {
    padding: 14px 24px;
    font-size: 0.95rem;
  }
}

/* Scrollbar */
::-webkit-scrollbar {
  width: 8px;
  height: 8px;
}

::-webkit-scrollbar-track {
  background: var(--bg-surface);
}

::-webkit-scrollbar-thumb {
  background: var(--bg-elevated);
  border-radius: 4px;
}

::-webkit-scrollbar-thumb:hover {
  background: var(--text-dim);
}
