/* ===== VARIABLES ===== */
:root {
  --navy: #0b0b3b;
  --navy-deep: #050520;
  --primary: #2A53C1;
  --cyan: #00d4ff;
  --white: #ffffff;
  --off-white: #f7f8fc;
  --gray: #eef0f5;
  --text: #1a1a2e;
  --text-mid: #444;
  --text-light: #666;
  --font: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  --ease: cubic-bezier(0.16, 1, 0.3, 1);
  --radius: 16px;
}

/* ===== RESET ===== */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; }
body { font-family: var(--font); color: var(--text); line-height: 1.6; overflow-x: hidden; background: var(--white); }
img { max-width: 100%; height: auto; display: block; }
a { text-decoration: none; color: inherit; }

.container { max-width: 900px; margin: 0 auto; padding: 0 120px; }

/* ===== SCROLL REVEAL ===== */
.reveal {
  opacity: 0; transform: translateY(40px); filter: blur(4px);
  transition: opacity 0.8s var(--ease), transform 0.8s var(--ease), filter 0.8s var(--ease);
}
.reveal.revealed { opacity: 1; transform: translateY(0); filter: blur(0); }
.reveal-d1 { transition-delay: 0.12s; }
.reveal-d2 { transition-delay: 0.24s; }
.reveal-d3 { transition-delay: 0.36s; }

