/* ===== RESET & BASE ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --bg-page:    #f8fafc;
  --bg-white:   #ffffff;
  --bg-light:   #f1f5f9;
  --bg-muted:   #e2e8f0;

  --accent:       #0284c7;      /* Sky Blue — profesional médico */
  --accent-dark:  #0369a1;
  --accent-light: #e0f2fe;
  --accent-glow:  rgba(2, 132, 199, 0.15);

  --success:      #059669;      /* Verde para badges de check */
  --success-light:#d1fae5;

  --text-primary:   #0f172a;
  --text-secondary: #475569;
  --text-muted:     #94a3b8;

  --border:       #e2e8f0;
  --border-focus: #0284c7;

  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --shadow-sm:  0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
  --shadow-md:  0 4px 16px rgba(0,0,0,0.08), 0 1px 4px rgba(0,0,0,0.04);
  --shadow-lg:  0 16px 48px rgba(0,0,0,0.10), 0 4px 12px rgba(0,0,0,0.06);
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Inter', system-ui, sans-serif;
  background: var(--bg-page);
  color: var(--text-primary);
  line-height: 1.6;
  overflow-x: hidden;
}

.container {
  max-width: 1180px;
  margin: 0 auto;
  padding: 0 24px;
}

/* ===== BUTTONS ===== */
.btn {
  display: inline-flex; align-items: center; gap: 8px;
  padding: 12px 24px; border-radius: var(--radius-sm);
  font-size: 14px; font-weight: 600; text-decoration: none;
  border: none; cursor: pointer; transition: all 0.2s;
  white-space: nowrap;
}
.btn-primary {
  background: var(--accent); color: #fff;
  box-shadow: 0 2px 8px var(--accent-glow);
}
.btn-primary:hover { background: var(--accent-dark); transform: translateY(-1px); box-shadow: 0 6px 20px var(--accent-glow); }
.btn-ghost { background: transparent; color: var(--text-secondary); border: 1px solid var(--border); }
.btn-ghost:hover { color: var(--accent); border-color: var(--accent); background: var(--accent-light); }
.btn-glass { background: rgba(255,255,255,0.8); color: var(--text-primary); border: 1px solid var(--border); }
.btn-glass:hover { background: var(--bg-white); box-shadow: var(--shadow-sm); }
.btn-outline { background: transparent; color: var(--accent); border: 2px solid var(--accent); }
.btn-outline:hover { background: var(--accent-light); }
.btn-white { background: #fff; color: var(--accent); font-weight: 700; }
.btn-white:hover { background: var(--accent-light); }
.btn-whatsapp { background: #25d366; color: #fff; gap: 10px; }
.btn-whatsapp:hover { background: #1da851; transform: translateY(-1px); }
.btn-block { width: 100%; justify-content: center; }
.btn-lg { padding: 16px 32px; font-size: 16px; border-radius: var(--radius-md); }

/* ===== NAVBAR ===== */
.navbar {
  position: fixed; top: 0; left: 0; right: 0; z-index: 100;
  background: rgba(255,255,255,0.85);
  backdrop-filter: blur(16px);
  border-bottom: 1px solid var(--border);
  transition: box-shadow 0.3s;
}
.navbar.scrolled { box-shadow: var(--shadow-sm); }
.nav-inner {
  display: flex; align-items: center; justify-content: space-between;
  padding: 16px 24px; gap: 32px;
}
.logo {
  display: flex; align-items: center; gap: 8px;
  text-decoration: none; font-size: 22px; font-weight: 800;
}
.logo-icon { font-size: 24px; }
.logo-text { color: var(--text-primary); }
.logo-accent { color: var(--accent); }
.nav-links {
  display: flex; gap: 32px; list-style: none; flex: 1; justify-content: center;
}
.nav-links a { color: var(--text-secondary); text-decoration: none; font-size: 14px; font-weight: 500; transition: color 0.2s; }
.nav-links a:hover { color: var(--accent); }
.nav-cta { display: flex; gap: 12px; align-items: center; }
.hamburger { display: none; flex-direction: column; gap: 5px; background: none; border: none; cursor: pointer; padding: 4px; }
.hamburger span { display: block; width: 22px; height: 2px; background: var(--text-primary); border-radius: 2px; }
.mobile-menu { display: none; flex-direction: column; gap: 16px; padding: 20px 24px 24px; border-top: 1px solid var(--border); background: var(--bg-white); }
.mobile-menu a { color: var(--text-secondary); text-decoration: none; font-size: 15px; }
.mobile-menu a:hover { color: var(--accent); }

@media (max-width: 768px) {
  .nav-links, .nav-cta { display: none; }
  .hamburger { display: flex; }
  .mobile-menu.open { display: flex; }
}

/* ===== HERO ===== */
.hero {
  position: relative; overflow: hidden;
  padding: 140px 0 90px;
  background: linear-gradient(160deg, #f0f9ff 0%, #f8fafc 50%, #f0fdf4 100%);
  border-bottom: 1px solid var(--border);
}
.hero-bg-grid {
  position: absolute; inset: 0;
  background-image: linear-gradient(rgba(2,132,199,0.05) 1px, transparent 1px),
    linear-gradient(90deg, rgba(2,132,199,0.05) 1px, transparent 1px);
  background-size: 60px 60px;
  pointer-events: none;
}
.hero-blob {
  position: absolute; border-radius: 50%;
  filter: blur(100px); opacity: 0.18; pointer-events: none;
}
.hero-blob-1 { width: 500px; height: 500px; background: #38bdf8; top: -100px; right: -80px; }
.hero-blob-2 { width: 350px; height: 350px; background: #34d399; bottom: -80px; left: -60px; }
.hero-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center; position: relative; z-index: 1; }
.hero-badge {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--accent-light); border: 1px solid rgba(2,132,199,0.25);
  color: var(--accent); padding: 6px 14px; border-radius: 100px;
  font-size: 13px; font-weight: 600; margin-bottom: 24px;
}
.hero-title { font-size: clamp(2.2rem, 4vw, 3.2rem); font-weight: 800; line-height: 1.15; color: var(--text-primary); margin-bottom: 20px; }
.text-gradient { background: linear-gradient(135deg, var(--accent), #059669); -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text; }
.hero-subtitle { color: var(--text-secondary); font-size: 17px; line-height: 1.7; margin-bottom: 36px; max-width: 520px; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 48px; }
.hero-trust { display: flex; align-items: center; gap: 20px; }
.trust-item { display: flex; flex-direction: column; }
.trust-num { font-size: 22px; font-weight: 800; color: var(--text-primary); }
.trust-label { font-size: 12px; color: var(--text-muted); }
.trust-divider { width: 1px; height: 40px; background: var(--border); }

/* Hero Dashboard Mockup */
.hero-visual { position: relative; }
.dashboard-mockup {
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  box-shadow: var(--shadow-lg);
  animation: float 6s ease-in-out infinite;
}
@keyframes float { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-10px); } }
.mockup-bar {
  display: flex; align-items: center; gap: 6px;
  padding: 12px 16px; background: var(--bg-light); border-bottom: 1px solid var(--border);
}
.dot { width: 10px; height: 10px; border-radius: 50%; }
.dot-red { background: #f87171; }
.dot-yellow { background: #fbbf24; }
.dot-green { background: #34d399; }
.mockup-url { flex: 1; text-align: center; font-size: 11px; color: var(--text-muted); }
.mockup-body { display: flex; height: 340px; }
.mockup-sidebar {
  width: 130px; background: #f8fafc; padding: 16px 12px;
  border-right: 1px solid var(--border); font-size: 11px; flex-shrink: 0;
}
.sidebar-logo { font-size: 11px; font-weight: 700; color: var(--accent); margin-bottom: 16px; }
.sidebar-item { padding: 7px 8px; border-radius: 6px; cursor: pointer; color: var(--text-muted); margin-bottom: 2px; font-size: 10.5px; }
.sidebar-item.active { background: var(--accent-light); color: var(--accent); font-weight: 600; }
.mockup-main { flex: 1; padding: 16px; display: flex; flex-direction: column; gap: 10px; background: var(--bg-white); }
.mockup-header { display: flex; justify-content: space-between; align-items: center; font-size: 11px; font-weight: 600; color: var(--text-primary); }
.mockup-badge { font-size: 9px; background: var(--success-light); color: var(--success); padding: 2px 8px; border-radius: 100px; font-weight: 600; }
.mockup-search { background: var(--bg-light); border: 1px solid var(--border); border-radius: 6px; padding: 8px 12px; font-size: 10px; color: var(--text-muted); }
.mockup-cart { flex: 1; display: flex; flex-direction: column; gap: 6px; }
.cart-item { display: flex; justify-content: space-between; align-items: center; background: var(--bg-light); border-radius: 6px; padding: 8px 10px; }
.cart-name { font-size: 10px; font-weight: 600; color: var(--text-primary); }
.cart-sub { font-size: 9px; color: var(--text-muted); }
.cart-price { font-size: 11px; font-weight: 700; color: var(--accent); }
.mockup-total { display: flex; justify-content: space-between; border-top: 1px solid var(--border); padding-top: 8px; font-size: 11px; font-weight: 700; color: var(--text-primary); }
.total-val { color: var(--accent); }
.mockup-pay-btn { background: var(--accent); color: #fff; border-radius: 6px; padding: 8px; text-align: center; font-size: 11px; font-weight: 700; cursor: pointer; }

/* Floating cards */
.floating-card {
  position: absolute;
  background: var(--bg-white);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 12px 16px;
  display: flex; align-items: center; gap: 12px;
  box-shadow: var(--shadow-md);
}
.card-1 { top: -20px; left: -60px; min-width: 220px; animation: float 5s ease-in-out infinite 1s; }
.card-2 { bottom: 20px; right: -50px; min-width: 220px; animation: float 5s ease-in-out infinite 2s; }
.fc-icon { font-size: 20px; }
.fc-title { font-size: 12px; font-weight: 600; color: var(--text-primary); }
.fc-sub { font-size: 11px; color: var(--text-muted); }

@media (max-width: 900px) {
  .hero-inner { grid-template-columns: 1fr; }
  .hero-visual { display: none; }
}

/* ===== SECTION SHARED ===== */
.section-header { text-align: center; margin-bottom: 64px; }
.section-badge {
  display: inline-block; background: var(--accent-light); color: var(--accent);
  border: 1px solid rgba(2,132,199,0.2); padding: 4px 14px;
  border-radius: 100px; font-size: 12px; font-weight: 700; margin-bottom: 16px;
  text-transform: uppercase; letter-spacing: 1px;
}
.section-title { font-size: clamp(1.8rem, 3vw, 2.5rem); font-weight: 800; line-height: 1.25; margin-bottom: 16px; color: var(--text-primary); }
.section-subtitle { color: var(--text-secondary); font-size: 16px; max-width: 560px; margin: 0 auto; }

/* ===== FEATURES ===== */
.features { padding: 100px 0; background: var(--bg-white); }
.features-grid {
  display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 20px;
}
.feature-card {
  background: var(--bg-page);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  padding: 32px;
  transition: all 0.3s;
}
.feature-card:hover { border-color: var(--accent); background: var(--bg-white); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.feature-card--highlight {
  border-color: rgba(2,132,199,0.4);
  background: linear-gradient(135deg, var(--accent-light), var(--bg-white));
  box-shadow: var(--shadow-sm);
}
.feature-icon { font-size: 36px; margin-bottom: 16px; }
.feature-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.feature-card p { color: var(--text-secondary); font-size: 14px; line-height: 1.7; margin-bottom: 16px; }
.feature-list { list-style: none; display: flex; flex-direction: column; gap: 8px; }
.feature-list li { font-size: 13px; color: var(--text-secondary); }
.feature-list li:first-child { color: var(--success); font-weight: 600; }

/* ===== HOW IT WORKS ===== */
.how-it-works { padding: 100px 0; background: linear-gradient(180deg, var(--bg-page), var(--accent-light), var(--bg-page)); }
.steps-grid { display: flex; align-items: center; gap: 24px; justify-content: center; flex-wrap: wrap; }
.step-card {
  background: var(--bg-white); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px 28px;
  max-width: 280px; text-align: center;
  transition: all 0.3s; box-shadow: var(--shadow-sm);
}
.step-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.step-num { font-size: 48px; font-weight: 900; color: var(--accent-light); letter-spacing: -2px; -webkit-text-stroke: 2px var(--accent); }
.step-icon { font-size: 40px; margin: 8px 0 16px; }
.step-card h3 { font-size: 18px; font-weight: 700; margin-bottom: 12px; color: var(--text-primary); }
.step-card p { font-size: 14px; color: var(--text-secondary); line-height: 1.7; }
.step-arrow { font-size: 24px; color: var(--accent); font-weight: 700; }
@media (max-width: 768px) { .step-arrow { transform: rotate(90deg); } }

/* ===== PRICING ===== */
.pricing { padding: 100px 0; background: var(--bg-white); }
.pricing-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; align-items: start; }
.pricing-card {
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 36px;
  position: relative; transition: all 0.3s;
}
.pricing-card:hover { border-color: var(--accent); transform: translateY(-4px); box-shadow: var(--shadow-md); }
.pricing-card--featured {
  border-color: var(--accent);
  background: var(--bg-white);
  box-shadow: 0 8px 32px var(--accent-glow);
}
.plan-badge {
  position: absolute; top: -12px; left: 50%; transform: translateX(-50%);
  background: var(--accent); color: #fff; font-size: 11px; font-weight: 700;
  padding: 4px 16px; border-radius: 100px; white-space: nowrap;
}
.plan-name { font-size: 18px; font-weight: 700; margin-bottom: 8px; color: var(--text-primary); }
.plan-price { font-size: 2.4rem; font-weight: 900; color: var(--accent); margin-bottom: 8px; }
.plan-period { font-size: 14px; color: var(--text-muted); font-weight: 400; }
.plan-desc { font-size: 14px; color: var(--text-secondary); margin-bottom: 24px; line-height: 1.6; }
.plan-features { list-style: none; display: flex; flex-direction: column; gap: 10px; margin-bottom: 32px; }
.plan-features li { font-size: 14px; color: var(--text-secondary); }
.plan-features li.disabled { color: var(--text-muted); text-decoration: line-through; }

/* ===== CTA BANNER ===== */
.cta-banner { padding: 80px 0; background: var(--bg-page); }
.cta-inner {
  background: linear-gradient(135deg, var(--accent) 0%, #0369a1 100%);
  border-radius: var(--radius-lg);
  padding: 72px 48px; text-align: center;
  position: relative; overflow: hidden;
  box-shadow: 0 16px 48px var(--accent-glow);
}
.cta-blob {
  position: absolute; top: -100px; right: -100px;
  width: 400px; height: 400px; border-radius: 50%;
  background: rgba(255,255,255,0.1); filter: blur(80px);
  pointer-events: none;
}
.cta-content { position: relative; z-index: 1; }
.cta-inner h2 { font-size: 2.2rem; font-weight: 800; margin-bottom: 12px; color: #fff; }
.cta-inner p { color: rgba(255,255,255,0.8); font-size: 16px; margin-bottom: 32px; }

/* ===== CONTACT ===== */
.contact { padding: 100px 0; background: var(--bg-white); }
.contact-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 64px; align-items: start; }
.contact-features { display: flex; flex-direction: column; gap: 12px; margin: 24px 0 32px; }
.cf-item { font-size: 15px; color: var(--text-secondary); }
.contact-form {
  background: var(--bg-page); border: 1px solid var(--border);
  border-radius: var(--radius-lg); padding: 40px;
  box-shadow: var(--shadow-sm);
}
.form-group { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; }
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
label { font-size: 13px; font-weight: 600; color: var(--text-secondary); }
input, select, textarea {
  background: var(--bg-white); border: 1px solid var(--border);
  color: var(--text-primary); padding: 12px 16px;
  border-radius: var(--radius-sm); font-size: 14px;
  font-family: inherit; transition: border-color 0.2s, box-shadow 0.2s;
  outline: none; width: 100%;
}
input:focus, select:focus, textarea:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}
input::placeholder, textarea::placeholder { color: var(--text-muted); }
textarea { resize: vertical; }
.form-disclaimer { font-size: 12px; color: var(--text-muted); text-align: center; margin-top: 12px; }
.form-disclaimer a { color: var(--accent); text-decoration: none; }
.form-success { background: var(--success-light); border: 1px solid rgba(5,150,105,0.3); color: var(--success); padding: 16px; border-radius: 8px; text-align: center; margin-top: 16px; font-weight: 600; }

@media (max-width: 768px) {
  .contact-inner { grid-template-columns: 1fr; }
  .form-row { grid-template-columns: 1fr; }
}

/* ===== FOOTER ===== */
.footer { padding: 64px 0 32px; border-top: 1px solid var(--border); background: var(--text-primary); }
.footer-inner { display: grid; grid-template-columns: 1fr 2fr; gap: 64px; margin-bottom: 48px; }
.footer-brand p { font-size: 14px; color: rgba(255,255,255,0.5); margin-top: 12px; max-width: 280px; }
.footer .logo-text { color: #fff; }
.footer .logo-accent { color: var(--accent); }
.footer-links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 32px; }
.footer-col { display: flex; flex-direction: column; gap: 12px; }
.footer-col h4 { font-size: 13px; font-weight: 700; color: #fff; margin-bottom: 4px; }
.footer-col a { color: rgba(255,255,255,0.5); font-size: 14px; text-decoration: none; transition: color 0.2s; }
.footer-col a:hover { color: var(--accent); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 24px; text-align: center; font-size: 13px; color: rgba(255,255,255,0.4); }

@media (max-width: 768px) {
  .footer-inner { grid-template-columns: 1fr; gap: 32px; }
  .footer-links { grid-template-columns: 1fr 1fr; }
}
