.mega-menu {
  position: absolute;
  left: 0;
  top: 100%;
  width: 100vw;
  background-color: white;
  padding: 2rem;
  z-index: 1000;
  display: none;
  transition: opacity 0.3s ease;
  opacity: 0;
  overflow: auto; /* permite scroll si el contenido es largo */
  max-height: 80vh; /* evita que se corte en pantallas pequeñas */
  pointer-events: auto;
}

/*.nav-item.dropdown:hover .mega-menu,
.nav-item.dropdown .mega-menu:hover {
  display: block;
  opacity: 1;
}*/
.mega-menu p {
  text-align: justify;
}
.nav-link {
  font-size: 0.95rem;
}
.navbar {
  border-bottom: 1px solid #dee2e6;
}
.navbar-nav .nav-link {
  color: #6c757d; /* Color gris para los enlaces */
}

.alert-box {
    background-color: #f44336; /* rojo institucional */
    color: white;
    padding: 15px;
    margin: 20px auto;
    border-radius: 5px;
    width: 90%;
    max-width: 600px;
    font-weight: bold;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    position: relative;
    
    z-index: 1000;
  }

.alert-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.4); /* fondo semitransparente */
  display: none; /* oculto por defecto */
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
  .close-btn {
    position: absolute;
    top: 5px;
    right: 15px;
    font-size: 20px;
    cursor: pointer;
  }

  .alert-box {
  background-color: #f44336;
  color: white;
  padding: 20px 30px;
  border-radius: 8px;
  font-weight: bold;
  box-shadow: 0 4px 12px rgba(0,0,0,0.3);
  max-width: 600px;
  width: 90%;
  text-align: center;
  position: relative;
}

.close-btn {
  position: absolute;
  top: 10px;
  right: 15px;
  font-size: 22px;
  cursor: pointer;
}


/* Estilos para pantallas pequeñas */
@media (max-width: 768px) {
  .mega-menu {
    position: static;
    width: 100%;
    max-height: none;
  }
}    

/* Css Página Desarrollo web */
.seccion-decorativa {
background-image: url("/static/img/desarrollo_web.jpg"); /*   usa ruta directa o {% static %} en HTML */
  background-size: cover;
  background-position: center;
  height: 300px; /* ajusta según diseño */
  display: flex;
  align-items: flex-start;
  justify-content: left;
  color: white;
  text-align: left;
  margin-top: 60px;
}

.contenido-superpuesto {
  /*  background-color: rgba(0, 0, 0, 0.3); opcional para legibilidad */
  padding: 40px;
  border-radius: 8px;
}

.seccion-normal {
  background-color: white;
  padding: 40px 20px;
  color: #333;
}

.seccion-decorativa h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.seccion-decorativa p {
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  max-width: 800px;
}

.seccion-decorativa .btn {
  margin-top: 20px;
  font-size: 1.2rem;
  padding: 10px 20px;
}

/* Css Página Integración */

.seccion-decorativa-integracion {
 background-image: url("/static/img/integracionsistemas.jpg");   /*usa ruta directa o {% static %} en HTML */
  background-size: cover;
  background-position: center;
  height: 400px; /* ajusta según diseño */
  display: flex;
  align-items: flex-start;
  justify-content: left;
  color: white;
  text-align: left;
  margin-top: 60px;
}

.seccion-decorativa-integracion h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.seccion-decorativa-integracion p {
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  max-width: 800px;
}

.seccion-decorativa-integracion .btn {
  margin-top: 20px;
  font-size: 1.2rem;
  padding: 10px 20px;
}

/* Css Página Inteligencia Artificial */

.seccion-decorativa-ia {
 background-image: url("/static/img/inteligenciaartificial.jpg");   /*usa ruta directa o {% static %} en HTML */
  background-size: cover;
  background-position: center;
  height: 400px; /* ajusta según diseño */
  display: flex;
  align-items: flex-start;
  justify-content: left;
  color: white;
  text-align: left;
  margin-top: 60px;
}

.seccion-decorativa-ia h1 {
  font-size: 3rem;
  font-weight: bold;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
}

.seccion-decorativa-ia p {
  font-size: 2rem;
  text-shadow: 1px 1px 3px rgba(0,0,0,0.7);
  max-width: 800px;
}

.seccion-decorativa-ia .btn {
  margin-top: 20px;
  font-size: 1.2rem;
  padding: 10px 20px;
}
.imagen-derecha {
  width: 50px;
  height: 10px;
  float-end: right;
}
.imagen-izquierda {
  width: 300px;
  height: 200px;
  float-start: left;
}
