/* 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);
}

/* INTRODUCCIÓN */

#intro {
    border-bottom: 2px solid rgb(94, 199, 34);
    padding: 1rem;
    position: relative;
}

#intro div.contenedor {
    display: grid;
    grid-template-columns: 1fr 2fr;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    margin-top: 2rem;
    margin-bottom: 2rem;
    gap: 1rem;
}

.gift-wrap {
    display: grid;
    align-items: center;
    justify-content: center;
}

.gift-intro {
    width: 256px; height: 256px; background-size: cover; animation: playFrames256 2s steps(4) infinite; image-rendering: pixelated; image-rendering: crisp-edges; background-image: url(/assets/pincho-rojo.PNG);
}

.intro-particulas {
    position: absolute;
    inset: 0;
    pointer-events: none;
    overflow: hidden;
}

.particula {
    position: absolute;
    bottom: 0;
    left: var(--x);
    color: var(--c);
    font-size: 1.5rem;
    animation: subirParticula 3s var(--delay) ease-in infinite;
    opacity: 0;
}

@keyframes subirParticula {
    0%   { transform: translateY(0) scale(0.5);   opacity: 0; }
    20%  { opacity: 1; }
    100% { transform: translateY(-260px) scale(1.2); opacity: 0; }
}

.contenedor-texto {
    background: none;
    padding: 1.5rem;
    border: 4px dashed rgb(0, 159, 96);
}

.texto-cabecera {
    margin-bottom: 1rem;
    color: rgb(182, 214, 0);
    text-transform: uppercase;
    font-weight: 700;
}

.contenedor-texto h2 {
    letter-spacing: 3px;
    line-height: 1.5;
    color: rgb(0, 214, 129);
    margin-bottom: 1rem;
    animation: brillar 3s ease-in-out infinite;
}

.contenedor-texto .descripcion {
    margin-bottom: 1rem;
    color: rgb(66, 167, 110);
}

.opciones {
    display:flex;
    gap: 1rem;
    flex: wrap;
    margin-bottom: 1rem;
}

.boton-intro {
    text-decoration: none;
    color: rgb(0, 159, 96);
    border: 2px solid rgb(0, 159, 96);
    padding: 0.6rem;
    transition: all 0.15s;
    font-weight: 600;
}
.boton-intro:hover {
    background: rgb(0, 159, 96);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 5px rgb(0, 159, 96);
}

@media (max-width: 785px) {
    #intro div.contenedor {
    grid-template-columns: 1fr;
    text-align: center;
    }
    .opciones {
        justify-content: center;
    }
}

.fecha-salida {
    color: rgb(182, 214, 0);
    font-size: 0.8rem;
    font-weight: 600;
    opacity: 0.6;
    animation: parpadeo 3s ease-in-out infinite;
}

/* INFORMACIÓN */

.informacion {
    border-bottom: 2px solid rgb(94, 199, 34);
    padding: 1rem;
    position: relative;
}

.info h1 {
    text-align: center;
    color: rgb(0, 159, 96);
    padding: 2rem 0;
}

h1 span {
    font-family: Espacio;
    color: rgb(94, 199, 34);
    letter-spacing: 3px;
}

.info-grid-wrap {
    display: grid;
    grid-template-columns: 3fr 1fr;
    grid-template-areas: "cards" "cohete";
    align-items: center;
    justify-content: space-between;
    padding-bottom: 2rem;
    gap: 1rem;
    margin-left: 10vh;
    margin-right: 10vh;
}

.cards-wrap {
    gap: 1rem;
    grid-area: "cards";
    display: grid;
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 1fr 1fr 1fr;
    align-items: center;
    justify-content: space-evenly;
    justify-self: center;
    height:inherit;
}

.info-card h3{
    color: rgb(67, 164, 10);
    margin-bottom: 0.7rem;
}

