
@font-face {
    font-family: 'Gantari';
    src: url(../fonts/Gantari-Regular.woff2);
    font-weight: 400;
}

@font-face {
    font-family: 'Gantari';
    src: url(../fonts/Gantari-Medium.woff2);
    font-weight: 500;
}

@font-face {
    font-family: 'Gantari';
    src: url(../fonts/Gantari-SemiBold.woff2);
    font-weight: 600;
}

@font-face {
    font-family: 'Gantari';
    src: url(../fonts/Gantari-Bold.woff2);
    font-weight: 700;
}

@font-face {
    font-family: 'Gantari';
    src: url(../fonts/Gantari-ExtraBold.woff2);
    font-weight: 800;
}

@font-face {
    font-family: 'Gantari';
    src: url(../fonts/Gantari-Black.woff2);
    font-weight: 900;
}

:root {
    /* Ibarra Mayoreo */  
    --blue-01: #0083BE;
    --blue-02: #34A9DB;
    --blue-03: #DFF5FF;
    --green-01: #94E11F;
    /* Ibarra Mayoreo */   
    /* suBodega! */   
    --red-01: #FC2217;
    --red-02: #C00D1B;
    --red-03: #FFE1E4;
    --golden: #C69B28;
    --green-02: #21A01A;
    /* suBodega! */
    --white: #FFF;
    --gray: #717171;     
    --alert: #DD2A2A;
}

*{
    box-sizing: border-box;
    margin: 0;
    padding: 0;
    font-family: var(--font);
}
header{
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: var(--white);
}

/* ====== HOME ====== */

.bg-home{
    position: absolute; 
    top:0;
    left:0;
    z-index: -1;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center; 
}

.header-home p{
    color: var(--white);
    margin: 0;
    font-weight: 700;
    font-size: 22px;
    transition: all .3s ease-in-out;
}

.header-home-content{
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
}

.header-home-ibarra{
    background-color: #014495;
    width:100%;
    min-width: 88%;
    display: flex;
    align-items: center;
    padding: 5px 0;
    transition:all .6s ease-in-out;
}

.header-home-subodega{
    position: relative; 
    background-color: #C00D1E; 
    width: 100%;
    min-width: 12%;
    display: flex;
    align-items: center;
    justify-content: end;
    padding: 5px 0px; 
    transition: 0.6s ease-in-out;
}

.header-home-desc{
    display: flex;
    flex-direction: column;
    align-items: start;
}

.header-home-desc p{
    font-size: 12px;
    line-height: 1;
}

.header-home-desc span{
    display: inline-block;
    height: 2px;
    width: 145px;
    background-color: var(--white);
    border-radius: 10px;
    margin: 5px 0;
}

/* .text-desc.a01{
    margin-left: 35px;
    margin-right: auto;
} */
.logo-ibarra{
    height: 60px;
}

.logo-subodega{
    max-width: 135px;
}

.btn-toogle{
    position: absolute;
    top: 50%;
    left:-25px;
    padding: 4px;
    width: 50px;
    height: 50px;
    border-radius: 500px;
    border: none;
    transition:all .2s ease-in-out;
}

.btn-toogle img{
    width: 100%;
    transform: rotate(180deg);
}

.main-content{
    min-height:calc(100vh - 126px);
    display: flex;
    justify-content: center;
    align-items: center;
}

.menu{
    /* position:absolute;
    top:50%;
    left:50%;
    transform:translate(-50%,-50%);
    width: 100%;
    max-width: 1320px; */
}

.menu-top{
    display: flex;
    justify-content: center;
    align-items: center;
    flex-direction: row;
    gap: 15px;
    margin-bottom: 30px;
}

.menu-down{
    text-align: center;
}

.menu.autoservicio{

}

.card-menu{
    background-color: var(--white);
    border-radius: 15px;
    text-decoration: none;
    color: var(--blue-01);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    min-height: 400px;
    max-width: 320px;
    padding: 15px 35px;
    box-shadow: 0 0 20px 0px rgba(0,0,0,.2);
    transition: all .3s ease-in-out;
}

.card-menu-icon{
    width: 100%;
    max-width: 120px;
}

.card-menu-title{
    font-size: 30px;
    font-weight: 700;
    text-align: center;
    line-height: 1;
}

.card-menu-text{
    color: var(--gray);
}
.card-menu:hover{
    transform: translateY(-20px);
    box-shadow: 0 0 20px 0px rgba(0,0,0,.5);
    transition: all .3s ease-in-out;
}

.btn.btn-collapse{
    background-color: var(--white);
    color: var(--gray);
    border: 0;
    border-radius: 15px;
}

.btn.btn-collapse:active{
    background-color: var(--white);
    border: 0;
}

