/* ////////////////////// DROPDOWN ////////////////////// */

/* Evitar subrayado en las opciones del dropdown */
.dropdown-menu a {
  text-decoration: none !important;
}
/* Evitar la animación de subrayado en las opciones del dropdown */
.dropdown-menu a::after {
  display: none !important;
}
/* Estilo cuando una opción del dropdown está activa */
.dropdown-menu .dropdown-item.active,
.dropdown-menu .dropdown-item:active {
  background-color: #d3d3d3 !important; /* Gris */
  color: #000 !important; /* Texto negro */
}



body{
  font-family: 'Poppins', sans-serif;
}

.seccion1{
  background-color: #fff;
}
.seccion2{
  background-color: #f6f5f5;
}
.seccion3{
  background-color: #fff;
}
.seccion4{
  background-color: #1d1d1d;
}
.seccion5{
  background-color: #ece0cd;
}
.seccion6{
  background-image: url('../img/fondoinicio2.png'); 
  background-size: cover; /* Ajusta la imagen para cubrir toda la sección */
  background-position: center; /* Centra la imagen */
  background-attachment: fixed; /* Efecto de desplazamiento */  
}

.btn-purple{
  background-color: #5e17eb;
  color: #fff;
}
.btn-purple:hover{
  background-color: #4610b2;
  color: #fff;
}

.logo-menu {
  max-width: 140px; /* Ajusta el tamaño del logo */
  height: auto; /* Mantiene la proporción */
}


/* ////////////////////// ENCABEZADO ////////////////////// */

.nav-link {
  text-decoration: none;
  color: #000;
  padding: 0.5em;
}
.navbar-nav {
  margin: 0 auto;  /* Centra los elementos horizontalmente */
}
.navbar-brand {
  font-weight: bold;
  font-size: 18px;
}
.nav-link {
  font-weight: bold;
}
.offcanvas-start {
  width: 250px;
}
.dropdown-menu {
  width: auto;
  /* Permite que el menú desplegable se ajuste automáticamente al contenido */
  min-width: 300px;
  /* Ancho mínimo del menú desplegable */
}
.dropdown-item {
  white-space: normal;
  /* Permite que el texto se divida en varias líneas */
}
/* Media query para pantallas pequeñas */
@media (max-width: 720px) {
  .navbar-brand {
      font-weight: bold;
      font-size: 17px;
  }
  .dropdown-menu {
      min-width: 100%;
      /* Asegura que el menú desplegable use todo el ancho disponible en pantallas pequeñas */
  }
  .offcanvas-start {
    background-color: #1d1d1d !important; /* Fondo negro */
  }
  
  /* Color de los botones superiores */
  .offcanvas .offcanvas-body .nav-link,
  .offcanvas .offcanvas-body .nav-link i { 
    color: #e9e9e9 !important; /* Texto e iconos blancos */
  }
  .offcanvas .offcanvas-header {
    background-color: #1d1d1d !important; /* Fondo negro para la parte superior */
  }
  .btn-close {
    filter: invert(1); /* Hace que el botón de cierre sea visible en fondo oscuro */
  }
}



/* BOTONES SUPERIORES DISEÑO Y SUBRAYADO */
.nav-item a {
  display: flex;
  align-items: center;
  gap: 6px; /* Espaciado entre el icono y el texto */
  font-size:15px;
  font-weight: bold;
  transition: color 0.3s ease, transform 0.3s ease;
  text-decoration: none;
  padding: 10px 15px;
  border-radius: 5px;
  position: relative;  /* Necesario para el subrayado */
  color: #4d4d4d!important; /* Color de los botones superiores */
}
.nav-item a:hover {
  color: #000;  /* Color al pasar el mouse */
}
.nav-item i {
  color: #4d4d4d;/* Color del icono */
  transition: color 0.3s ease;
}
.nav-item a:hover i {
  color: #000; /* Color más oscuro al pasar el mouse */
}

/* Animación de subrayado */
.nav-item a::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 2px;
  background-color: #000; /* subrayado */
  transform: scaleX(0);
  transition: transform 0.3s ease-in-out;  /* Oculto por defecto */
}
.nav-item a:hover::after {
  transform: scaleX(1);  /* Se expande al pasar el mouse */
}


.navbar-light{
  color: #404040; /* color del titulo cuando es responsive */
}
.bg-light-custom {
  background-color: #fff;
}



