*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: Verdana, Geneva, Tahoma, sans-serif;

    --color-texto: #6B6D6F;
    --color-hover: #194975;
    --color-light: #497299;
}

body{
    background-color: #497299;
}

.container{
    width: 85%;
    min-height: 100vh;
    margin: 0 auto;
    background-color: white;
    
}
/* Estilos para el header y el nav */
header{
    padding: 10px 20px;
    position:relative;
    
}

nav{
    display: flex;
    justify-content: space-around;
    align-items: center;
    
    
}

img{
    width: 7rem;
    height: 7rem;
    
}

.nav-links{
    list-style: none;
    display: flex;
    gap: 1rem;

    & a{
        text-decoration: none;    
        font-size: 1rem;
        color: var(--color-texto);
        
    }

}

.hamburguer{
    display: none; 
    flex-direction: column;
    cursor: pointer;
    padding: 0.5rem;   
    border-radius: 10px;
    

}

.hamburguer-active{
    background-color: var(--color-hover);
    & .bar{
        background-color: white;
    }
}

.bar{
    width: 25px;
    height: 3px;
    background-color: var(--color-texto);
    margin: 4px 0;
    transition: 0.3s; 
}

@media (max-width: 768px) {
    .nav-links{
        display: none;
        position: absolute;
        top: 100%;
        right: 0;
        width: 100%;
        flex-direction: column;
        text-align: center;
        

        & a:hover{
            font-weight: bold;
            color: var(--color-hover);
        }
    }
   
    .hamburguer{
        display: flex;
    }

    .nav-links.show{
        display: flex;
        background: #fff;
        
        
        

    } 
}


/* Estilos para el contenido */
h1{
    text-align: center;
    color: var(--color-hover);
}

.welcome{
    display: flex;
    flex-direction: column;
    margin: 0 auto;
    margin-top: 1.5rem;
    margin-bottom: 1.5rem;
    padding: 1rem;
    gap: 1rem;
    background: rgb(226, 226, 226);
    border-radius: 0.5rem;
    text-align: justify;
    width: min(650px, 80%);

    & h3{
        text-align: center;        
    }  


}

.calendar-icon{
    width: 24px;
    height: 24px;
    color: white;
    margin-right: 10px ;
}

.btnCita{
    display: flex;
    text-decoration: none;
    width: fit-content;
    padding: 0.7rem;        
    border-radius: 0.5rem;
    background: var(--color-hover);
    color: white;
    cursor: pointer;        

}

.btnCita:hover{
    background: var(--color-light);
}

.servicios{
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-bottom: 1.5rem;
    color: var(--color-texto);
    padding: 2rem;
    line-height: 1.7rem;

    & > h2{
        font-size: 1.75rem;
        margin-bottom: 2rem;
    }
}

.servicio{
    display: flex;
    flex-direction: column;
    gap: 1rem;  

   
}


ul{
    margin-left: 2rem;
}

.contact_info{
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    margin: 2rem 0;
    color: var(--color-texto);



    & h3{
        margin-bottom: 1rem;
    }


    
}

.img_abogado{
    margin-bottom: 1.5rem;
    width: calc(716px * 0.4);
    height: calc(900px * 0.4);
    border-radius: 10px;
    
}

.formulario{
    margin: 2rem 1rem;
    padding: 2rem;
    display: flex;
    flex-direction:column ;
    gap: 1.5rem;
    background-color: #e3ecf5;
    border-radius: 10px;
    box-shadow: 0 0 3px 0;
    color: var(--color-texto);

    & h2{
        text-align: center;
    }
}

.campo{
    display: flex;
    flex-direction: column;
    font-weight: bold;

    & input{
        padding: 0.4rem;
        border: none;
        border-radius: 5px;
    }

}

.btnSubmit{
    padding: 0.5rem;
    width: 250px;
    border-radius: 10px;
    background-color: var(--color-hover);
    color: white;
    font-weight: bold;
    margin: 0 auto;
}

.btnSubmit:hover{
    background-color: var(--color-light);
    cursor: pointer;
}


@media (min-width:768px){
    .servicios{
        align-items: center;
    }

    .formulario{
        width: 650px ;
        margin: 2rem auto;
        
    }
}
 /*Estilos de Alertas*/
 .alerta{
    display: flex;
    justify-content: center;
    margin: 1rem auto;    
    padding: 0.5rem;
    border-radius: 10px;
    box-shadow: 0 0 5px 0px black;
    width: 500px;
    
    &.error{
        background-color: rgb(221, 94, 94);
        color: white;
    }

    &.exito{
        background-color: var(--color-light);
        color: white;
    }

 }



/* Estilos del footer */

footer{        
    
    font-size: small;    
    text-align: center;      
    right: 7.5%;
    left: 7.5%; 
    bottom: 0;
    
    
}
