/* Global Styles */

body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
}


/* Header Styles */

header {
    background-color: #333;
    color: #fff;
}

header .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 1em;
}

header nav ul {
    list-style-type: none;
    margin: 0;
    padding: 0;
    display: flex;
}

header nav li {
    margin-right: 1em;
}

header nav a {
    color: #fff;
    text-decoration: none;
}

header .logo {
    margin: 0;
}


/* Section Styles */

section {
    padding: 2em 0;
}

section .container {
    max-width: 1200px;
    margin: 0 auto;
}

section h2 {
    margin-bottom: 1em;
}

section .posts {
    display: flex;
    flex-wrap: wrap;
}

section article {
    width: 30%;
    margin-right: 3%;
    margin-bottom: 2em;
}

section img {
    width: 100%;
    height: auto;
}

section h3 {
    margin: 0;
}

section p {
    margin: 0;
    line-height: 1.5;
}

section .button {
    display: block;
    margin-top: 1em;
    padding: .5em 1em;
    background-color: #333;
    color: #fff;
    text-align: center;
    text-decoration: none;
}


/* Footer Styles */

.bounceInLeft {
    animation: bounceInLeft 0.4s ease-out;
}

@keyframes bounceInLeft {
    from,
    60%,
    75%,
    90%,
    to {
        animation-timing-function: cubic-bezier(0.215, 0.61, 0.355, 1);
    }
    0% {
        opacity: 0;
        transform: translate3d(-3000px, 0, 0) scaleX(3);
    }
    60% {
        opacity: 1;
        transform: translate3d(25px, 0, 0) scaleX(1);
    }
    75% {
        transform: translate3d(-10px, 0, 0) scaleX(0.98);
    }
    90% {
        transform: translate3d(5px, 0, 0) scaleX(0.995);
    }
    to {
        transform: translate3d(0, 0, 0);
    }
}

.rotateInDownLeft {
    animation: rotateInDowntLef 5s ease-out;
}

@keyframes rotateInDowntLef {
    from {
        transform: rotate3d(0, 0, 1, -45deg);
        opacity: 0;
    }
    to {
        transform: translate3d(0, 0, 0);
        opacity: 1;
    }
}

footer {
    background-color: #333;
    color: #fff;
    padding: 1em 0;
}

footer .container {
    max-width: 1200px;
    margin: 0 auto;
    text-align: center;
}

.flipInY {
    animation: flipInY 1s ease-out;
}

@keyframes flipInY {
    from {
        transform: perspective(400px) rotate3d(0, 1, 0, 90deg);
        animation-timing-function: ease-in;
        opacity: 0;
    }
    40% {
        transform: perspective(400px) rotate3d(0, 1, 0, -20deg);
        animation-timing-function: ease-in;
    }
    60% {
        transform: perspective(400px) rotate3d(0, 1, 0, 10deg);
        opacity: 1;
    }
    80% {
        transform: perspective(400px) rotate3d(0, 1, 0, -5deg);
    }
    to {
        transform: perspective(400px);
    }
}

.tada {
    animation: tada 1s ease-out;
}

@keyframes tada {
    from {
        transform: scale3d(1, 1, 1);
    }
    10%,
    20% {
        transform: scale3d(0.9, 0.9, 0.9) rotate3d(0, 0, 1, -3deg);
    }
    30%,
    50%,
    70%,
    90% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, 3deg);
    }
    40%,
    60%,
    80% {
        transform: scale3d(1.1, 1.1, 1.1) rotate3d(0, 0, 1, -3deg);
    }
    to {
        transform: scale3d(1, 1, 1);
    }
}

.loader-container {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.651);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: opacity 0.5s ease-in-out;
    pointer-events: none;
}


/* Estilos para la animación de carga */

.loader {
    border: 8px solid #f3f3f3;
    border-top: 8px solid #3498db;
    border-radius: 50%;
    width: 60px;
    height: 60px;
    animation: spin 2s linear infinite;
}


/* Animación giratoria */

@keyframes spin {
    0% {
        transform: rotate(0deg);
    }
    50% {
        transform: rotate (180deg)
    }
    78% {
        transform: rotate (20deg)
    }
    100% {
        transform: rotate(360deg);
    }
}