/* Estilos generales */

:root {
    --green-color: #3dc167;
    --purple-color: #573082;
    --orange-color: #e1912f;
    --rosa-color: #e71d73;
    --aqua-color: #1a8cb7;
    --light-orange-color: #e8be53;
    --light-blue-color: #6dd3d9;
    --light-aqua-color: #4ea2ba; /*old footer color*/
    --footer-color: #3dc167;
    font-family: "Jost", sans-serif;
    font-weight: normal;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.icon-social span {
    font-family: "Jost", sans-serif;
}

.main-logo img {
    width: 90px;
    height: 90px;
}

.small-logo img {
    height: 40px;
    width: 40px;
    object-fit: cover;
}
/* Body por defecto color aqua
    header en movil por defecto transparente y en escritorio por defecto aqua
*/

input {
    font-family: "Jost", sans-serif;
    font-size: 20px;
    padding: 5px 15px;
    background-color: white;
    border: none;
    border-radius: 20px;
    margin-bottom: 20px;
}

body {
    background: var(--aqua-color);
    transition: background 1s ease;
}

.landing,
.description,
.features,
.info,
.cistella .form {
    display: flex;
    height: 100vh;
    align-items: center;
    justify-content: center;
}

/* Header */

main {
    margin-top: 0;
}

.main-header {
    background-color: transparent;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100px;
    display: flex;
    justify-content: space-around;
    align-items: center;
    transition: background 1s ease;
    z-index: 100;
}

/*Navegador*/

.main-nav {
    display: flex;
    position: fixed;
    top: 0;
    left: 0;
    height: 100vh;
    width: 100%;
    margin-left: -100%;
    transition: all 0.2s linear;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 100;
}

.main-nav.show {
    margin-left: 0;
}

.nav-links {
    background-color: rgb(255, 255, 255);
    display: flex;
    flex-direction: column;
    width: 70%;
    height: 100%;
    align-items: center;
    justify-content: flex-start;
}
.link-item {
    margin-top: 2rem;
    color: #444444;
    text-decoration: none;
    font-weight: bold;
    position: relative;
}

.link-item::after {
    position: absolute;
    content: "";
    bottom: -5px;
    left: 0;
    width: 0%;
    height: 3px;
    transition: 0.3s ease all;
}

.link-item:hover::after {
    width: 100%;
}

.button-menu {
    z-index: 200;
    width: 40px;
    height: 40px;
    border: none;
    display: flex;
    background: none;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}

.button-menu span {
    width: 37px;
    height: 4px;
    margin-bottom: 5px;
    position: relative;
    background: white; /*se cambia color de barras de menu*/
    border-radius: 3px;
    transform-origin: 4px 0px;
    transition: all 0.2s linear;
}

.button-menu.close span {
    opacity: 1;
    transform: rotate(45deg) translate(0px, 0px);
    background: black;
}

.button-menu.close span:nth-child(2) {
    transform: rotate(-45deg) translate(-10px, 5px);
    background: black;
}

.button-menu.close span:nth-child(3) {
    display: none;
}

/* LANDING */

.landing {
    display: flex;
    justify-content: center;
    align-items: flex-start;
}
.landing > img {
    height: 180px;
    width: 180px;
}

.landing > video {
    height: 100%;
    width: 100%;
    object-fit: cover;
}

/* SECCION INFO  */

.info {
    display: flex;
    flex-direction: column;
}

.info > .info-element-container {
    border-bottom-color: var(--purple-color);
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 1rem;
}

.info > .info-element-container > img {
    height: 150px;
    width: 120;
}

.info > .info-element-container > h2,
p {
    color: #ffffff;
    text-align: center;
}
.info > .info-element-container > h2 {
    text-align: center;
}

/* carrusel / seccion description */

.description {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

/*  estilo de logos de primer carrusel */

.card > img {
    align-items: center;
    height: 250px;
    width: 375px;
    position: absolute;
    top: 90px;
}

.card p {
    height: 15px;
    width: auto;
    text-align: justify;
    bottom: 90px;
    margin-left: 20px;
    margin-right: 20px;
    margin-top: 90px;
}

.carousel {
    display: flex;
    justify-content: center;
    width: 95%;
    height: 90%;
    overflow: hidden;
    margin: auto;
    position: relative;
}

.carousel ul.carousel-container {
    display: block;
}
.carousel ul.carousel-container li {
    width: 100%;
    height: 100%;
    list-style: none;
    opacity: 0;
    position: absolute;
    left: 0;
    top: 0;
    transition: opacity 0.5s, z-index 0.5s;
}

.carousel ul.carousel-container li.active,
.carousel ul.carousel-container li.initial {
    opacity: 1;
    position: relative;
    z-index: 2;
}

.carousel ul.carousel-buttons-container {
    position: absolute;
    margin: auto;
    bottom: 0%;
    list-style: none;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 9999;
}

.carousel ul.carousel-buttons-container > .carousel-button {
    display: flex;
    position: relative;
    padding: 0 8%;
    align-items: center;
    justify-content: center;
}
.carousel ul.carousel-buttons-container > .carousel-button :hover {
    cursor: pointer;
}

.carousel ul.carousel-buttons-container > .carousel-button > .button {
    border-radius: 50%;
    width: 1rem;
    height: 1rem;
    background: white;
    color: white;
    transition: background 200ms ease;
    cursor: pointer;
}
.carousel ul.carousel-buttons-container > .carousel-button > .button:hover {
    cursor: pointer;
}
.carousel ul.carousel-buttons-container > .carousel-button > .button.active {
    background: rgb(169, 169, 169);
}

/* seccion cistella */

.cistella > .cistella-element-container {
    border-bottom-color: var(--purple-color);
    display: flex;
    flex-grow: 1;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    padding: 10rem 2rem;
}

.cistella img {
    width: 350px;
}

.cistella > .cistella-element-container > h2,
p {
    color: #ffffff;
    align-content: center;
    text-align: center;
}

.cistella > .cistella-element-container > p {
    margin-top: 10px;
    text-align: justify;
}

.features {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.card2 {
    height: 100%;
    width: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}

.card2 > img {
    margin-top: auto;
    position: absolute;
    bottom: 90px;
    height: 500px;
    width: 500px;
}
.card2 > p {
    height: 15px;
    width: auto;
    text-align: justify;
    position: relative;
    margin-top: 40px;
    margin-left: 20px;
    margin-right: 20px;
    margin-bottom: 40px;
}

.card2 > h2 {
    height: 15px;
    width: auto;
    text-align: justify;
    position: relative;
    margin-top: 220px;
    margin-bottom: -10px;
    color: white;
}

.footer {
    background-color: var(--footer-color);
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.footer > .covid {
    background-color: black;
    color: white;
    text-align: center;
    padding: 1.3rem;
    width: 100%;
}

.footer > .logo-uni {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    padding: 0.5rem;
}
.footer > .logo-uni > img {
    height: 140px;
    width: 140px;
    object-fit: contain;
}
.footer > .logo-uni > svg {
    cursor: pointer;
}

.footer > .logos {
    width: 100%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-direction: row;
    flex-wrap: wrap;
    padding: 2rem 2rem 0 2rem;
}

.footer > .logos > img {
    height: 20%;
    width: 20%;
    object-fit: contain;
}

/* /////////REDES SOCIALES//////////// */

.container-bar {
    width: 100%;
    max-width: 50px;
    position: fixed;
    left: 0;
    top: 25%;
}
.container-bar a {
    display: block;
    width: 50px;
    height: 50px;
    line-height: 50px;
    text-align: center;
    text-decoration: none;
    font-size: 18px;
    position: relative;
    transition: all 500ms ease;
    color: #fff;
}
.container-bar a:hover {
    background: transparent;
}
.container-bar .fa-facebook {
    background: transparent;
    border-radius: 0px 5px 0px 0px;
}
.container-bar .fa-youtube {
    background: transparent;
}
.container-bar .fa-twitter {
    background: transparent;
}
.container-bar .fa-linkedin {
    background: transparent;
}
.container-bar .fa-instagram {
    background: transparent;
    border-radius: 0px 0px 5px 0px;
}
.container-bar #title {
    position: absolute;
    background: transparent;
    padding: 0px 8px;
    height: 30px;
    line-height: 30px;
    text-align: center;
    border-radius: 3px;
    font-size: 15px;
    top: 12px;
    left: 0px;
    transition: all 500ms ease;
    opacity: 0;
    visibility: hidden;
    z-index: -1;
}
.container-bar a:hover #title {
    opacity: 1;
    visibility: visible;
    left: 64px;
}
.container-bar #title:after {
    position: absolute;
    content: "";
    border-left: 7px solid transparent;
    border-right: 6px solid white;
    border-top: 7px solid transparent;
    border-bottom: 7px solid transparent;
    right: 100%;
    top: 8px;
}
#btn-social {
    display: none;
}
.fa-share-alt {
    cursor: pointer;
    transition: all 0.4s;
    font-size: 20px;
    margin-bottom: 5px;
    display: inline-block;
    transform: rotate(180deg);
    color: white;
}
#btn-social:checked ~ .fa-share-alt {
    transform: rotate(0deg);
}
.icon-social {
    transition: all 0.4s;
    transform: translateX(0%);
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0.3);
}
#btn-social:checked ~ .icon-social {
    transform: translateX(-100%);
    box-shadow: 0px 1px 10px rgba(0, 0, 0, 0);
}