.info-card {
    border: 4px dashed rgb(94, 199, 34);
    background: rgb(249, 255, 216);
    padding: 1rem;
    border-radius: 4px;
    position: relative;
    transition: transform 0.2s ease;
}

.xd {
    display: flex;
    flex: row nowrap;
    align-items: center;
    justify-content: space-between;
}

.info-icono img {
    width: 48px;
    height: 48px;
    image-rendering: pixelated; 
    image-rendering: crisp-edges;
    justify-self: end;
    margin-right: 10px;
}

.info-card:hover {
    transform: translateY(-4px);
}

.info-icono {
    font-size: 1.5rem;
    margin-bottom: 0.75rem;
    display: block;
    animation: flotar 3s ease-in-out infinite;
}

.gift-wrap-cohete {
    justify-self: end;
}

.gift-cohete {
    grid-area: "cohete";
    width: 256px; height: 256px; background-size: cover; animation: playFrames256 2s steps(4) infinite; image-rendering: pixelated; image-rendering: crisp-edges; background-image: url(/assets/cohete.PNG);
}

.cards-wrap p {
    line-height: 1.3;
}

@media (max-width: 785px) {
    .info-grid-wrap {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding-bottom: 1rem;
    }
    .cards-wrap {
    grid-template-columns: 1fr 1fr;
    text-align: center;
    }
    .gift-wrap-cohete {
        justify-self: center;
        padding: 2rem 0;
    }
}

@media (max-width: 600px) {
        .info-grid-wrap {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .cards-wrap {
        grid-template-columns: 1fr;
        text-align: center;
    }
    .gift-wrap-cohete {
        justify-self: center;
        padding: 2rem 0;
    }
}

/* CONTENEDOR FINAL */
.final {
    position: relative;
    border-bottom: 2px solid rgb(94, 199, 34);
}

.contenedor-final {
    border: 4px dashed rgb(0, 159, 96);
    margin: 2rem;
    max-width: 1000px;
    padding:6rem;
    text-align: center;
    text-decoration: none;
    line-height: 1.5;
    margin: 3rem auto;
    border-radius: 10px;
}

.contenedor-final h2 {
    padding-bottom: 1rem;
    font-size: 35px;
    letter-spacing: 3px;
    line-height: 1.5;
    color: rgb(0, 214, 129);
    animation: brillar 3s ease-in-out infinite;
}
.contenedor-final p {
    padding-bottom: 2rem;
    text-transform: uppercase;
    font-weight: 600;
    color: rgb(182, 214, 0);
}
.contenedor-final a {
    text-decoration: none;
    color: rgb(0, 159, 96);
    border: 2px solid rgb(0, 159, 96);
    padding: 0.6rem;
    transition: all 0.15s;
    font-weight: 600;
}

.contenedor-final a:hover {
    background: rgb(0, 159, 96);
    color: white;
    font-weight: 700;
    box-shadow: 0 0 5px rgb(0, 159, 96);
}

/* FOOTER */
.pie {
    text-align: center;
    padding: 2rem;
}

.pie p {
    text-transform: uppercase;
    font-weight: 500;
    color: rgb(66, 137, 107);
}
.pie span {
    font-family: "Espacio";
    letter-spacing: 3px;
    margin: 0 1rem;
    color: rgba(94, 199, 34);
    font-size: 20px;
}

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


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

@keyframes playFrames256 {
    from {background-position: 0px;}
    to {background-position: -1024px;}
}

@keyframes parpadeo {
    0%, 100% {opacity: 1;}
    50% {opacity: 0.5;}
}

@keyframes brillar {
    0%, 100% {text-shadow: 0 0 5px rgb(0, 214, 129, 0.2)}
    50% {text-shadow: 0 0 12px rgb(0, 214, 129, 0.5), 0 0 20px rgb(0, 214, 129, 0.2)} 
}

@keyframes flotar {
    0%, 100% { transform: translateY(0); }
    50%       { transform: translateY(-6px); }
}