@import url('https://fonts.googleapis.com/css2?family=Poppins:wght@400;600;700&display=swap');

body {
  font-family: 'Poppins', sans-serif;
  margin: 0;
  padding: 0;
  background-color: #012169;
}

/* ==================== TOP BAR ==================== */
.top-bar {
  background: #741177;
  height: 36px;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 0;
  position: fixed;
  width: 100%;
  z-index: 1050;
  top: 0;
  left: 0;
}

.top-btn {
  flex: 1;
  text-align: center;
  font-size: 0.8rem;
  color: white;
  text-decoration: none;
  padding: 6px 0;
  transition: background 0.3s;
  border-right: 1px solid rgba(255, 255, 255, 0.2);
}
.top-btn:last-child {
  border-right: none;
}
.top-btn:hover {
  background: #003280;
}

/* Móvil: ocultar el tercer botón */
@media (max-width: 575.98px) {
  .top-btn {
    font-size: 0.75rem;
  }
  .top-btn:nth-child(3) {
    display: none !important;
  }
}

/* ==================== NAVBAR ==================== */
#mainNav {
  background: #012169;
  padding: 15px 0;
  position: fixed;
  top: 36px;
  left: 0;
  width: 100%;
  z-index: 1040;
  transition: all 0.3s;
}

#mainNav .navbar-brand {
  color: #fff;
  font-weight: 700;
  font-size: 1.25rem;
}
#mainNav .navbar-brand:hover {
  color: #00cfff;
}
#mainNav .nav-link {
  color: #fff;
  margin: 0 10px;
  font-size: .95rem;
  transition: color .2s;
}
#mainNav .nav-link:hover,
#mainNav .nav-link:focus {
  color: #00cfff;
}
#mainNav .navbar-toggler {
  border-color: rgba(255,255,255,0.5);
}
#mainNav .navbar-toggler-icon {
  filter: invert(100%);
}
#mainNav .dropdown-menu {
  background: #fff;
  border: none;
}
#mainNav .dropdown-item {
  color: #0567a8;
}
#mainNav .dropdown-item:hover {
  background: #013280;
  color: #00cfff;
}

/* ==================== BARRA DE BÚSQUEDA E ICONOS ==================== */
.search-input {
  background: rgba(255,255,255,0.15);
  border: none;
  color: #fff;
  width: 180px;
  font-size: .9rem;
}
.search-input::placeholder {
  color: rgba(255,255,255,0.7);
}
.search-input:focus {
  background: rgba(255,255,255,0.3);
  box-shadow: none;
}

.nav-icon {
  color: #fff;
  margin-left: 12px;
  font-size: 1.1rem;
  transition: color .2s;
}
.nav-icon:hover {
  color: #00cfff;
}

/* ==================== HERO ==================== */
#hero {
  position: relative;
  height: 85vh;
  overflow: hidden;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  height: 100vh;
}

#heroCarousel .carousel-item {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 10;
  height: 100%;
  width: 100%;
  padding-top: 120px;
  background: linear-gradient(90deg, rgba(0,33,105,0.9) 40%, rgba(0,45,153,0.8) 100%);
}

.hero-overlay h1 {
  font-size: 2.3rem;
}
.hero-overlay .text-primary-light {
  color: #00cfff;
}

/* ==================== FORMULARIO ==================== */
.form-card {
  background-color: rgba(255, 255, 255, 0.95);
  border-radius: 12px;
  padding: 25px;
  width: 100%;
  max-width: 380px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.2);
}

.form-card input,
.form-card select {
  font-size: 0.9rem;
}
.form-card button {
  font-weight: bold;
}

/* ==================== RESPONSIVE ==================== */
@media (max-width: 991.98px) {
  .hero-overlay {
    padding-top: 100px;
    text-align: center;
  }

  .form-card {
    margin-top: 30px;
  }

  .hero-overlay h1 {
    font-size: 1.8rem;
  }
}

@media (max-width: 575.98px) {
  .hero-overlay h1 {
    font-size: 1.5rem;
  }
}

