* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family:'Arial', sans-serif;

}
body {
    line-height:1-6;
}
header {
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 1rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
.logo{
    align-items: left;

}
.nav-links {
    display: flex;
    list-style: none;
    gap: 2rem;
}
.nav-links{
    text-decoration: none;
    color:#333;
    font-weight: 500;
}
#hero{
    padding-top: 2rem;
    min-height: 100vh;
    background: linear-gradient(rgba(0, 0, 0, 0.5),rgba(0,0,0,0.5)), url('img/portada.jpeg');
    background-size: cover;
    background-position: center;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    color: white;
    padding: 0 1rem;

}
#h1{
    font-size: 3rem;
    margin-bottom: 1rem;
}
.cta-button{
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 15px 15px;
    border-radius: 5px;
    text-decoration: none;
    cursor: pointer;
    font-size: 1.4rem;
    margin-top: 4rem;
}
.cta-button:hover {
    background-color: #fa5a5a;
}
#Eventos{
    padding: 4rem 2rem;
    max-width: 1200px;
    margin: 0 auto;
}
#Eventos h2{
    text-align: center;
    margin-bottom: 2rem;
}
.eventos-grid{
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(400 px, 1fr));
    gap: 2rem;
}
.eventos-card{
    background: white;
    border-radius: 10px;
    overflow: visible;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1); ;
}
.eventos-card img{
    width: 100%;
    height: fit-content;
    object-fit: cover;
}
.eventos-card h3{
    padding: 1rem;
    color:#333;

}
.inscripcion{
    color: #ff6b6b;
    font-weight: bold;
    padding: 0 1rem;
}
.ubicacion{
 padding:.5rem 1rem;
 color: #666;   
}
.eventos-card button{
    margin: 1rem;
    padding: .5rem 1rem;
    background-color: #333;
    color: white;
    border: none;
    border-radius: 5px;
    cursor: pointer;
}
.eventos-card button:hover{
    background-color: #000000;
}
#Contacto{
    background-color: #f9f9f9;
    padding: 4rem 2rem;

}
#Contacto h2{
    text-align: center;
    margin-bottom: 3rem;
}
form {
    max-width: 600px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
input, textarea{
    padding: .8rem;
    border: 1px solid #ddd;
    border-radius: 5px;
}
textarea{
    height: 150px;
    resize: vertical;
}
form button{
    background-color: #ff6b6b;
    color: white;
    border: none;
    padding: 1rem;
    border-radius: 5px;
    cursor: pointer;
}
form button:hover{
    background-color:#ff5555;
}
footer{
    background-color: #333;
    color: white;
    text-align: center;
    padding: 1rem;
}
@media screen and (max-width:430px){
    nav{
        flex-direction: column;
        padding:1rem;
    }
    .nav-links{
        flex-direction: column;
        text-align: center;
        margin-top: 1rem;
        gap: 1rem;
    }
}
    
