body{
    font-family: Helvetica, 'Times New Roman';
    line-height: 1.75;
    margin: 0;
    padding: 0;
    background-color: #516C7F;
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    animation: backgroundColorChange 5s infinite alternate;
}
@keyframes backgroundColorChange{
    0%{background-color: #4C616F}
    50%{background-color: #516C7F}
    100%{background-color: #45515A}
}
header{
    background-color: #3A619A;
    color: cyan;
    padding: 1em 0;
    text-align: center;
    position: sticky;
    top: 0;
    z-index: 1000;
    animation: slideInFromTop 2s ease-in-out;
}
@keyframes slideInFromTop{
    from{
        transform: translateY(-100%);
        opacity: 0;
    }
    to{
        transform: translateY(0%);
        opacity: 1;
    }
}
nav ul{
    list-style-type: none;
    margin: 0;
    background-color: #8FFFD4;
    padding: 0;
    display: flex;
    justify-content: center;
    animation: fadeIn 3s ease-in-out;
}
@keyframes fadeIn{
    from{opacity: 0;}
    to{opacity: 1;}
}
nav ul li{
    margin: 0;
}
nav ul li a {
    color: white;
    padding: 15px 25px;
    text-decoration: none;
    display: inline-block;
    transition: background-color 0.5s;
}

nav ul li a:hover {
    background-color: #173BA4;
    animation: pulse 1s infinite;
}

@keyframes pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

main {
    flex: 1;
    padding: 20px;
    animation: fadeIn 1s ease-in-out;
}

h1, h2, h3 {
    color: #333;
    animation: colorChange 5s infinite alternate;
}

@keyframes colorChange {
    0% { color: #333; }
    50% { color: #BABBE8; }
    100% { color: #6466A4; }
}

section {
    margin-bottom: 20px;
    padding: 10px;
    background-color: #fff;
    border: 1px solid #ddd;
    border-radius: 5px;
    animation: fadeIn 2s ease-in-out;
}

footer {
    background-color: #64A2A4;
    color: white;
    text-align: center;
    padding: 10px 0;
    position: relative;
    width: 100%;
    animation: slideInFromBottom 1s ease-in-out;
}

@keyframes slideInFromBottom {
    from {
        transform: translateY(100%);
        opacity: 0;
    }
    to {
        transform: translateY(0);
        opacity: 1;
    }
}

.imagen-estilizada{
    border-radius: 10px;
    box-shadow: 4px 4px 8px rgba(0, 0, 0.2);
}

img:hover{
    transform: scale(1.0);
    transition: transform 0.5s ease
}