* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    height: 100vh;
    background-color: #fff;
  
}

li{
    list-style: none;   
}

a{
    text-decoration: none;
    color: black;
    font-size: 1.3rem;
    font-family: 'Agency FB';
}

a:hover {
    color:red;
}
/* HEADER */
header{
    position: relative;
    padding: 0 2rem;
}

.navbar{
    width: 100%;
    height: 60px;
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-family: 'Agency FB';
    font-size: x-large;
}

.navbar .logo a{
    font-size: 1.5rem;
    font-weight: bold;
}

.navbar .links {
    display: flex;
    gap: 2rem;
    margin-bottom: 0rem;
}

.navbar .toggle_btn{
    color: black;
    font-size: 1.5rem;
    cursor: pointer;
    display: none;
}

.action_btn:active{
    scale: 0.95;
}
/* DROPDOWN MENU */
.dropdown_menu{
    position: absolute;
    right: 2rem;
    top: 60px;
    width: 300px;
    height: 0;
    background:rgba(136, 126, 126, 0.2);
    backdrop-filter: blur(15px);
    border-radius: 10px;
    overflow: hidden;
    transition: height .2 cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

.dropdown_menu.open{
    height: 140px;
}

.dropdown_menu li{
    padding: 0.5rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* HERO */
section#hero{
    height: calc(90vh - 60px);  
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background-image: url(/images/FondoInicio.jpg);
    background-size: cover;
    background-position: center;
}

.flex-item1{
    margin-left: 10px;
    margin-right: 5px;
    margin-bottom: 2px;
}
.flex-item2{
    font-family: 'Agency FB';
    font-size:large;
}
.flex-item3{
    font-family:'Arial';
    font-size:large;
    margin-right: 37px;
    text-align: justify;
}
.flex-item3 a{
    color: red;
}

.wrapper {
    display: grid;
    grid-gap: 10px;
    grid-gap: 5px;
    padding-top: 15px;
    padding-left: 5px;
    padding-right: 5px;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    background-color: #fff;
    color: #444;
    
    
}

.box {
    border: 1px solid #000000;
    border-radius: 5px;
    padding: 20px;
    text-align: center;
    box-shadow: 2px 2px 2px 1px rgba(0, 0, 0, 0.1);
}

.flex-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    border: red 5px none;
    max-width: 150vw; /* Ejemplo de ancho máximo */
}
.flex-container img{
    max-width: 800px;
    height: auto;
}

.relato{
    margin-left: 37px;
    margin-right: 37px;
    font-family:'Arial';
    font-size:large;
    text-align: justify;
}

.relato a{
   color: red;
}

@media only screen and (max-width:500px) {
    .box  {
       width: 100%;  
       margin-right: 0;
       float: none;  
       margin-bottom: 20px;
       font-size: 0.1em;
    }
}

/* RESPONSIVE DESING*/
@media(max-width: 992px){
    .flex-container img{
        max-width: 400px;
        height: auto;
    }
    .flex-container{
        flex-wrap: wrap;
    }
    .flex-item3{
        margin-right: 37px;
        margin-left: 37px;
    }
    .navbar .links,
    .navbar .action_btn{
        display: none;
    }

    .navbar .toggle_btn{
        display: block;
    }

    .dropdown_menu{
        display: block;
    }
    .box{
        font-size: 1.5em;
    }
}

@media(min-width: 1441px){
    .box{
        font-size: 2em;
    }
    .wrapper img{
        height: 80%;
    }
    .flex-item3{
        margin-top: 100px;
        margin-left: 50px;
    }
}

@media (max-width: 576px){
    .dropdown_menu{
        left: 2rem;
        width: unset;
    }
    .box  {
        font-size: 0.6em;
     }
     .wrapper img{
        height: 93%;
    }
}

@media (max-width: 320px) {
    .box{
        font-size: 0.5rem;
    }
    .wrapper img{
        height: 85%;
    }
  }