/* ===== BUTTONS ===== */
.btn {
  display: inline-block; padding: 14px 32px; border-radius: 50px;
  font-family: var(--font); font-weight: 700; font-size: 0.88rem;
  letter-spacing: 0.5px; transition: all 0.4s var(--ease);
  cursor: pointer; border: 2px solid transparent; position: relative; overflow: hidden;
}
.btn-glow {
  background: var(--white); color: var(--navy);
  box-shadow: 0 0 30px rgba(0,212,255,0.3), 0 4px 20px rgba(0,0,0,0.2);
}
.btn-glow:hover { box-shadow: 0 0 50px rgba(0,212,255,0.5), 0 8px 30px rgba(0,0,0,0.3); transform: translateY(-2px); }
.btn-outline-glow { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline-glow:hover { background: var(--white); color: var(--navy); border-color: var(--white); box-shadow: 0 0 30px rgba(255,255,255,0.2); }
.btn-outline { background: transparent; color: var(--white); border-color: rgba(255,255,255,0.5); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-dark { background: var(--navy); color: var(--white); }
.btn-dark:hover { background: var(--primary); transform: translateY(-2px); box-shadow: 0 8px 24px rgba(42,83,193,0.3); }
.btn-cyan-pill { background: var(--cyan); color: var(--navy); font-weight: 800; }
.btn-cyan-pill:hover { background: #00e5ff; transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,212,255,0.4); }

/* App store buttons */
.app-buttons { display: flex; gap: 12px; flex-wrap: wrap; }
.app-buttons--center { justify-content: center; }
.app-btn {
  display: flex; align-items: center; gap: 10px;
  background: var(--navy); color: var(--white); padding: 10px 20px;
  border-radius: 12px; transition: all 0.3s var(--ease); border: 1px solid rgba(255,255,255,0.1);
}
.app-btn:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); background: #111155; }
.app-btn small { font-size: 0.6rem; letter-spacing: 0.5px; opacity: 0.7; display: block; }
.app-btn strong { font-size: 0.9rem; font-weight: 700; display: block; line-height: 1.2; }
.app-btn svg { flex-shrink: 0; }
.app-btn--white { background: rgba(255,255,255,0.15); border-color: rgba(255,255,255,0.3); backdrop-filter: blur(10px); }
.app-btn--white:hover { background: rgba(255,255,255,0.25); }

/* ===== HEADER ===== */
.header {
  position: fixed; top: 0; left: 0; width: 100%; z-index: 1000;
  padding: 14px 0; transition: all 0.4s var(--ease);
  background: rgba(11,11,59,0.6); backdrop-filter: blur(12px);
  border-bottom: 1px solid rgba(255,255,255,0.08);
}
.header.scrolled { background: rgba(16,16,72,0.95); backdrop-filter: blur(20px); padding: 10px 0; }
.header.hidden { transform: translateY(-100%); }
.nav-container { display: flex; align-items: center; justify-content: space-between; max-width: 100%; padding: 0 60px; }
.logo { display: flex; align-items: center; gap: 10px; }
.logo-img { height: 36px; }
.logo-text { display: flex; flex-direction: column; }
.logo-name { color: var(--white); font-size: 1.3rem; font-weight: 800; letter-spacing: -0.3px; }
.logo-tagline { color: rgba(0,212,255,0.6); font-size: 0.58rem; font-weight: 500; letter-spacing: 0.5px; }
.nav { display: flex; align-items: center; gap: 28px; }
.nav-link { color: rgba(255,255,255,0.8); font-weight: 600; font-size: 0.85rem; transition: color 0.3s; }
.nav-link:hover { color: var(--white); }
.nav-btn {
  color: var(--white); border: 1.5px solid var(--cyan); border-radius: 50px;
  padding: 8px 24px; font-weight: 700; font-size: 0.85rem; transition: all 0.3s var(--ease);
}
.nav-btn:hover { background: var(--cyan); color: var(--navy); }

.header-right { display: flex; align-items: center; gap: 12px; }
.nav-btn-mobile { display: none; }
.mobile-menu-btn { display: none; background: none; border: none; cursor: pointer; padding: 8px; }
.mobile-menu-btn span { display: block; width: 24px; height: 2px; background: var(--white); margin: 5px 0; border-radius: 2px; transition: all 0.3s; }
.mobile-menu-btn.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.mobile-menu-btn.open span:nth-child(2) { opacity: 0; }
.mobile-menu-btn.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

/* ===== HERO ===== */
.hero { position: relative; min-height: 100vh; overflow: hidden; }
.hero-bg { position: absolute; inset: 0; background: linear-gradient(160deg, var(--navy) 0%, var(--navy-deep) 60%, #0a1a4a 100%); }
.hero-gradient {
  position: absolute; inset: 0;
  background: radial-gradient(ellipse at 30% 50%, rgba(42,83,193,0.25) 0%, transparent 60%),
              radial-gradient(ellipse at 70% 30%, rgba(0,212,255,0.1) 0%, transparent 50%);
}
.hero-slider { position: relative; width: 100%; min-height: 100vh; }
.hero-slide {
  position: absolute; top: 0; left: 0; width: 100%; min-height: 100vh;
  display: flex; align-items: center; opacity: 0;
  transition: opacity 0.8s ease, transform 0.8s ease; pointer-events: none;
  transform: scale(1.02);
}
.hero-slide.active { opacity: 1; pointer-events: auto; position: relative; transform: scale(1); }
.hero-slide { overflow: hidden; }
.hero-content { position: relative; z-index: 2; padding-top: 50px; width: 100%; min-height: 100vh; display: flex; max-width: 1200px; margin: 0 auto; padding-left: 60px; padding-right: 60px; }
.hero-center { text-align: center; align-items: center; justify-content: center; flex-direction: column; }
.hero-center .hero-title { font-size: 2.8rem; }
.hero-center .hero-sub { font-size: 1.1rem; max-width: 650px; }
.hero-split { display: flex; align-items: flex-end; gap: 40px; }
.hero-text { flex: 0.8; padding-bottom: 80px; padding-left: 80px; min-width: 0; }
.hero-img { flex: 1.2; display: flex; justify-content: center; align-items: flex-end; margin-bottom: -1px; }
.hero-img img { max-height: 85vh; object-fit: contain; margin-bottom: 0; }
.hero-badge {
  display: inline-block; padding: 6px 18px; border-radius: 50px;
  background: rgba(0,212,255,0.12); border: 1px solid rgba(0,212,255,0.25);
  color: var(--cyan); font-size: 0.7rem; font-weight: 600; letter-spacing: 0.5px; margin-bottom: 14px;
}
.hero-title {
  color: var(--white); font-size: 2.2rem; font-weight: 900; line-height: 1.2;
  margin-bottom: 14px; letter-spacing: -0.3px;
}
.hero-sub {
  color: rgba(255,255,255,0.7); font-size: 0.95rem; max-width: 480px; margin: 0 auto 20px;
  line-height: 1.6; font-weight: 400;
}
.hero-split .hero-sub { margin: 0 0 20px; }
/* hero-float animation removed */

.s-arrow {
  position: absolute; top: 50%; transform: translateY(-50%); z-index: 10;
  background: rgba(255,255,255,0.08); backdrop-filter: blur(10px); border: 1px solid rgba(255,255,255,0.15);
  border-radius: 50%; width: 48px; height: 48px; display: flex; align-items: center; justify-content: center;
  color: var(--white); cursor: pointer; transition: all 0.3s var(--ease);
}
.s-arrow:hover { background: rgba(255,255,255,0.15); transform: translateY(-50%) scale(1.1); }
.s-arrow--l { left: 24px; }
.s-arrow--r { right: 24px; }
.s-dots { position: absolute; bottom: 32px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.s-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(255,255,255,0.3);
  cursor: pointer; transition: all 0.4s var(--ease);
}
.s-dot.active { width: 28px; border-radius: 4px; background: var(--cyan); }

/* ===== SECTION LABELS ===== */
.section-label {
  text-align: center; font-size: 1.8rem; font-weight: 700; letter-spacing: 2px;
  text-transform: uppercase; color: var(--primary); margin-bottom: 12px;
}
.section-title {
  text-align: center; font-size: 2.6rem; font-weight: 800; color: var(--navy);
  margin-bottom: 48px; letter-spacing: -0.5px;
}

/* ===== FEATURES ===== */
.features { padding: 60px 0 90px; background: var(--off-white); }
.features .container { max-width: 1100px; }
.features-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.feature-card {
  text-align: center; padding: 24px 16px; border-radius: var(--radius);
  background: var(--white); transition: all 0.4s var(--ease);
  border: 1px solid rgba(0,0,0,0.04);
}
.feature-card:hover { transform: translateY(-4px); box-shadow: 0 12px 32px rgba(0,0,0,0.08); }
.feature-icon-wrap {
  width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
  margin: 0 auto 12px; background: rgba(42,83,193,0.08); color: var(--primary);
  transition: all 0.3s var(--ease);
}
.feature-card:hover .feature-icon-wrap { background: var(--primary); color: var(--white); }
.feature-card h4 { font-size: 0.92rem; font-weight: 700; color: var(--navy); margin-bottom: 6px; }
.feature-card p { font-size: 0.82rem; color: var(--text-light); line-height: 1.6; }

/* ===== DUO (Doctor + Meli) ===== */
.duo-section { padding: 20px 0; background: var(--white); }
.duo-wide { max-width: 1200px; margin: 0 auto; padding: 0 60px; }
.duo-grid { display: grid; grid-template-columns: 1fr auto 1fr; gap: 40px; align-items: flex-start; }
.duo-left { max-width: 300px; margin-left: auto; margin-right: 24px; padding-top: 80px; }
.duo-doctor-box {
  background: var(--primary); color: var(--white); border-radius: 16px;
  padding: 22px; margin-bottom: 14px;
}
.duo-doctor-box h3 { font-size: 1.35rem; font-weight: 800; margin-bottom: 8px; }
.duo-doctor-box p { font-size: 0.85rem; opacity: 0.9; margin-bottom: 16px; line-height: 1.6; }
.btn-outline-yellow {
  display: inline-block; padding: 10px 22px; border-radius: 50px;
  background: var(--white); color: var(--primary); font-weight: 700; font-size: 0.82rem;
  border: none; transition: all 0.3s var(--ease); cursor: pointer;
}
.btn-outline-yellow:hover { background: var(--cyan); color: var(--navy); }
.duo-doctor-img { width: 100%; border-radius: 10px; max-height: 200px; object-fit: cover; }
.duo-or { font-size: 2.5rem; font-weight: 800; color: var(--primary); text-align: center; align-self: center; }
.duo-right { text-align: center; }
.duo-meli-title { font-size: 2rem; font-weight: 800; color: var(--navy); margin-bottom: 6px; }
.duo-meli-sub { color: var(--text-light); font-size: 0.92rem; margin-bottom: 16px; }
.duo-meli-visual { position: relative; width: 500px; height: 460px; margin: 0 auto 4px; }
.duo-right .btn-dark { padding: 10px 24px; font-size: 0.78rem; margin-left: 32px; }
.meli-blob {
  position: absolute; top: 50%; left: 50%;
  transform: translate(-50%, -50%);
  width: 380px; height: 380px;
  fill: dodgerblue; opacity: 0.18;
  z-index: 0;
  animation: meliFloat 4s ease-in-out infinite;
  filter: blur(2px);
}
@keyframes meliFloat {
  0%, 100% { transform: translate(-50%, -50%) translateY(0px) scale(1); }
  50%       { transform: translate(-50%, -50%) translateY(-22px) scale(1.04); }
}
.duo-meli-avatar {
  height: 440px; width: auto; object-fit: contain;
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  z-index: 1;
}
.meli-chip {
  position: absolute; padding: 10px 16px; border: 1px solid rgba(0,0,0,0.1);
  border-radius: 10px; background: rgba(255,255,255,0.97); font-size: 0.82rem; font-weight: 600;
  color: var(--navy); text-align: center; line-height: 1.4; z-index: 10;
  box-shadow: 0 4px 18px rgba(0,0,0,0.14);
}
.meli-chip-tl { top: 50px; left: 10px; }
.meli-chip-tr { top: 100px; right: 10px; }
.meli-chip-bl { bottom: 90px; left: 10px; }
.meli-chip-br { bottom: 40px; right: 10px; }

/* ===== IMPACT CLOUD ===== */
.impact { padding: 40px 0 50px; background: var(--white); overflow: hidden; }
.impact-wide { width: 100%; padding: 0 20px; }
.impact-wide .section-label { text-align: center; }
.impact-cloud {
  display: flex; flex-wrap: wrap; justify-content: center; align-items: center;
  gap: 8px 28px; text-align: center; margin: 20px auto 0;
}
.impact-word {
  font-weight: 800; color: var(--navy); cursor: default;
  opacity: 0; filter: blur(8px); transform: translateY(12px);
  transition: opacity 0.6s var(--ease), filter 0.6s var(--ease), transform 0.6s var(--ease), color 0.3s;
}
.impact-word.iw-visible {
  opacity: 1; filter: blur(0); transform: translateY(0);
}
.impact-word:hover { color: var(--primary); }
.iw-xl { font-size: 1.8rem; }
.iw-lg { font-size: 1.5rem; }
.iw-md { font-size: 1.2rem; opacity: 0.7; }
.iw-sm { font-size: 1rem; opacity: 0.55; }
.iw-xs { font-size: 0.85rem; opacity: 0.45; }
.impact-word.iw-visible.iw-md { opacity: 0.7; }
.impact-word.iw-visible.iw-sm { opacity: 0.55; }
.impact-word.iw-visible.iw-xs { opacity: 0.45; }

/* ===== PROMO SLIDER ===== */
.promo { position: relative; overflow: hidden; }
.promo-slider { position: relative; width: 100%; }
.promo-slide {
  position: absolute; top: 0; left: 0; width: 100%;
  opacity: 0; transition: opacity 0.8s ease; pointer-events: none;
}
.promo-slide.active { opacity: 1; pointer-events: auto; position: relative; }
.promo-slide[data-promo="0"] { background: var(--off-white); }
.promo-inner { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; align-items: center; padding: 80px 0; }
.promo-text h2 { font-size: 2.2rem; font-weight: 800; color: var(--navy); margin-bottom: 14px; line-height: 1.15; letter-spacing: -0.5px; }
.promo-text p { font-size: 0.95rem; color: var(--text-light); margin-bottom: 24px; line-height: 1.7; }
.promo-text--white h2 { color: var(--white); }
.promo-text--white p { color: rgba(255,255,255,0.85); }
.promo-img img { border-radius: var(--radius); max-height: 400px; margin: 0 auto; }
.promo-blue-bg { position: absolute; inset: 0; background: linear-gradient(135deg, #2A53C1, #4a7af5); }
.promo-inner--family { grid-template-columns: auto 1fr 1fr; gap: 24px; position: relative; z-index: 2; }
.promo-phone { max-height: 380px; border-radius: 20px; }
.promo-img-side img { max-height: 380px; border-radius: 20px; }
.promo-img-center img { max-height: 360px; border-radius: 12px; }
.promo-dots { position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%); z-index: 10; display: flex; gap: 8px; }
.promo-dot {
  width: 8px; height: 8px; border-radius: 50%; background: rgba(0,0,0,0.15);
  cursor: pointer; transition: all 0.4s var(--ease);
}
.promo-dot.active { width: 28px; border-radius: 4px; background: var(--navy); }

/* ===== PARTNERS ===== */
.partners { padding: 60px 0; background: var(--gray); }
.partners-row {
  display: flex; justify-content: center; align-items: center;
  gap: 56px; flex-wrap: nowrap;
}
.partners-row img {
  height: 110px; object-fit: contain; filter: grayscale(0.3); opacity: 0.8;
  transition: all 0.3s var(--ease);
}
.partners-row img[alt="Africa CDC"] { height: 90px; }
.partners-row img:hover { filter: grayscale(0); opacity: 1; transform: scale(1.05); }

/* ===== TESTIMONIALS ===== */
.testimonials { padding: 80px 0; background: var(--off-white); }
.testimonials .container { max-width: 1400px; }
.test-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 36px; }
.test-card {
  text-align: center; padding: 32px 20px; border-radius: var(--radius);
  background: var(--white); border: 1px solid rgba(0,0,0,0.04);
  transition: all 0.4s var(--ease); position: relative;
}
.test-card:hover { transform: translateY(-6px); box-shadow: 0 16px 40px rgba(0,0,0,0.08); }
.test-avatar {
  width: 120px; height: 120px; border-radius: 50%; overflow: hidden;
  margin: 0 auto 14px; box-shadow: 0 8px 24px rgba(0,0,0,0.08);
}
.test-avatar img { width: 100%; height: 100%; object-fit: cover; }
.test-card h4 { color: var(--primary); font-size: 1rem; font-weight: 700; margin-bottom: 8px; }
.test-card p { font-size: 0.85rem; color: var(--text-light); line-height: 1.7; }
.test-quote { font-size: 2.5rem; color: var(--primary); font-family: Georgia, serif; opacity: 0.3; margin-top: 8px; }

/* ===== CTA ===== */
.cta { padding: 50px 0; background: var(--off-white); }
.cta-wide { max-width: 1000px; margin: 0 auto; padding: 0 60px; }
.cta-top { text-align: center; margin-bottom: 32px; }
.cta-top h2 { font-size: 2rem; font-weight: 800; color: var(--navy); letter-spacing: -0.5px; }
.cta-row { display: flex; align-items: center; gap: 48px; }
.cta-phone { flex: 0 0 auto; }
.cta-phone img { max-height: 340px; }
.cta-actions { flex: 1; }
.cta-label { font-weight: 700; font-size: 0.9rem; color: var(--navy); margin-bottom: 12px; letter-spacing: 1px; }
.cta-register-btns { display: flex; gap: 12px; margin-bottom: 24px; flex-wrap: wrap; }

/* ===== FOOTER ===== */
.footer { background: var(--navy); color: var(--white); padding: 56px 0 0; }
.footer-grid { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1fr; gap: 36px; padding-bottom: 36px; }
.footer-brand .logo { margin-bottom: 14px; }
.footer-brand .logo-name { color: var(--white); font-size: 1.1rem; }
.footer-brand p { color: rgba(255,255,255,0.5); font-size: 0.85rem; }
.footer-col h4 { font-weight: 700; margin-bottom: 14px; font-size: 0.92rem; letter-spacing: 0.3px; }
.footer-col a {
  display: block; color: rgba(255,255,255,0.5); font-size: 0.82rem;
  margin-bottom: 8px; transition: all 0.3s;
}
.footer-col a:hover { color: var(--white); transform: translateX(3px); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.06); padding: 18px 0;
  text-align: center; font-size: 0.8rem; color: rgba(255,255,255,0.3);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 992px) {
  .container { padding: 0 60px; }
  .hero-title { font-size: 2.4rem; }
  .hero-split { flex-direction: column; text-align: left; gap: 0; }
  .hero-text { padding-left: 0; }
  .hero-split .hero-sub { margin: 0 0 24px; }
  .hero-split .app-buttons { justify-content: flex-start; }
  .features-grid { grid-template-columns: repeat(2, 1fr); }
  .duo-grid { grid-template-columns: 1fr; }
  .duo-left { max-width: 100%; }
  .duo-or { font-size: 1.4rem; }
  .duo-meli-visual { width: 300px; height: 380px; }
  .promo-inner { grid-template-columns: 1fr; text-align: center; }
  .promo-img { order: -1; }
  .promo-inner--family { grid-template-columns: 1fr; text-align: center; }
  .promo-img-side { display: none; }
  .promo-text--white .app-buttons { justify-content: center; }
  .test-grid { grid-template-columns: 1fr; max-width: 420px; margin: 0 auto; }
  .cta-row { flex-direction: column; text-align: center; }
  .cta-phone { display: none; }
  .cta-register-btns { justify-content: center; }
  .app-buttons { justify-content: center; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 768px) {
  .container { padding: 0 24px; }
  .mobile-menu-btn { display: block; }
  .nav-btn-mobile { display: inline-block; padding: 6px 20px; font-size: 0.8rem; background: var(--cyan); color: var(--navy); border-color: var(--cyan); }
  .nav {
    position: fixed; top: 0; right: -300px; width: 280px; height: 100vh;
    background: var(--navy); flex-direction: column; padding: 80px 32px 32px;
    transition: right 0.4s var(--ease); box-shadow: -4px 0 30px rgba(0,0,0,0.4);
    gap: 18px; z-index: 1001;
  }
  .nav.open { right: 0; }
  .nav-container { padding: 0 20px; }

  /* ===== HERO MOBILE SYSTEM ===== */
  .hero { min-height: calc(100vh - 76px); }
  .hero-slider { min-height: calc(100vh - 76px); }
  .hero-slide { min-height: calc(100vh - 76px); }
  .hero-content {
    padding-top: calc(56px + env(safe-area-inset-top, 0px));
    min-height: calc(100vh - 76px);
  }

  /* Slide 1 (centered, no image) */
  .hero-center {
    justify-content: center;
    padding-top: calc(40px + env(safe-area-inset-top, 0px));
  }
  .hero-center .hero-title { font-size: 2.4rem; }
  .hero-center .hero-sub { font-size: 1rem; }

  /* Slides 2–4: consistent stacked layout */
  .hero-split {
    flex-direction: column;
    text-align: left;
    gap: 0;
    justify-content: flex-start;
  }
  .hero-text {
    flex: none;
    padding: 46px 0 12px 0;
  }
  .hero-badge { font-size: 0.65rem; margin-bottom: 8px; }
  .hero-title { font-size: 1.7rem; margin-bottom: 8px; }
  .hero-sub { font-size: 0.82rem; max-width: 100%; margin: 0 0 12px; line-height: 1.5; }
  .hero-split .hero-sub { margin: 0 0 12px; }
  .hero-split .app-buttons { justify-content: flex-start; }
  .hero-split .btn { padding: 10px 24px; font-size: 0.8rem; }
  .hero-split .app-btn { padding: 8px 14px; }
  .hero-split .app-btn strong { font-size: 0.8rem; }
  .hero-split .app-btn small { font-size: 0.55rem; }

  /* Image area: fills remaining space, no crop */
  .hero-img {
    flex: 1;
    width: 100%;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: visible;
    min-height: 0;
  }
  .hero-img img {
    width: 100%;
    max-height: 100%;
    height: auto;
    object-fit: contain;
    object-position: bottom center;
  }

  /* Slides 2 & 3: scale wider landscape images up */
  .hero-slide[data-slide="1"] .hero-img img,
  .hero-slide[data-slide="2"] .hero-img img {
    width: 140%;
    max-width: none;
  }

  .s-arrow { display: none; }
  .s-dots { bottom: 12px; }

  /* Sections */
  .section-label { font-size: 1.1rem; }
  .section-title { font-size: 1.6rem; margin-bottom: 32px; }
  .features { padding: 50px 0; }
  .features .container { max-width: 100%; padding: 0 20px; }
  .features-grid { grid-template-columns: 1fr 1fr; gap: 12px; }
  .feature-card { padding: 16px 10px; }
  .feature-card h4 { font-size: 0.82rem; }
  .feature-card p { font-size: 0.72rem; }

  /* Duo section */
  .duo-wide { padding: 0 20px; }
  .duo-grid { grid-template-columns: 1fr; gap: 24px; }
  .duo-left { max-width: 100%; margin-left: 0; }
  .duo-or { font-size: 1.6rem; }

  /* Impact */
  .impact-wide { padding: 0 16px; }

  /* Promo */
  .promo-text h2 { font-size: 1.5rem; }

  /* CTA */
  .cta-wide { padding: 0 20px; }
  .cta-top h2 { font-size: 1.4rem; }

  /* Footer */
  .footer-grid { grid-template-columns: 1fr; text-align: center; }
  .app-buttons { justify-content: center; }
}

/* ===== MELI AI CHAT WIDGET ===== */
.meli-fab {
  position: fixed; bottom: 28px; right: 28px; z-index: 9999;
  width: 56px; height: 56px; border-radius: 50%;
  background: linear-gradient(135deg, var(--primary), var(--cyan));
  border: none; cursor: pointer; box-shadow: 0 4px 20px rgba(42,83,193,0.45);
  display: flex; align-items: center; justify-content: center;
  transition: transform 0.3s, box-shadow 0.3s;
  color: #fff;
}
.meli-fab:hover { transform: scale(1.1); box-shadow: 0 6px 28px rgba(42,83,193,0.55); }
.meli-fab svg { width: 24px; height: 24px; transition: opacity 0.2s, transform 0.2s; }
.meli-icon-close { position: absolute; opacity: 0; transform: rotate(-90deg); }
.meli-fab.active .meli-icon-chat { opacity: 0; transform: rotate(90deg); }
.meli-fab.active .meli-icon-close { opacity: 1; transform: rotate(0); }

.meli-panel {
  position: fixed; bottom: 96px; right: 28px; z-index: 9998;
  width: 340px; max-height: 520px;
  background: #fff; border-radius: 18px;
  box-shadow: 0 8px 40px rgba(0,0,0,0.18);
  display: flex; flex-direction: column;
  transform: scale(0.85) translateY(20px); transform-origin: bottom right;
  opacity: 0; pointer-events: none;
  transition: transform 0.25s cubic-bezier(.34,1.56,.64,1), opacity 0.2s;
  overflow: hidden;
}
.meli-panel.open { transform: scale(1) translateY(0); opacity: 1; pointer-events: all; }

.meli-header {
  display: flex; align-items: center; gap: 10px; padding: 14px 16px;
  background: linear-gradient(135deg, var(--navy), var(--primary));
  color: #fff; flex-shrink: 0;
}
.meli-avatar {
  width: 36px; height: 36px; border-radius: 50%;
  background: var(--cyan); color: var(--navy);
  display: flex; align-items: center; justify-content: center;
  font-weight: 800; font-size: 16px; flex-shrink: 0;
}
.meli-name { font-weight: 700; font-size: 14px; }
.meli-status { font-size: 11px; opacity: 0.8; color: #90ff90; }
.meli-close-btn { margin-left: auto; background: none; border: none; cursor: pointer; color: rgba(255,255,255,0.7); padding: 4px; }
.meli-close-btn:hover { color: #fff; }

.meli-msgs {
  flex: 1; overflow-y: auto; padding: 14px 12px;
  display: flex; flex-direction: column; gap: 8px;
  background: #f7f8fc;
}
.meli-msg {
  max-width: 80%; padding: 9px 13px; border-radius: 14px;
  font-size: 13.5px; line-height: 1.5; word-break: break-word;
}
.meli-bot { background: #fff; color: #1a1a2e; border-bottom-left-radius: 4px; align-self: flex-start; box-shadow: 0 1px 4px rgba(0,0,0,0.07); }
.meli-user { background: var(--primary); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }

.meli-typing { display: flex; gap: 4px; align-items: center; padding: 10px 14px; }
.meli-typing span {
  width: 7px; height: 7px; border-radius: 50%; background: #aaa;
  animation: meliDot 1.2s infinite;
}
.meli-typing span:nth-child(2) { animation-delay: 0.2s; }
.meli-typing span:nth-child(3) { animation-delay: 0.4s; }
@keyframes meliDot { 0%,80%,100%{transform:scale(0.7);opacity:0.5} 40%{transform:scale(1);opacity:1} }

.meli-input-row {
  display: flex; align-items: center; gap: 8px;
  padding: 10px 12px; border-top: 1px solid #eee; background: #fff; flex-shrink: 0;
}
.meli-input {
  flex: 1; border: 1.5px solid #dde; border-radius: 22px;
  padding: 8px 14px; font-size: 13.5px; outline: none;
  transition: border-color 0.2s;
}
.meli-input:focus { border-color: var(--primary); }
.meli-send {
  width: 36px; height: 36px; border-radius: 50%; flex-shrink: 0;
  background: var(--primary); color: #fff; border: none; cursor: pointer;
  display: flex; align-items: center; justify-content: center;
  transition: background 0.2s;
}
.meli-send:hover { background: var(--cyan); color: var(--navy); }
.meli-send:disabled { opacity: 0.5; cursor: default; }

.meli-disclaimer { font-size: 10px; color: #aaa; text-align: center; padding: 4px 12px 8px; background: #fff; }
.meli-signin-prompt { display: flex; flex-direction: column; gap: 8px; }
.meli-signin-prompt p { font-size: 0.85rem; }
.meli-signin-btn, .meli-signup-btn {
  display: block; text-align: center; padding: 8px 16px; border-radius: 8px;
  font-size: 0.85rem; font-weight: 600; text-decoration: none; cursor: pointer;
}
.meli-signin-btn { background: #1a1a2e; color: #fff; }
.meli-signup-btn { background: transparent; color: #1a1a2e; border: 1.5px solid #1a1a2e; margin-top: 2px; }

@media (max-width: 480px) {
  .meli-panel { width: calc(100vw - 32px); right: 16px; bottom: 88px; }
  .meli-fab { right: 16px; bottom: 20px; }
}

/* ===== BIOMARKER MEMBERSHIP ===== */
.bm-membership { padding: 28px 0; background: #f8f9fc; }
.bm-social-text { font-size: 0.9rem; color: #555; margin: 0 0 8px; }
.bm-social-text strong { color: #1a1a2e; }
.bm-wrap {
  max-width: 1080px; margin: 0 auto; padding: 0 60px;
  display: grid; grid-template-columns: 1fr 1fr; gap: 80px; align-items: center;
}

/* Card */
.bm-card-side { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; }
.bm-card {
  width: 420px; border-radius: 24px;
  background: linear-gradient(150deg, var(--navy) 0%, #1a2a6c 60%, #0d1b4b 100%);
  padding: 28px 24px 24px; position: relative; overflow: hidden;
  box-shadow: 0 24px 60px rgba(11,11,59,0.35);
  display: flex; flex-direction: column; gap: 20px;
}
.bm-card-header { display: flex; flex-direction: column; gap: 2px; }
.bm-card-logo { font-size: 0.85rem; font-weight: 800; color: #fff; letter-spacing: 1px; }
.bm-card-tag { font-size: 0.6rem; color: var(--cyan); letter-spacing: 2px; text-transform: uppercase; }
.bm-card-body { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; }
.bm-big-number {
  font-size: 5rem; font-weight: 900; color: #fff; line-height: 1;
}
.bm-big-number span { font-size: 2.5rem; color: var(--cyan); }
.bm-card-label { font-size: 0.75rem; color: rgba(255,255,255,0.6); letter-spacing: 1px; text-transform: uppercase; margin-top: -8px; }
.bm-tags { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.bm-tags span {
  font-size: 0.78rem; font-weight: 600; padding: 3px 10px; border-radius: 20px;
  background: rgba(255,255,255,0.1); color: rgba(255,255,255,0.8); border: 1px solid rgba(255,255,255,0.15);
}
.bm-card-footer { border-top: 1px solid rgba(255,255,255,0.1); padding-top: 16px; }
.bm-price-pill {
  display: inline-flex; align-items: baseline; gap: 4px;
  background: var(--cyan); color: var(--navy);
  font-size: 1rem; font-weight: 800; padding: 6px 16px; border-radius: 20px;
}
.bm-price-pill small { font-size: 0.7rem; font-weight: 600; }
.bm-card-glow {
  position: absolute; width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(0,212,255,0.15), transparent 70%);
  top: -60px; right: -60px; pointer-events: none;
}

/* Copy */
.bm-eyebrow { font-size: 0.78rem; color: var(--primary); font-weight: 700; letter-spacing: 0.3px; margin-bottom: 6px; line-height: 1.3; }
.bm-title { font-size: 1.8rem; font-weight: 800; color: var(--navy); line-height: 1.1; margin-bottom: 8px; white-space: nowrap; }
.bm-desc { font-size: 0.88rem; color: var(--text-light); line-height: 1.6; margin-bottom: 14px; }
.bm-list { list-style: none; padding: 0; margin: 0 0 12px; display: flex; flex-direction: column; gap: 4px; }
.bm-list li { display: flex; align-items: flex-start; gap: 10px; font-size: 0.87rem; color: #374151; }
.bm-check { color: #22c55e; font-weight: 800; font-size: 1rem; flex-shrink: 0; margin-top: 1px; }
.bm-price-block { margin-bottom: 14px; }
.bm-price-row { display: flex; align-items: baseline; gap: 4px; }
.bm-currency { font-size: 1.4rem; font-weight: 700; color: var(--navy); }
.bm-amount { font-size: 3.6rem; font-weight: 900; color: var(--navy); line-height: 1; }
.bm-per { font-size: 1rem; color: var(--text-light); font-weight: 500; }
.bm-period { font-size: 0.82rem; color: var(--text-light); display: block; margin-top: 4px; }
.bm-flexible { font-size: 0.78rem; color: var(--text-light); margin-top: 12px; }

@media (max-width: 900px) {
  .bm-wrap { grid-template-columns: 1fr; gap: 48px; padding: 0 24px; }
  .bm-card-side { justify-content: center; }
  .bm-title { font-size: 2rem; }
}
