/* MediShift Landing – https://medishift.app – Same look as app Dashboard */

:root {
  /* Same as MediShift app / Dashboard */
  --primary: #007AFF;
  --primary-dark: #0056CC;
  --primary-light: #4DA3FF;
  --blue-pale: #90CAF9;
  --bg-dashboard: #E3F2FD;
  --text: #1C1C1E;
  --text-muted: #6B7280;
  --border: #E5E7EB;
  --radius: 12px;
  --radius-md: 16px;
  --radius-lg: 20px;
  --radius-xl: 24px;
  /* Dashboard cards: white frosted on light blue */
  --card-bg: rgba(255, 255, 255, 0.9);
  --card-border: rgba(255, 255, 255, 0.4);
  --card-shadow: 0 8px 20px rgba(0, 122, 255, 0.15), 0 2px 8px rgba(0, 0, 0, 0.04);
  --card-shadow-hover: 0 10px 24px rgba(0, 122, 255, 0.18), 0 4px 12px rgba(0, 0, 0, 0.06);
  --icon-bg: rgba(227, 242, 253, 0.8);
  --icon-border: rgba(255, 255, 255, 0.3);
  --icon-shadow: 0 4px 12px rgba(0, 122, 255, 0.1);
  --shadow-btn: 0 4px 14px rgba(0, 122, 255, 0.35);
  --font: 'DM Sans', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 16px;
  line-height: 1.6;
  color: var(--text);
  background: var(--bg-dashboard);
}

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

/* Header – fully opaque so content never shows through when scrolling */
.header {
  background: #fff;
  border-bottom: 1px solid var(--border);
  padding: 16px 0;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
}

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

.logo {
  font-weight: 700;
  font-size: 1.35rem;
  color: var(--primary);
  text-decoration: none;
  letter-spacing: -0.02em;
}

.nav {
  display: flex;
  gap: 24px;
  align-items: center;
}

.nav a {
  color: var(--text-muted);
  text-decoration: none;
  font-weight: 500;
  font-size: 0.95rem;
}

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

/* Language switcher: banderas España / US */
.lang-switcher {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 1.25rem;
  line-height: 1;
}
.lang-switcher [data-lang] {
  background: none;
  border: none;
  font-size: 1.35rem;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 6px;
  opacity: 0.7;
  transition: opacity 0.15s ease;
}
.lang-switcher [data-lang]:hover {
  opacity: 1;
}
.lang-switcher .lang-active {
  opacity: 1;
  cursor: default;
  box-shadow: 0 0 0 2px var(--primary);
  border-radius: 4px;
}
.lang-switcher .lang-sep {
  color: var(--border);
  user-select: none;
  font-size: 0.9rem;
}

/* Hero – same background as Dashboard */
.hero {
  background: var(--bg-dashboard);
  padding: 64px 0 80px;
  text-align: center;
}

.hero-title {
  margin: 0 0 16px;
  font-size: clamp(1.75rem, 4vw, 2.5rem);
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: -0.03em;
  color: var(--text);
}

.hero-subtitle {
  margin: 0 0 32px;
  font-size: 1.125rem;
  color: var(--text-muted);
  max-width: 540px;
  margin-left: auto;
  margin-right: auto;
}

/* Buttons */
.btn {
  display: inline-block;
  padding: 14px 28px;
  font-family: var(--font);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  border-radius: var(--radius);
  transition: background 0.2s, color 0.2s, transform 0.1s;
}

.btn:active {
  transform: scale(0.98);
}

.btn-primary {
  background: var(--primary);
  color: white;
  box-shadow: var(--shadow-btn);
  border: 1px solid rgba(255, 255, 255, 0.25);
}

.btn-primary:hover {
  background: var(--primary-dark);
  color: white;
  box-shadow: 0 6px 20px rgba(0, 122, 255, 0.4);
}

.btn-secondary {
  background: var(--card-bg);
  color: var(--primary);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
}

.btn-secondary:hover {
  background: rgba(255, 255, 255, 1);
  color: var(--primary-dark);
  border-color: rgba(255, 255, 255, 0.5);
  box-shadow: var(--card-shadow-hover);
}

.btn-app-store {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 60px;
  min-width: 220px;
  padding: 14px 28px;
}

.btn-app-store img {
  display: block;
  max-height: 56px;
  width: auto;
  height: auto;
  object-fit: contain;
}

