
/* ------------------------------ */
/* CATEGORÍAS */
/* ------------------------------ */
.categoria-box {
    margin-top: 25px;
    background: #f9f9f9;
    border-radius: 8px;
}

.categoria-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 20px;
}

.categoria-header i{
    display: none;
}

.categoria-header h3 {
    font-size: 20px;
    color: var(--color-primary);
    margin: 0;
    font-weight:600;
}

.arrow-main {
    display: none; 
    transition: .3s;
}

.categoria-list {
    margin-top: 5px;
}

/* ------------------------------ */
/* SUBMENÚ PADRE (fila de categoría) */
/* ------------------------------ */
.submenu-padre {
    border-top: 1px solid #e0e0e0;
}

/* Título del submenú (el header clickeable) */
.submenu-titulo {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    padding: 12px 20px;
    background-color: var(--color-tertiary-hover);
    font-size: 15px;
    color: var(--color-black);
    font-weight: 500;
}

.submenu-titulo i {
    font-size: 13px;
    transition: .3s;
}

/* Flecha del submenú */
.arrow-sub {
    transition: .3s;
    font-size: 12px;
}

.submenu-padre.open .arrow-sub {
    transform: rotate(180deg);
}

/* ------------------------------ */
/* LISTA DEL SUBMENÚ */
/* ------------------------------ */
.submenu-list {
    display: none;
}

.submenu-padre.open .submenu-list {
    display: block;
}

.submenu-list a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 13px 10px 25px;
    color: var(--color-black);
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition:all ease .3s;
}

.submenu-list a:hover {
    color: var(--color-primary);
}

/* Badge con el número */
.submenu-list a span {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background-color: #eee;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 12px;
    flex-shrink: 0;
}


.arrow-sub {
    transition: transform 0.3s ease; /*le damos una transaccion suave*/
}






.sidebar {
    width: 25%;
}


.container-flex-productos{
    display: flex;
    justify-content: space-between;
    gap: 10px;
    align-items: flex-start;
    
}
.flex-container-productos{
    width: 72%;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}


.product-itemother{
    position: relative;
    width:280px;
    display: flex;
    flex-direction: column;
    height: 100%;
    background: var(--color-white);
    border-radius: 10px;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: rgba(99, 99, 99, 0.2) 0px 2px 8px 0px;
}




.tipos-de-producto{
    background: #f9f9f9;
    border-radius: 8px;
    padding:20px;
}

.tipos-de-producto h3{
    font-size: 20px;
    color: var(--color-primary);
    margin: 0;
    font-weight: 600;
    padding-bottom:10px;
}

.checkboxes{
    display:flex;
    flex-direction: column;
    gap:10px;
    padding-left:10px;
}

.checkboxes div{
    display:flex;
    gap:8px;
    align-items:center;
}

.checkboxes div label{
    color:var(--color-black);
    font-size:14px;
}



/* Marcas */
.brandsflex{
    display:flex;
    flex-wrap:wrap;
    gap:20px;
    justify-content:center;
}

.brand-item{
    width:180px;
}


.brand-item img{
    width:100%;
    display:block;
}


/*marca*/
.bannerDesign{
    width:100%;
}

.bannerDesign img{
    width:100%;
}


.containerTextHs{
    width:100%;
    max-width:1000px;
    margin:auto;
}

.h1Reu{
    text-align:center;
    font-weight:600;
    color:var(--color-primary);
    margin-top:-40px;
    margin-bottom:20px;
    font-size:30px;
    line-height:1.2;
}

.h2Reu{
    text-align:center;
    font-weight:600;
    color:var(--color-secondary);
    margin:20px 0px;
    font-size:25px;
    line-height:1.2;
}

.textReu{
    text-align:center;
}

.containerMxImgasdc{
    width:100%;
    max-width:1100px;
    margin:auto;
}
.containerimagentotalsdc{
    width:100%;
    margin:50px 0px;
}
.containerimagentotalsdc img{
    width:100%;
}

.flexProductsBrand{
    display:flex;
    justify-content:center;
    gap:20px;
    margin:30px 0px;
}


.flexBtnCentered{
    display:flex;
    justify-content:center;
    align-items:center;
    margin-bottom:90px;
}

.flexBtnCentered a button{
    background-color:var(--color-primary);
    color:var(--color-white);
    padding:8px 35px;
    border: none;
    border-radius:25px;
    font-size:16px;
    transition: all ease .3s;
    cursor: pointer;
}

.flexBtnCentered a button:hover{
    background-color:var(--color-primary-hover);
}





@media (max-width: 900px) {

    .checkboxes{
        flex-direction:row;
        flex-wrap:wrap;
        gap:20px;
    }

    .categoria-header i{
        display: block;
    }
    .sidebar {
        width: 100%;
    }

    .categoria-header{
        justify-content: space-between;
        padding: 20px;
    }

    .arrow-main {
        display: block;
    }

    .categoria-list {
        max-height: 0;
        overflow: hidden;
        transition: max-height .3s ease;
    }

    .categoria-box.open .categoria-list {
        max-height: 500px;
       overflow-y: auto;   /* scroll solo vertical */
        overflow-x: hidden; /* evita scroll horizontal */
    }

    .categoria-box.open .arrow-main {
        transform: rotate(180deg);
    }

    .flex-container-conectores{
        flex-direction: column;
        gap: 30px;
    }
    .flex-container-productos{
        width: 100%;
    }
    .container-flex-productos{
        flex-direction: column;
        gap: 30px;
        margin-top:-40px;
    }
    .brandsflex{
        margin-top:-40px;
    }
    .brand-item{
        width:150px;
    }

    .h1Reu{
        font-size:25px;
    }

    .textReu{
        font-size:15px;
    }
}











@media (max-width: 768px) {
    .product-itemother{
        width:200px;
    }

    .brand-item{
        width:130px;
    }

    .h1Reu{
        font-size:22px;
    }

    .textReu{
        font-size:14px;
    }
}


@media (max-width: 470px) {
    .flex-container-productos{
        gap:10px;
    }
    .product-itemother{
        width:180px;
    }

    .brand-item{
        width:100px;
    }
}


@media (max-width: 410px) {
    .product-itemother{
        width:170px;
    }
}

@media (max-width: 390px) {
    .product-itemother{
        width:160px;
    }
    .brandsflex{
        gap:10px;
    }
}


@media (max-width: 370px) {
    .product-itemother{
        width:150px;
    }
   .brand-item{
        width:90px;
    }
}


@media (max-width: 348px) {
    .product-itemother{
        width:140px;
    }
}



@media (max-width: 330px) {
    .product-itemother{
        width:100%;
    }
}