@import url('https://fonts.googleapis.com/css2?family=Junge&family=Oswald:wght@200..700&display=swap');
:root{
    --letraBarra: rgb(228, 145, 201);
    --fondo: rgb(21, 23, 61);
    --moradito:rgb(152, 37, 152);
    --fonBody: rgb(241, 233, 233);
}
.nocturno{
    --letraBarra: rgb(242, 97, 63);
    --fondo: rgb(12, 12, 12);
    --moradito:rgb(72, 30, 20);
    --fonBody: rgb(255, 244, 183);
}

#loader{
    position: fixed;
    inset: 0;
    background: var(--fonBody); /* o el color que quieras */
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 3000;
}
.loader {
    position: relative;
    width: 64px;
    height: 64px;
    background-color: rgba(0, 0, 0, 0.5);
    transform: rotate(45deg);
    overflow: hidden;
  }
  .loader:after{
    content: '';
    position: absolute;
    inset: 8px;
    margin: auto;
    background: #222b32;
  }
  .loader:before{
    content: '';
    position: absolute;
    inset: -15px;
    margin: auto;
    background: #de3500;
    animation: diamondLoader 2s linear infinite;
  }
  @keyframes diamondLoader {
    0%  ,10% {
      transform: translate(-64px , -64px) rotate(-45deg)
    }
    90% , 100% {
      transform: translate(0px , 0px) rotate(-45deg)
    }
  }

body{
    margin: 0%;
    background-color: var(--fonBody);
}
p{
    text-align: justify;
}
#fondo{
    background-image: url("https://www.profesionalreview.com/wp-content/uploads/2023/06/inteligencia-artificial-hardware.jpg");
    height: 340px;
    background-size: cover;
    background-repeat: no-repeat;
    position: relative;
    overflow: hidden;
}
#fondo::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.06) 55%,
        rgb(241, 233, 233) 100%
    );
}
.nocturno #fondo::after{
    content: "";
    position: absolute;
    left: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(
        to bottom,
        rgba(255,255,255,0) 40%,
        rgba(255,255,255,0.06) 55%,
        rgb(255, 244, 183) 100%
    );
}
#cuerpo{
  margin-left: 65px;
  margin-right: 80px;
}
#contenido{
    margin: 35px;
    margin-left: 40px;
    margin-right: 40px;
    display: flex;
    gap: 40px;
    align-items: center;
    flex-wrap: nowrap;
    flex-direction: row;
}
.titulo{
    font-family: "Oswald", sans-serif;
    font-size: 85px;
    justify-self: center;
    color: var(--fondo);
    margin-top: -90px;
    position: relative;
    bottom: 37px;
    margin: 10px;
    margin-bottom: 40px;
}
.h1Gene{
    font-family: "Junge", cursive;
    font-size: 50px;
    color: var(--moradito);
}
.pGeneral{
    margin: 23px;
    text-align: justify;
    font-size: 25px;
    color: var(--fondo);
}
#barra{
    background-color: var(--fondo);
    width: 100%;
    height: 60px;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    position: fixed;
    top: 0;
    bottom: 0;
    padding: 15px 20px;
    z-index: 1000;
    opacity: 85%;
    justify-content: space-between;
}
.menu a{
    color: var(--letraBarra);
    text-decoration: none;
    margin-left: 20px;
}
.boton{
    display: none;
    font-size: 28px;
    color: var(--letraBarra);
    cursor: pointer;
}
#modo{
    font-size: 30px;
    padding: 10px 15px;
    cursor: pointer;
    background: none;
    border: 2px solid transparent;
    border-radius: 10px;
}
a{
    color: var(--letraBarra);
    margin: 25px;
    font-family: "Junge", cursive;
    font-size: 24px;
    text-decoration: none;
    transition: 0.2s;
    border-radius: 5px;
    font-weight: 600;
}
a:hover{
    box-shadow: 0 0 16px rgb(108, 253, 229);
    transform: scale(1.1);
}
.foto{
    display: inline-block;
    padding: 4px;
    border-radius: 15px;
    background: linear-gradient(
        270deg,
        rgb(1, 250, 1),
        rgb(80, 240, 115),
        rgb(0, 255, 221),
        rgb(20, 23, 243),
        rgb(124, 17, 247),
        rgb(241, 11, 241),
        rgb(241, 11, 241),
        rgb(124, 17, 247),
        rgb(20, 23, 243),
        rgb(0, 255, 221),
        rgb(80, 240, 115),
        rgb(1, 250, 1)
    );
    background-size: 200% 200%;
    animation: moverColor 5s linear infinite;
}
.nocturno .foto{
    display: inline-block;
    padding: 4px;
    border-radius: 15px;
    background: linear-gradient(
        270deg,
        rgb(250, 1, 1),
        rgb(238, 164, 4),
        rgb(244, 248, 8),
        rgb(146, 243, 20),
        rgb(146, 243, 20),
        rgb(244, 248, 8),
        rgb(238, 164, 4),
        rgb(250, 18, 1)
    );
    background-size: 200% 200%;
    animation: moverColor 5s linear infinite;
}
.foto img{
    display: block;
    border-radius: 21px;
    width: 417px;
    background-color: aliceblue;
}
@keyframes moverColor{
    from{
        background-position: 0% 0%;
    }
    to{
        background-position: 200% 0%;
    }
}
.mancha{
    border-radius: 300px 5px 40px 10px;
}
.piePag{
    width: 100%;
    height: 50px;
    position: relative;
    bottom: -246px;
    background-color: var(--fondo);
    color: var(--letraBarra);
    display:flex;
    justify-content:space-around;
    align-items:center;
}
.sub{
    margin-top: 0;
}
@media(max-width:768px){
    #loader{
        position: fixed;
        inset: 0;
        background: var(--fonBody);
        display: flex;
        justify-content: center;
        align-items: center;
        z-index: 9999; /* más alto que todo */
    }
    .menu{
        display: none;
        flex-direction: column;
        position: absolute;
        top: 60px;
        right: 0;
        background: var(--fondo);
        width: 200px;
        padding: 20px;
    }
    .menu.active{
        display: flex;
    }
    .boton{
        display: block;
        color: var(--letraBarra);
        margin: 27px;
        font-size: 27px;
        margin-left: 13px;
    }
    #contenido{
        margin: 2px;
        flex-direction: column;
    }
    .foto img{
        width: 250px;
    }
    #barra{
        height: 30px;
    }
}