*{
    margin: 0;
    padding: 0;
    list-style: none;
    text-decoration: none;
    border: none;
    outline: none;
}

:root{
    --gris-claro : #CFDBD5;
    --verde : #E8EDDF;
    --amarilloMLW : #CAA14F;
    --negro: #242423;
    --gris-oscuro: #333533;
    --azul-fuerte-paleta: #3D787D;
    --azul-claro-paleta: #59C1C9;
    --morado-fuerte-paleta: #121B5C;
    --morado-claro-paleta: #5644C9;
}

span.emergente{
    /* display: none; */
    display: inline-block;
    position: absolute;
    padding: 5px;
    border: solid 1px var(--amarilloMLW);
    border-radius: 3px;
    background-color: var(--verde);
    margin: auto;
    font: normal sans-serif;
    color: var(--negro);
    z-index: 2;
}

body header#cabecera{
    display: flex;
    justify-content: space-between;
    background-color: black;
}

body header#cabecera a img#MLW-logo{
    height: 88px;
    position: relative;
    z-index: 4;
}

body header#cabecera form{
    margin: auto 10px;
}

body header#cabecera form input{
    border: 1px dotted var(--amarilloMLW);
    height: 25px;
    width: 450px;
}


@media(max-width:700px){
    body header#cabecera form input#buscador_principal{
        width: 65vw;
    }
}

@media(max-width:600px){
    body header#cabecera form input#buscador_principal{
        width: 50vw;
    }
}

@media(max-width:425px){
    body header#cabecera form input#buscador_principal{
        width: 40vw;
    }
}

body header#cabecera form span.icon-search{
    color: var(--amarilloMLW);
    padding: 7px;
    border: 1px solid var(--amarilloMLW);
    border-radius: 2px;
}

body header#cabecera form span.icon-search:hover{
    cursor: pointer;
}

body header#cabecera form span.icon-search:active{
    background-color: var(--amarilloMLW);
    color: black;
}

body header#cabecera div#link_div a.menu_elem_head{
    color: var(--amarilloMLW);
}

body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
    display: flex;
    position: relative;
    top: -1vw;
    left: -7vw;
    width: 15px;
    height: 15px;
    border-radius: 100%;
    background-color: var(--amarilloMLW);
    font-family: sans-serif;
    font-size: 12px;
    color: black;
    justify-content: center;
    vertical-align: center;
}

body header#cabecera div#link_div{
    display: flex;
    justify-content: space-between;
    margin: auto 10px;
}

body header#cabecera div#link_div a#link_login_head:hover,
body header#cabecera div#link_div a#link_carrito_head:hover{
    text-decoration: underline;
}

body header#cabecera div#link_div a.oculto{
    display: none;
}

body header#cabecera div#link_div a#link_login_head,
body header#cabecera div#link_div a#link_carrito_head{
    display: flex;
    justify-content: space-between;
}

body header#cabecera div#link_div a.menu_elem_head span, body header#cabecera form span{
    font-size: large;
    font-family: lorenza;
}

body header#cabecera div#link_div a.menu_elem_head:active{
    background-color: var(--amarilloMLW);
    color: black;
}

body header#cabecera div#link_div a.menu_elem_head span span.emergente{
    right: 10px;
    /* display: none; */
    display: inline-block;
    position: absolute;
    padding: 5px;
    border: solid 1px var(--amarilloMLW);
    border-radius: 3px;
    background-color: var(--verde);
    margin: auto;
    font: 0.5em sans-serif;
    color: var(--negro);
}

body header#cabecera div#div_oscura{
    background-color: white;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    z-index: 3;
    overflow-y: scroll;
}

span.icon-cancel{
    position: absolute;
    top: 15px;
    right: 15px;
    color: var(--amarilloMLW);
    font-size: 2em;
}

span.icon-cancel:hover{
    cursor: pointer;
}

body header#cabecera div#div_oscura div.div_head{
    display: block;
    margin: auto;
    height: 20vh;
    display: flex;
    align-items: center;
    background-color: black;
}