/* ==================== WHATSAPP ==================== */
.btn-flotante {
  position: fixed;
  right: 20px;
  width: 50px;
  height: 50px;
  font-size: 24px;
  color: white;
  background-color: gray;
  border-radius: 8px;
  padding: 10px;
  display: flex;
  justify-content: center;
  align-items: center;
  z-index: 999;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
  transition: transform 0.3s ease;
  text-decoration: none;
}

.btn-flotante:hover {
  transform: scale(1.1);
}

/* Botón WhatsApp */
.btn-flotante.whatsapp {
  bottom: 20px;
  background-color: #25d366;
}

/* Botón Subir */
.btn-flotante.subir {
  bottom: 80px;
  background-color: #007bff;
}















/* Estilo base del submenú */
.dropdown-menu {
  background-color: #fff;
  border: none;
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.12);
  border-radius: 12px;
  padding: 10px;
  min-width: 220px;
}

/* Ítems del submenú */
.dropdown-item {
  color: #061070;
  font-weight: 500;
  font-size: 14px;
  border-radius: 8px;
  padding: 10px 15px;
  transition: all 0.3s ease;
  display: flex;
  align-items: flex-start;
}

/* Íconos en fondo claro */
.dropdown-menu:not(.bg-dark) .dropdown-item i {
  color: #061070;
  transition: color 0.3s ease;
}

/* Íconos en fondo oscuro */
.dropdown-menu.bg-dark .dropdown-item i {
  color: #ffffff;
  transition: color 0.3s ease;
}

/* Hover íconos en fondo oscuro: se vuelven dorados */
.dropdown-menu.bg-dark .dropdown-item:hover i {
  color: #FFD700;
}

/* Hover íconos en fondo claro: no cambian */
.dropdown-menu:not(.bg-dark) .dropdown-item:hover i {
  color: #061070;
}

/* Texto principal hover */
.dropdown-item:hover {
  background-color: #e9f0ff;
}

/* Texto principal hover en oscuro */
.dropdown-menu.bg-dark .dropdown-item:hover {
  background-color: rgba(255,255,255,0.05);
  color: #FFD700;
}

/* Subtítulos <small> */
.dropdown-item small {
  display: block;
  font-size: 11px;
  transition: color 0.3s ease;
}

/* Subtítulo fondo claro */
.dropdown-menu:not(.bg-dark) .dropdown-item small {
  color: #000;
}

/* Subtítulo hover fondo claro */
.dropdown-menu:not(.bg-dark) .dropdown-item:hover small {
  color: #FFD700;
}

/* Subtítulo fondo oscuro */
.dropdown-menu.bg-dark .dropdown-item small {
  color: #fff;
}

/* Subtítulo hover fondo oscuro */
.dropdown-menu.bg-dark .dropdown-item:hover small {
  color: #FFD700;
}


/* Forzar ícono rojo al hacer hover sobre su contenedor */
.dropdown-item:hover .icon-hover-red {
  color: #fff !important;
}












/* Submenús normales para escritorio */
.dropdown-submenu {
  position: relative;
}

.dropdown-submenu > .dropdown-menu {
  top: 0;
  left: 100%;
  margin-top: -1px;
  display: none;
  position: absolute;
  z-index: 1000;
}

/* Mostrar submenú en hover solo en escritorio */
@media (min-width: 992px) {
  .dropdown-submenu:hover > .dropdown-menu {
    display: block;
  }
}

/* En móviles: mostrar submenú como menú desplegable normal */
@media (max-width: 991.98px) {
  .dropdown-submenu > .dropdown-menu {
    position: static;
    float: none;
    width: 100%;
    margin: 0;
    box-shadow: none;
    display: none;
  }

  .dropdown-submenu.open > .dropdown-menu {
    display: block;
  }
}





















/* ===== HERO BASE ===== */
#hero {
  position: relative;
  overflow: hidden;
}

#heroCarousel .carousel-inner,
#heroCarousel .carousel-item {
  max-height: 100vh;
}

#heroCarousel .carousel-item img {
  width: 100%;
  height: auto;
  object-fit: cover;
  display: block;
}

/* ===== FORMULARIO EN ESCRITORIO ===== */
.hero-formulario-container {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 10;
  height: 100%;
  width: 100%;
  display: flex;
  align-items: center;
  padding: 120px 20px 40px 20px;
  pointer-events: none;
}

