@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@400;700;900&display=swap');

body {
    background-color: black;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-height: 100vh;
}

.footer {
    background-color: #000000;
    box-shadow: 1em 0 2em hsla(219, 48%, 14%, 0.548);
    color: #ffffff;
    padding: 1em;
    display: flex;
    align-content: flex-end;
    flex-wrap: wrap;
    position: relative;
    bottom: 0;
}

.footerInicio {
    background-color: #000000;
    box-shadow: 1em 0 2em hsla(219, 48%, 14%, 0.548);
    color: #ffffff;
    padding: 1em;
    display: flex;
    align-content: flex-end;
    flex-wrap: wrap;
    position: absolute;
    bottom: 0;
    width: 100%;
}

.footerContacto {
    background-color: #000000;
    box-shadow: 1em 0 2em hsla(219, 48%, 14%, 0.548);
    color: #ffffff;
    padding: 1em;
    display: flex;
    align-content: flex-end;
    flex-wrap: wrap;
    position: relative;
    bottom: 0;
}

.textFooter {
    max-width: 75em;
    margin: 0 auto;
}

ul {
    list-style: none;
    padding-left: 0;
}

a {
    text-decoration: none;
    color: #f1f1f1;
    font-weight: bold;
    font-size: 18px;
}

img {
    width: 100%;
}

.cajaAcam2 {
    display: flex;
    margin: 3em 5em 0em 5em;
}

#boton-nav {
    background-color: transparent;
    border: none;
}

#botonNav img {
    width: 100%;
}

/* Contenedor de la navegacion */

.contenedora {
    position: relative;
}

.menu-btn,
.menu-fondo {
    border-radius: 0.5em;
    padding: 1em;
    width: 3.5em;
    aspect-ratio: 1;
    cursor: pointer;
    transition: all 0.3s ease-out;
    position: fixed;
    top: 1em;
    right: 1em;
    z-index: 9000;
}

.menu-fondo {
    background: hsla(219, 48%, 14%, 0.548);
    ;
    z-index: 8000;
}

.menuVisible .menu-fondo {
    background: hsla(219, 48%, 14%, 0.548);
    ;
    width: 20vh;
    height: 100vh;
    inset: 0 0 auto auto;
    border-radius: 0em;
}

.menu-btn .btn-linea {
    width: 25px;
    height: 3px;
    margin: 4px 0 4px 0;
    background: #ffffff;
    transition: all 0.3s ease-out;
    position: relative;
    z-index: 9000;
}

.menuVisible .menu-btn .btn-linea {
    transform: rotate(180deg);
}

.menuVisible .menu-btn .btn-linea:nth-child(1) {
    transform: rotate(45deg) translate(4px, 6px);
}

.menuVisible .menu-btn .btn-linea:nth-child(2) {
    opacity: 0;
}

.menuVisible .menu-btn .btn-linea:nth-child(3) {
    transform: rotate(-45deg) translate(4px, -6px);
}

.navegacion {
    padding: 1em 0;
    opacity: 0;
    visibility: hidden;
    position: absolute;
    right: 0.25em;
    top: calc(100% + 4rem);
    z-index: 9999;
    transition: all .5s ease;
}

.menuVisible .navegacion {
    visibility: visible;
    opacity: 100%;
    transition: all .5s .2s ease;
}

.navegacion a {
    display: block;
    color: #ffffff;
    margin-block-end: 0.5em;
    width: min(40vw, 15rem);
    text-align: center;
    padding: 1em 2em 1em 2em;
    text-decoration: none;
}

.navegacion a:hover {
    background-color: #ffffff;
    color: hsla(246, 42%, 14%, 0.75);
    transition: all .3s;
}

/* Menu - contiene la parte superior */
.menu {
    max-width: 100%;
    margin: auto;
    padding: 0.5em;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    cursor: pointer;
    box-shadow: 0 1em 2em hsla(219, 48%, 14%, 0.548);
    position: sticky;
    top: 0;
    z-index: 8000;
    background-color: black;
}

/* Logo */
.logo {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-block: 0.25em;
}

.logoNombre {
    color: #ffffff;
    font-weight: bold;
    font-size: 1em;
}

.logoImg {
    display: flex;
    color: #ffffff;
    width: 10vh;
    cursor: pointer;
    margin-right: 0.75em;
}

/* Clase para que aparezca el contenido */
.resposive--dinamico {
    display: block;
}

/* Contenedor Banner */
.universo {
    background-image: linear-gradient(to bottom, black 0%, rgba(0, 0, 0, 0.62)50%, black 100%), url('../imagenes/universo.jpeg');
    background-repeat: no-repeat;
    background-size: cover;
    background-position: center;
}

