*{
    box-sizing: border-box;
    margin: 0;
}

html{
    scroll-behavior:smooth;
}

body{
    font-family: 'Roboto', sans-serif;
    margin: 0;
    background-color:#fcfdfe/*#F1F7F9*/;
}

h1{font-size: 2em;}
h2{font-size: 1.5em;color: #0a61c9;}
h3{font-size: 1em;}
p{font-size: 1em;color: #07326a;}
a{font-size: .75em;}
button{font-size: 0.75em;}
li{font-size: 1em;
margin-bottom: 0.5rem;}
ul{list-style: none;}

button{
    font-size: 1em;
    font-weight: bold;
    padding: 10px 30px;
    border-radius: 5px;
    border: 0px solid #07326a;
    box-shadow: 1px 1px 3px black;
    color: #F1F7F9;
    background-color:#0a61c9;
}

button:hover{
    background-color:#0ac0c9;
}

.container{
    max-width: 1400px;
    margin: auto;
}

header{
    background-color:#0a61c9;
    padding: 12px;;
}

header .img-container{
    background-image: url("media/pms-logo-blanco.svg");
    background-size: cover;
    background-position: center center;
    height: 80px;
    width: 60px;
}

header .logo-container{
    display: flex;
    flex-direction: row;
    align-items: center;
    padding-bottom: 0px;
}

header .logo{
    margin: 0;
    padding: 25px 25px;
}

header .texto{
    padding-left:5px;
    font-weight: bolder;
}

header p{
    color:#F1F7F9;
    font-size:1.4em;
    font-weight:100;
    }

header h2{
    color: #F1F7F9;
    font-size: 2.5em;
    font-weight: bolder;
}    

header .container{
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
}

.nav-list{
    display: flex;
    flex-direction: column;
    gap: .5rem;
    list-style: none;
    padding: 1rem;
}

.nav-list a{
    text-decoration: none;
    color:#F1F7F9;
    font-weight: lighter;
    font-size: 14px;
}

header a:hover{
    color: #0ac0c9;    
}

#hero2 {
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    flex-direction:column;
    height: 90vh; /*cuanto de la pantalla toma ese hero */
    color: #F1F7F9;
    background-image:linear-gradient(
        0deg,
        rgb(6,51,106,0.3),
        rgb(6,51,106,0.3)
    ),url("media/heroppam.jpg");
    background-repeat: no-repeat;
    background-size: cover;
    background-position: top center;
    margin-top: 0px;
}

#hero2 h1{
    padding: 0px 12px 0px 12px;
}

#hero2 p{
    padding:50px;
    color: #F1F7F9;
}

#intro{
    padding: 50px 12px;
    text-align: center;
}

#intro p{
    text-align: justify;
    padding-top: 1.5rem;
}

#why{
    padding: 50px 12px;
    text-align: center;
    background-color: #0a61c9;
}

#why h2{
    color: #F1F7F9;
}

#why p{
    color: #F1F7F9;
    text-align: justify;
    padding-top: 1.5rem;
}

#who{
    padding: 50px 12px;
    text-align: center;
}

#who p{
    text-align: justify;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
}

#who ul{
    list-style:disc;
    text-align: justify;
}

#contacto .container{
    text-align: initial;
    padding: 50px 12px;
}

#how{
    padding: 50px 0px;
    text-align: center;
    margin: 0px 12px;
    border-top: #07326a 1px solid;
    border-bottom: #07326a 1px solid;
}

#how p{
    text-align: justify;
    padding-top: 1.5rem;
}

#consecuencias{
    padding: 50px 12px;
    text-align: center;
}

#psmservices{
    padding: 50px 12px;
    text-align: center;
    background-color:#07326a;
    color: #F1F7F9;
}
#psmservices h2{
    color: #F1F7F9;
}   

#psmservices p{
    text-align: justify;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
} 

#psmservices ul{
    list-style:disc;
    text-align: justify;
}

#psmservices form{
    margin-top: 50px;
}

#recursos{
    padding: 50px 0px;
    text-align: center;
    margin: 0px 12px;
    border-bottom: #07326a 1px solid;
}

