/* HEADER */
@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@100..900&display=swap');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "Outfit", sans-serif;
    scroll-behavior: smooth;
}

.header {
    width: 100%;
    top: 0;
    left: 0;
    z-index: 1000;
}

.nav {
    width: 100%;
    height: 5rem; 
    background-color: #ffffff;
    padding: 0.625rem 3.125rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2); 
    z-index: 50;
}

.nav__item {
    padding: 0 0.625rem;
    list-style: none;
    display: inline-block;
}

.nav__item a {
    color: rgb(0, 0, 0);
    font-size: 1.1rem;
    text-transform: uppercase;
    font-weight: 600;
    text-decoration: none;
}

.nav img {
    width: 12.5rem;
    height: auto;
}

.nav__item a i {
    margin-left: 0.3125rem; 
}

.nav__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex; 
}

.nav__item {
    display: inline-block;
    margin-left: 1.25rem;
}

.nav__item a {
    text-decoration: none;
    color: #000;
    font-weight: bold;
}

.nav__item a:hover {
    color: #6AB165;
    background-color: #f3f3f3;
}


/* MENU HAMBURGUESA */

.nav .abrir-menu, .nav .cerrar-menu {
    display: none;
    cursor: pointer;
    background-color: transparent;
}

.nav .abrir-menu {
    cursor: pointer;
    background-color: transparent;
    font-size: 1.5rem;
}

.nav .cerrar-menu {
    font-size: 1.2rem;
    margin-right: 1.25rem;
    color: #ffffff;
    background-color: #6AB165;
    font-weight: bold;
    padding: 0.3125rem 0.3125rem;
}

.separador {
    display: none;
}

ul li {
    list-style: none;
}

.dropdown-menu li {
    padding: 0.1875rem;
}

/* FIN HEADER */

@media (max-width: 480px) {
    /* Estilos para dispositivos móviles */
    .cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .titulo-principal {
        font-size: 2rem;
    }

    .parrafo-principal {
        font-size: 1.5rem;
    }

    /* Menu hamburguesa */
    .nav .abrir-menu {
        display: block;
    }

    .nav__menu {
        display: none;
    }
}

@media (min-width: 0px) and (max-width: 1200px) {
    /* Estilos para iPads y tabletas */
    .cards {
        grid-template-columns: repeat(1, 1fr);
    }

    .titulo-principal {
        font-size: 2rem;
    }

    .parrafo-principal {
        font-size: 1.5rem;
    }

    /* Menu hamburguesa */
    .nav .abrir-menu, .nav .cerrar-menu {
        display: block;
    }

    .nav__menu {
        opacity: 0;
        transform: translateX(100%);
        transition: transform 0.3s ease;
        visibility: hidden;
        display: flex;
        flex-direction: column;
        position: fixed;
        top: 0;
        right: 0;
        bottom: 0;
        align-items: flex-end;
        background-color: #ffffff;
        padding: 2rem;
        box-shadow: 0 0 0 100vmax rgba(0, 0, 0, 0.5);
        gap: 3rem;
        z-index: 1000;
    }

    .nav__menu.visible {
        opacity: 1;
        visibility: visible;
        transform: translateX(0);
    }

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

    .separador {
        display: block;
        margin: 0.9375rem 0.3125rem;
    }

    .dropdown-menu {
        display: none;
        margin: 0.3125rem;
    }

    i {
        cursor: pointer;
    }

    .dropdown-menu.visible-dropdown {
        display: block;
        
    }

    #inicio, #radio {
        color: #6AB165;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    /* Estilos para pantallas pequeñas y portátiles */
    .cards {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 1025px) and (max-width: 1200px) {
    /* Estilos para computadoras de escritorio y pantallas grandes */
    .cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.625rem;
    }
}

@media (min-width: 1201px) {
    /* Estilos para pantallas extra grandes, TV, etc. */
    .dropdown-menu {
        display: none;
        position: absolute;
        background-color: #fff;
        box-shadow: 0rem 0.5rem 1rem 0rem rgba(0,0,0,0.2);
        border-radius: 0.3125rem; 
        z-index: 1;
        list-style: none;
    }

    .dropdown-menu li {
        padding: 0.625rem;
    }

    .dropdown-menu li a {
        text-decoration: none;
        color: #000;
        display: block;
    }

    .dropdown-menu li a:hover {
        background-color: #f3f3f3;
    }

    .nav__item.dropdown:hover .dropdown-menu {
        display: block;
        box-shadow: 0rem 0rem 0.625rem rgba(0, 0, 0, 0.2);
    }
}
