/* ============================================================
   BITMEDICO LANDING — MEDICAL THEME
   ============================================================ */

/* ── Variables médicas ── */
:root {
  --med-blue:       #0ea5e9;
  --med-blue-dark:  #0284c7;
  --med-teal:       #0d9488;
  --med-green:      #10b981;
  --med-indigo:     #6366f1;
  --med-blue-rgb:   14,165,233;
  --med-teal-rgb:   13,148,136;
  --med-green-rgb:  16,185,129;
}

/* ── Reset / base ── */
.bm-section { padding: 5rem 1.5rem; }
.bm-container { max-width: 1160px; margin: 0 auto; }
.bm-label {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(14,165,233,.1); color: var(--med-blue);
  border: 1.5px solid rgba(14,165,233,.22); border-radius: 999px;
  padding: .35rem 1rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem;
}
.bm-label-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--med-blue); animation: pulse-dot 2s infinite; }
@keyframes pulse-dot { 0%,100%{opacity:1;transform:scale(1)} 50%{opacity:.5;transform:scale(1.4)} }

/* ── HERO ── */
.bm-hero {
  min-height: calc(100vh - var(--navbar-h));
  display: grid; grid-template-columns: 1fr 1fr; align-items: center;
  gap: 3rem; max-width: 1200px; margin: 0 auto;
  padding: 5rem 2rem 4rem;
}
@media(max-width:900px){
  .bm-hero { grid-template-columns:1fr; text-align:center; padding:4rem 1.5rem 3rem; }
  .bm-hero-img-wrap { display:none; }
  .bm-hero-badges { justify-content:center; }
}
.bm-hero-title {
  font-size: clamp(2rem, 4.5vw, 3.4rem); font-weight: 900; line-height: 1.1;
  color: #0f172a; letter-spacing: -.03em; margin: 1rem 0 1.25rem;
}
.bm-hero-title-accent {
  background: linear-gradient(135deg, var(--med-blue), var(--med-teal));
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bm-hero-sub {
  font-size: 1.1rem; color: #64748b; line-height: 1.75; margin-bottom: 2rem; max-width: 480px;
}
.bm-hero-actions { display: flex; gap: .9rem; flex-wrap: wrap; margin-bottom: 2.5rem; }
.btn-med-primary {
  background: linear-gradient(135deg, var(--med-blue), var(--med-blue-dark));
  color: #fff; border: none; border-radius: 10px; padding: .78rem 1.8rem;
  font-size: .95rem; font-weight: 700; cursor: pointer; text-decoration: none;
  display: inline-flex; align-items: center; gap: .5rem;
  box-shadow: 0 4px 18px rgba(14,165,233,.35); transition: all .22s;
}
.btn-med-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 26px rgba(14,165,233,.45); color: #fff; text-decoration: none; }
.btn-med-outline {
  background: transparent; color: var(--med-blue);
  border: 2px solid rgba(14,165,233,.35); border-radius: 10px;
  padding: .78rem 1.8rem; font-size: .95rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; gap: .5rem; transition: all .22s;
}
.btn-med-outline:hover { border-color: var(--med-blue); background: rgba(14,165,233,.06); color: var(--med-blue-dark); text-decoration: none; }

.bm-hero-badges { display: flex; gap: .75rem; flex-wrap: wrap; }
.bm-trust-badge {
  display: inline-flex; align-items: center; gap: .4rem;
  background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px;
  padding: .4rem .85rem; font-size: .78rem; font-weight: 600; color: #475569;
}
.bm-trust-badge i { color: var(--med-teal); font-size: .82rem; }

.bm-hero-img-wrap { position: relative; }
.bm-hero-img-main {
  width: 100%; border-radius: 20px; object-fit: cover; height: 520px;
  box-shadow: 0 30px 80px rgba(15,23,42,.18);
}
.bm-hero-card-float {
  position: absolute; background: #fff; border-radius: 14px;
  box-shadow: 0 12px 40px rgba(15,23,42,.14); padding: .9rem 1.2rem;
  display: flex; align-items: center; gap: .75rem;
}
.bm-hero-card-float.card-1 { bottom: 2.5rem; left: -2rem; }
.bm-hero-card-float.card-2 { top: 2rem; right: -1.5rem; }
.bm-hero-card-icon {
  width: 42px; height: 42px; border-radius: 10px; display: flex;
  align-items: center; justify-content: center; font-size: 1.2rem; flex-shrink: 0;
}
.bm-hero-card-icon.blue { background: rgba(14,165,233,.12); }
.bm-hero-card-icon.green { background: rgba(16,185,129,.12); }
.bm-hero-card-txt-main { font-size: .9rem; font-weight: 800; color: #0f172a; line-height: 1; }
.bm-hero-card-txt-sub { font-size: .74rem; color: #64748b; margin-top: .2rem; }

/* ── STATS BAR ── */
.bm-stats-bar {
  background: linear-gradient(135deg, #0f172a, #1e293b);
  padding: 2.5rem 1.5rem;
}
.bm-stats-inner {
  max-width: 1100px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(4,1fr); gap: 1.5rem;
}
@media(max-width:700px){ .bm-stats-inner { grid-template-columns:repeat(2,1fr); } }
.bm-stat { text-align: center; }
.bm-stat-num { font-size: 2rem; font-weight: 900; color: var(--med-blue); line-height: 1; }
.bm-stat-label { font-size: .82rem; color: #94a3b8; margin-top: .3rem; }

/* ── PARA QUIÉN ES ── */
.bm-for { background: #f8fafc; }
.bm-for-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem;
}
@media(max-width:700px){ .bm-for-grid { grid-template-columns:1fr; } }
.bm-for-card {
  background: #fff; border-radius: 18px; padding: 2rem; border: 1.5px solid #e2e8f0;
  transition: all .25s; text-align: center;
}
.bm-for-card:hover { transform: translateY(-5px); box-shadow: 0 16px 50px rgba(14,165,233,.12); border-color: rgba(14,165,233,.25); }
.bm-for-img {
  width: 100%; height: 180px; object-fit: cover; border-radius: 12px; margin-bottom: 1.25rem;
}
.bm-for-icon-wrap {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1rem;
  display: flex; align-items: center; justify-content: center; font-size: 1.6rem;
}
.bm-for-card h3 { font-size: 1.1rem; font-weight: 800; color: #0f172a; margin-bottom: .5rem; }
.bm-for-card p { font-size: .88rem; color: #64748b; line-height: 1.65; margin: 0; }

/* ── FEATURES ── */
.bm-features { background: #fff; }
.bm-features-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem;
}
@media(max-width:900px){ .bm-features-grid { grid-template-columns:repeat(2,1fr); } }
@media(max-width:580px){ .bm-features-grid { grid-template-columns:1fr; } }
.bm-feat-card {
  border-radius: 16px; padding: 1.75rem; border: 1.5px solid #e8eef6;
  position: relative; overflow: hidden; transition: all .25s;
  background: #fff;
}
.bm-feat-card:hover { border-color: rgba(14,165,233,.3); box-shadow: 0 12px 40px rgba(14,165,233,.1); transform: translateY(-3px); }
.bm-feat-card-accent {
  position: absolute; top: 0; left: 0; right: 0; height: 3px;
  background: linear-gradient(90deg, var(--med-blue), var(--med-teal));
  opacity: 0; transition: opacity .25s;
}
.bm-feat-card:hover .bm-feat-card-accent { opacity: 1; }
.bm-feat-icon {
  width: 52px; height: 52px; border-radius: 12px; display: flex;
  align-items: center; justify-content: center; font-size: 1.4rem; margin-bottom: 1rem;
  background: linear-gradient(135deg, rgba(14,165,233,.12), rgba(13,148,136,.08));
  border: 1.5px solid rgba(14,165,233,.15);
}
.bm-feat-card h3 { font-size: 1rem; font-weight: 800; color: #0f172a; margin-bottom: .45rem; }
.bm-feat-card p { font-size: .87rem; color: #64748b; line-height: 1.65; margin: 0; }
.bm-feat-tag {
  display: inline-block; margin-top: .85rem; font-size: .72rem; font-weight: 700;
  color: var(--med-blue); background: rgba(14,165,233,.08); border-radius: 6px;
  padding: .2rem .6rem; letter-spacing: .03em;
}

/* ── CÓMO FUNCIONA ── */
.bm-how { background: linear-gradient(160deg, #f0f9ff, #f0fdf4); }
.bm-how-steps {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 2rem; margin-top: 3.5rem;
  position: relative;
}
@media(max-width:700px){ .bm-how-steps { grid-template-columns:1fr; } }
.bm-how-steps::before {
  content: '';
  position: absolute; top: 30px; left: calc(16.67% + 1rem); right: calc(16.67% + 1rem);
  height: 2px; background: linear-gradient(90deg, var(--med-blue), var(--med-teal));
  opacity: .25;
}
@media(max-width:700px){ .bm-how-steps::before { display:none; } }
.bm-how-step { text-align: center; position: relative; }
.bm-how-num {
  width: 60px; height: 60px; border-radius: 50%; margin: 0 auto 1.5rem;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; font-weight: 900; color: #fff;
  background: linear-gradient(135deg, var(--med-blue), var(--med-teal));
  box-shadow: 0 6px 20px rgba(14,165,233,.35); position: relative; z-index: 1;
}
.bm-how-step h3 { font-size: 1.05rem; font-weight: 800; color: #0f172a; margin-bottom: .5rem; }
.bm-how-step p { font-size: .88rem; color: #64748b; line-height: 1.65; max-width: 240px; margin: 0 auto; }
.bm-how-step-img { width: 100%; height: 150px; object-fit: cover; border-radius: 12px; margin-bottom: 1.25rem; }

/* ── SHOWCASE / SPLIT ── */
.bm-showcase { background: #fff; }
.bm-showcase-split {
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media(max-width:860px){ .bm-showcase-split { grid-template-columns:1fr; } }
.bm-showcase-img {
  width: 100%; border-radius: 18px; object-fit: cover; height: 420px;
  box-shadow: 0 20px 60px rgba(15,23,42,.15);
}
.bm-showcase-list { list-style: none; padding: 0; margin: 1.5rem 0 2rem; }
.bm-showcase-list li {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .65rem 0; border-bottom: 1px solid #f1f5f9; font-size: .93rem; color: #374151;
}
.bm-showcase-list li:last-child { border-bottom: none; }
.bm-showcase-list li i { color: var(--med-teal); margin-top: .15rem; flex-shrink: 0; }

/* ── TESTIMONIALS ── */
.bm-testimonials { background: #f8fafc; }
.bm-testi-grid {
  display: grid; grid-template-columns: repeat(3,1fr); gap: 1.5rem; margin-top: 3rem;
}
@media(max-width:860px){ .bm-testi-grid { grid-template-columns:1fr; } }
.bm-testi-card {
  background: #fff; border-radius: 16px; padding: 1.75rem;
  border: 1.5px solid #e8eef6; transition: box-shadow .25s;
}
.bm-testi-card:hover { box-shadow: 0 10px 35px rgba(14,165,233,.1); }
.bm-testi-stars { color: #f59e0b; font-size: .85rem; margin-bottom: .9rem; }
.bm-testi-text { font-size: .9rem; color: #475569; line-height: 1.7; margin-bottom: 1.25rem; font-style: italic; }
.bm-testi-author { display: flex; align-items: center; gap: .85rem; }
.bm-testi-avatar {
  width: 44px; height: 44px; border-radius: 50%; object-fit: cover;
  border: 2px solid rgba(14,165,233,.2);
}
.bm-testi-name { font-size: .9rem; font-weight: 800; color: #0f172a; line-height: 1; }
.bm-testi-spec { font-size: .76rem; color: #94a3b8; margin-top: .2rem; }

/* ── CTA FINAL ── */
.bm-cta-section { padding: 6rem 1.5rem; background: #fff; }
.bm-cta-card {
  max-width: 900px; margin: 0 auto;
  background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 50%, #0c4a6e 100%);
  border-radius: 24px; padding: 4rem 2.5rem;
  display: grid; grid-template-columns: 1fr auto; gap: 2.5rem; align-items: center;
  position: relative; overflow: hidden;
  box-shadow: 0 25px 70px rgba(15,23,42,.3);
}
@media(max-width:700px){ .bm-cta-card { grid-template-columns:1fr; text-align:center; } }
.bm-cta-card::before {
  content: ''; position: absolute; top: -60px; right: -40px;
  width: 280px; height: 280px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.2), transparent 70%);
}
.bm-cta-card::after {
  content: ''; position: absolute; bottom: -50px; left: -30px;
  width: 220px; height: 220px; border-radius: 50%;
  background: radial-gradient(circle, rgba(13,148,136,.15), transparent 70%);
}
.bm-cta-title { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 900; color: #fff; margin-bottom: .6rem; position: relative; z-index: 1; }
.bm-cta-sub { color: rgba(255,255,255,.7); font-size: 1rem; line-height: 1.6; position: relative; z-index: 1; }
.bm-cta-actions { display: flex; gap: .9rem; flex-direction: column; flex-shrink: 0; position: relative; z-index: 1; }
@media(max-width:700px){ .bm-cta-actions { flex-direction:row; justify-content:center; } }
.btn-cta-white {
  background: #fff; color: var(--med-blue-dark); border: none;
  border-radius: 10px; padding: .85rem 1.8rem; font-size: .95rem; font-weight: 800;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  box-shadow: 0 4px 16px rgba(0,0,0,.15); transition: all .22s; white-space: nowrap;
}
.btn-cta-white:hover { background: #f0f9ff; color: var(--med-blue); text-decoration: none; transform: translateY(-2px); }
.btn-cta-ghost {
  background: transparent; color: rgba(255,255,255,.85);
  border: 1.5px solid rgba(255,255,255,.3); border-radius: 10px;
  padding: .85rem 1.8rem; font-size: .95rem; font-weight: 700;
  text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: .5rem;
  transition: all .22s; white-space: nowrap;
}
.btn-cta-ghost:hover { border-color: rgba(255,255,255,.7); background: rgba(255,255,255,.08); color: #fff; text-decoration: none; }

/* ── FOOTER ── */
.bm-footer {
  background: #0f172a; color: #475569; padding: 2.5rem 1.5rem; font-size: .86rem;
  border-top: 1px solid rgba(255,255,255,.05);
}
.bm-footer-inner {
  max-width: 1100px; margin: 0 auto;
  display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 1rem;
}
.bm-footer-brand { color: #94a3b8; font-weight: 700; font-size: .9rem; }
.bm-footer-brand span { color: var(--med-blue); }
.bm-footer-links { display: flex; gap: 1.5rem; flex-wrap: wrap; }
.bm-footer-links a { color: #64748b; text-decoration: none; transition: color .2s; }
.bm-footer-links a:hover { color: var(--med-blue); }

/* ── Section headers ── */
.bm-section-title {
  font-size: clamp(1.6rem, 3vw, 2.3rem); font-weight: 900; color: #0f172a;
  letter-spacing: -.025em; margin-bottom: .65rem; text-align: center;
}
.bm-section-sub { text-align: center; color: #64748b; font-size: 1rem; max-width: 520px; margin: 0 auto; line-height: 1.7; }
.bm-label-wrap { text-align: center; margin-bottom: .5rem; }

/* ── AI SECTION ── */
.bm-ai-section {
  background: linear-gradient(135deg, #0f172a 0%, #0c4a6e 50%, #064e3b 100%);
  padding: 6rem 1.5rem; position: relative; overflow: hidden;
}
.bm-ai-section::before {
  content: ''; position: absolute; top: -100px; right: -80px;
  width: 400px; height: 400px; border-radius: 50%;
  background: radial-gradient(circle, rgba(14,165,233,.18), transparent 65%);
  pointer-events: none;
}
.bm-ai-section::after {
  content: ''; position: absolute; bottom: -80px; left: -60px;
  width: 320px; height: 320px; border-radius: 50%;
  background: radial-gradient(circle, rgba(16,185,129,.14), transparent 65%);
  pointer-events: none;
}
.bm-ai-inner {
  max-width: 1100px; margin: 0 auto; position: relative; z-index: 1;
  display: grid; grid-template-columns: 1fr 1fr; gap: 4rem; align-items: center;
}
@media(max-width:860px){ .bm-ai-inner { grid-template-columns:1fr; } }
.bm-ai-label {
  display: inline-flex; align-items: center; gap: .45rem;
  background: rgba(16,185,129,.15); color: #34d399;
  border: 1.5px solid rgba(16,185,129,.3); border-radius: 999px;
  padding: .35rem 1rem; font-size: .8rem; font-weight: 700;
  letter-spacing: .04em; text-transform: uppercase; margin-bottom: 1rem;
}
.bm-ai-title {
  font-size: clamp(1.8rem, 3.5vw, 2.6rem); font-weight: 900; color: #fff;
  letter-spacing: -.03em; line-height: 1.1; margin-bottom: 1rem;
}
.bm-ai-title-accent {
  background: linear-gradient(135deg, #34d399, #0ea5e9);
  -webkit-background-clip: text; -webkit-text-fill-color: transparent; background-clip: text;
}
.bm-ai-sub { color: rgba(255,255,255,.72); font-size: 1rem; line-height: 1.75; margin-bottom: 2rem; }
.bm-ai-list { list-style: none; padding: 0; margin: 0 0 2rem; }
.bm-ai-list li {
  display: flex; align-items: flex-start; gap: .85rem;
  padding: .7rem 0; border-bottom: 1px solid rgba(255,255,255,.07);
  color: rgba(255,255,255,.85); font-size: .92rem; line-height: 1.55;
}
.bm-ai-list li:last-child { border-bottom: none; }
.bm-ai-list-icon {
  width: 32px; height: 32px; border-radius: 8px; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center; font-size: .88rem;
  background: rgba(52,211,153,.15); color: #34d399;
}
.bm-ai-chat {
  background: rgba(255,255,255,.04); border: 1px solid rgba(255,255,255,.1);
  border-radius: 20px; padding: 1.75rem; backdrop-filter: blur(10px);
}
.bm-ai-chat-header {
  display: flex; align-items: center; gap: .75rem; margin-bottom: 1.5rem;
  padding-bottom: 1rem; border-bottom: 1px solid rgba(255,255,255,.08);
}
.bm-ai-chat-avatar {
  width: 40px; height: 40px; border-radius: 50%;
  background: linear-gradient(135deg, #0ea5e9, #34d399);
  display: flex; align-items: center; justify-content: center; font-size: 1.1rem;
}
.bm-ai-chat-name { color: #fff; font-weight: 800; font-size: .95rem; line-height: 1; }
.bm-ai-chat-status { color: #34d399; font-size: .74rem; margin-top: .2rem; }
.bm-ai-bubble {
  border-radius: 14px; padding: .85rem 1.1rem; margin-bottom: .75rem;
  font-size: .86rem; line-height: 1.6;
}
.bm-ai-bubble.user {
  background: rgba(14,165,233,.2); color: rgba(255,255,255,.9);
  margin-left: 2rem; border-bottom-right-radius: 4px;
}
.bm-ai-bubble.ai {
  background: rgba(255,255,255,.07); color: rgba(255,255,255,.85);
  margin-right: 2rem; border-bottom-left-radius: 4px;
}
.bm-ai-bubble.ai strong { color: #34d399; }
.bm-ai-typing {
  display: flex; align-items: center; gap: .5rem; padding: .5rem .5rem 0;
  color: rgba(255,255,255,.45); font-size: .78rem;
}
.bm-ai-typing-dots { display: flex; gap: 3px; }
.bm-ai-typing-dots span {
  width: 5px; height: 5px; border-radius: 50%; background: #34d399;
  animation: typing-dot 1.2s infinite; opacity: .4;
}
.bm-ai-typing-dots span:nth-child(2){ animation-delay:.2s }
.bm-ai-typing-dots span:nth-child(3){ animation-delay:.4s }
@keyframes typing-dot { 0%,100%{opacity:.4;transform:translateY(0)} 50%{opacity:1;transform:translateY(-3px)} }

/* ── Dark mode overrides ── */
html.dark .bm-hero-title { color: #f1f5f9; }
html.dark .bm-for { background: #1e293b; }
html.dark .bm-for-card { background: #0f172a; border-color: rgba(255,255,255,.08); }
html.dark .bm-for-card h3 { color: #f1f5f9; }
html.dark .bm-for-card p { color: #94a3b8; }
html.dark .bm-features { background: #0f172a; }
html.dark .bm-feat-card { background: #1e293b; border-color: rgba(255,255,255,.08); }
html.dark .bm-feat-card h3 { color: #f1f5f9; }
html.dark .bm-showcase { background: #0f172a; }
html.dark .bm-showcase-list li { color: #cbd5e1; border-color: rgba(255,255,255,.07); }
html.dark .bm-testimonials { background: #1e293b; }
html.dark .bm-testi-card { background: #0f172a; border-color: rgba(255,255,255,.08); }
html.dark .bm-testi-text { color: #94a3b8; }
html.dark .bm-cta-section { background: #0f172a; }
html.dark .bm-section-title { color: #f1f5f9; }
html.dark .bm-trust-badge { background: #1e293b; border-color: rgba(255,255,255,.1); color: #94a3b8; }
html.dark .bm-stat-bar { background: #0f172a; }
html.dark .bm-how { background: linear-gradient(160deg,#0f172a,#1e293b); }
html.dark .bm-how-step h3 { color: #f1f5f9; }
