/* ================================================
   NOVA E-SALUD — CSS PÁGINAS DE MÓDULOS
   css/modulo-page.css
================================================ */

.modulo-page { padding-top: 70px; }

/* NAVBAR */
.modulo-navbar {
  background: #ffffff !important;
  box-shadow: 0 2px 12px rgba(0,0,0,0.08);
  padding: 12px 0;
}

/* HERO DEL MÓDULO */
.modulo-hero {
  padding: 80px 0 60px;
  position: relative;
  overflow: hidden;
  min-height: 50vh;
  display: flex;
  align-items: center;
}
.modulo-hero.blue {
  background: linear-gradient(135deg, #0d2e5e 0%, #1a4e9a 60%, #2563c5 100%);
}
.modulo-hero.green {
  background: linear-gradient(135deg, #004d26 0%, #007a3d 60%, #00a451 100%);
}
.modulo-hero-shapes { position: absolute; inset: 0; pointer-events: none; }
.mshape {
  position: absolute; border-radius: 50%;
  opacity: 0.06; background: white;
}
.mshape-1 { width: 500px; height: 500px; top: -200px; right: -150px; }
.mshape-2 { width: 300px; height: 300px; bottom: -100px; left: -50px; }

.modulo-hero-badge {
  display: inline-flex; align-items: center;
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: rgba(255,255,255,0.9);
  font-size: 0.8rem; font-weight: 600;
  padding: 7px 16px; border-radius: 50px;
}
.modulo-hero-title {
  font-size: clamp(1.8rem, 4vw, 3rem);
  color: white; font-weight: 800;
  line-height: 1.15; margin: 12px 0;
}
.modulo-hero-desc {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem; line-height: 1.7;
}
.modulo-hero-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.modulo-tag {
  background: rgba(255,255,255,0.15);
  border: 1px solid rgba(255,255,255,0.25);
  color: white; font-size: 0.78rem; font-weight: 600;
  padding: 4px 14px; border-radius: 20px;
}
.modulo-hero-robot {
  width: 80%; max-width: 320px;
  filter: drop-shadow(0 20px 40px rgba(0,0,0,0.25));
  animation: floatRobot 3s ease-in-out infinite;
}
@keyframes floatRobot {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-12px); }
}
.btn-modulo-cta {
  background: white;
  color: var(--blue); font-weight: 700;
  padding: 12px 24px; border-radius: 12px;
  border: none; font-size: 0.95rem;
  transition: var(--transition);
}
.modulo-hero.green .btn-modulo-cta { color: var(--green-dark); }
.btn-modulo-cta:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-modulo-outline {
  background: transparent;
  color: white; font-weight: 600;
  padding: 12px 24px; border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 0.95rem;
  transition: var(--transition);
}
.btn-modulo-outline:hover { background: rgba(255,255,255,0.15); color: white; }

/* MAIN CONTENT */
.modulo-main { background: white; }

/* IMAGEN PRINCIPAL */
.modulo-img-principal {
  width: 100%; border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--gray-200);
}
.modulo-img-placeholder {
  width: 100%; min-height: 260px;
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  gap: 10px; color: var(--gray-500);
  text-align: center; padding: 30px;
}
.modulo-img-placeholder i { font-size: 3rem; color: var(--gray-200); }
.modulo-img-placeholder p { font-size: 0.9rem; margin: 0; }
.modulo-img-placeholder small { font-size: 0.75rem; font-family: monospace; background: var(--gray-200); padding: 4px 10px; border-radius: 6px; }