#recursos h2{margin-bottom: 25px;}


#recursos p{
    text-align: center;
    padding-top: 1.5rem;
    padding-bottom: 0.5rem;
    color: #07326a;
}


#recursos .img-container{
    border-radius: 20px;
    height: 200px;
    width: 100%;
}

#recursos img{
    object-fit: cover;
    border-radius: 20px;
    box-shadow: #07326a;
    width: 100%;
    height: 100%;
}

#recursos .texto{
display: flex;
flex-direction: column;
gap: 1rem;
margin-top: 25px;
}

#consecuencias p{
    text-align: justify;
    padding-top: 1.5rem;
}

#contacto li{
   margin: 12px 0px;
   list-style: none;
   line-height: 1em;
}

#contacto ul{
    padding-left: 0;
    color: #07326a;
}

/* Estilos del botón flotante */

.chat-button {
    position: fixed;
    width: 55px;
    height: 55px;
    line-height: 55px;
    bottom: 20px;
    right: 20px;
    z-index: 1000;
    background-color:#0df053;
    color:#F1F7F9;
    border-radius: 50px;
    text-align: center;
    font-size: 30px;
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
}

.chat-button:hover {
    text-decoration: none;
    color: #0df053;
    background-color:#F1F7F9;
}



footer{
    background-color: #749dc8;
}

footer p{
    margin: 0;
    padding: 12px;
    color: #F1F7F9;
    font-size: 12px;
}

footer .container{
    height: 150 px;
    display: flex;
    justify-content: center;
    align-items: flex-end;
}

/*Media queries section
################################################
##############################################*/

@media (min-width: 1024px){

    html {
        scroll-padding-block-start: 105px;
    }

    h1{font-size: 3em;}
    h2{font-size: 2em;color: #0a61c9;}
    h3{font-size: 1.5em;}
    p{font-size: 1em;}
    button{font-size: 1em;}
    a{font-size: 1em;}
    ul{font-size: 1em;
        list-style:disc;
        color:#07326a;
        line-height: 2em;
    }

    header{
        position: fixed;
        width:100%;
        top: 0;
        background-color:#fcfdfe;
        padding-bottom: 12px;
        padding-top: 12px;
        padding-left: 12px;
    }
    
    header .container{
        flex-direction: row;
        justify-content: space-between;
    }
    
    header p{
        color:#0a61c9;
        }
    
    header h2{
        color:#0a61c9;
    }    
    

    header .img-container{
        background-image: url("media/pms-logo-azul.svg");
    }

    .nav-list{
        display: flex;
        flex-direction: row;
        gap: 2rem;
        list-style: none;
    }
    
    .nav-list a{
        text-decoration: none;
        color:#0a61c9;
        font-weight: bold;
        font-size: 16px;
    }
    

    #hero2{
        height: 80vh;
        margin-top: 100px
    }

    #hero2 h1{
        padding-top: 40;
    }



#psmservices {
color: #fcfdfe;
}

#psmservices ul{
color: #F1F7F9;
}

#recursos {
    display: grid;
    grid-template-columns: 1fr 3fr ;
    grid-template-rows: auto 1fr 1fr;
    grid-template-areas: 
    " titulo titulo"
    "imagen  texto"
    "imagen  subtexto";
}

#recursos h2{
    grid-area: titulo;
}

#recursos .img-container{
    grid-area: imagen;
    grid-row: span 2;
    width: 100%;
    height: 100%;
    max-height: 200px;
    overflow: hidden;
    background-color: #f0f0f0; /* Para debug */
}

#recursos img{
    object-fit: cover;
    border-radius: 20px;
    box-shadow: #07326a;
    width: 100%;
    height: 100%;
}

#recursos p{
    grid-area: texto;
    text-align: left;
    padding: 2rem;
}

#recursos .texto{
    grid-area: subtexto;
    display: flex;
    flex-direction: row;
    justify-content: space-evenly;
    margin-top: 25px;
    }

#contacto .container{
    text-align: initial;
}

#contacto h2{
    margin-left: 10px;
}

#contacto ul{
    margin-left: 10px;
    padding: 0;
}

footer p{font-size: 14px;}

}