@import url('https://fonts.googleapis.com/css2?family=Inter:opsz,wght@14..32,300..700&display=swap');

:root {
  --azul: #1565c0;
  --azul-claro: #1e88e5;
  --azul-muy-claro: #e3f2fd;
  --verde: #16a34a;
  --blanco: #ffffff;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

body { font-family: 'Inter', system-ui, -apple-system, sans-serif; color: #1e293b; line-height: 1.6; -webkit-font-smoothing: antialiased; }

/* ── Navbar ── */
.navbar-medica {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(10px);
  box-shadow: 0 1px 0 #e2e8f0, 0 2px 12px rgba(67,56,202,.07);
  position: sticky;
  top: 0;
  z-index: 1000;
  padding: 12px 0;
}
.navbar-brand-custom {
  display: flex; align-items: center; gap: 10px; text-decoration: none;
}
.navbar-brand-custom .brand-icon {
  width: 42px; height: 42px;
  background: linear-gradient(135deg, var(--azul), var(--azul-claro));
  border-radius: 10px;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.2rem;
}
.brand-name { color: var(--azul); font-weight: 700; font-size: 1.1rem; line-height: 1.2; }
.brand-esp { color: #666; font-size: 0.75rem; }
.nav-link-custom { color: var(--azul) !important; font-weight: 500; padding: 6px 14px !important; border-radius: 6px; transition: all 0.2s; }
.nav-link-custom:hover { background: var(--azul-muy-claro); }
.btn-panel { background: var(--azul); color: white; border-radius: 8px; padding: 8px 18px; font-weight: 600; text-decoration: none; font-size: 0.88rem; transition: background 0.2s; }
.btn-panel:hover { background: var(--azul-claro); color: white; }

/* ── Hero ── */
.hero {
  background: linear-gradient(135deg, #0d47a1 0%, #1565c0 50%, #1e88e5 100%);
  color: white;
  padding: 100px 0 80px;
  position: relative;
  overflow: hidden;
}
.hero::before {
  content: '';
  position: absolute; top: -50%; right: -20%;
  width: 600px; height: 600px;
  background: rgba(255,255,255,0.05);
  border-radius: 50%;
}
.hero-badge {
  display: inline-block;
  background: rgba(255,255,255,0.2);
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50px;
  padding: 6px 18px;
  font-size: 0.85rem;
  margin-bottom: 20px;
}
.hero h1 { font-size: clamp(2rem, 4vw, 3rem); font-weight: 800; line-height: 1.2; margin-bottom: 12px; }
.hero .subtitulo { font-size: 1.2rem; opacity: 0.9; margin-bottom: 8px; }
.hero .matricula { font-size: 0.95rem; opacity: 0.75; margin-bottom: 30px; }
.hero-cta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 40px; }
.btn-hero-primary {
  background: white; color: var(--azul);
  font-weight: 700; padding: 14px 28px; border-radius: 10px;
  text-decoration: none; font-size: 1rem;
  transition: transform 0.2s, box-shadow 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-primary:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.2); color: var(--azul); }
.btn-hero-secondary {
  background: rgba(255,255,255,0.15); color: white;
  border: 2px solid rgba(255,255,255,0.5);
  font-weight: 600; padding: 12px 26px; border-radius: 10px;
  text-decoration: none; font-size: 1rem;
  transition: all 0.2s;
  display: inline-flex; align-items: center; gap: 8px;
}
.btn-hero-secondary:hover { background: rgba(255,255,255,0.25); color: white; }
.hero-stats { display: flex; flex-wrap: wrap; gap: 30px; }
.hero-stat { text-align: center; }
.hero-stat-num { font-size: 2rem; font-weight: 800; }
.hero-stat-label { font-size: 0.8rem; opacity: 0.75; }

/* ── Sección genérica ── */
section { padding: 80px 0; }
.section-header { text-align: center; margin-bottom: 50px; }
.section-badge {
  display: inline-block;
  background: var(--azul-muy-claro); color: var(--azul);
  border-radius: 50px; padding: 5px 16px; font-size: 0.82rem; font-weight: 600;
  margin-bottom: 12px;
}
.section-title-h2 { font-size: clamp(1.6rem, 3vw, 2.2rem); font-weight: 800; color: var(--azul); margin-bottom: 12px; }
.section-subtitle { color: #64748b; font-size: 1rem; max-width: 580px; margin: 0 auto; }

/* ── Servicios ── */
.bg-section-alt { background: #f8fbff; }
.service-card {
  background: white; border-radius: 16px;
  padding: 30px; text-align: center;
  box-shadow: 0 4px 20px rgba(21,101,192,0.08);
  border: 1px solid #e8ecf4;
  height: 100%;
  transition: transform 0.3s, box-shadow 0.3s;
}
.service-card:hover { transform: translateY(-6px); box-shadow: 0 12px 40px rgba(21,101,192,0.15); }
.service-icon {
  width: 72px; height: 72px;
  border-radius: 18px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.8rem;
  margin: 0 auto 20px;
}
.service-card h5 { font-weight: 700; color: var(--azul); margin-bottom: 10px; }
.service-card p { color: #64748b; font-size: 0.9rem; margin: 0; }

/* ── Telemedicina ── */
.tele-card {
  background: linear-gradient(135deg, #0d47a1 0%, #1e88e5 100%);
  color: white; border-radius: 20px; padding: 40px;
}
.tele-card h3 { font-weight: 800; font-size: 1.8rem; margin-bottom: 16px; }
.tele-steps { list-style: none; padding: 0; }
.tele-steps li {
  display: flex; align-items: flex-start; gap: 12px;
  margin-bottom: 16px; font-size: 0.95rem;
}
.tele-steps li .step-num {
  width: 28px; height: 28px; border-radius: 50%;
  background: rgba(255,255,255,0.25);
  display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 0.85rem; flex-shrink: 0;
}
.btn-wsp-card {
  background: #25d366; color: white;
  padding: 14px 28px; border-radius: 10px;
  font-weight: 700; text-decoration: none; font-size: 1rem;
  display: inline-flex; align-items: center; gap: 10px;
  transition: background 0.2s;
  margin-top: 20px;
}
.btn-wsp-card:hover { background: #1ebe5e; color: white; }

/* ── Horarios ── */
.horario-card {
  background: white; border-radius: 14px;
  padding: 28px; box-shadow: 0 4px 20px rgba(0,0,0,0.06);
  border-top: 4px solid var(--azul);
  height: 100%;
}
.horario-card h5 { color: var(--azul); font-weight: 700; margin-bottom: 16px; }
.horario-item { display: flex; align-items: flex-start; gap: 10px; margin-bottom: 10px; font-size: 0.9rem; }
.horario-item i { color: var(--azul-claro); margin-top: 3px; flex-shrink: 0; }

/* ── Pagos ── */
.pago-card {
  background: white; border-radius: 14px;
  padding: 24px; box-shadow: 0 4px 16px rgba(0,0,0,0.07);
  border: 1px solid #e0e8f0;
  height: 100%;
}
.pago-card .banco-nombre {
  font-weight: 700; color: var(--azul); font-size: 1rem; margin-bottom: 12px;
  display: flex; align-items: center; gap: 8px;
}
.pago-dato { margin-bottom: 8px; font-size: 0.88rem; }
.pago-dato label { color: #888; font-size: 0.78rem; display: block; margin-bottom: 2px; }
.pago-dato code { background: #f0f4f8; padding: 4px 10px; border-radius: 6px; font-size: 0.88rem; user-select: all; cursor: copy; }

/* ── Footer ── */
footer {
  background: #0d2f4a;
  color: rgba(255,255,255,0.85);
  padding: 50px 0 30px;
}
footer h6 { color: white; font-weight: 700; margin-bottom: 14px; }
footer a { color: rgba(255,255,255,0.75); text-decoration: none; transition: color 0.2s; }
footer a:hover { color: white; }
.footer-bottom { border-top: 1px solid rgba(255,255,255,0.15); padding-top: 20px; margin-top: 30px; font-size: 0.82rem; }

/* ── WhatsApp flotante ── */
.whatsapp-float {
  position: fixed;
  bottom: 28px; right: 28px;
  z-index: 9999;
}
.whatsapp-float a {
  width: 60px; height: 60px;
  background: #25d366;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: white; font-size: 1.8rem;
  text-decoration: none;
  box-shadow: 0 4px 20px rgba(37,211,102,0.5);
  transition: transform 0.3s, box-shadow 0.3s;
  animation: pulse-wsp 2s infinite;
}
.whatsapp-float a:hover { transform: scale(1.1); box-shadow: 0 8px 30px rgba(37,211,102,0.6); }
@keyframes pulse-wsp {
  0%   { box-shadow: 0 0 0 0 rgba(37,211,102,0.4); }
  70%  { box-shadow: 0 0 0 12px rgba(37,211,102,0); }
  100% { box-shadow: 0 0 0 0 rgba(37,211,102,0); }
}
.wsp-tooltip {
  position: absolute;
  bottom: 72px; right: 0;
  background: #333; color: white;
  padding: 6px 14px; border-radius: 8px;
  font-size: 0.82rem; white-space: nowrap;
  opacity: 0; pointer-events: none;
  transition: opacity 0.3s;
}
.whatsapp-float:hover .wsp-tooltip { opacity: 1; }

/* ════════════════════════════════
   RESPONSIVE – LANDING PAGE
   ════════════════════════════════ */

/* ── Tablets (≤ 991px) ── */
@media (max-width: 991.98px) {
  .hero { padding: 70px 0 55px; }
  section { padding: 60px 0; }
  .tele-card { padding: 28px 24px; }
  .tele-card h3 { font-size: 1.4rem; }
  .section-header { margin-bottom: 36px; }
  .horario-card { padding: 22px; }
  .service-card { padding: 22px; }
}

/* ── Móviles (≤ 767px) ── */
@media (max-width: 767.98px) {
  /* Navbar */
  .navbar-medica .container { flex-wrap: wrap; gap: 8px; padding: 0 14px; }
  .navbar-brand-custom .brand-icon { width: 36px; height: 36px; font-size: 1rem; }
  .brand-name { font-size: 1rem; }
  .btn-panel { padding: 6px 14px; font-size: 0.8rem; }

  /* Hero */
  .hero { padding: 50px 0 40px; }
  .hero h1 { font-size: 1.75rem; }
  .hero .subtitulo { font-size: 1rem; }
  .hero .matricula { font-size: 0.85rem; }
  .hero-cta { flex-direction: column; gap: 10px; }
  .btn-hero-primary,
  .btn-hero-secondary { width: 100%; justify-content: center; padding: 13px 20px; font-size: 0.95rem; }
  .hero-stats { gap: 16px; justify-content: center; }
  .hero-stat-num { font-size: 1.6rem; }

  /* Secciones */
  section { padding: 44px 0; }
  .section-header { margin-bottom: 28px; }
  .section-title-h2 { font-size: 1.45rem; }
  .section-subtitle { font-size: 0.9rem; }

  /* Servicios */
  .service-card { padding: 20px; }
  .service-icon { width: 58px; height: 58px; font-size: 1.5rem; }

  /* Telemedicina */
  .tele-card { padding: 22px 18px; border-radius: 16px; }
  .tele-card h3 { font-size: 1.25rem; margin-bottom: 12px; }
  .tele-steps li { font-size: 0.88rem; gap: 10px; margin-bottom: 12px; }
  .btn-wsp-card { padding: 12px 22px; font-size: 0.92rem; width: 100%; justify-content: center; }

  /* Horarios */
  .horario-card { padding: 18px; }

  /* Pagos */
  .service-card.text-center { padding: 20px 16px; }

  /* Footer */
  footer { padding: 36px 0 24px; }
  .footer-bottom { flex-direction: column; align-items: center; text-align: center; gap: 6px; }

  /* WhatsApp flotante más pequeño en mobile */
  .whatsapp-float { bottom: 18px; right: 18px; }
  .whatsapp-float a { width: 52px; height: 52px; font-size: 1.5rem; }
  .wsp-tooltip { display: none; } /* tooltip no en mobile */
}

/* ── Móviles pequeños (≤ 400px) ── */
@media (max-width: 400px) {
  .hero h1 { font-size: 1.5rem; }
  .hero-stats { gap: 12px; }
  .hero-stat-num { font-size: 1.35rem; }
  .brand-name { font-size: 0.9rem; }
  .section-title-h2 { font-size: 1.3rem; }
}