/* VIDEO */
.modulo-video-section { }
.modulo-video-wrap {
  position: relative; padding-bottom: 56.25%; height: 0;
  border-radius: var(--radius-xl); overflow: hidden;
  box-shadow: var(--shadow-lg);
  border: 1.5px solid var(--gray-200);
}
.modulo-video-wrap iframe {
  position: absolute; top: 0; left: 0;
  width: 100%; height: 100%;
}
.modulo-video-placeholder {
  background: var(--gray-100);
  border: 2px dashed var(--gray-200);
  border-radius: var(--radius-xl);
  min-height: 200px;
  display: flex; align-items: center; justify-content: center;
}
.video-ph-content { text-align: center; color: var(--gray-500); padding: 30px; }
.video-ph-content i { font-size: 3rem; color: var(--gray-200); display: block; margin-bottom: 10px; }
.video-ph-content h5 { font-size: 1rem; color: var(--gray-700); }
.video-ph-content p { font-size: 0.82rem; }
.video-ph-content code { background: var(--gray-200); padding: 2px 8px; border-radius: 5px; font-size: 0.78rem; }

/* BENEFICIOS */
.modulo-beneficio-card {
  background: white;
  border-radius: var(--radius-lg);
  padding: 24px 20px;
  border: 1.5px solid var(--gray-200);
  height: 100%;
  transition: var(--transition);
}
.modulo-beneficio-card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
  border-color: var(--blue);
}
.mb-icon {
  width: 52px; height: 52px;
  border-radius: 14px;
  display: flex; align-items: center; justify-content: center;
  font-size: 1.4rem; margin-bottom: 14px;
}
.mb-icon.blue { background: var(--blue-pale); color: var(--blue); }
.mb-icon.green { background: var(--green-pale); color: var(--green-dark); }
.modulo-beneficio-card h5 { font-size: 0.95rem; color: var(--gray-900); margin-bottom: 6px; font-family: var(--font-heading); }
.modulo-beneficio-card p { font-size: 0.83rem; color: var(--gray-500); margin: 0; line-height: 1.6; }

/* GALERÍA */
.galeria-item {
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-sm);
  border: 1.5px solid var(--gray-200);
  transition: var(--transition);
}
.galeria-item:hover { transform: translateY(-4px); box-shadow: var(--shadow-md); }
.galeria-item img { width: 100%; display: block; }
.galeria-caption {
  padding: 10px 14px; font-size: 0.8rem;
  font-weight: 600; color: var(--gray-700);
  background: white;
}

/* CTA FINAL */
.cta-final-box {
  border-radius: var(--radius-xl);
  padding: 60px 40px;
  position: relative; overflow: hidden;
}
.cta-final-box.blue {
  background: linear-gradient(135deg, var(--blue), var(--blue-light));
}
.cta-final-box.green {
  background: linear-gradient(135deg, var(--green-dark), var(--green));
}
.cta-final-box h3 { color: white; font-size: 1.8rem; margin-bottom: 10px; }
.cta-final-box p { color: rgba(255,255,255,0.82); font-size: 1rem; }
.btn-cta-white {
  background: white; font-weight: 700;
  padding: 14px 28px; border-radius: 12px;
  border: none; font-size: 0.95rem;
  color: var(--blue); transition: var(--transition);
}
.cta-final-box.green .btn-cta-white { color: var(--green-dark); }
.btn-cta-white:hover { transform: translateY(-2px); box-shadow: 0 8px 25px rgba(0,0,0,0.2); }
.btn-cta-outline {
  background: transparent; color: white;
  font-weight: 600; padding: 14px 28px;
  border-radius: 12px;
  border: 2px solid rgba(255,255,255,0.4);
  font-size: 0.95rem; transition: var(--transition);
}
.btn-cta-outline:hover { background: rgba(255,255,255,0.15); color: white; }

/* FOOTER */
.modulo-footer {
  background: var(--gray-900);
  color: rgba(255,255,255,0.6);
  font-size: 0.85rem;
}
.modulo-footer a { color: var(--green); }
.modulo-footer a:hover { color: white; }

/* === TARJETA LINK SIN SUBRAYADO === */
.feature-card-link {
  text-decoration: none;
  color: inherit;
  display: block;
  height: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
  .modulo-hero { padding: 60px 0 40px; min-height: auto; }
  .modulo-hero-title { font-size: 1.8rem; }
  .modulo-hero-robot { width: 60%; max-width: 220px; margin-top: 30px; }
  .cta-final-box { padding: 40px 24px; }
  .cta-final-box h3 { font-size: 1.4rem; }
}
