*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root{
    --colorTextos: #7e7e7e;
    --colorBotones: #f69223;
    --colorFondo:#5d8a9f;
    --paddingSecciones:60px 0;
    --marginElmentos:40px;
}

body{
    font-family: 'Times New Roman';
}

html{
    scroll-behavior: smooth;
}


.contenedor{
    width: 90%;
    max-width: 1100px; /*DEFINE QUE NO REVASE EL 90*/
    margin: auto; 
    overflow: hidden; /*PARA QUE TODO LO QUE SALGA FUERA DE ESTE ANCHO SE OCULTE*/
    padding: var(--paddingSecciones);
    animation: 1s moverizquierda1;
}


/*MENÚ*/

.menu-navegacion{
    display: flex;
    justify-content: space-between;
    height: 70px;
    padding: 0;
    align-items: center;
    font-family: 'Times New Roman';
    font-size: 20px;
    animation: 1s moverizquierda3;
}

.logo{
    height: inherit;/*heredaro de tus padres*/
}


.logo img{
    height: 100%;
    display: block; /*para evitar problemas de espaciado*/
}

.enlaces li{
    list-style: none;
    display: inline-block;
   
}

.enlaces a{
    text-decoration: none;
    color: var(--colorFondo);
    margin-left: 10px;
   
}

.enlaces a:hover{
    text-decoration: underline active ;
}

/* HERO */

.hero{
    height: 500px;
    background-image: url("../img/portada.jpeg");
    background-position: center;
    background-size: cover;
    background-attachment: fixed;

}
.contenedor-textos{
    padding: 0;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #000;
    animation: 1s moverizquierda2;
}

.hero h1{
    font-size: 60px;
    font-weight: 700px;
    color: #fff;
}

.hero p{
    font-weight: 300;
    font-size: 25px;
    margin: 15px 0;
}

.boton{
    width: 150px;
    display: block;
    margin: 0 auto;
    padding: 15px 0;
    background: var(--colorBotones);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: background-color .5s ;
}

.boton:hover{
    background-color: #4776E6;
    color: #fff;
    transform: scale(1.0);
}

/* SECCIÓN DE MAIN*/

.titulo-seccion{
    text-align: center;
    font-size: 35px;
    color: var(--colorFondo) ;

}

.titulo-seccion02{
    text-align: center;
    font-size: 35px;
    color:#fff ;
}

.copy02{
    text-align: center;
    color: #fff;
    margin: 20px 0;
}


.copy{
    text-align: center;
    color: var(--colorTextos);
    margin: 20px 0;
}

.beneficios{
    padding: var(--marginElmentos);
    display: flex;
    flex-wrap: wrap;
    justify-content: space-evenly;
    align-items: center;
   

}

.beneficio{
    font-size: 20px;
    width: 10em;
    height: 10em;
    background-image: url("../img/10.jpeg"); 
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50px;
}

.beneficio2{
    font-size: 20px;
    width: 10em;
    height: 10em;
    background-image: url("../img/6.jpeg"); 
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50px;
}

.beneficio3{
    font-size: 20px;
    width: 10em;
    height: 10em;
    background-image: url("../img/11.jpeg"); 
    background-size: cover;
    background-position: center;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
    border-radius: 50px;
}





#btn-servicios{
    position: relative;
    top: 70px;
    height: 36px;
    cursor: pointer;
    transition: background-color .5s ;
    border: solid #4776E6;
    border-radius: 10px;
    outline-style: double;
    font-size: 12px;
}

#btn-servicios:hover{
background: #4776E6;
color: #fff;
}

.otrosservicios{
    background: #f2f2f2;
    animation: 1s moverizquierda2;
}

.contenedor-imagenes{
    display: flex;
    justify-content: space-evenly;
    flex-wrap: wrap;
    animation: 1s moverizquierda1;
}



#img{
    width: 10em;
    height: 10em;
    animation: 1s moverizquierda1;
}

.contenedor-imagenes img{
    display: block;
    object-fit: cover;/*para evitar que no se distorcionen mucho*/
    width: 30%;
    height: 220px;
    box-shadow: 0 0 4px rgb(0, 0, .5);
    margin-bottom: var(--marginElmentos);
    animation: 1s moverizquierda1;
}

.people{
    width: 150px;
    height: 150px;
    display: block;
    margin: auto;
    border-radius: 50px;
    object-fit: cover;
}

.person{
    font-size: 22px;
    font-style: italic;
    text-align: center;
    font-weight: 300;
    margin-top: 5px;

}

footer{
    background-image: url("../img/7.jpeg");
    background-size: cover;
    background-position: center;
    opacity: 8;
    width: 100%;

}

footer .titulo-seccion,
footer .copy{
    color: #000;
}
.redes-sociales{
    padding-top:var(--marginElmentos) ;
    width: 80%;
    margin: 0 5px;
    display: flex;
    justify-content: center;
    margin: auto;
    justify-content: center;
    color: #fff;
}

.redes-sociales i{
font-size: 50px;
transition: background-color .5s ;
cursor: pointer;
}

