@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap');

:root {
    --primary: #ffffff;
    --secondary: #e4c590;
    --terciary: #111111;
    --hover: #d3f1df;
}

html{
    scroll-behavior: smooth;
}

* {
    margin: 0;
    box-sizing: border-box;
    font-family: "Inter", serif;
}

strong {
    color: var(--secondary);
}

#usuario {
    display: flex;
    column-gap: .5rem;
}

#logout {
    background-color: transparent;
    border: none;
    color: var(--primary);
    text-decoration: underline;
    padding: 0;
    cursor: pointer;
}

#logout:hover {
    color: var(--hover);
}

#usuario>img {
    width: 4rem;
    height: 4rem;
    border-radius: 50%;
}

#info-user {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
}

#info-user>p {
    color: var(--primary);
}

header {
    height: 75vh;
    display: flex;
    flex-direction: column;
    background-image: url(images/51600.png);
    background-size: cover;
    background-position: bottom;
    padding: 1rem;
}

header nav {
    display: flex;
    justify-content: space-evenly;
    gap: 20px;
    height: 3rem;
    align-items: center;
}

nav>a:nth-child(1) {
    font-weight: 600;
    font-size: 1.6rem;
}

nav a {
    color: var(--primary);
    text-decoration: none;
    font-size: 1.3rem;
}

nav>img {
    width: 2.5rem;
    display: none;
    cursor: pointer;
}

nav span {
    display: flex;
    column-gap: 2.5rem;
    font-weight: 300;
}

nav span a {
    font-size: 1.2rem;
}

a.button,
button.button {
    padding: 9px 17px;
    border: 2px var(--secondary) solid;
    color: var(--secondary);
    font-size: 1.1rem;
    text-decoration: none;
    font-weight: 500;
    width: fit-content;
}

a.button:hover,
button.button:hover {
    background-color: var(--hover);
    color: #000000;
}

#header-center {
    display: flex;
    flex-direction: column;
    height: 100%;
    justify-content: center;
    align-items: center;
    row-gap: 1rem;
}


#header-center p {
    color: var(--primary);
    font-weight: 300;
    font-size: 1.2rem;
}

#header-center h1 {
    font-size: 5rem;
    color: var(--primary);
}

section {
    height: 70vh;
}

#first,
#second,
#third,
#fourth,
#fifth {
    background-color: var(--terciary);
    display: flex;
    justify-content: center;
    column-gap: 5%;
}

#second {
    background-color: #000000;
}

#third {
    padding: 4rem 0px;
}

#fourth {
    column-gap: 0px;
    height: 70vh;
    padding: 2rem 0px;
}

#fifth {
    height: 70vh;
    flex-direction: column;
    row-gap: 1.5rem;
    align-items: center;
    row-gap: 3rem;
}

#first section.izquierda {
    display: flex;
    flex-direction: column;
    width: 25%;
    align-items: flex-start;
    row-gap: 1.5rem;
    justify-content: center;

    color: var(--primary);
}

.subtitulo {
    font-size: 2.6rem;
    font-weight: 600;
    color: var(--primary);
}

#first section.izquierda p,
#second section.derecha p {
    font-weight: 300;
    line-height: 1.6rem;
}

#first section.derecha {
    display: flex;
    width: 40%;
    align-items: center;
    justify-content: center;
}

#first section.derecha>a>img {
    height: 50vh;
}

#second div.izquierda {
    background-image: url(images/fesgus.jpg);
    background-position: top center;
    width: 50%;
    background-size: cover;
}

#second section.derecha {
    background-position: top center;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    row-gap: 1.5rem;
    justify-content: center;
    color: var(--primary);
    width: 50%;
    padding-right: 20%;
}

#desbloqueadas {
    display: flex;
    flex-direction: column;
    row-gap: 1.5rem;
    align-items: center;
    justify-content: center;
    height: fit-content !important;
}

.loading {
    font-size: 2rem;
    color: var(--primary);
}

.desbloqueadas {
    padding-top: 3rem;
    display: flex;
    flex-wrap: wrap;
    width: 55%;
    justify-content: space-evenly;
    row-gap: 2rem;
}

.carta {
    display: flex;
    width: 45%;
    align-items: center;
    border: 1px #ffffff1c solid;
    border-radius: 5px;
    padding: 1%;
}

.carta:hover{
    background-color: #1c1a1a;
}

.carta img {
    width: 7rem;
    cursor: pointer;
}

.info-carta {
    display: flex;
    flex-direction: column;
    width: calc(100% - 7rem);
    justify-content: center;
    height: 100%;
    row-gap: 1.5rem;
    padding-left: 1rem;
    color: var(--primary);
}

