/*
Theme Name: Formación SOS IPS
Author: Anderson Tasama
Description: Tema premium a medida para el portal de formación de SOS IPS, integrado con Tutor LMS.
Version: 1.0
*/

:root {
  --primary-blue: #00509d;
  --secondary-orange: #f7941d;
  --light-bg: #f8f9fa;
  --medical-white: #ffffff;
  --text-dark: #333333;
  --text-muted: #6c757d;
}

body {
  font-family: "Inter", sans-serif;
  background-color: var(--light-bg);
  color: var(--text-dark);
  line-height: 1.6;
}

/* ============================================
   HEADER PREMIUM SOS IPS — White Edition
   ============================================ */
.navbar-ips {
  background: #ffffff;
  border-bottom: 3px solid var(--primary-blue);
  box-shadow: 0 4px 24px rgba(0, 80, 157, 0.08);
  transition: all 0.4s cubic-bezier(0.4, 0, 0.2, 1);
  position: sticky;
  top: 0;
  z-index: 1050;
  padding: 0.7rem 0;
}

.navbar-brand img {
  max-height: 52px;
  width: auto;
  transition: all 0.3s ease;
}

.navbar-brand:hover img {
  transform: scale(1.04);
}

/* ---- MENÚ PRINCIPAL ---- */
#navIPS .custom-header-menu {
  list-style: none !important;
  padding: 0 !important;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center;
  gap: 4px;
}

/* Nav Links — Chips modernos sobre fondo blanco */
.custom-header-menu .nav-link {
  font-family: 'Outfit', 'Inter', sans-serif;
  font-weight: 600 !important;
  color: #334155 !important;
  padding: 0.5rem 1.15rem !important;
  font-size: 0.9rem !important;
  letter-spacing: 0.01em;
  border-radius: 50px;
  border: 1.5px solid #e2e8f0;
  background: #f8fafc;
  position: relative;
  transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1) !important;
}

.custom-header-menu .nav-link:hover {
  color: var(--primary-blue) !important;
  background: #eff6ff !important;
  border-color: #bfdbfe !important;
  box-shadow: 0 2px 12px rgba(0, 80, 157, 0.1);
  transform: translateY(-1px);
}

/* Link activo — resaltado naranja institucional */
.custom-header-menu .nav-link.active {
  color: #fff !important;
  background: var(--primary-blue) !important;
  border-color: var(--primary-blue) !important;
  box-shadow: 0 4px 14px rgba(0, 80, 157, 0.25);
}

/* Separador visual entre el logo y el menú */
#navIPS .custom-header-menu {
  padding-left: 1.5rem !important;
  border-left: 2px solid #e2e8f0;
  margin-left: 1.5rem !important;
}

/* ---- DROPDOWN PREMIUM ---- */
.dropdown-menu {
  border: 1px solid #e2e8f0 !important;
  box-shadow: 0 16px 48px rgba(0, 80, 157, 0.12) !important;
  border-radius: 20px !important;
  padding: 10px !important;
  margin-top: 12px !important;
  background: #ffffff !important;
  animation: dropdownFade 0.22s ease;
}

@keyframes dropdownFade {
  from { opacity: 0; transform: translateY(8px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

.dropdown-item {
  border-radius: 12px;
  padding: 10px 16px !important;
  font-weight: 500;
  font-size: 0.88rem;
  color: #334155 !important;
  transition: all 0.2s ease;
}

.dropdown-item:hover {
  background: #eff6ff !important;
  color: var(--primary-blue) !important;
  transform: translateX(4px);
}

/* ---- BOTÓN INGRESAR ---- */
.btn-ips-orange {
  background: linear-gradient(135deg, #f7941d 0%, #e8851a 100%) !important;
  border: none !important;
  padding: 0.6rem 1.7rem !important;
  color: #fff !important;
  font-weight: 700 !important;
  box-shadow: 0 4px 16px rgba(247, 148, 29, 0.35) !important;
  letter-spacing: 0.02em;
  transition: all 0.3s ease !important;
}

.btn-ips-orange:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 24px rgba(247, 148, 29, 0.5) !important;
}

/* ---- TOGGLE MÓVIL ---- */
.navbar-toggler {
  border: 1.5px solid #cbd5e1 !important;
  border-radius: 10px;
  padding: 6px 10px;
}

/* ---- RESPONSIVE ---- */
@media (max-width: 991.98px) {
  #navIPS .custom-header-menu {
    flex-direction: column !important;
    align-items: flex-start;
    padding: 12px 0 !important;
    gap: 4px;
    border-left: none;
    margin-left: 0 !important;
    padding-left: 0 !important;
  }

  .custom-header-menu .nav-link {
    width: 100%;
    border-radius: 12px;
  }
}

/* Page styles */
.page-header {
  border-left: 5px solid var(--primary-blue);
  padding-left: 20px;
}

.header-accent-line {
  width: 60px;
  height: 4px;
  background-color: var(--secondary-orange);
  margin-top: 10px;
}

.text-primary-ips {
  color: var(--primary-blue);
}

/* Homepage Improvements */
.section-title {
  color: var(--primary-blue);
  font-weight: 700;
  margin-bottom: 50px;
  text-align: center;
  position: relative;
  padding-bottom: 15px;
}

.section-title::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 50%;
  transform: translateX(-50%);
  width: 60px;
  height: 4px;
  background-color: var(--secondary-orange);
}

.feature-card {
  background: white;
  padding: 40px 30px;
  border-radius: 15px;
  text-align: center;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.03);
  transition: transform 0.3s ease;
  height: 100%;
}