.redes-sociales i:hover{
     background: #4776E6;
    }

@media screen and (max-width:800px){
    .menu-navegacion{
        flex-direction: column;
        height: 120px;
        justify-content: space-evenly;
        font-size: 14px;
    }
    .hero h1{
        font-size: 50px;
        color: #fff;
    }

    .hero p{
        font-size: 30px;
        color: #fff;
    }
    .beneficio{
        margin-bottom: var(--marginElmentos) ;
    }

    .redes-sociales{
        flex-direction: column;
        justify-content: center;
        align-items: center;
        margin: auto;
    }

    .redes-sociales i{
        margin-bottom: 20px;
    }

    .logo img{
        width: 140px;
         height: 80px;
         
      }
   
      .modal{
        font-size: 20px;
    }

  
}

@media screen and (max-width:300px){
     .redessociales img{
        width: 150px;
        height: 150px;
        margin-bottom: 3px 0;
      }

      .redessociales{
        width: 10%;
      }
}


/* top top*/

#myBtn {
    display: none;
    position: fixed;
    bottom: 20px;
    right: 30px;
    z-index: 99;
    font-size: 18px;
    border: none;
    outline: none;
    background-color: blue;
    color: white;
    cursor: pointer;
    padding: 15px;
    border-radius: 4px;
  }
  
  #myBtn:hover {
    background-color: #555;
  }

  /*MODAL*/

  /* The Modal (background) */
.modal {
    display: none; /* Hidden by default */
    position: fixed; /* Stay in place */
    z-index: 1; /* Sit on top */
    left: 0;
    top: 0;
    width: 100%; /* Full width */
    height: 100%; /* Full height */
    overflow: auto; /* Enable scroll if needed */
    background-color: rgb(0,0,0); /* Fallback color */
    background-color: rgba(0,0,0,0.4); /* Black w/ opacity */
    background: transparent solid gray;
    -webkit-transition: opacity 400ms ease-in;
    -moz-transition: opacity 400ms ease-in;
    transition: opacity 400ms ease-in;
  }

 
  
  /* Modal Content/Box */
  .modal-content {
    background-color: #fefefe;
    margin: 15% auto; /* 15% from the top and centered */
    padding: 20px;
    border: 1px solid #888;
    width: 70%; /* Could be more or less, depending on screen size */
    color:black ;
    transform: scale(1.2);
    border: solid #000;
    border-radius: 5px;
    box-sizing: border-box;
  }
  
  /* The Close Button */
  .close {
    color: #aaa;
    float: right;
    font-size: 28px;
    font-weight: bold;
  }
  
  .close:hover,
  .close:focus {
    color: black;
    text-decoration: none;
    cursor: pointer;
  }



  /*SECCIÓN final*/
  .final{
   display: flex;
   flex-wrap: wrap;
   justify-content: space-evenly;
   align-items: center;
   width: 90%;
   max-width: 1200px;
   height: 150px;
  }
  .final h2{
    font-size: 15px;
  }

  .final i{
    font-size: 20px;
    transition: background 1s;
    cursor: pointer;
  }

  .final i:hover{
    font-size: 25px;
    background: #4776E6;
  }



  /*OTROS SERVICIOS*/

  .otrosservicios{
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    text-align: center;
  }


  .boton02{
    width: 190px;
    display: block;
    margin: 0 auto;
    padding: 10px 0;
    background: var(--colorBotones);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: background-color .5s ;
}

.boton02:hover{
    background-color: #4776E6;
    color: #fff;
}

#otroboton{
    width: 170px;
    display: block;
    margin: 0 auto;
    padding: 10px 0;
    background: var(--colorBotones);
    color: #fff;
    text-decoration: none;
    border-radius: 10px;
    text-align: center;
    transition: background-color .5s ;
}

#otroboton:hover{
    background-color: #4776E6;
    color: #fff;
}


/*ANIMACIONES*/
@keyframes moverizquierda2{
    0%{
        opacity: 0;
        transform: translateY(100px);
    }

    100%{
        opacity: 1;
        transform: translate(0);
    }
}

/*ANIMACIONES*/
@keyframes moverizquierda3{
    0%{
        opacity: 0;
        transform: translateX(100px);
    }

    100%{
        opacity: 1;
        transform: translate(0);
    }
}


.redessociales{
    position: fixed;
    display: flex;
    flex-direction: column;
  width: 5%;
    z-index: 999;
    top: 240px;
    padding: 10px 0;
    margin: 10px 0;
    background: none;
  }

  .redessociales img{
    width: 75%;
    height: 75%;
    margin-bottom: 3px 0;
  }

  .redessociales img:hover{
    transform: scale(1.1);
  }


  .contactos{
    display: flex;
    flex-wrap: wrap;
    text-align: center;
    justify-content: space-evenly;
    width: 100%;
    background: #fff;
    font-size: 12px;
    font-weight: 200;
    font-family: 'Raleway', sans-serif;
    color: #000;
    position: fixed;
    z-index: 999;
    margin-bottom: 2px 0;
  }