/* CSS Personalizado para reemplazar Bootstrap */

.header-container {
    width: 100%;
    padding: 0;
    margin: 0;
}

.main-container {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    padding-right: 15px;
    padding-left: 15px;
    margin-right: auto;
    margin-left: auto;
    max-width: 1140px;
}

.content-wrapper {
    display: flex;
    width: 100%;
}

.content-area {
    width: 100%;
    box-sizing: border-box;
}

/* Reemplazos para navbar y componentes relacionados */
.main-nav {
    display: flex;
    flex-wrap: wrap;
    height: 108px;
    border-bottom: 4px solid #BBCDD7;
    border-top: 40px #b8cad6 solid;
    padding-left: 20%;
    padding-top: 0;
    position: relative;
    background-color: #f8f8f8;
    align-items: center;
}

.logo {
    height: 70px;
    padding: 0;
    margin-left: 0;
    display: inline-block;
}

.logo img {
    height: 70px;
    width: auto;
}

.menu-toggle {
    display: none;
    background-color: transparent;
    border: 1px solid rgba(0,0,0,.1);
    padding: 0.25rem 0.75rem;
    font-size: 1.25rem;
    border-radius: 0.25rem;
    height: fit-content;
}

.menu-icon {
    display: inline-block;
    width: 1.5em;
    height: 1.5em;
    vertical-align: middle;
    background-image: url("data:image/svg+xml;charset=utf8,%3Csvg viewBox='0 0 30 30' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath stroke='rgba(0, 0, 0, 0.5)' stroke-width='2' stroke-linecap='round' stroke-miterlimit='10' d='M4 7h22M4 15h22M4 23h22'/%3E%3C/svg%3E");
    background-size: 100% 100%;
}

.nav-menu {
    display: flex;
}

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

.nav-item {
    margin-right: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.nav-item a {
    display: block;
    background-color: #F8F8F8;
    height: auto;
    line-height: 50px;
    color: rgba(0, 0, 0, .5);
    text-transform: uppercase;
    font-size: 14px;
    font-weight: 400;
    text-decoration: none !important;
    position: relative;
    padding: 0 15px;
}

.nav-item a:hover, .nav-item a:focus, .nav-item a:active {
    background: url(../imgs/general/mobile/bg_botonera.png) no-repeat center 40px;
    background-color: transparent !important;
    color: rgba(0, 0, 0, .8);
}

/* Reemplazos para el grid layout en payroll_index.html */
.content-grid {
    display: flex;
    flex-direction: row;
    width: 100%;
    clear: both;
    margin-left: -15px;
    margin-right: -15px;
    align-items:flex-start
}

.row {
    display: flex;
    flex-direction: row;
    flex: 0 0 20%;
    margin-left: -15px;
    margin-right: -15px;
    width: 100%;
    align-items: center;
}

.icon-column {
    padding: 0 15px;
    box-sizing: border-box;
}

.text-column {
    padding: 0 15px;
    box-sizing: border-box;
}

.text-paragraph {
    padding: 0 15px;
    box-sizing: border-box;
}

.left-column {
    flex: 0 0 42%;
    max-width: 41.42%;
    padding: 0 15px;
    box-sizing: border-box;
}

.right-column {
    flex: 0 0 58%;
    max-width: 58%;
    padding: 0 15px;
    box-sizing: border-box;
}

.responsive-image {
    max-width: 100%;
    height: auto;
    display: block;
}

.left-column h1, .left-column p, .left-column h3 {
    margin-left: 0;
    padding-left: 0;
}

.right-column {
    display: flex;
    align-items: center; 
}

.download-item {
    flex: 0 0 50%;
    max-width: 50%;
    padding: 0 15px;
    text-align: center;
    margin-bottom: 15px;
}

/* Asegurar que no haya espacios no deseados */
* {
    box-sizing: border-box;
}

@media (max-width: 576px){
    .main-container{
        max-width: 540px;
    }
    .content-grid{
        flex-direction: column;
    }
    .left-column, .right-column{
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
    .text-paragraph, .icon-column, .text-column {
        max-width: 100%;
    }
}

@media (max-width: 768px){
    .main-container{
        max-width: 720px;
    }

    .content-grid{
        flex-direction: column;
    }

    .left-column, .right-column {
        width: 100%;
        flex: 0 0 100%;
        max-width: 100%;
    }
     .text-paragraph, .icon-column, .text-column {
        max-width: 100%;    
    }
}


@media (max-width: 992px) {
    .main-nav {
        height: 110px;
        padding-left: 20px;
        padding-right: 20px;
        display: flex;
        justify-content: space-between;

    }
    .main-container {
        max-width: 960px;
    }

    .menu-toggle {
        display: block;
    }

    .nav-menu {
        display: none;
        width: 100%;
        background: #f8f8f8;
        z-index: 9999;
    }

    .nav-menu.active {
        display: block;
    }

    .nav-list {
        flex-direction: column;
        width: 100%;
    }

    .nav-item, .nav-item a {
        width: 100%;
        padding-right: 0 !important;
        margin-right: 0 !important;
    }

    .nav-item a {
        height: 36px;
        line-height: 36px;
        padding-left: 5% !important;
        border-bottom: 1px solid #BBCDD7;
    }

    .nav-item a:hover, .nav-item a:focus, .nav-item a:active {
        height: 36px;
        background-image: none;
    }

}
