*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
  font-family: Arial, Helvetica, sans-serif;  
}


/*menu*/
#menu{
  margin-top: -260px;
  width: 100%;
  display: flex;
  justify-content: center;
}

#menu ul{
  display: flex;
  gap: 40px;
  list-style: none;
  padding: 10px 20px;
  border-radius: 30px;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.1);
}

#menu ul li a {
  color: white;
  text-decoration: none;
  font-size: 20px;
  font-weight: 600;
  position: relative;
  padding-bottom: 5px;
}


#menu ul li a::after{
  position: absolute;
  bottom: 0;
  left: 0;
  width: 0%;
  height: 2px;
}


#menu ul li a:hover{
  color:  black;
}


#menu ul li a:hover::after{
  width: 100%;
}


/*texto de principal*/
#texto h1{
  text-align: center;
  color:  white;
  margin-bottom: 20px;
  font-size: 32px;
}

#texto p{
  color: white;
  text-align: center;
  margin-bottom: 15px;
}

#texto a{
color:black;
text-decoration: none;
font-weight: normal;
}

#texto{
  max-width: 800px;
  margin-top: 40px;
  padding: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  border-radius: 20px;
  box-shadow: 0 0 20px rgba(0,0,0,0.2);  
}


/*logo*/
#logo{
  width: 100%;
  overflow: hidden;
  position: relative;
  top: -150px;
}

#logo img{
  width: 100%;
  height: auto;/*ajusta el largo de la imagen*/
  object-fit: cover;
  display: block;
  margin: 0;
  padding: 0;
  border-radius: 5px;
}


/*cuadros de imagenes*/
.cuadros{
  display: grid;
  gap: 90px;
  width: 90%;
  max-width: 1100%;
  margin: 40px auto;
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
  
}

.servicio-card{
  padding: 20px;
  text-align: center;
  color: white;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(8px);
  box-shadow: 0 0 15px rgba(0,0,0,0.25);
  transition: transform .5s ease, box-shadow .5s ease;
  
}

.servicio-card img{
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: 15px;
  margin-bottom: 15px;
  transition: transform 0.3s ease;
}

.servicio-card:hover img{
  transform: scale(1.09);
}



.servicio-card h3{
  font-size: 16px;
  line-height: 1.4;
}


.servicio-card a {
  color: white;
  text-decoration: none;
  font-weight: normal;
}

.servicio-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 0 25px rgba(0,0,0,0.35);
  box-shadow: 0px 0px 20px rgb(255, 255, 255);
}


/*terminos y condiciones*/
  footer{
    margin-top: auto;
    background: transparent;
    color: white;
    padding: 20px;
    text-align: center;
  }
  
  footer a{
    color: white;
    text-decoration: none;
    margin: 0 10px;
  }


/* fondo*/ 
.container {
    min-height: 100vh;
    width: 100%;
    /* height: 100%; */
    /* Add your background pattern here */
    background: linear-gradient(
      #7da0ca,
      #5483b3,
      #1ea0b7,
      #1d778b,
      #052659,
      #021024
    );
    background-size: 400% 400%;
    animation: gradient 30s ease infinite;
    
    display: flex;
    align-items: center;
    flex-direction: column;
    padding-top: 0;
  }
  
  @keyframes gradient {
    0% {
      background-position: 0% 50%;
    }
    25% {
      background-position: 50% 100%;
    }
    50% {
      background-position: 100% 50%;
    }
    75% {
      background-position: 50% 0%;
    }
    100% {
      background-position: 0% 50%;
    }
  }

  #fondo {
    width: fit-content;
    height: fit-content;
    background-color:transparent;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 25px 25px;
    gap: 20px;
    
  }
 
    /*movil*/
    @media (max-width: 600px) {

      .container{
        padding-top: 90px;
      }
      
      /* Imagen principal */
      #logo{
        height: auto;
      }
  
      #logo img {
        width: 100%;
        max-height: 460px;
        height: auto !important;
        object-fit: cover;
        display: block;
      }
    
      /* Texto principal */
      #texto {
        max-width: 90%;
        padding: 15px;
        margin-top: 20px;
      }
    
      #texto h1 {
        font-size: 24px;
      }
    
      #texto p {
        font-size: 14px;
      }
    
      /* Cuadros de servicios */
      .cuadros {
        grid-template-columns: 1fr;
        gap: 25px;
      }
    
      .servicio-card {
        padding: 15px;
      }
    
      .servicio-card h3 {
        font-size: 18px;
      }
    
      /* Menú */
      #menu ul {
        gap: 20px;
        padding: 8px 15px;
      }
    
      #menu ul li a {
        font-size: 16px;
      }
    
      /* Formulario */
      .form {
        width: 90%;
        margin-top: 40px;
      }
    
      .flex {
        flex-direction: column;
      }
    }
    
  
    /*tablet*/
    @media (max-width: 900px) {
  
      #texto {
        max-width: 95%;
        padding: 25px;
      }
    
      .cuadros {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 40px;
      }
    
      #menu ul li a {
        font-size: 18px;
      }
    
      #hero img,
      #logo img {
        height: 260px;
      }
    }