.titulo-carta {
    display: flex;
    justify-content: space-between;
}

.titulo-carta>strong {
    font-weight: 400;
    font-size: .9rem;
    min-width: fit-content;
}

.extracto {
    font-weight: 200;
    line-height: 1.5rem;
}

.edicion {
    color: var(--secondary);
}

#desbloqueadas>p {
    color: var(--primary);
    font-size: 1.3rem;
    font-weight: 300;
    padding: 2rem 0px;
}

#fourth div,
#latest-posts>div {
    width: calc(100% / 3);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

#right div,
#left div {
    height: 100%;
}

#fourth>div>div,
#center {
    width: 100%;
    display: flex;
    row-gap: 1.5rem;
    color: var(--primary);
}

#fourth>div>div>a,
#center>a {
    color: var(--secondary);
    font-size: 1.2rem;
}

#imagen-left,
#imagen-right {
    background-image: url(images/fondo1.png);
    background-size: cover;
    width: 100% !important;
    background-position: center;
}

#center {
    background-image: url(images/cronos.png);
    background-size: cover;
    background-position: center;
}

footer {
    background-image: url(images/footer.png);
    background-position: top;
    background-size: cover;
    height: 40vh;
}

#latest-posts {
    display: flex;
    justify-content: space-evenly;
    padding: 0px 20%;
}

#latest-posts>.post {
    width: 30%;
    display: flex;
    flex-direction: row;
    color: var(--primary);
}

/* este s el codigo del lightbox */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: 0.3s;
}

.lightbox img {
    max-width: 80%;
    max-height: 80%;
}

.lightbox.activo {
    opacity: 1;
    visibility: visible;
}

.close {
    position: absolute;
    top: 20px;
    right: 20px;
    color: white;
    font-size: 24px;
    text-decoration: none;
    cursor: pointer;
}

/* ////////////////////////////////////////////////// */
#menu-responsive {
    display: none;
}

#menu-responsive>a {
    color: var(--primary);
    font-size: 1.2rem;
}



@media(max-width: 1366px) {
    .desbloqueadas {
        width: 80%;
    }

    #first section.derecha>a>img {
        height: 35vh;
    }

    #first section.izquierda {
        width: 40%;
    }
}

@media(max-width: 950px) {

    #first section.derecha {
        display: none;
    }

    #first section.izquierda {
        width: 100%;
        padding: 0px 10%;
    }

    nav>a:nth-child(1),
    nav>span {
        display: none;
    }

    header>nav {
        justify-content: space-between;
        padding: 1rem 2rem;
        height: fit-content;
    }

    nav>img {
        display: block;
    }

    header {
        height: 60vh;
    }

    #menu-responsive {
        height: 200vh;
        position: fixed;
        top: 0;
        left: 0;
        background-color: #000000eb;
        width: 100vh;
        flex-direction: column;
        row-gap: 2rem;
        padding-left: 4rem;
        padding-top: 8rem;
    }

    .info-carta {
        justify-content: space-between;
        /* padding: 2% 20px; */
    }

    .carta.extracto {
        display: none;
    }

    .titulo-carta {
        flex-direction: column-reverse;
        height: 55%;
    }
}

@media(max-width: 700px) {
    div.info-carta {
        display: none;
    }

    .carta {
        justify-content: center;
        border: none;
    }

    #first>section.izquierda {
        height: fit-content !important;
        padding: 7% !important;
    }

    #second {
        flex-direction: column;
    }

    #second>div,
    #second>section {
        height: 35vh;
        width: 100% !important;
        padding-right: 7% !important;
        padding: 7%;
    }

    #second div.izquierda {
        background-position: top;
    }
    #second>section.derecha {
        height: fit-content !important;
    }

    .subtitulo {
        font-size: 2rem;
        padding: 5%;
        text-align: center;
    }

    section#desbloqueadas>p {
        padding: 7%;
        text-align: center;
        font-size: .9rem;
    }

    #fourth {
        flex-wrap: wrap;
        height: fit-content;
    }

    #center {
        order: -1;
        width: 100% !important;
        background-position: top;
        row-gap: 0px;
        height: 40vh;
    }

    #fourth>#left,
    #fourth>#right {
        width: 50%;
        height: 40vh;
        text-align: center;

    }

    #fourth>#left>div,
    #fourth>#right>div {
        row-gap: 0px;
        padding: 10% 5%;
    }

    #fifth{
        height: fit-content;
        padding: 7%;
    }

    a.button{
        margin: 0 auto;
        white-space: nowrap;
    }
    strong{
        text-align: center;
        width: 100%;
    }
}