/* Encabezado principal */
header {
  background-color: #28326F;/*Color Azul*/
  color: white;
  /*padding: 1rem 0;*/
}

html, body {
  max-width: 100%;
  overflow-x: hidden;
}

/* Estilos responsivos del header */
.header-info {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}

@media (min-width: 768px) {
  .header-info {
    flex-direction: row;
    justify-content: space-between;
    text-align: left;
  }
  header, .custom-navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1050;
  }
  .custom-navbar {
    top: 40px;
  }
  body {
      padding-top: 140px; /* Suma la altura de header + navbar para evitar que el contenido quede oculto */
  }
}

.empresa {
  font-size: 1rem;/*Tamaño de letra*/
  font-weight: bold;
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

.contacto {
  font-size: 1rem;/*Tamaño de letra*/
  margin-top: 0.5rem;
  margin-bottom: 0.5rem;
}

@media screen and (max-width: 768px) {
  .contacto {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }
}





/* Menú */
.custom-navbar {
  background-color: #f8f9fa;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.5); /* Opcional, para darle sombra */
}

.navbar-nav .nav-item {
  position: relative;
  margin: 0 1rem; /* Espaciado horizontal entre ítems */
}

.navbar-nav .nav-link {
  font-size: 1.2rem;
  color: #000;
  padding: 0.75rem 1rem; /* Aumenta separación interna */
  position: relative;
  transition: color 0.3s;
}

.navbar-nav .nav-link:hover {
  color: #61B232;/*Color Verde*/
}

/* Línea inferior al pasar el mouse */
.navbar-nav .nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #61B232;/*Color Verde*/
  transition: width 0.3s ease-in-out;
}

.navbar-nav .nav-link:hover::after {
  width: 100%;
}

/* Línea vertical divisora entre ítems */
.navbar-nav .nav-item:not(:last-child)::after {
  content: '';
  position: absolute;
  right: -0.5rem;
  top: 50%;
  transform: translateY(-50%);
  height: 1.5rem;
  width: 1px;
  background-color: #ccc;
}

.nav-link:hover {
  color: #28326F;
}

.nav-link::after {
  content: '';
  position: absolute;
  width: 0%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #28326F;
  transition: width 0.3s ease-in-out;
}

.nav-link:hover::after {
  width: 100%;
}

.nav-link.active {
  color: #61B232 !important; /* Verde */
}

.nav-link.active::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 2px;
  left: 0;
  bottom: 0;
  background-color: #61B232; /* Línea Verde */
}




/* Estilo del contenedor del botón y submenu */
.estilo-redes{
  color: #ffffff;
}

.estilo-redes:hover {
  background-color: #61B232;
  color: #ffffff;
  transform: translateY(-4px);
}

/* Ocultar en móvil */
@media (max-width: 991.98px) {
  .ocultar-redes {
    display: none !important;
  }
}





.footer {
  background-color: #1c1c1c;
  color: white;
  font-family: Arial, sans-serif;
  padding: 2rem 1rem 1rem;
}

.footer-container {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 2rem;
  max-width: 1300px;
  margin: 0 auto;
}

