/* Estilo general para la página */
html{
    scroll-behavior: smooth;
}
body {
    font-family: 'TT Norms', sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f9f9f9;
    color: #333;
}

a {
    text-decoration: none;
    color: inherit;
    position: relative; /* Necesario para que ::after se posicione relativo al enlace */
    transition: font-size 0.3s ease; /* Transición suave para el tamaño de fuente */
  }
  
  /* Estilo para el nav horizontal */
  nav {
    display: flex;
    text-align: center;
    align-items: center;
    padding: 10px 20px;
    gap: 100px;
    height: 80px;
  
  }
  a {
    text-decoration: none;
    color: inherit;
    position: relative; /* Necesario para que ::after se posicione relativo al enlace */
    transition: font-size 0.3s ease; /* Transición suave para el tamaño de fuente */
  }
  
  /* Estilo para el nav horizontal */
  nav {
    display: flex;
    text-align: center;
    align-items: center;
    padding: 10px 20px;
    gap: 100px;
    height: 80px;
  
  }
  
  .contactos{
    position: relative;
    left: 600px;
  
    font-family: 'TT Norms', sans-serif; /* Cambia la fuente a TT Norms */
    font-size: 20px; /* Tamaño de fuente */
    color: #333; /* Color del texto */
  }
  .ins{
    padding-left: 10px;
  }
   .nav-links {
    display: flex;
    gap: 100px;
    padding-right: 500px;
  }

  .carrito{
    margin: 10px;
    display: inline-block;
    transition: transform 0.3s ease;
  }

  .nav-links {
    display: flex;
    gap: 100px;
    padding-right: 500px;
  }

  .carrito:hover{
   animation: balanceo 0.6s ease-in-out;
  }
 
  @keyframes balanceo {
  0%   { transform: rotate(0deg); }
  25%  { transform: rotate(-15deg); }
  50%  { transform: rotate(15deg); }
  75%  { transform: rotate(-10deg); }
  100% { transform: rotate(1deg); }
}
header{
  transition: 0.3s ease;
  border-bottom: solid 1px #ccc;
}
header:hover{
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2); 
}

nav a:not(.carrito):not(:has(img)) {
  color: #333;
  font-family: 'TT Norms';
  font-size: 20px;
}

nav a:not(.carrito):not(:has(img)):hover {
  font-size: 23px; 
}

nav a:not(.carrito):not(:has(img))::after {
  content: ""; 
  position: absolute; 
  left: 0;
  bottom: -5px;
  width: 0; 
  height: 2px; 
  background-color: #333;
  transition: width 0.3s ease; 
  z-index: -1;
}

nav a:not(:has(img)):hover::after {
  width: 100%; 
}

.imagen_titular img{
  position: relative;
  left: 43px;
}
  
  header{
  transition: 0.3s ease;
  border-bottom: solid 1px #ccc;
}
header:hover{
  box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2); 
}

  li {
    list-style: none;
  }
 /* sobre npsotros */

  .sobre-nosotros {
    margin: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 60px;
    justify-content: space-evenly;
  }

  .quienes-somos {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 30px;
    width: 900px;
    transition: 0.3s ease;
  }
  .quienes-somos img {
    width: 400px;
    padding-right: 50px;
  }


   /* sepracion para mas orden*/
  /* esa clase texto es para que el h1 este arriba de p*/
  .texto {
    display: flex;
    flex-direction: column;
    padding-left: 50px;
    padding-right:  50px; 
    text-align: center;
  }

  .por-que-lo-hacemos{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 700px;
   transition: 0.3s ease;
  }


  /* sepracion para mas orden*/

  .que-hacemos{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 700px;
   transition: 0.3s ease;
  }


  /* sepracion para mas orden*/
  .nuestos-valores{
    display: flex;
    justify-content: center;
    align-items: center;
    width: 700px;
   transition: 0.3s ease;
  }
  .nuestros-principios{
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 0;
    width: 700px;
    transition: 0.3s ease;
  }


  .quienes-somos:hover {
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    width: 1000px;
    border-radius: 20px;
  }
  .por-que-lo-hacemos:hover {
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    width: 800px;
    border-radius: 20px;
  }
  .que-hacemos:hover {
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    width: 730px;
    border-radius: 20px;
  }
   .nuestos-valores:hover {
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    width: 800px;
    border-radius: 20px;
   }
   .nuestros-principios:hover {
    box-shadow: 0 2px 40px rgba(0, 0, 0, 0.2);
    transition: 0.3s ease;
    width: 700px;
    border-radius: 20px;
   }

   /* separacion otra ve*/


  .por-que-lo-hacemos img {
    border-radius: 20px;
  }
  .que-hacemos img {
    border-radius: 20px;
  }
   .nuestos-valores img {
    border-radius: 20px;
   }
   .nuestros-principios img{
    border-radius: 20px;
   }

  footer {
    text-align: center;
    padding: 20px;
    background-color: #fff;
    box-shadow: 0 -2px 5px rgba(0, 0, 0, 0.1);
    margin-top: 50px;
}

footer p {
    font-size: 14px;
    color: #777;
}
.contactos{
  font-family: 'TT Norms', sans-serif; 
  font-size: 20px; 
  color: #333; 
  display: flex;
  flex-direction: row;
  justify-content: center;
  gap: 20px;
  color: #000000;
  margin-top: 50px;
}


@media (max-width: 480px) {
    nav{
        padding-bottom: 200px;
    }
 .nav-links:hover{
    font-size: 20px;
  }
   .nav-links {
    display: flex;
    flex-direction: row;
    justify-content: center;
    flex-wrap: wrap;
    gap: 20px;
    width: 400px;
    padding-right: 0;
    margin: 10px;
  }
  .contactos {

    gap: 20px;
    font-size: 14px;
    margin-bottom: 8px;
  }
  nav {
    flex-direction: column;
    align-items: center;
    gap: 0;
  }
  nav img{
    width: 200px;
  }
  .contactos {
    display: none !important;
  }
  .quienes-somos,
  .por-que-lo-hacemos,
  .que-hacemos,
  .nuestos-valores,
  .nuestros-principios {
    width: 98%;
    max-width: 98vw;
    padding: 10px 2vw;
  }
  .quienes-somos img,
  .por-que-lo-hacemos img,
  .que-hacemos img,
  .nuestos-valores img,
  .nuestros-principios img {
    max-width: 220px;
  }
}

/* En movil, todo en columna y mas compacto */
@media (max-width: 600px) {
  .quienes-somos,
  .por-que-lo-hacemos,
  .que-hacemos,
  .nuestos-valores,
  .nuestros-principios {
    width: 100%;
    max-width: 100vw;
    padding: 8px 0;
    gap: 10px;
    border-radius: 30px;
    box-shadow: #33333334 0px 0px 5px;
  }
  .quienes-somos img,
  .por-que-lo-hacemos img,
  .que-hacemos img,
  .nuestos-valores img,
  .nuestros-principios img {
    max-width: 140px;
    margin-bottom: 10px;
  }
  .texto {
    padding-left: 4px;
    padding-right: 4px;
    font-size: 15px;
  }
}

