*{
    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 de servicios*/
  .cuadros{
    display: grid;
    gap: 40px;
    width: 98%;
    max-width: 1200%;
    margin: 40px auto;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    
  }

  .servicio-card{
    position: relative;
    overflow: hidden;
    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 a {
    display: block;
    position: relative;
    height: 240px; 
    width: 100%;
    overflow: hidden;
    border-radius: 15px;
    margin-bottom: 20px;
    z-index: 1;
  }
  
  /* 2. Estilo base de TODAS las imágenes */
  .servicio-card img {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0;
    transition: opacity 0.6s ease, transform 0.6s ease;
  }
  .servicio-card h3{
    font-size: 16px;
    line-height: 1.4;
  }
  
  .servicio-card:hover {
    z-index: 10;
    transform: scale(1.15);
    transform: translateY(-8px);
    box-shadow: 0px 0px 20px rgb(255, 255, 255);
  }

  /*para el zoom de las imgenes*/
  .servicio-card img{
    position: absolute;
    transition: opacity 0.5s ease, transform 0.5s ease;
  }
  

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

  /*para las imegenes dobles*/
  .servicio-card img:first-child {
    opacity: 1;
    z-index: 2;
  }
  
  .servicio-card:hover img:first-child {
    opacity: 0;
  }
  
  .servicio-card:hover img:nth-child(2) {
    opacity: 1;
    z-index: 3;
  }
 
/*para los terminos y condiciones*/
.footer-moderno {
  width: 100%;
  background: rgba(2, 16, 36, 0.9); /* Azul muy oscuro profundo */
  backdrop-filter: blur(10px);
  color: white;
  padding: 60px 0 20px 0;
  margin-top: 150px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  display: flex;
  flex-wrap: wrap;
  justify-content: space-around;
  padding: 0 20px;
  gap: 40px;
}

.footer-section {
  flex: 1;
  min-width: 250px;
}

.footer-section h3 {
  color: whitesmoke;
  font-size: 24px;
  margin-bottom: 15px;
  letter-spacing: 2px;
}

.footer-section h4 {
  margin-bottom: 20px;
  font-size: 18px;
  border-bottom: 2px solid goldenrod;
  display: inline-block;
}

.footer-section p {
  line-height: 1.6;
  color: whitesmoke;
}

.footer-section ul {
  list-style: none;
}

.footer-section ul li {
  margin-bottom: 10px;
}

.footer-section ul li a {
  color: whitesmoke;
  text-decoration: none;
  transition: 0.3s;
}

.footer-section ul li a:hover {
  color: goldenrod;
  padding-left: 5px;
}

.social-links {
  display: flex;
  gap: 15px;
}

.social-icon {
  width: 40px;
  height: 40px;
  background: rgba(255,255,255,0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  color: white;
  text-decoration: none;
  transition: 0.3s;
  border: 1px solid rgba(255,255,255,0.2);
}

.social-icon:hover {
  background: rgb(197, 162, 55);
  transform: translateY(-5px);
}

.footer-bottom {
  text-align: center;
  margin-top: 50px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  font-size: 14px;
  color: whitesmoke;
}


  
  /* 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;
    }
    
    /* Estilo 3D (Cristal Flotante) */
#texto, #conta, .form {
  background: rgba(255, 255, 255, 0.05);
  backdrop-filter: blur(15px);
  border-radius: 20px;
  
  /* EL EFECTO 3D */
  border-top: 1px solid rgba(255, 255, 255, 0.5);
  border-left: 1px solid rgba(255, 255, 255, 0.5);
  border-bottom: 1px solid rgba(0, 0, 0, 0.2);
  border-right: 1px solid rgba(0, 0, 0, 0.2);
  
  /* Sombra profunda para simular altura */
  box-shadow: 
      0 20px 50px rgba(0, 0, 0, 0.3), /* Sombra lejana */
      0 0 0 1px rgba(255, 255, 255, 0.1) inset; /* Brillo interno */
  
  /* Preparación para animación */
  transform: perspective(1000px) translateZ(0);
  transition: transform 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94), box-shadow 0.4s;
}

/* Efecto al pasar el mouse sobre el texto */
#texto:hover, #conta:hover {
  transform: perspective(1000px) translateZ(20px) translateY(-5px);
  box-shadow: 
      0 30px 60px rgba(0, 0, 0, 0.5),
      0 0 20px rgba(255, 255, 255, 0.2) inset;
  background: rgba(255, 255, 255, 0.1);
}


      /*movil*/
      @media (max-width: 600px) {
        .footer-moderno {
          padding: 40px 0 20px 0; /* Un poco menos de espacio arriba */
      }
  
      .footer-content {
          flex-direction: column;/* Una columna debajo de la otra */
          text-align: center;/* Centramos el texto para móvil */
          gap: 40px;
      }
  
      .footer-section {
          min-width: 100%;
      }
  
      .footer-section h4 {
          display: block; /* La línea decorativa ocupará más espacio visual */
          margin: 0 auto 15px auto;
          width: fit-content;
      }
  
      .social-links {
          justify-content: center; /* Centra los iconos de redes sociales */
      }
  
      .footer-bottom {
          margin-top: 30px;
          font-size: 12px; /* Texto un poco más pequeño para pantallas pequeñas */
      }

      
        .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;
        }
      
        .servicio-card img{
          height: 200px;
        }
        
        /* Menú */
        #menu ul {
          gap: 20px;
          padding: 8px 15px;
        }
      
        #menu ul li a {
          font-size: 16px;
        }

        #menu{
          margin-top: -200px;
        }
        
        /* 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;
        }
      }