* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Open Sans", sans-serif;
}

/* SCROLLBAR */
body::-webkit-scrollbar {
    display: none;
}

::-webkit-scrollbar {
    height: 8px;
}

::-webkit-scrollbar-track {
    background: transparent;
}

::-webkit-scrollbar-thumb {
    background-color: #623da3;
    border-radius: 8px;
}

/* BODY Y HTML */
body, html, main, nav {
    width: 100%;
}

html {
    height: 100%;
}

body {
    min-height: 100vh;
}

/* DIVISOR */
div.divisor {
    width: 100%;
    background: linear-gradient(45deg, #ab3da3, #623da3, #3d5aa3);
    margin: 28px 0;
    padding: 12px 0;
    border-radius: 25% 0;
    color: whitesmoke;
}

div.divisor h2 {
    text-align: center;
}

div.divisor h3 {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}

/* NAVBAR */
nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background-color: #774BC4;
    padding: 10px 20px;
    width: 100%;
    box-sizing: border-box;
    margin-bottom: 28px;
}

nav .title h1 {
    font-size: 40px;
    text-align: center;
    color: whitesmoke;
}

nav .title h2 {
    font-size: 20px;
    text-align: center;
    color: whitesmoke;
}

nav img {
    margin-right: 20px;
    width: 80px;
    height: 80px;
    border-radius: 10%;
}

nav ul {
    list-style: none;
    text-decoration: none;
    display: flex;
    flex-direction: row;
    padding-top: 58px;
}

nav ul li {
    padding: 12px;
}

nav ul li a {
    color: antiquewhite;
    text-decoration: none;
    font-size: 18px;
}

.logo-marca {
    display: flex;
    justify-content: flex-start;
}

.nav-lista > ul > li:hover {
    font-weight: 700;
}

/* ===================== */
/*      CAROUSEL         */
/* ===================== */

.carousel {
    width: 100%;
    max-width: 100rem;
    margin: 0 auto;
    overflow: hidden;
    padding: 16px 0;
    border-radius: 16px;
    position: relative;
}

.carousel ul {
    display: flex;
    padding: 0;
    margin: 0;
    list-style: none;
    animation: scroll 20s linear infinite;
}

.carousel li {
    flex: 0 0 20%;
}

.carousel img {
    width: 375%;
    display: block;
    border-radius: 12px;
}

/* Animación de scroll infinito */
@keyframes scroll {
    0% {
        transform: translateX(0);
    }
    100% {
        transform: translateX(-50%);
    }
}

.destacados .items_productos_destacados {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 40px;
    padding: 20px 0;
}

.destacados h4, 
.destacados p {
    text-align: center;
    color: white;
}

.destacados h2 {
    text-align: center;
}

.destacados h3 {
    margin-bottom: 20px;
    text-align: center;
    font-weight: 400;
}

.destacados img {
    width: 250px;
    height: 250px;
    border: black 2px solid;
    border-radius: 12px;
    margin-bottom: 12px;
    position: relative;
    top: 10px;
}

/* CLIENTES */
.clientes {
    margin: 20px 28px;
}

.clientes ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.clientes ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 40px;
    padding-top: 20px;
}

.clientes img {
    width: 100%;
    height: 100%;
    margin-bottom: 12px;
    background-size: cover;
}

/* SERVICIOS */
.servicios {
    margin: 20px 28px;
}

.servicios ul {
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    list-style: none;
    gap: 40px;
}

.servicios ul li {
    display: flex;
    flex-direction: column;
    align-items: center;
    margin: 20px 40px;
    padding-top: 20px;
}

.servicios ul li:hover {
    cursor: pointer;
}

.servicios h5 {
    text-align: center;
}

.servicios img {
    width: 175px;
    height: 175px;
    border-radius: 50%;
    margin-bottom: 12px;
    border: 4px solid #774bc4;
}

/* OBJETIVOS */
.objetivos ul {
    list-style: none;
}

.objetivos .container {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    grid-template-rows: repeat(1, 1fr);
    margin: 40px 0;
    align-content: center;
    justify-content: center;
}

