@import url('https://fonts.googleapis.com/css2?family=Rubik&display=swap');

body {
    overflow-x: hidden;
}

.intro {
    width: 100vw;
    height: 35vh;
    display: flex;
    justify-content: flex-end;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: url(../assets/fondo.jpg) center;
    background-size: cover;
}

.intro h1 {
    font-family: 'Rubik', sans-serif;
    font-size: 3em;
    font-weight: bold;
    margin: 1em;
    color: #fff;
    text-transform: uppercase;
}

.container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    font-family: 'Rubik', sans-serif;
    margin-block: 3rem;
    padding-top: 3rem;
}

.container a {
    text-decoration: none;
    cursor: pointer;
    margin: 0 auto;
    padding: 0 auto;
}

.container ul {
    list-style: none;
}

.container li {
    display: flex;
    align-items: center;
    margin-bottom: 1rem;
}

.container li::before {
    content: '';
    display: inline-block;
    background-image: url(../assets/iconEthernet.png);
    background-repeat: no-repeat;
    background-position: center;
    background-size: 25px;
    margin-right: 1rem;
    padding: 1rem;
}

.container h2 {
    text-align: center;
    margin: 3rem;
    font-weight: bold;
    color: #003857;
}

.container h4 {
    font-weight: bold;
    color: #003857;
    margin-top: 1.5rem;
    margin-bottom: 0.5rem;
    text-align: center;
}

.container img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 10px;
}

.container .cards {
    width: 90%;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    padding-inline: 2rem;
    gap: 2rem;
}

.container .cards .services {
    width: 220px;
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: column;
    text-align: center;
    background: #003857;
    color: #fff;
    border-radius: 50%;
    padding: 1rem;
    margin: 1rem;
    cursor: pointer;
    transition: .3s ease-in;
}

.container .cards .services i {
    font-size: 4rem;
    margin: 1rem;
}

.container .cards .services p {
    font-weight: bold;
    margin-inline: 1rem;
}

.container .cards .services:hover {
    box-shadow: 0 8px 12px rgba(0, 0, 0, 0.3);
    transition: .2s ease-out;
}

.container .contenido {
    width: 100%;
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.container .contenido .imagen {
    display: flex;
    justify-content: center;
    align-items: center;
}

.container .contenido .lista {
    padding-left: 1rem;
    margin-left: 2rem;
}

.container .group-marcas {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    margin-top: 1rem;
}

.container .marcas {
    width: 140px;
    height: 80px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #f8f9fa;
    border-radius: 10px;
    padding: 1.2rem;
    margin: 1rem;
    box-shadow: 0 3px 5px rgba(0, 0, 0, 0.2);
}

.container .marcas img {
    width: 100%;
    object-fit: cover;
    object-position: center;
    border-radius: 0;
}

@media screen and (max-width: 1000px) {
    .container .cards {
        width: 100%;
    }

    .container .contenido {
        display: grid;
        grid-template-columns: 40% 60%;
    }

    .container .contenido .lista {
        padding: 0;
    }

    .container .contenido .imagen img {
        width: 140%;
    }
}

@media screen and (max-width: 800px) {
    .intro h1 {
        font-size: 2.6em;
    }

    .container .contenido {
        grid-template-columns: 1fr;
    }

    .container .contenido .lista {
        margin-left: 0;
        margin-right: 1rem;
    }

    .container .contenido .imagen img {
        width: 85%;
        margin-bottom: 2rem;
    }
}

@media screen and (max-width: 600px) {
    .intro h1 {
        font-size: 2.5em;
    }

    .container .cards .services {
        width: 200px;
        height: 200px;
    }

    .container .cards .services i {
        font-size: 3rem;
    }

    .container .cards .services p {
        font-size: 1rem;
    }
}

@media screen and (max-width: 500px) {
    .container .cards {
        width: 100%;
        display: grid;
        grid-template-columns: 45% 55%;
        padding-inline: 0;
        gap: 0.4rem;
    }

    .container .cards .services {
        width: 180px;
        height: 180px;
        margin: 0.4rem;
    }

    .container .cards .services i {
        font-size: 2.5rem;
    }

    .container .cards .services p {
        font-size: 0.8rem;
    }

    .container .contenido .lista {
        margin-left: -1rem;
    }
}

@media screen and (max-width: 420px) {
    .intro {
        height: 28vh;
    }

    .intro h1 {
        font-size: 1.8em;
    }

    .container h2 {
        margin: 1rem;
        font-size: 1.3rem;
    }

    .container li {
        font-size: 0.9rem;
    }

    .container .cards {
        grid-template-columns: 50% 50%;
    }

    .container .marcas {
        width: 120px;
        height: 60px;
        margin: 0.6rem;
    }

    .container .cards .services {
        width: 140px;
        height: 140px;
    }

    .container .cards .services i {
        font-size: 2.2rem;
    }

    .container .cards .services p {
        font-size: 0.6rem;
    }
}