/* //////////// INICIO ////////////// */
#inicio{
  margin-bottom:3rem; /* Equivalente a mb-5 */
  background-image: url('../img/fondoinicio1.png'); 
  background-size: cover; /* Ajusta la imagen para cubrir toda la sección */
  background-position: center; /* Centra la imagen */
  background-attachment: fixed; /* Efecto de desplazamiento */
  position: relative;
  padding: 100px 0;
  transition: background-image 0.5s ease-in-out; /* Suave cambio de fondo */
}
.logo-inicio {
  width: 350px;
  height: 178px;
  margin-bottom: 4.2rem; 
  transition: transform 0.3s ease-in-out;
  border-radius: 15px;
}
@media (min-width: 721px) {
  .logo-inicio:hover {
    transform: scale(1.05);
  }
}
.tituloinicio {
  font-size: 2.8rem;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  margin-top: 10px;
  color: #fa9600;
  opacity: 0; /* Inicialmente oculto */
  animation: fadeInUp 1s ease-out forwards;
}
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
.descripcioninicio {
  font-size: 1.4rem;
  color: #333;
  max-width: 700px;
  margin: auto;
  margin-top: 15px;
  font-family: 'Poppins', sans-serif;
  opacity: 0; /* Inicialmente oculto */
  animation: fadeInUp 2s ease-out forwards;
}
.botonesinicio {
  margin-top: 20px;
  display: flex;          /* activa flexbox */
  justify-content: center; /* centra horizontalmente */
}
.botonprimario {
  background-color: #5e17eb;
  color: white;
  padding: 10px 20px;
  border: none;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  opacity: 0; /* Inicialmente oculto */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transform: scale(0.5); /* Empieza más pequeño */
  animation: zoomIn 0.8s ease-out forwards; /* Aplica la animación */
}
.botonprimario:hover {
  background-color: #4a0fbe;
  color: white;
}
.botonsecundario {
  margin-left: 10px;
  padding: 10px 20px;
  border: 1px solid #fa9600;
  color: #fa9600;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  opacity: 0; /* Inicialmente oculto */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transform: scale(0.3); /* Empieza más pequeño */
  animation: zoomIn 1.6s ease-out forwards; /* Aplica la animación */
}
.botonsecundario:hover {
  background-color: #fa9600;
  color: #fff;
}
.botontres {
  margin-left: 10px;
  padding: 10px 20px;
  border: 1px solid #fff;
  color: #fff;
  text-decoration: none;
  display: inline-block;
  border-radius: 5px;
  opacity: 0; /* Inicialmente oculto */
  transition: background-color 0.3s ease, color 0.3s ease, border-color 0.3s ease;
  transform: scale(0.3); /* Empieza más pequeño */
  animation: zoomIn 1.6s ease-out forwards; /* Aplica la animación */
}
.botontres:hover {
  background-color: #fff;
  color: #5e17eb;
}
/* Animación de Zoom-In */
@keyframes zoomIn {
  from {
    opacity: 0;
    transform: scale(0.5);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}
.notainicio {
  color: #777;
  font-size: 0.9rem;
  margin-top: 10px;
}
.linkpersonalizado {
  color: #5e17eb;
  text-decoration: none;
}
/* Media query para pantallas pequeñas */
@media (max-width: 720px) {
  #inicio{
    margin-bottom:1rem; 
  }
  .logo-inicio {
    width: 250px;
    height: 140px;
    margin-bottom: 3rem; /* Equivalente a mb-5 */
  }
  .logo-inicio:hover{
    transform: none;
  }
  .tituloinicio {
    font-size: 1.6rem;
    margin-top: 10px;
  }
  .descripcioninicio {
    font-size: 1.0rem;
    max-width: 700px;
    margin: auto;
    margin-top: 15px;
  }
  .botonprimario {   
    margin-bottom: 20px;
  }
  .botonsecundario {   
    margin-bottom: 10px;
  }
}


/* //////////// ACERCA DE  ////////////// */

.titulo_acercade,.titulo_precios{
  font-size: 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 50px;
  color: #5e17eb;
}
.titulo_sistemas{
  font-size: 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 50px;
  color: #5e17eb;
}
.titulo_sistemas2{
  font-size: 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  margin-top: 40px;
  margin-bottom: 50px;
  color: #e5e1eb;
}
.imagen_acercade{
  transition: transform 0.3s ease-in-out;
}
.imagen_acercade:hover{
  transform: scale(1.05);
}
@media (max-width: 720px) {
  .titulo_acercade,.titulo_sistemas, .titulo_sistemas2, .titulo_precios{
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 20px;
  }
  .des_acercade{
    margin-top: 40px;
    font-size: 1.1rem;
  }
}
.section-padding{
  margin-top: 80px;
  margin-bottom: 40px;
}
.custom-card {
  text-align: center;
  border: none;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
  padding: 20px;
  margin-bottom: 30px;
  border-radius: 10px;
  background-color: #fff;
  transition: transform 0.3s ease-in-out;
  border-radius: 15px;
}
.custom-card:hover {
  transform: scale(1.05);
}
.custom-card-img {
  max-width: 100%;
  height: auto;
  display: block;
  margin: 0 auto;
}
.custom-card-title {
  margin-top: 15px;
  font-size: 1.5rem;
  font-weight: bold;
  color: #333;
}
.custom-card-text {
  font-size: 1rem;
  color: #666;
}
@media (max-width: 720px) {
  .section-padding{
    margin-top: 10px;
    margin-bottom: 10px;
  }
  .custom-card {
    margin-top: 10px;
  }
  .custom-card-title {
    font-size: 1.3rem;
  }  
  .custom-card-text {
    font-size: 0.9rem;
  }

}


