@import url('https://fonts.googleapis.com/css2?family=Poppins:ital,wght@0,100;0,200;0,300;0,400;0,500;0,600;0,700;0,800;0,900;1,100;1,200;1,300;1,400;1,500;1,600;1,700;1,800;1,900&display=swap');

body {
    font-family: "Poppins", sans-serif;
    margin: 0;
}

/*?------HEADER---------*/

nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    align-items: center;
    height: 100%;
}

nav ul li {
    margin: 0 20px;
    display: inline-block;
    position: relative;
}

nav ul li a {
    text-decoration: none;
    color: #ffffff;
    border: none;
    padding: 8px 16px;
    display: inline-block;
    position: relative;
    transition: color 0.3s;
    font-size: 1.1em;
}

nav ul li a::after {
    content: "";
    display: block;
    height: 3px;
    width: 0;
    background: #ffffff;
    border-radius: 2px;
    transition: width 0.3s;
    position: absolute;
    left: 0;
    bottom: 0;
}

nav ul li a:hover {
    color: #ffffff;
    background: rgba(255, 255, 255, 0.04);
}

nav ul li a:hover::after {
    width: 100%;
}

nav {
   background-color: #292929;
    padding: 0 40px;
    margin: 0;
    font-size: 1em;
    height: 80px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

nav img {
    height: 48px;
    margin-right: 20px;
}

/*?------MAIN---------*/
main {
    text-align: center;
    width: auto;
}

.hero {
    position: relative;
    background-image: url(../img/fondo-teclado.jpg);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 20px;
    max-width: 2000px;
    height: 500px;
    color: #ffffff;
    text-align: center;
    overflow: hidden;
}

.hero::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.55);
    z-index: 1;
}

.hero > * {
    position: relative;
    z-index: 2;
}

.hero h1 {
    font-size: 7em;
    margin: 0;
    padding: 20px 0;
}

.hero p {
    font-size: 3em;
}

.hero img {
    height: 0em;
    width: 10em;
    margin-bottom: 5px;
}

.objetivo-flex {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 30px;
}

.objetivo-texto {
    max-width: 700px;
    text-align: left;
    margin: 20px;
}

.objetivo img {
    width: 250px;
    height: auto;
}

.seccion-info div {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    justify-content: center;
    margin-top: 30px;
    color: black;
}

.seccion-info h2 {
    font-size: 2.3em;
    margin: 10px 0;
    color: #000000;
    text-align: center;
    margin: 20px 0;
}

.seccion-info div div {
    background: #ffffff;
    border-radius: 10px;
    border: 2px solid #000000;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.07);
    padding: 10px;
    flex: 1 1 220px;
    max-width: 230px;
    min-width: 150px;
    text-align: center;
    transition: transform 0.2s;
}

.info-container div:hover {
    transform: translateY(-6px) scale(1.03);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.12);
}

.info-container img {
    width: 180px;
    height: 180px;
    margin: 0;
}

.list-group {
    max-width: 200px;
    margin: 20px;
}

@media (max-width: 800px) {
    nav {
        flex-direction: column;
        align-items: center;
        padding: 10px 0;
        height: auto;
    }

    nav ul {
        flex-direction: column;
        align-items: center;
        width: 100%;
        padding: 0;
    }

    nav ul li {
        margin: 10px 0;
        width: 100%;
        text-align: center;
    }

    nav ul li a {
        display: block;
        width: 100%;
        padding: 12px 0;
        font-size: 1.1em;
    }

    .objetivo-flex {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 10px;
    }

    .objetivo-texto {
        max-width: 100%;
        margin: 10px 0;
        text-align: center;
    }

    .hero {
        max-width: 100%;
        width: 100%;
        height: auto;
        padding: 20px 5px;
    }

    .hero h1 {
        font-size: 1.5em;
        padding: 8px 0;
    }

    .hero p {
        font-size: 1em;
    }

    .info-container {
        flex-direction: column;
        align-items: center;
    }

    .seccion-info img {
        width: 70px;
        height: 70px;
    }

    .boton-inicio {
        position: fixed;
        right: 16px;
        bottom: 16px;
        left: auto;
        width: auto;
        margin: 0;
        justify-content: center;
        padding: 8px;
        background: none;
        z-index: 1000;
    }

    .boton-inicio img {
        width: 24px;
        height: 24px;
    }
}

.boton-inicio {
    position: fixed;
    right: 30px;
    bottom: 30px;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    transition: background 0.3s, transform 0.2s;
    border: none;
}

.boton-inicio:hover {
    transform: scale(1.1);
}

.boton-inicio img {
    width: 30px;
    height: 30px;
    display: block;
    margin: 0;
}

/*?------FOOTER---------*/
footer {
    width: 100%;
    position: relative;
    text-align: center;
    padding: 20px 0;
    background-color: #292929;
    color: #fff;
    font-size: 1em;
    margin-top: 40px;
}

footer img {
    max-width: 50px;
    height: auto;
    margin: 0 8px;
}

footer img:hover {
    text-decoration: underline;
}
