*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}/*junta todo pegadito*/

body{
    background-color: #1a1834;
    color: white;
    font-family: Verdana;
}/*facil*/

header{
    display: flex;/*horizontalmente pone las things*/
    justify-content: space-between; 
    /*hace un espacio intermedio y los manda de lado a lado*/
    align-items: center;
    padding: 25px/*espacio de arriba y abajo*/ 50px/*espacio de las paredes*/;
    border-bottom: 1px #4a4766 ;
}
/**/
header h1{
    font-size: 2rem;
}
nav ul{
    list-style: none;/*quita los puntos de lista*/
    display: flex;
    gap: 25px; /*separación*/
}
nav a{/*config de los links*/
    text-decoration: none;/*quita las subrayaduras*/
    color: white;
    font-size: 1.1rem;
    font-weight: bolder;
}
nav a:hover{/*accion listeret de pasar la manita arriba*/
    color: #7b79cc;
}/**/
main section{
    display: flex;
    align-items: center;
    padding: 60px 50px;
    gap: 40px;
}
main h2{
    font-size: 2.5rem;
    margin-bottom: 20px;
}

main p{
    font-size: 1.2rem;
    line-height: 1.6;
    margin-bottom: 30px;
}
header button{/**/
    background-color: #895ad5;
    color: white;
    border: none;/*quita el borde que trae por defecto el button*/
    padding: 3px 20px;
    font-size: 1rem;
    font-weight: bold;/*negritas*/
    border-radius: 8px;
    cursor: pointer;
}
.img{
    position: relative;
    left: 450px;
}
main button{/**/
    background-color: #4a47a3;
    color: white;
    border: none;
    padding: 15px 30px;
    font-size: 1rem;
    border-radius: 8px;
    cursor: pointer;
}
/*YA ME QUIERO DORMIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIR*/

main button:hover{
    background-color: #5f5db3;
}
.menusection {
    padding: 60px 20px;
    background-color: #1a1834;
}

.menusection h2 {
    text-align: center; /* Centra el titulo Menú */
    font-size: 3rem;
    margin-bottom: 40px;
}

.menusection > div {
    display: flex;
    justify-content: center;
    flex-wrap: wrap; 
    gap: 30px; /* Espacio entre las cosas esoas */
}

.menusection article {
    background-color: #2c2a4a;
    padding: 20px;
    border-radius: 15px;
    text-align: center;
    width: 220px;
}

.menusection h3 {
    font-size: 1.5rem;
    margin-bottom: 15px;
}

.menusection img {
    border-radius: 50%; 
    width: 100%; 
    height: 180px; 
    object-fit: cover; /* Evita que la imagen se deforme */
}
.horariosection {
    padding: 60px 20px;
    text-align: center;
}

.horariosection h2 {
    font-size: 3rem;
    margin-bottom: 30px;
}

.horariosection div {
    background-color: #2c2a4a;
    padding: 40px;
    border-radius: 15px;
    max-width: 500px; 
    margin: 0 auto;
}

.horariosection h3 {
    font-size: 2rem;
    margin-bottom: 10px;
}

.horariosection p {
    font-size: 1.8rem;
    font-weight: bold;
    margin-bottom: 20px;
}


footer {
    padding: 40px 50px;
    background-color: #0f0e21;
}

footer > div:first-child { /*solo se le aplica al primer wy k vea*/
    display: flex;
    justify-content: space-around; 
    margin-bottom: 30px;
}

footer h4 {
    font-size: 1.2rem;
    margin-bottom: 10px;
    color: #a9a7c5;
}

footer a {
    color: #ffffff;
    text-decoration: none;
}

footer nav a {
    margin-right: 15px;
}

footer > div:last-child { /*igual se le aplica al ultimo*/
    text-align: center;
    border-top: 1px solid #4a4766;
    padding-top: 20px;
}
img {
    max-width: 100%; 
    height: auto;  
}

/*esto es como una condicional si detecta una pantalla pequeña
se avienta estos cambios y ajustes para las etuiquetas*/
@media (max-width: 768px) {

    header {
        flex-direction: column; 
    }
    nav ul {
        flex-direction: column; 
        align-items: center; 
        gap: 15px;
    }
    main section {
        flex-direction: column-reverse; 
        padding: 40px 20px;
        text-align: center;
    }
    main h1 {
        font-size: 2rem; 
    }
    main p {
        font-size: 1rem;
    }
    .menusection article {
        width: 80%;
        max-width: 300px; 
    }
    .menusection h2 {
        font-size: 2.5rem;
    }
    .horariosection > div {
        padding: 30px 20px;
    }
    .horariosection h2 {
        font-size: 2.5rem;
    }
    .horariosection h3 {
        font-size: 1.5rem;
    }
    .horariosection p {
        font-size: 1.3rem;
    }
    footer > div:first-child {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 30px; 
    }
    footer nav a {
        margin: 0 10px;
    }
}