.btn-app-store-fallback {
  display: none;
  padding: 22px 80px;
  min-width: 480px;
  background: #000;
  color: #fff;
  border-radius: var(--radius);
  font-weight: 600;
  font-size: 1rem;
  white-space: nowrap;
  text-align: center;
  box-sizing: border-box;
  letter-spacing: 0.02em;
}

.btn-app-store:has(img[style*="display: none"]) .btn-app-store-fallback {
  display: inline-block;
}

/* Sections */
.section {
  padding: 56px 0;
}

/* Sections sit on same light blue as Dashboard – no alternate background */
.section-alt {
  background: transparent;
}

/* Contact box – same card style as Dashboard */
.contact-box {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  box-shadow: var(--card-shadow);
  border-radius: var(--radius-lg);
  padding: 24px;
  margin-bottom: 24px;
  max-width: 400px;
}

.section-title {
  margin: 0 0 12px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--text);
}

.section-lead {
  margin: 0 0 32px;
  font-size: 1.0625rem;
  color: var(--text-muted);
}

/* About card – same as Dashboard card */
.about-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-lg);
  padding: 24px;
  box-shadow: var(--card-shadow);
}

/* About list */
.about-list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.about-list li {
  padding: 10px 0;
  padding-left: 28px;
  position: relative;
  color: var(--text);
}

.about-list li::before {
  content: '';
  position: absolute;
  left: 0;
  top: 18px;
  width: 8px;
  height: 8px;
  background: var(--primary);
  border-radius: 50%;
}

.about-list strong {
  color: var(--text);
}

/* Features grid */
.features-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
}

/* Feature cards – same as Dashboard actionCard / statCard */
.feature-card {
  background: var(--card-bg);
  border: 1px solid var(--card-border);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--card-shadow);
  transition: box-shadow 0.2s, border-color 0.2s;
}

.feature-card:hover {
  box-shadow: var(--card-shadow-hover);
  border-color: rgba(255, 255, 255, 0.6);
}

.feature-icon {
  font-size: 2rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 48px;
  height: 48px;
  border-radius: 24px;
  background: var(--icon-bg);
  border: 1px solid var(--icon-border);
  box-shadow: var(--icon-shadow);
  margin-bottom: 12px;
}

.feature-card h3 {
  margin: 0 0 8px;
  font-size: 1.125rem;
  font-weight: 600;
  color: var(--text);
}

.feature-card p {
  margin: 0;
  font-size: 0.9375rem;
  color: var(--text-muted);
}

/* CTA / Download */
.section-cta {
  text-align: center;
  padding: 64px 0;
}

.section-cta .section-lead {
  margin-bottom: 28px;
}

.download-note {
  margin-top: 20px;
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Contact */
.contact-box p {
  margin: 0 0 8px;
  font-size: 1rem;
}

.contact-box p:last-child {
  margin-bottom: 0;
}

.contact-box a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.contact-box a:hover {
  text-decoration: underline;
}

.contact-extra {
  font-size: 0.9375rem;
  color: var(--text-muted);
  margin-top: 12px !important;
}

.contact-cta {
  margin: 0;
}

/* Footer */
.footer {
  background: var(--text);
  color: #9CA3AF;
  padding: 40px 0;
  margin-top: 0;
}

.footer-inner {
  text-align: center;
}

.footer-brand {
  font-weight: 700;
  font-size: 1.125rem;
  color: #fff;
  margin: 0 0 8px;
}

.footer-contact {
  margin: 0 0 8px;
}

.footer-contact a {
  color: var(--blue-pale);
  text-decoration: none;
}

.footer-contact a:hover {
  text-decoration: underline;
}

.footer-links {
  margin: 0 0 8px;
}

.footer-links a {
  color: #9CA3AF;
  text-decoration: none;
}

.footer-links a:hover {
  color: #fff;
}

.footer-copy {
  margin: 0;
  font-size: 0.875rem;
  color: #6B7280;
}

/* Responsive */
@media (max-width: 600px) {
  .nav {
    gap: 16px;
  }

  .nav a {
    font-size: 0.875rem;
  }

  .hero {
    padding: 48px 0 64px;
  }

  .section {
    padding: 40px 0;
  }

  .section-cta {
    padding: 48px 0;
  }

  .btn-app-store-fallback {
    min-width: 320px;
    padding: 20px 48px;
    font-size: 0.9375rem;
  }
}
