/* Fuentes */
@font-face {
    font-family: "Espacio";
    src: url("assets/fonts/PLANK___.TTF") format("truetype");
    font-weight: normal;
    font-style: normal;
}

@font-face {
    font-family: "Bonita";
    src: url("assets/fonts/CartographCF-Regular.otf");
    font-weight: normal;
    font-style: normal;
}

/* Resetear y base */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: sans-serif;
}

:root {
    --neon-green: rgb(94, 199, 34);
    --border-solid: 2px solid;
    --border-dashed: 2px dashed;
    --white: white;
    --dark-green: rgb(12, 132, 96);
    --green: rgb(26, 184, 136);
    --brillar: brillar 3s ease-in-out infinite;
    --flotar: flotar 3s ease-in-out infinite;
    --pistacho: rgb(182, 214, 0);
    --box-shadow: 0px 0px 10px var(--dark-green);
    --box-shadow-contrast: 0px 0px 10px var(--white);
}

html {
    scroll-behavior: smooth;
}

body {
    min-height: 100vh;
}

/* BARRA DE NAVEGACIÓN */

nav {
    position: sticky;
    top: 0;
    z-index: 100;
    background: var(--white);
    border-bottom: var(--border-solid) var(--neon-green);
    backdrop-filter: blur(4px);
    padding: 1rem;
}

.navegacion__container {
    display: flex;
    flex-direction: row;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    justify-content: space-between;
    height: 56px;
}

.logo__link {
    font-family: Espacio;
    font-size: 1.5rem;
    color: var(--neon-green);
    text-decoration: none;
    letter-spacing: 2px;
    text-shadow: 0 0 10px;
}

.nav__links__menu {
    display: flex;
    list-style: none;
    gap: 0.25rem;
}

.nav__link {
    text-decoration: none;
    color: var(--neon-green);
    font-size: 0.8rem;
    letter-spacing: 1px;
    padding: 0.5rem 1rem;
    border: var(--border-solid, --neon-green);
    text-transform: uppercase;
    font-weight: 600;
    transition: all 0.15s;
}

.nav__link:hover {
    color: var(--white);
    background-color: var(--neon-green);
    box-shadow: 0 0 5px var(--neon-green);
}

.nav__menu__btn {
    display:none;
    background: none;
    text-align: center;
    padding: 0.2rem 0.5rem;
    font-size: 1.5rem;
    cursor: pointer;
    border: var(--border-solid) var(--neon-green);
    color: var(--neon-green);
}

/* HACER APARECER EL BOTÓN */

@media (max-width:785px) {
    .nav__menu__btn {
        display: block;
    }
    .nav__links__menu {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 76px;
        left: 0;
        width: 100%;
        background-color: var(--white);
        border-bottom: var(--border-solid) var(--neon-green);
        padding: 1rem;
        gap: 1.5rem;
    }
    .nav__links__menu.open {
        display:flex;
    }
}

/* CABECERA */

#cabecera__container {
    display: flex;
    flex-direction: row;
    border-bottom: var(--border-solid) var(--neon-green);
    justify-content: space-evenly;
    padding: 1rem;
    background: var(--white);
}

.sprite__animation {width: 64px; height: 64px; background-size: cover; animation: playFrames 2s steps(4) infinite; image-rendering: pixelated; image-rendering: crisp-edges;}

/* ANIMACIÓN */

@keyframes playFrames {
    from {background-position: 0px;}
    to {background-position: -256px;}
}

#cromo__amarillo {
    background-image: url(assets/slime-amarillo.PNG);
}
#cromo__azul {
    background-image: url(assets/slime-azul.PNG);
}
#cromo__verde {
    background-image: url(assets/slime-verde.PNG);
}
#cromo__rojo {
    background-image: url(assets/slime-rojo.PNG);
}
.cromo__naranja {
    background-image: url(assets/slime-naranja.PNG);
}
.cromo__morado {
    background-image: url(assets/slime-morado.PNG);
}
#robot {
    background-image: url(assets/robot.PNG);
}

#main__container {
    display: grid;
    grid-template:
        "parcelas"
        "robots"
        "footer";
    margin: 1rem;
    justify-content: center;
}

.inner__container {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}
.section__container.parcelas {
        grid-area: "parcelas";
    }
.section__container.robots {
        grid-area: "robots";
    }

@media (min-width: 768px) {
    .main__container {
        display: grid;
        grid-template:
        "parcelas robots" auto
        "footer footer";
        margin: 1rem;
        justify-content: space-between;
    }
}

.images__wrap {
    display: flex;
    flex-wrap: wrap;
}

img {
    max-width: 400px;
}





/* FOOTER */

.footer {
    grid-area: footer;
    text-align: center;
    padding: 2rem;
}

.footer p {
    text-transform: uppercase;
    font-weight: 500;
    color: rgb(66, 137, 107);
}

.footer span {
    font-family: "Espacio";
    letter-spacing: 3px;
    margin: 0 1rem;
    color: rgba(94, 199, 34);
    font-size: 20px;
}

.footer small {
    text-transform: capitalize;
    color: grey;
}
