/*==========================================
            TABLETS
==========================================*/

@media(max-width:1200px){

header{

padding:15px 30px;

}

.banner{

height:500px;

}

.contenidoBanner{

width:90%;

}

.gridProductos{

grid-template-columns:repeat(3,1fr);

}

.gridCategorias{

grid-template-columns:repeat(3,1fr);

}

}


/*==========================================
            TABLETS
==========================================*/

@media(max-width:992px){

header{

flex-direction:column;

gap:20px;

}

nav ul{

flex-wrap:wrap;

justify-content:center;

}

.gridProductos{

grid-template-columns:repeat(2,1fr);

}

.gridCategorias{

grid-template-columns:repeat(2,1fr);

}

.banner{

height:450px;

}

.contenidoBanner h2{

font-size:35px;

}

.contenidoBanner p{

font-size:16px;

}

}


/*==========================================
            CELULARES
==========================================*/

@media(max-width:768px){

header{

padding:15px;

}

.logo{

flex-direction:column;

text-align:center;

}

.logo h1{

font-size:22px;

}

nav ul{

flex-direction:column;

align-items:center;

gap:15px;

}

.acciones{

flex-direction:column;

width:100%;

}

.login{

width:100%;

}

.carrito{

width:100%;

}

.banner{

height:400px;

padding:20px;

}

.contenidoBanner{

padding:20px;

}

.contenidoBanner h2{

font-size:28px;

}

.contenedorBusqueda{

flex-direction:column;

}

.contenedorBusqueda input{

width:100%;

border-radius:10px;

margin-bottom:10px;

}

.contenedorBusqueda button{

width:100%;

border-radius:10px;

height:55px;

}

.gridCategorias{

grid-template-columns:1fr;

}

.gridProductos{

grid-template-columns:1fr;

}

footer{

grid-template-columns:1fr;

text-align:center;

}

}


/*==========================================
            CELULARES PEQUEÑOS
==========================================*/

@media(max-width:480px){

.contenidoBanner h2{

font-size:22px;

}

.contenidoBanner p{

font-size:15px;

}

.botonBanner{

width:100%;

text-align:center;

}

section{

padding:40px 20px;

}

}

/*==========================================
        MENÚ HAMBURGUESA DEL INDEX
==========================================*/

.menuToggle{
    display:none;
    width:auto;
    height:44px;
    border:1px solid rgba(255,255,255,.35);
    border-radius:8px;
    background:transparent;
    color:#fff;
    font-size:20px;
    cursor:pointer;
    align-items:center;
    justify-content:center;
    gap:8px;
    padding:0 12px;
}

.menuToggle span{
    font-size:20px;
    font-weight:600;
}

.menuToggle:focus-visible{
    outline:3px solid #d4af37;
    outline-offset:3px;
}

@media(max-width:767px){
    body:has(.menuToggle) header{
        flex-direction:row;
        flex-wrap:wrap;
        gap:12px;
    }

    body:has(.menuToggle) .menuToggle{
        display:flex;
        order:2;
    }

    body:has(.menuToggle) header nav{
        display:none;
        order:4;
        width:100%;
        padding:12px 0 4px;
        border-top:1px solid rgba(255,255,255,.15);
    }

    body:has(.menuToggle).menuAbierto header nav{
        display:block;
    }

    body:has(.menuToggle) header nav ul{
        flex-direction:column;
        align-items:stretch;
        gap:4px;
    }

    body:has(.menuToggle) header nav a{
        display:block;
        padding:10px 12px;
        border-radius:6px;
    }

    body:has(.menuToggle) header nav a:hover{
        background:rgba(255,255,255,.1);
    }
}

@media(max-width:768px){
    body:has(.menuToggle) header .logo{
        flex:1;
        flex-direction:row;
        justify-content:flex-start;
        text-align:left;
    }

    body:has(.menuToggle) header .logo h1{
        font-size:18px;
    }

    body:has(.menuToggle) header .acciones{
        width:auto;
        flex-direction:row;
    }
}

@media(max-width:480px){
    body:has(.menuToggle) header .logo img{
        width:44px;
        height:44px;
    }

    body:has(.menuToggle) header .logo h1{
        font-size:15px;
    }
}

@media(max-width:767px){
    body:has(.menuToggle){
        overflow-x:hidden;
    }

    body:has(.menuToggle) header .logo{
        order:1;
        flex:1 1 calc(100% - 58px);
        min-width:0;
    }

    body:has(.menuToggle) header .menuToggle{
        order:2;
    }

    body:has(.menuToggle) header nav{
        order:3;
    }

    body:has(.menuToggle) header .acciones{
        order:4;
        flex:1 1 100%;
        justify-content:center;
    }
}