.contenedorUniverso {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.contenedorUniversoContacto {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.contenedorUniversoInicio {
    max-width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

.contenedorUniversoInfo {
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    height: auto;
}

/* Planetas- animacion */
.planetas {
    width: 100%;
    height: 100%;
    /* position: relative; */
}

.planetas img {
    position: absolute;
    max-width: 45vh;
    right: 0;
    left: 0;
    bottom: 0;
    top: 0;
    margin: auto;
}

.odd {
    animation: rotacionImpar 10s linear infinite;
}

.even {
    animation: rotacionPar 10s linear infinite;
}

.sol {
    animation: rotacionSol 50s linear infinite;
}

@keyframes rotacionSol {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes rotacionImpar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(-360deg);
    }
}

@keyframes rotacionPar {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Spinner */
.spiner {
    display: flex;
    position: relative;
    margin: auto;
    width: 100%;
    height: 100vh;
}

.spinnerDiv {
    position: absolute;
    left: 0;
    top: 0;
    bottom: 0;
    right: 0;
    margin: auto;
    border: 4px solid hsl(219, 47%, 14%);
    opacity: 1;
    border-radius: 50%;
    animation: spiner 1s cubic-bezier(0, 0.2, 0.8, 1) infinite;
}

.spinnerDiv:nth-child(2) {
    animation-delay: -0.5s;
}

@keyframes spiner {
    0% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    4.9% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 0;
    }

    5% {
        top: 36px;
        left: 36px;
        width: 0;
        height: 0;
        opacity: 1;
    }

    100% {
        top: 0px;
        left: 0px;
        width: 72px;
        height: 72px;
        opacity: 0;
    }
}

.footer {
    font-size: 0.8em;
}

@media screen and (min-width: 768px) {

    /*NAV------------*/

    #nav-desplegable ul {
        display: flex;
        justify-content: space-between;
        gap: 0.5em;
    }

    #boton-nav {
        display: none;
    }

    .menuVisible .menu-fondo {
        width: 45vw;
        height: 200vw;
    }

    .menu-btn,
    .menu-fondo {
        margin: 1em 1em;
        width: 4.5em;
    }

    .menu-fondo {
        right: 1.5em;
        top: 0.75em;
    }

    .navegacion {
        right: 2em;
    }

    .navegacion a {
        padding: 1em 1em 1em 0.5em;
        font-size: 2em;
    }

    /* Menu - contiene la parte superior */

    .menu {
        padding: 1em;
    }

    .logoNombre {
        font-size: 1.5em;
    }

    .logoImg {
        margin-right: 1em;
    }

    .contenedorUniverso {
        height: auto;
    }

    .planetas img {
        max-width: 55vh;
    }

    .footer {
        font-size: 1.25em;
        padding: 1.5em 3em;
        /* position: absolute; */
        /* bottom: 0; */
    }
}

@media screen and (min-width: 1502px) {
    
    .menu {
        margin-inline: auto;
        flex-wrap: nowrap;
        margin: 0 auto;
        align-items: center;
        width: 100%;
    }

    .menu-btn {
        display: none;
    }

    .navegacion {
        display: flex;
        flex-wrap: wrap;
        justify-content: right;
        align-items: center;
        margin-top: 0.5em;
        position: inherit;
        padding-top: 0;
        width: 100%;
        gap: 20px;
        transition: none;
        visibility: visible;
        opacity: 1;
    }

    .navegacion a {
        padding: 0.35em 1.2em;
        font-size: 1.5em;
        width: auto;
        border: solid 3px hsl(240, 14%, 89%);
        padding: 0.35em 1em;
        background-color: hsl(219, 47%, 14%);
        border-radius: 0.25em;
        box-shadow: 2px 1px 10px hsl(246, 12%, 51%, 0.75);
    }

    .navegacion a:hover {
        border: solid 3px hsl(240, 14%, 89%);
        padding: 0.35em 1em;
        background-color: hsl(219, 32%, 23%);
        border-radius: 0.25em;
        box-shadow: 4px 3px 6px hsl(246, 12%, 51%);
    }

    /*NAV
    -------------------------------------*/

    #nav-desplegable ul {
        margin: 0 2em;
    }

    .navLi {
        min-width: 4em;
        margin: 0.25em;
    }

    .navLi:last-of-type {
        width: auto;
    }

    .navLi:last-of-type:hover {
        background-color: transparent;
    }

    .contenedorUniversoContacto {
        width: auto;
        height: 65.5vh;
    }

    .contenedorUniverso {
        width: auto;
        height: auto;
    }

    .contenedorUniversoInicio {
        width: auto;
        height: 65.5vh;
    }

    .contenedorUniversoInfo {
        width: auto;
        height: 65.5vh;
    }

    .footer {
        position: relative;
        bottom: 0;
    }

    .footerContacto {
        position: relative;
        margin-top: 3em;
        width: 100%;
        bottom: 0;
    }

}