.feature-card:hover {
  transform: translateY(-10px);
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.08);
}

.feature-icon {
  font-size: 2.5rem;
  color: var(--primary-blue);
  margin-bottom: 20px;
}

.bg-light-blue {
  background-color: #f0f7ff;
}

.info-box {
  padding: 60px 0;
}

/* Hero Section & Stats Overlay */
.hero-ips {
  background: linear-gradient(135deg, var(--primary-blue) 0%, #003366 100%);
  color: white;
  padding: 100px 0 150px;
  border-bottom: 5px solid var(--secondary-orange);
  position: relative;
}

.stats-section {
  background: white;
  margin-top: -80px;
  position: relative;
  z-index: 10;
  border-radius: 15px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
}

.stat-item {
  padding: 40px 20px;
  text-align: center;
}

.stat-number {
  font-size: 2.8rem;
  font-weight: 800;
  color: var(--primary-blue);
  display: block;
  line-height: 1;
  margin-bottom: 5px;
}

.stat-label {
  font-size: 0.85rem;
  color: var(--text-muted);
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

/* Testimonials - Bubble Style */
.testimonial-card-bubble {
  background: white;
  padding: 30px;
  border-radius: 20px;
  position: relative;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.05);
  margin-bottom: 30px;
  border: 1px solid #f0f0f0;
}

.testimonial-card-bubble::after {
  content: "";
  position: absolute;
  bottom: -15px;
  left: 30px;
  border-width: 15px 15px 0 0;
  border-style: solid;
  border-color: white transparent transparent transparent;
}

.testimonial-text {
  font-size: 0.95rem;
  line-height: 1.6;
  margin-bottom: 0;
  color: #555;
  font-style: italic;
}

.testimonial-author-bubble {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 10px;
  padding-left: 10px;
}

/* CTA Box */
.cta-box {
  background:
    linear-gradient(rgba(0, 80, 157, 0.85), rgba(0, 80, 157, 0.85)),
    url("https://img.freepik.com/premium-photo/modern-hospital-office-interior_107420-65154.jpg");
  background-size: cover;
  background-position: center;
  border-radius: 25px;
  padding: 100px 50px;
  color: white;
  text-align: center;
  box-shadow: 0 20px 50px rgba(0, 80, 157, 0.2);
}

.btn-ips-orange {
  background-color: var(--secondary-orange);
  color: white !important;
  border: none;
  font-weight: 700;
  padding: 10px 25px;
  /* Reducido de 14px 35px */
  border-radius: 50px;
  /* Más moderno/redondeado */
  transition: all 0.3s ease;
  text-decoration: none;
  display: inline-block;
  font-size: 0.9rem;
  /* Un poco más pequeño */
}

.user-avatar-circle {
  width: 38px;
  height: 38px;
  background-color: var(--primary-blue);
  color: white;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  box-shadow: 0 2px 8px rgba(0, 80, 157, 0.2);
  border: 2px solid white;
}

.dropdown-toggle::after {
  display: none !important;
  /* Quitar la flechita de Bootstrap */
}

.btn-ips-orange:hover {
  background-color: #e68519;
  transform: translateY(-3px);
  box-shadow: 0 10px 20px rgba(247, 148, 29, 0.3);
}

/* Footer Improvements */
.footer-ips {
  background-color: #111;
  color: #999;
  padding: 80px 0 30px;
}

.footer-ips h5 {
  color: white;
  font-weight: 700;
  margin-bottom: 30px;
  font-size: 1.1rem;
}

.footer-link-list {
  list-style: none;
  padding: 0;
}

.footer-link-list li {
  margin-bottom: 12px;
}

.footer-link-list li a {
  color: #888;
  text-decoration: none;
  transition: 0.3s;
  font-size: 0.95rem;
}

.footer-link-list li a:hover {
  color: var(--secondary-orange);
  padding-left: 5px;
}

.footer-border-top {
  border-top: 1px solid #222;
  padding-top: 30px;
  margin-top: 60px;
  font-size: 0.9rem;
}

/* Espaciado para el Catálogo y vistas de Tutor LMS */
.tutor-wrap {
  margin-top: 40px !important;
  margin-bottom: 40px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  padding-left: 20px !important;
  padding-right: 20px !important;
  display: block !important;
}