.hero-formulario-container .form-card {
  pointer-events: auto;
  background-color: rgba(255, 255, 255, 0.96);
  border-radius: 12px;
}

/* ===== TEXTO Y FORMULARIO EN MÓVIL ===== */
.hero-overlay-mobile {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 20;
  width: 100%;
  padding-top: 120px; /* ✅ espacio para menú */
  padding-bottom: 20px;
  background: rgba(0, 0, 0, 0.5);
}

/* Texto celeste */
.text-primary-light {
  color: #00cfff;
}

/* ===== OCULTAR/VER POR PANTALLA ===== */
@media (min-width: 992px) {
  .hero-overlay-mobile {
    display: none !important;
  }
}

@media (max-width: 768px) {
  .hero-formulario-container {
    display: none !important;
  }

  #heroCarousel .carousel-item img {
    height: auto;
  }
}

/* ===== CARRUSEL EN MÓVIL CORREGIDO ===== */
@media (max-width: 767.98px) {
  #heroCarousel {
    width: 100%;
    min-height: 100vh;
    position: auto;
    z-index: 1;
  }

  #heroCarousel .carousel-inner,
  #heroCarousel .carousel-item {
    height: 100vh;
  }

  #heroCarousel .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
  }

  .hero-overlay-mobile {
    padding-top: 140px;
    padding-bottom: 20px;
    background: rgba(0, 0, 0, 0.5);
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 2;
    backdrop-filter: blur(3px);
  }
}

















.filtro-btn {
  border: 2px solid #0d6efd;
  background-color: white;
  color: #0d6efd;
  font-weight: 700;
  text-transform: uppercase;
  padding: 10px 24px;
  border-radius: 8px;
  transition: all 0.3s ease;
  font-size: 0.9rem;
  min-width: 250px; /* más ancho */
  text-align: center;
}

.filtro-btn:hover,
.filtro-btn.active {
  background-color: #012169;
  color: white !important;
}



/* Tarjeta de curso */
.curso-box-img {
  position: relative;
  border: 4px solid #ad05b3; /* Borde morado alrededor de la imagen */
  border-radius: 12px;
  overflow: hidden;
}

.curso-box-img img {
  width: 100%;
  height: auto;
  display: block;
}

/* Degradado desde abajo hasta la mitad */
.curso-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  height: 50%; /* sube hasta la mitad de la imagen */
  width: 100%;
    background: linear-gradient(to top, rgba(178, 8, 183, 0.85), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 10px;
}

/* Texto encima del degradado */
.curso-titulo {
  color: #fff;
  font-weight: 700;
  font-size: 1rem;
  text-transform: uppercase;
  margin: 0;
  text-align: center;
  text-shadow: 1px 1px 4px rgba(0, 0, 0, 0.7);
}

/* Animación al pasar el mouse */
.curso-box-img {
  transition: transform 0.3s ease-in-out;
  cursor: pointer;
}

.curso-box-img:hover {
  transform: scale(1.03) rotate(0.1deg);
  animation: vibrar 0.2s ease-in-out 1;
}

/* Efecto de vibración */
@keyframes vibrar {
  0% { transform: scale(1.03) translateX(0); }
  25% { transform: scale(1.03) translateX(-2px); }
  50% { transform: scale(1.03) translateX(2px); }
  75% { transform: scale(1.03) translateX(-1px); }
  100% { transform: scale(1.03) translateX(0); }
}