body header#cabecera div#div_oscura div.div_head form{
    display: block;
    margin: auto;
    display: flex;
    justify-content: center;
    align-items: center;
}

body header#cabecera div#div_oscura div#contenedor_productos{
    height: 500vh;
}

body header#cabecera div#div_oscura td.contenedor-paginacion-buscador{
    color: black;
    border: 1px solid black;
}

body header#cabecera div#div_oscura td.contenedor-paginacion-buscador span.indicador-pagina{
    color: blue;
}

body header#cabecera div#div_oscura td.contenedor-paginacion-buscador span.indicador-pagina:hover{
    cursor: pointer;
}

.oculto{
    display: none;
}


:root{
    --gris-oscuro: rgb(51, 51, 51);
    --gris-claro: rgb(241, 241, 241);
    --azul-claro: rgb(13, 160, 193);
    --azul: rgb(20, 89, 124);
    --rojo: rgb(114, 26, 26);
}

form#forma-busqueda span#busqueda-icon{
    background-color: var(--gris-claro);
}

form#forma-busqueda{
    border: solid 1px var(--gris-claro);
    background-color: var(--gris-oscuro);
    /* width: 88vw; */
}

table#tabla-productos{
    display: block;
    width: 90vw;
    margin: 10px auto;
}

.box table#tabla-productos tbody{
    display: flex;
    align-items: center;
    align-content: center;
}

table#tabla-productos thead tr td{
    border: solid 1px var(--gris-oscuro);
}

table#tabla-productos tbody tr td{
    width: 30vw;
    vertical-align: top;
}

table#tabla-productos tbody tr td figure.ficha-producto{
    display: flex;
    flex-direction: column;
    margin-top: 0px;
}

table#tabla-productos tbody tr td figure.ficha-producto:hover{
    cursor: pointer;
}

table#tabla-productos tbody tr td figure.ficha-producto img.imagen-producto{
    max-width: 28vw;
    max-height: 28vw;
    display: block;
    margin: auto;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto{
    width: 28vw;
    text-align: center;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p{
    color: dimgray;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.existencia-producto{
    color: var(--rojo);
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.nombre-producto{
    font: bolder 1.5em sans-serif;
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.precio-producto{
    font: bold 1.2em sans-serif;
    color: var(--azul);
}

table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto p.promocion-producto{
    font-weight: bold;
}

button.eliminar_producto{
    padding: 2px 4px;
    border: 1px solid red;
    background-color: #770a0a;
    border-radius: 2px;
    color: var(--gris-claro);
}

label.sublabel{
    font: 1em sans-serif;
    color: black;
}

@media(max-width:500px){
    table#tabla-productos tbody tr td{
        width: 100vw;
        display: flex;
        align-items: center;
        justify-content: center;
    }

    table#tabla-productos thead tr td, table#tabla-productos tbody tr{
        display: flex;
        flex-direction: column;
    }

    table#tabla-productos tbody tr td figure.ficha-producto div.img_content{
        width: 80vw;
        height: 80vw;
        /* display: block;
        margin: 1vw 5vw; */
    }
    
    table#tabla-productos tbody tr td figure.ficha-producto figcaption.datos-producto{
        width: 80vw;
        margin: 0px;
        /* display: block;
        margin: 1vw 5vw; */
    }

    table#tabla-productos tbody tr td figure.ficha-producto div.img_content img.imagen-producto{
        margin: auto;
    }

    main h1{
        display: block;
        margin: 30px auto 10px auto;
    }

    body header#cabecera div#link_div a.menu_elem_head span{
        font-size: large;
    }
}

@media(max-width:900px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -10.5vw;
    }
}
@media(max-width:800px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -12vw;
    }
}
@media(max-width:700px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -13.5vw;
    }
}
@media(max-width:600px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -15.5vw;
    }
}
@media(max-width:500px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -17vw;
    }
}
@media(max-width:550px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -18vw;
    }
}
@media(max-width:460px){
    body header#cabecera div#link_div a.menu_elem_head span#contador_carrito{
        left: -19vw;
    }
}