.objetivos .objetivos-lista {
    grid-area: 1 / 2 / 2 / 3;
    font-size: 16px;
    color: #3d5aa3;
}

.objetivos .objetivos-lista li {
    padding: 8px 0;
}

.objetivos .objetivos-texto {
    grid-area: 1 / 3 / 2 / 5;
    font-size: 16px;
    align-items: flex-end;
    padding: 4px 0 0 60px;
}

.objetivos span {
    display: flex;
    text-align: center;
    font-weight: bold;
}

.objetivos .new_icon {
    border-radius: 8px;
    border: #623da3 2px solid;
    margin-top: 24px;
    position: absolute;
    left: 57%;
    box-shadow: -2px -2px 73px -24px rgba(171,61,163,1);
    cursor: pointer;
    width: 100px;
}

.objetivos .new_icon:hover {
    transform: scale(0.95);
}

.new_icon_container {
    text-decoration: none;
    color: #3d5aa3;
    font-weight: bold;
    font-size: 16px;
}

.new_icon_container a b{
    text-align: center;
}

/* FOOTER */
footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    background-color: #774BC4;
    margin-top: 12px;
    padding: 24px;
    width: 100%;
}

footer button {
    background: none;
    border: none;
    padding-left: 20px;
}

footer svg {
    cursor: pointer;
    width: 50px;
}

footer h2, footer h3 {
    margin-bottom: 20px;
    text-align: center;        
    color: white;
}

footer h3 {
    font-weight: 500;
}

footer p, footer a {
    cursor: pointer;
    color: white;
    font-size: 14px;
    text-decoration: none;
}

footer div {
    display: flex;
    flex-direction: row;
}

/* ================================ */
/* 🌈 Ajustes responsive refinados */
/* ================================ */

@media (max-width:1024px) {
    .carousel img { border-radius: 10px; }
    .destacados img, .clientes img, .servicios img {
        width: 200px;
        height: 200px;
    }
    .objetivos .new_icon {
        margin-left: -240px;
    }

    .objetivos .new_icon {
        margin-left: 25px;
        width: 80px;
        margin-top: 25px;
    }

    #contacto {
        margin-top: 75px;
    }
    

    nav, footer {
        width: 110%;
        position: relative;
    }
}

@media (max-width:768px) {
    ::-webkit-scrollbar { height: 4px; }
    nav { flex-direction: column; align-items: center; }
    nav ul { flex-direction: column; padding-top: 0; }
    .destacados .items_productos_destacados,
    .clientes ul,
    .servicios ul {
        flex-wrap: wrap;
        gap: 20px;
    }
    .destacados img, .clientes img, .servicios img {
        width: 80%;
        height: auto;
    }

    .objetivos .new_icon {
        margin-left: 25px;
        width: 80px;
        margin-top: 25px;
    }

    #contacto {
        margin-top: 75px;
    }

    .objetivos .objetivos-lista { grid-area: 1 / 1 / 2 / 3; }
    .objetivos .objetivos-texto { grid-area: 1 / 3 / 2 / 6; padding: 0 20px; }
    footer { text-align: center; }
}

@media (max-width:480px) {
    nav .title h1 { font-size: 22px; }
    nav .title h2 { font-size: 14px; }
    .carousel img { border-radius: 8px; }
    .destacados img, .clientes img, .servicios img {
        width: 100%;
        height: auto;
    }

    .objetivos .new_icon {
        margin-left: -60px;
        width: 60px;
        margin-top: 5px;
    }

    #contacto {
        margin-top: 75px;
    }

    .objetivos .container{
        grid-template-columns: 1fr;
        grid-template-rows: auto auto;
        row-gap: 20px;
    }

    .objetivos .objetivos-texto, .objetivos .objetivos-lista {
        grid-area: auto;
        display: block;
        padding: 10px;
        text-align: center;
    }
    footer svg { width: 70px; }
    footer h2 { font-size: 16px; }
    footer h3 { font-size: 14px; }
}