/* 01 - header y navegacion */
/*------------------------------------------------------------------------------------*/
header {
    margin: 40px 0 0 0;
    width: 100%;
    height: 80px;
    background-color: #fff;
    box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.2);

    justify-content: space-around;
    align-items: center;
    /* overflow: hidden; */

    position: sticky;
    z-index: 1000;

    animation: subir 1s ease-out forwards;
}


header .logo {
    width: 188px;
    align-items: center;
    display: flex;
    height: 100px;
}

header .logo img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

header nav ul {
    list-style-type: none;
    gap: 1.5rem;
    color: var(--text-color-default);
}

header nav ul li a {
    text-decoration: none;
    transition: all .5s;
}

header nav ul li a:hover h2 {
    color: var(--text-color-hoover);
}

@media (max-width: 580px) {
     header nav ul li a{
        text-align: center;
    }
}

/*------------------------------------------------------------------------------------*/


.sections.primary-section.error{
    padding: 8px;
}


/* 02 - Footer */
/*------------------------------------------------------------------------------------*/

.primary-footer {
    align-items: center;
    height: auto;
    justify-content: center;
    background-color: #fff;
    box-shadow: 0px 2px 5px 0 rgba(0, 0, 0, 0.2);
    width: 100%;
    flex-direction: column;

}

.primary-footer.error{
    /* position: fixed;
    bottom: 0; */

}

.primary-footer .footer-container {
    max-width: 1200px;
    height: 180px;
    width: 100%;
}

.primary-footer .footer-container .colum {
    height: 100%;
    width: 33%;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 1rem;
}

.primary-footer .footer-container .colum.one {
    width: 40%;
}

.primary-footer .footer-container .colum.two {
    width: 60%;
}

.primary-footer .footer-container .colum.one img {
    height: 100%;
    width: 100%;
    object-fit: contain;
}



.primary-footer .footer-container div .btn-principal span {
    color: #636363;
}

.primary-footer .footer-container div .contenido a {
    text-decoration: none;
}

.primary-footer .footer-container div .contenido a:hover p {
    color: var(--text-color-hoover) !important;
}


.primary-footer .footer-container div .contenido li {
    position: relative;
    align-items: center;
    display: flex;
    margin-bottom: 8px;
}

.primary-footer .footer-container div .contenido li i {
    position: absolute;
    top: 3px;
    transition: color 400ms;
}

.primary-footer .footer-container div .contenido li i.fa-whatsapp {
    color: green;
}

.primary-footer .footer-container div .contenido li i.fa-envelope {
    color: blue;
}

.primary-footer .footer-container div .contenido li i.fa-instagram {
    color: rgb(219, 23, 209);
}





.primary-footer .footer-container div .contenido li p {
    padding-left: 30px;
    margin-bottom: 0px;
    font-size: 14px;
    transition: color 400ms;
}




/*----------*/


.primary-footer .contenedor-autor {
    height: 46px;
    width: 100%;
    background-color: var(--text-color-hoover);
    justify-content: center;
    align-items: center;
}

.primary-footer .contenedor-autor h3 {
    color: #fff;
    display: flex;
    gap: 4px;
    font-size: 15px;
}

.primary-footer .contenedor-autor a {
    color: var(--color-naranja);
    display: flex;
    transition: all .5;
    text-decoration: none !important;
    font-weight: 700 !important;

}


@media (max-width: 500px){
    .primary-footer{
        height: auto;
        justify-content: center;
    }

    .primary-footer .footer-container {
        flex-direction: column;
        width: 100%;
        height: auto !important;
    }

    .primary-footer .footer-container .colum{
        width: 100% !important;
    }

    .primary-footer .footer-container .colum.two{
        margin-bottom: 20px;
    }

    .primary-footer .footer-container .colum.one img{
        height: auto;
        width: 50%;
    }
}
/*------------------------------------------------------------------------------------*/

/* 03 - Hamburger menu */
/*------------------------------------------------------------------------------------*/
.hamburger {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger .bar {
    width: 25px;
    height: 3px;
    background-color: #333;
    transition: 0.3s;
}

#nav-menu ul {
    display: flex;
    gap: 1.5rem;
}
.hamburger.open .bar:nth-child(1) {
    transform: rotate(37deg) translateY(9px);
}

.hamburger.open .bar:nth-child(2) {
    opacity: 0;
}

.hamburger.open .bar:nth-child(3) {
    transform: rotate(-41deg) translateY(-10px);
}

@media (max-width: 580px) {

    .hamburger {
        display: flex !important;
    }
   
    #nav-menu {
        position: absolute;
        top: 80px;
        right: 0;
        width: 100%;
        background: white;
        display: none;
        box-shadow: 0px 2px 3px 0 rgba(0, 0, 0, 0.2);
    }
    
    #nav-menu.active {
        display: block;
    }
    
    #nav-menu ul {
        flex-direction: column;
        padding: 1rem;
    }

    #nav-menu {
        transition: max-height 1s ease;
        overflow: hidden;
        max-height: 0;
    }
    
    #nav-menu.active {
        max-height: 300px; /* o lo suficiente para mostrar el contenido */
    }
}


/*------------------------------------------------------------------------------------*/