/* //////////// CONTACTO ////////////// */

.titulo_contacto{
  font-size: 2.3rem;
  font-family: 'Poppins', sans-serif;
  font-weight: bold;
  margin-top: 35px;
  margin-bottom: 10px;
  color: #5e17eb;
}
@media (max-width: 720px) {
  .titulo_contacto{
    font-size: 1.8rem;
    margin-top: 30px;
    margin-bottom: 10px;
  }
  .p_contacto{
    font-size: 1.1rem;
  }
  .enviarmensaje_contacto{
    margin-bottom: 50px;
  }
}

/* //////////// FOOTER ////////////// */
.icono-social1,
.icono-social2,
.icono-social3,
.icono-social4 {
 text-decoration: none; /* Quitar el subrayado azul de fondo de los iconos */
}
.icono-social1 img,
.icono-social2 img,
.icono-social3 img,
.icono-social4 img {
  width: 50px;  
  height: 50px;
  border-radius: 50%;  /* Hace que sean redondos */
  background-color: #fff;  /* Fondo blanco */
  padding: 5px;
  margin: 3px; 
  transition: all 0.3s ease-in-out;
}
/* Efecto al pasar el cursor */
.icono-social1 img:hover,
.icono-social2 img:hover,
.icono-social3 img:hover,
.icono-social4 img:hover {
  filter: brightness(0.8); /* Oscurece un poco la imagen */
  transform: scale(1.1); /* Aumenta un poco el tamaño */
}
@media (max-width: 720px) {
.letra_footer{
  font-size: 1.2rem;
}
.p_footer{
  font-size: 0.8rem;
}
}



/* SECCION NUESTROS SISTEMAS BANNERS */

.banner-card {
  position: relative;
  overflow: hidden;
  border-radius: 15px;
}

.banner-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .5s ease, filter .5s ease;
}

.banner-card:hover img {
  transform: scale(1.05);
  filter: brightness(0.6);
}

.banner-overlay {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  color: #fff;
  padding: 30px;
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.2) 0%, rgba(0, 0, 0, 0.6) 100%);
  opacity: 0;
  transition: opacity .5s ease;
}

.banner-card:hover .banner-overlay {
  opacity: 1;
}

.banner-overlay h5 {
  font-size: 0.9rem;
  letter-spacing: 1px;
  margin-bottom: 5px;
}

.banner-overlay h2 {
  font-size: 1.8rem;
  margin-bottom: 15px;
  font-weight: 600;
}

.mainbanner {
  color: #f8c146;
  border-color: #f8c146;
  text-decoration: none;
  font-weight: 500;
  font-size: 30px;
  border-bottom: 2px solid;
  transition: color .3s ease, border-color .3s ease;
}

.banner-overlay a {
  color: #f8c146;
  border-color: #f8c146;
  text-decoration: none;
  font-weight: 500;
  border-bottom: 2px solid;
  transition: color .3s ease, border-color .3s ease;
}

.btn-banner {
  display: inline-block;
  background-color: #000;
  color: #fff;
  padding: 10px 18px;
  border-radius: 6px;
  font-size: 0.9rem;
  transition: background .3s ease;
  text-decoration: none;
}

/* 🧩 RESPONSIVE ADAPTACIÓN */
@media (max-width: 991px) {
  .banner-overlay {
    opacity: 1; /* Mostrar siempre el texto en móvil */
    padding: 20px;
  }

  .banner-overlay a {
    font-size: 0.95rem;
  }

  .banner-overlay h2 {
    font-size: 1rem;
  }

  .banner-overlay p {
    font-size: 0.8rem;
  }

  .row.g-3.align-items-stretch {
    flex-direction: column;
  }

  .col-lg-8,
  .col-lg-4 {
    width: 100%;
  }

  .banner-card {
    margin-bottom: 10px;
  }
}

@media (max-width: 576px) {
  .banner-overlay {
    padding: 15px;
  }

  .mainbanner {
    font-size: 1.1rem;
  }

  .banner-overlay h2 {
    font-size: 0.95rem;
  }
}

.sistema-select {
  width: auto;
  font-size: 0.85rem;
  text-transform: uppercase;
}