.footer-col-redes {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-col-redes h4 {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col {
  flex: 1 1 220px;
  min-width: 220px;
}

.footer-col h4 {
  font-weight: bold;
  font-size: 1rem;
  margin-bottom: 1rem;
}

.footer-col ul {
  list-style: none;
  padding: 0;
}

.footer-col li {
  margin-bottom: 0.7rem;
  font-size: 0.95rem;
  line-height: 1.4;
}

.footer-col i {
  color: #61B232;/*Color de los iconos*/
  margin-right: 10px;
}

.footer-col .licencia {
  margin-top: 1rem;
  font-size: 0.85rem;
  color: #ccc;
}

.footer-col .logos {
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  align-items: center;
}

.footer-col .logos img {
  height: 50px;
  object-fit: contain;
}

.footer-copy {
  background-color: #323740;
  text-align: center;
  padding: 1rem;
  font-size: 0.9rem;
  color: white;
  margin-top: 2rem;
}




/*Slider*/
.slider {
  width: 100%;
  max-width: 100%;
  overflow: hidden;
  position: relative;
  box-sizing: border-box;
}

.slides {
  display: flex;
  transition: transform 1s ease;
}

.slides img {
  width: 100%;
  height: auto;
  object-fit: cover;
  flex: 0 0 100%;
}

.arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(0, 0, 0, 0.3); /* fondo gris semitransparente */
  border: none;
  color: white;
  font-size: 30px;
  padding: 10px 15px;
  cursor: pointer;
  border-radius: 5px;
  z-index: 5;
  transition: background-color 0.3s ease;
}

.arrow:hover {
  background-color: rgba(0, 0, 0, 0.6);
}

.arrow.left {
  left: 10px;
}

.arrow.right {
  right: 10px;
}

/* Puntos de navegación */
.slider-dots {
  position: absolute;
  bottom: 20px;
  width: 100%;
  text-align: center;
}

.dot {
  height: 12px;
  width: 12px;
  margin: 0 6px;
  background-color: #ffffff80;
  border-radius: 50%;
  display: inline-block;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.dot.active {
  background-color: #ffffff;
}






/*Imagen fija del card*/
.img-fija {
    height: 200px; /* o el alto que desees */
    object-fit: cover;
    width: 100%;
  }




/*Estilos de las tarjetas de ventajas*/
.ventaja-card {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background-color: #ffffff;
  box-shadow: 0 8px 16px rgba(225, 94, 32, 0.4); /* sombra Verde */
}

.ventaja-card:hover {
  cursor: pointer;
  transform: translateY(-10px) scale(1.03);
  box-shadow: 0 12px 24px rgba(4, 155, 53, 0.5); /* sombra verde */
}

.ventaja-title {
  font-weight: bold;
}

.card-title {
  font-weight: bold;
}

.ventaja-text {
  font-size: 0.95rem;
  text-align: justify;
}






/*Boton de inscribirse*/
.btn-inscribirse {
  position: fixed;
  bottom: 20px;
  left: 20px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-inscribirse:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.4);
}





/*Boton de ncursos*/
.btn-ncursos {
  position: fixed;
  bottom: 25px;
  left: 20px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-ncursos:hover {
  transform: scale(1.2);
  box-shadow: 0 8px 16px rgba(13, 110, 253, 0.4);
}





/*Boton de whatsapp*/
.btn-whatsapp {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 999;
  cursor: pointer;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.btn-whatsapp:hover {
  transform: scale(1.5);
  box-shadow: 0 8px 16px rgba(4, 155, 53, 0.4);
}

/* Animación de entrada */
.animate-entry {
  opacity: 0;
  transform: translateY(40px);
  animation: fadeInUp 0.8s ease-out forwards;
  animation-delay: 0.5s;
}

/* Definición de la animación */
@keyframes fadeInUp {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* Tooltip personalizado */
.tooltip-whatsapp {
  position: absolute;
  right: 110%;
  top: 50%;
  transform: translateY(-50%);
  background-color: #28326F;
  color: #fff;
  padding: 8px 12px;
  border-radius: 8px;
  white-space: nowrap;
  font-size: 0.9rem;
  opacity: 0;
  visibility: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 4px 10px rgba(0,0,0,0.2);
}

/* Flecha del tooltip */
.tooltip-whatsapp::after {
  content: '';
  position: absolute;
  top: 50%;
  left: 100%;
  margin-top: -6px;
  border-width: 6px;
  border-style: solid;
  border-color: transparent transparent transparent #28326F;
}

/* Mostrar el tooltip al pasar el mouse */
.btn-whatsapp:hover .tooltip-whatsapp {
  opacity: 1;
  visibility: visible;
  right: 105%;
}





/*Animación curso*/
.hero {
    background-size: cover;
    background-position: center;
    height: 300px;
    color: white;
    text-shadow: 1px 1px 4px #000;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-direction: column;
}

.section-title {
    border-left: 5px solid #0d6efd;
    padding-left: 15px;
    margin-bottom: 1rem;
}

.section-titulo {
    border-left: 5px solid #61B232;
    padding-left: 15px;
    margin-bottom: 1rem;
    font-weight: bold;
}

.icon-title {
    color: #0d6efd;
    margin-right: 8px;
}




/* Animación al hacer hover en secciones tipo tarjeta en cursos */
.card-hover:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0, 0, 0, 0.15);
    transition: all 0.3s ease;
    padding: 20px;
}

.text-justify{
  text-align: justify;
}






/* Pulasasión boton nuestros cursos */
@keyframes pulse-animation {
  0% { transform: scale(1); }
  50% { transform: scale(1.18); }
  100% { transform: scale(1); }
}

.pulse {
  animation: pulse-animation 1.5s infinite;
  animation-timing-function: ease-in-out;
}




/*Para imagenes de talleres, vinculacion y graduados*/
.img-thumb {
  cursor: pointer;
  transition: transform 0.3s;
}

.img-thumb:hover {
  transform: scale(1.08);
}