/* Clases de colores para la secciones en el scroll */

.color-info {
    background: var(--orange-color);
}
.color-description {
    background: var(--purple-color);
}
.color-description button span {
    background: white;
}
.color-cistella {
    background: var(--rosa-color);
}
.color-features {
    background: var(--green-color);
}

@media screen and (min-width: 768px) {
    .small-logo {
        position: absolute;
        right: 0;
        top: 0;
        margin: 20px;
    }
    main {
        margin-top: 0;
    }
    .color-landing {
        background: var(--aqua-color);
    }

    .main-header {
        background: var(--aqua-color);
        position: relative;
        padding-top: 2rem;
        display: flex;
        flex-direction: column;
        align-items: center;
        height: 100%;
    }
    .button-menu {
        display: none;
    }

    .nav-links a {
        color: white;
    }

    .main-nav {
        background: none;
        position: relative;
        display: flex;
        width: 100%;
        margin: 0;
        padding: 1rem 0;
        height: 100%;
    }

    .nav-links {
        width: 100%;
        flex-direction: row;
        flex-wrap: wrap;
        align-items: center;
        justify-content: center;
        background-color: transparent;
        margin-left: 35px;
    }

    .card > img {
        width: 70%;
        height: auto;
        position: relative;
        top: 0;
        /* margin-left: auto;
        position: absolute;
        margin-bottom: 150px; */
    }

    .card p {
        width: auto;
        text-align: justify;
        margin: 0;
        height: auto;
        bottom: 0;
        padding: 0 2rem;
        /* margin-top: 400px;
        margin-left: 120px;
        margin-right: 120px;
        margin-bottom: 100px; */
    }

    .card > h2 {
        width: auto;
        text-align: justify;
        position: relative;
        color: white;
    }

    .card2 > p {
        /* height: 15px; */
        width: auto;
        text-align: justify;
        margin: 0;
        height: auto;
        bottom: 0;
    }

    .card2 > img {
        width: 50%;
        height: auto;
        margin: 0;
        top: 0;
        /* bottom: 80px; */
        position: relative;
        /* border: 2px solid red; */
    }

    .card2 > h2 {
        margin: 0;
        width: auto;
        height: auto;
        text-align: justify;
        position: relative;
        color: white;
    }

    .cistella > .cistella-element-container > h2,
    p {
        color: #ffffff;
        text-align: center;
        margin-left: 20px;
        margin-right: 20px;
        padding: 0 2rem;
    }

    .cistella > .cistella-element-container > p {
        margin-top: 10px;
        text-align: justify;
    }

    .carousel ul.carousel-buttons-container {
        position: absolute;
        margin: auto;
        /* bottom: 10%; */
        list-style: none;
        display: flex;
        align-items: center;
        justify-content: center;
        /* z-index: 9999; */
    }

    .link-item {
        display: inline-block;
        margin-top: 0;
        margin-right: 2rem;
        margin-left: 2rem;
    }
    .landing > video {
        height: 100%;
        width: 100%;
        object-fit: cover;
    }
    .info {
        flex-direction: row;
        height: 80vh;
    }
    .info > .info-element-container:first-child {
        /*Modifica margen del primero hijo, el de la izquierda */
        margin-left: 10%;
    }
    .info > .info-element-container:nth-child(2) {
        /*Modifica margen del segundo hijo, el de la derecha */
        margin-right: 10%;
    }

    .cistella img {
        width: 100%;
        height: auto;
        margin-left: auto;
    }

    .features {
        height: 90vh;
    }
    .description {
        height: 90vh;
    }
    .carousel ul.carousel-buttons-container {
        bottom: 5%;
    }
    .footer > .covid > p {
        text-align: left;
    }
    .footer > .logo-uni > img {
        height: 230px;
        width: 230px;
        object-fit: contain;
    }
}

@media (min-width: 1200px) {
    .card img {
        width: 50%;
    }

    .card p {
        font-size: 1.4rem;
    }

    .cistella {
        height: 90vh;
    }

    .cistella img {
        align-self: center;
    }

    .cistella a {
        align-content: center;
        width: 500px;
        height: 400px;
    }

    .cistella p {
        margin-left: 400px;
        margin-right: 400px;
        text-align: justify;
    }

    .card2 {
        height: 600px;
    }
    .card2 img {
        height: 100%;
        width: auto;

        /* position: absolute; */
    }

    .features {
        height: 100vh;
    }
    .description {
        height: 120vh;
    }
    .carousel ul.carousel-buttons-container {
        bottom: 10%;
    }
}