.btn.btn-collapse:hover{
    background-color: var(--white);
    border: 0;
}

.group-btns-rewards{
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: start;
    gap: 15px;
    width: 100%;
    max-width: 756px;
    flex-wrap: wrap;
    margin: 0 auto;
    background-color: rgba(255,255,255,.4);
    padding: 30px;
    border-radius: 15px;
    border: 2px solid var(--white);
}

.btn.btn-rewards{
    background-color: var(--white);
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 220px;
    max-height: 46px;
    font-size: 20px;
    font-weight: 600;
}

.btn.btn-rewards span{
    margin-left: 10px;
}

/* ====== HOME ====== */


/* ====== MAYOREO ====== */

.mayoreo .card-menu-title{
    color: var(--blue-01);
}
.mayoreo .card-menu:hover{
    background-color: var(--green-01);
}

.mayoreo .btn.btn-rewards{
    background-color: var(--blue-01);
    color: var(--white);
    border: 2px solid var(--white);
}

.mayoreo .btn.btn-rewards:hover{
    background-color: var(--green-01);
    border-color: var(--green-01);
    color: var(--blue-01);
}

.mayoreo .btn.btn-collapse:active,
.mayoreo .btn.btn-rewards:active{
    box-shadow: 0 0 0 6px rgba(0, 131, 190, .7);
}

/* ====== MAYOREO ====== */



/* ====== AUTOSERVICIO ====== */

.autoservicio .card-menu-title{
    color: var(--red-01);
}
.autoservicio .card-menu:hover{
    background-color: var(--golden);
}

.autoservicio .btn.btn-rewards{
    background-color: var(--red-01);
    color: var(--white);
    border: 2px solid var(--white);
}

.autoservicio .btn.btn-rewards:hover{
    background-color: var(--golden);
    border-color: var(--golden);
    color: var(--white);
}

.autoservicio .btn.btn-collapse:active,
.autoservicio .btn.btn-rewards:active{
    box-shadow: 0 0 0 6px rgba(252, 34, 23, .7);
}

/* ====== AUTOSERVICIO ====== */

footer{
    position: relative;
    background-color: var(--blue-02);
}

footer::after{
    content: '';
    position: absolute;
    top: -30px;
    left: 50%;
    width: 100%;
    height: 30px;
    max-width: 1320px;
    transform: translateX(-50%);
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
    background-color: var(--blue-03);
}

.footer-text{
    width: 100%;
    display: inline-block;
    margin-bottom: 0;
    color: var(--white);
    text-align: center;
}
@media screen and (max-width:1366px){
    .menu{
        margin: 40px 0;
    }

    .header-home p.text-desc{
        font-size: 15px;
    }

    .card-menu{
        min-height: 300px;
    }
}

@media screen and (max-width:1366px) and (min-width:1018px) {
    .card-menu{
        max-width: 220px;
        min-height: 260px;
    }
    .card-menu-icon{
        max-width: 80px;
    }

    .card-menu-title{
        font-size: 18px;
    }
}

@media screen and (min-width:1081px){
    .header-home-desc{
        display: none;
    }
}

@media screen and (max-width:1080px){
    .header-home-ibarra{
        min-width: 80%;
    }
    .header-home-ibarra >p.text-desc{
        display: none !important;
    }
    .header-home-subodega{
        min-width: 20%;
    }
    .header-home-subodega >p.text-desc{
        display: none !important;
    }
}

@media screen and (max-width:810px){
    .menu-top{
        flex-direction: column;
    }
    .card-menu{
        max-width: 240px;
        min-height: 210px;
    }
    .card-menu-icon{
        max-width: 60px;
    }
    .card-menu-title{
        font-size: 22px;
    }
    .header-home-ibarra{
        min-width: 70%;
    }
    .header-home-subodega{
        min-width: 30%;
    }
    .header-home-desc p{
        font-size: 10px;
    }
    .header-home-desc span{
        width: 102px;
    }
    .btn-toogle{
        left: -20px;
        width: 40px;
        height: 40px;
    }
    .group-btns-rewards{
        max-width: 300px;
        padding: 25px;
        justify-content: center;
    }
}

@media screen and (max-width:767px) {
    .text-break{
        display: none;
    }    
}

@media screen and (max-width:500px){
    .logo-ibarra{
        height: 30px;
    }

    .logo-subodega{
        max-width: 80px;
        margin-left: 14px !important;
    }

    .menu {
        margin: 18px 0 40px;
    }

    .card-menu{
        max-width: 190px;
        min-height: 178px;
        padding: 10px;
    }

    .card-menu-title{
        font-size: 18px;
    }

    .group-btns-rewards{
        max-width: 268px;
    }

    .btn.btn-rewards{
        font-size: 14px;
        max-width: 190px;
    }
}