body {
    text-align: center;
    background-color: #f0f0f0;
}
body #todo{
    background-color: white;
    margin-left: 20%;
    margin-right: 20%;
    
}
#encabezado {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-left: 5%;
    margin-right: 5%;
    
}
#encabezado #tit_prin{
    text-align: left;
    color: #2c2c2c;
}

#encabezado #redes {
    margin-right: 10px;
    text-align: right;
}
#encabezado #redes a {
    margin-right: 10px;
}
#encabezado img {
    width: 40px;
}
nav {
    text-align: right;
    margin-right: 5%;
}
nav a{
    color: #2c2c2c;
    padding: 10px;
    text-decoration: none;
    transition: transform 0.3s ease;
}
nav a:hover {
    color: #e0e0e0;
}
.linea {
    padding-bottom: 20px;
    border-bottom: 1px  #e0e0e0 dotted;
}
#cuerpo {
    text-align: left;
    padding-top: 3% ;
    padding-bottom: 5% ;
    margin-left: 20%;
    margin-right: 20%;
}
#fiestas {
    padding: 30px;
    border-radius: 15px;
    text-align: center;
}
#fiestas > div {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 20px;
}
#fiestas > div > div {
    background-color: #f0f0f0;
    width: 250px;
    border-radius: 15px;
    padding: 15px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
#fiestas > div > div:hover {
    transform: translateY(-8px);
    box-shadow: 0px 8px 20px rgba(0,0,0,0.15);
}
#fiestas img {
    width: 100%;
    border-radius: 10px;
    margin-bottom: 10px;
}
#fiestas h3 {
    margin-bottom: 10px;
    color: #2c2c2c;
}
#fiestas p {
    color: #555;
}
footer {
    text-align: center;
    border-top: 1px  #e0e0e0 dotted;
}
footer nav{
    margin-top: 30px;
    text-align: center;
    margin-bottom: 40px;
}
footer nav a {
    border-left: 1px solid black;
    border-right: 1px solid black;
    padding: 5px 10px;
    font-style: italic;
}
footer div {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 300px;
}
footer div img{
    height: 200px;
}