/* Agregado recien para el efecto */
.curso-card {
  border: 3px solid #C59BFF; /* Borde lila */
  border-radius: 10px;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.curso-card:hover {
  transform: scale(1.05) rotate(0.5deg);
  box-shadow: 0 8px 20px rgba(0, 0, 0, 0.2);
}

.curso-card img {
  transition: transform 0.3s ease;
}

.curso-card:hover img {
  transform: scale(1.05);
}

/* Agregado recien para el efecto */





/* Envoltorio centrado */
/* CONTENEDOR SCROLLABLE */
.categorias-wrapper {
  width: 100%;
  overflow-x: auto;
  padding: 12px 0;
  scrollbar-width: none;
}
.categorias-wrapper::-webkit-scrollbar {
  display: none;
}

/* CONTENEDOR INTERNO QUE SE CENTRA EN PC */
.categorias-container {
  display: flex;
  flex-wrap: nowrap;
  gap: 12px;
  justify-content: center; /* 👈 CENTRADO EN PC */
  padding: 0 16px; /* 👈 MARGEN IZQUIERDO EN MÓVIL */
}

/* BOTÓN DE CATEGORÍA */
.btn-categoria {
  background: #fff;
  border: 2px solid #012169;
  border-radius: 25px;
  font-weight: 700;
  text-transform: uppercase;
  padding: 8px 14px;
  white-space: nowrap;
  flex-shrink: 0;
  text-align: center;
  transition: all 0.3s ease;
  min-width: 140px;
  height: 44px;
  font-size: 0.85rem;
}

.btn-categoria:hover {
  background: #012169;
  color: #fff !important;
  border-color: #012169;
}

/* MÓVIL: MÁS PEQUEÑOS Y SIN SALIRSE */
@media (max-width: 575.98px) {
  .categorias-container {
    justify-content: flex-start; /* 👈 En móvil, scroll a la izquierda */
    gap: 10px;
    padding: 0 16px;
  }

  .btn-categoria {
    min-width: 110px;
    height: 38px;
    font-size: 0.75rem;
    padding: 6px 10px;
  }
}


















.modalidad-section {
  background-image: url('https://www.certus.edu.pe/wp-content/uploads/2024/05/certus-fondo-sede.png');
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  position: relative;
}

.modalidad-section::before {
  content: "";
  position: absolute;
  top: 0; left: 0;
  width: 100%;
  height: 100%;
  background: rgba(1, 33, 105, 0.85); /* Azul con transparencia */
  z-index: 1;
}

.modalidad-section .container {
  position: relative;
  z-index: 2;
}

.modalidad-section h2 {
  font-size: 2rem;
  color: #fff;
}

.modalidad-section p {
  font-size: 1.1rem;
  color: #ddd;
}

.modalidad-section i {
  font-size: 1.2rem;
}















.alianzas-section {
  background-color: #fff; /* azul Bootstrap */
  overflow: hidden;
}

.alianza-text {
  background-color: #fff;
  border-radius: 20px;
  height: 100%;
}



.logos-container {
  background-color: #fff;
  border: 3px solid #02b8f5;
  border-radius: 25px;
  overflow: hidden;
  padding: 20px 0;
}

.logos-row {
  overflow: hidden;
  white-space: nowrap;
}

.logos-slide {
  display: inline-flex;
  gap: 30px;
}

.logos-slide img {
  height: 70px;
  transition: transform 0.3s ease;
  filter: grayscale(100%);
}

.logos-slide img:hover {
  transform: scale(1.1);
  filter: grayscale(0%);
}

/* Animación fila 1 - izquierda */
.logos-row-1 .logos-slide {
  animation: scroll-left 20s linear infinite;
}

/* Animación fila 2 - derecha */
.logos-row-2 .logos-slide {
  animation: scroll-right 20s linear infinite;
}

/* Animaciones */
@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

@keyframes scroll-right {
  0% { transform: translateX(-50%); }
  100% { transform: translateX(0); }
}














.valores-section {
  background-color: #fff;
}

.valor-box {
  background-color: #eaeaea; /* plomo claro */
  padding: 40px 20px;
  transition: all 0.4s ease;
  color: #0056b3; /* azul */
  height: 100%;
  border: 2px solid #d5e1e8;
  border-radius: 15px;
}

.valor-box h5 {
  font-weight: bold;
  color: #0056b3; /* azul */
}

.valor-box i {
  color: #e116b8; /* magenta */
}

.valor-box:hover {
  background-color: #00c0f3; /* celeste */
  color: white;
  transform: scale(1.25); /* AUMENTADO */
}

.valor-box:hover h5 {
  color: white;
}

.valor-box:hover i {
  color: #09169e; /* azul claro */
}

/* Ajustar para que estén pegados entre sí */
.valor-item {
  padding: 0;
}
