*{
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body{
    font-family: Roboto, sans-serif;
}

.wrapper{
    width: 100%;
    max-width: 1920px;
    margin: auto;

    /* Flexbox */
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
}

header{
    width: 100%;
    padding: 10px 50px;
    background-color: #fff;
    z-index: 1;

    
    top:0;

    /* Flexbox */
    display: flex;

    justify-content: space-between;
    align-items: center;
    flex-flow: row wrap;
}
.header-scroll{
    background-color: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(8px);
    position:sticky;
    box-shadow: 0px 1px 10px #aaa;
    animation: slideDown 0.5s ease-in;
}

/*Animacion para el header*/
@keyframes slideDown {
  from {
    transform: translateY(-100%);
  }
  to {
    transform: translateY(0);
  }
}
header #logo img{
    width: 120px;
    vertical-align: top;
}

/*********************************/
/*********** NAV MENU ************/
/*********************************/

header nav{
    width: 50%;
}

nav ul{
    list-style: none;
}
nav a{
    text-decoration: none;
}

/***FIRST LEVEL****/

nav > ul{

    /* Flexbox */
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
}

nav > ul > li{
    background-color: purple;
    text-align: center;
    transition: background ease-in .25s,  transform 300ms;
    line-height: 3em;

    /* Flexbox */
    flex-grow: 1;
}

nav > ul > li > a{
    color:#fff;
    display: block;
}
nav > ul > li:hover{
    background-color: #df1991;
    transform: scale(1.05);
}

/*SECOND LEVEL*/

nav > ul > li{
    position: relative;
}

/*****CATEGORIES and SEARCH********/

.submenu-categories, .search-box{
    position: absolute;
    top:97%;
    opacity: 0;
    transition: opacity .9s;
    border-radius: 0 0 10px 10px;
    border: 1px solid #ccc;
    background-color: #ececec;
}
.show-search-box:hover .search-box, .show-categories:hover .submenu-categories{
    opacity: 1;
    display: flex;
}


/***********CATEGORIES*************/

.submenu-categories{
    width: 300%;
    left: -100%;
    height: 200px;

    /* Flexbox */
    display: none;
    flex-wrap: wrap;
    flex-direction: column;
    align-content: flex-start;
}
.submenu-categories li{
    width: 30%;
    line-height: 2.5rem;
}
nav ul ul a{
    color:#393939;
    display: block;

}

/***********SEARCH**************/

.search-box{
    width: 400%;
    height: 50px;
    left: -250%;
    padding: 0 10px;

    /* Flexbox */
    display: none;
    flex-wrap: wrap;
    flex-direction: row;
}

.search-box li{
    width: 100%;
}


.search-box form{
    height: 100%;
    width: 100%;

    /*Flexbox*/
    display: flex;
    flex-wrap: wrap;
    flex-direction: row;
    align-items: center;
}

.search-box form input[type=search]{
    border:1px solid #999;
    padding-left: 5px;
    height: 70%;

    /*Flexbox*/
    flex-grow: 4;
}
.search-box form input[type=search]:focus{
    border:1px solid purple;
    outline: none;

}
.search-box form input[type=submit]{
    height: 70%;
    margin-left: 5px;
    border:1px solid #999;

    cursor: pointer;

    /*Flexbox*/
    flex-grow: 1;
}

/***********************************/
/******* END NAV MENU **************/
/***********************************/

#banner{
    width: 100%;

    /* Flexbox */
    display: flex;
    flex-wrap: nowrap;
    flex-direction: row;
}

#banner img{
    width: 100%;

    /* Flexbox */
    flex: 1 1;
}

#recent-products, #list-products,#contact{
    padding:30px 0px;

    /*FLEX*/
    flex:1 1 100%;

    display: flex;
    flex-wrap:wrap;
    flex-direction:row;
    justify-content:space-around;
}

h2.sub, h2.sub-contact{
    width: 90%;
    font-size: 20px;
    color: #555;
}
h2.sub:before, h2.sub-contact:before{
    content: url('../img/vineta.png');
    vertical-align: middle;
    margin-right: 5px;

}

h2.sub:after{
    content: '';
    display: block;
    height: 40px;
    width: 100%;
}

h2.sub-contact{
    position: absolute;
    width: 20%;
    top: 13%;
    left: 10%;
}
/************* AREA AVISOS *******************/

.aviso{
    width: 100%;
    padding: 15px 10%;
    background-color: lightyellow;
    font-size: 14px;

    /*** FLEXBOX ****/
    display: flex;
}
.aviso-sm{
    width: 100%;
    padding: 5px 15%;
    background-color: lightyellow;
    font-size: 12px;

    /*** FLEXBOX ****/
    display: flex;
}
.aviso p, .aviso-sm p{
    margin-top: 10px;
    margin-left: 10px;
    color: purple;
}
.aviso-sm p{
    margin-top: 7px;
    margin-left: 10px;
    color: purple;
}
/************* IMAGE WIDGETS *******************/

#recent-products .prod-widget{
/*    background: #8a2f92;*/
    width:200px;
    height: 200px;
    transition: transform 300ms;
    
}

#recent-products  .prod-widget:hover{
    transform: scale(1.2);
}

#recent-products .prod-widget .prod-img{
    color: #FFF;
    width: 200px;
    height: 150px;
/*    background-color: #df1991;*/
    text-align: center;
   padding-top: 45px;
    font-size: 14px;
    position: relative;

} 
.prod-img img{
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: contain;
}

#recent-products a{
    text-decoration: none;
}
.prod-widget .prod-img-title{
    text-align: center;
    background-color:#F7E500;
/*    color: #fff;*/
    width: 190px;
    height: 40px;
    margin-top: 5px;
    margin-left: 5px;
    display:flex;
    justify-content: center;
    align-items: center; 
    padding: 5px;
    font-size: 14px;
}
/*.prod-img::before{
   margin-top: 45px;
    content: 'IMAGEN \A NO \A DISPONIBLE';
    white-space: pre;
}*/
/********** END IMAGE WIDGETS *******************/

/********** SEARCH PAGE *******************/

table#products-table{
    width: 90%;
    border-collapse:collapse;
      font-size: 9pt;

}
table#products-table tr:hover {
    background: #FDE72D;
}
table#products-table tr *{
    text-align:center;
    padding: 18px 10px;
    border: 1px solid #ccc;
}
table#products-table tr th{
    background-color:purple;
    color: #fff;
}

#products-table tr td a{
text-decoration: none;
padding: 0;
border: none;
}
#search-params{
    width: 100%;
    background-color: #009440;
   
    margin-top: 20px;
    padding: 10px 0;
}

.search-params-form{
    width: 90%;
    margin-left: 5%;
    text-align: center;
    background-color: #fff;
    padding: 10px 0;
    border-radius: 15px;

    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;


}
.search-params-form fieldset{
    width: 48%;
    text-align: center;
    flex-grow: 0;
    border: none;
}

.search-params-form fieldset label{
  display: inline-block;
  width: 30%;
  font-size: 18px;
  text-align: right;
  margin-right: 5px;
}
.search-params-form select{
    width: 65%;
    margin-top: 0px !important;
    font-size: 25px;
    color: purple;
}

.search-params-form fieldset.form-left-col label{
  
}
.search-params-form fieldset.form-center-col label{
  
}
.search-params-form fieldset.form-right-col label{
    /* margin-left: -150px; */
  }
.search-params-form fieldset.form-right-col select{
  /* margin-left: -45px; */
}
.search-params-form div{
    margin-top: 10px;
}
.search-params-form fieldset.form-left-col div{
    margin-left: 50px;
}
.search-params-form fieldset.form-right-col div{
}
.form-right-col{
    text-align: center !important;
}
.search-params-form input[type=text]{
    width: 65%;
    font-size: 25px;
    color: purple;
    text-align: center;
}
.search-params-form select{
    padding: 5px;
    margin-top: 20px;
}
.search-params-form input[type=text], .search-params-form select{
    height: 50px;
    padding: 0px;
    border:1px solid purple;
    outline: none;
}
.search-params-form input[type=text]:focus{
    background-color:#EEE;
}
.search-params-form input[type=submit]{
    background-color: #009440;
    color: #fff;
    height: 40px;
    padding: 5px 15px;
    margin-bottom: 0;
    font-size: 16px;
    border: none;
    margin-top: 50px;
    cursor: pointer;

}
.search-msj{
    font-size: 28px;
    font-weight: bold ;
    color:red;
}

/* ---- MODAL WINDOW ---- */

/****** Prueba con JS********/
/*.modal-bg{
    top: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.6);
    position: fixed;
    height: 100%;
    width: 100%;
    display: none;
}
.modal{
    background: linear-gradient(0deg,white 70%, crimson 30%);
    width: 600px;
    height: 300px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    position: absolute;
    display: flex;
    flex-direction: column;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 30px;

}
.modal_cerrar{
    background: white;
    position: absolute;
    right: -20px;
    color: crimson;
    top: -20px;
    width: 40px;
    height: 40px;
    border-radius: 25px;
    display: flex;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.modal_titulo{
    color: white;
    font-size: 40px;
}
.modal_mensaje{            
   padding: 10px 30px;
}
.modal_botones{      
    width: 100%;    
   background: whitesmoke;
   border-top:whitesmoke 1px;
   padding-top: 20px;
   display: flex;
   justify-content: space-evenly;
}

.boton{
    background: white;
    padding: 8px 30px;
    color: crimson;
    text-decoration: none;
    border-radius: 25px;
    border:1px solid crimson
}
.boton:hover{
    background: crimson;
    color: white;
}*/

/****** MODAL SIN JS **

.modalDialog {
    position: fixed;
    font-family: Arial, Helvetica, sans-serif;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    opacity:0;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}
.modalDialog:target {
    opacity:1;
    pointer-events: auto;
}
.modalDialog > div {
    width: 70%;
    position: relative;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    transition: opacity 400ms ease-in;
}
.close {
    background: #F61183;
    color: #FFFFFF;
    line-height: 40px;
    position: absolute;
    right: -18px;
    text-align: center;
    top: -20px;
    width: 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 1px 1px 3px #000;
    font-size: 26px;
    text-shadow: -1px -1px #555;
}
.close:hover { 
    background: red;
}

.modal-product-description{
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.mod-prod-img{
    width: 500px;
    height: 350px;
    background-color: #eee;
    border:1px solid purple;
}
.mod-prod-desc{
    width: 400px;
    height: 300px;
    background-color: #eee;
    border:1px solid purple;
    margin-left: 15px;
    flex-grow: 1;
}
*/






.modalDialog {
    position: fixed;
    top: 0;
    right: 0;
    bottom: 0;
    left: 0;
    background: rgba(0,0,0,0.7);
    z-index: 99999;
    opacity:0;
    transition: opacity 400ms ease-in;
    pointer-events: none;
}
/*.modalDialog:target {
    opacity:1;
    pointer-events: auto;
}*/
.modalDialog > div {
    width: 70%;
    position: relative;
    margin: 5% auto;
    padding: 30px;
    border-radius: 10px;
    background: #fff;
    transition: opacity 400ms ease-in;
}
.close {
    background: #F61183;
    color: #FFFFFF;
    line-height: 40px;
    position: absolute;
    right: -18px;
    text-align: center;
    top: -20px;
    width: 40px;
    text-decoration: none;
    font-weight: bold;
    border-radius: 25px;
    box-shadow: 1px 1px 3px #000;
    font-size: 26px;
    text-shadow: -1px -1px #555;
}
.close:hover { 
    background: red;
}

.modal-product-description{
    margin-top: 20px;
    display: flex;
    align-items: center;
}
.mod-prod-img img{
    width: 500px;
    height: 350px;
    background-color: #eee;
}
.mod-prod-desc{
    width: 400px;
    height: 300px;
    padding: 40px;
    text-align: justify;
    background-color: #eee;
    margin-left: 15px;
    flex-grow: 1;
}
.mod-prod-desc h2{
    background-color: purple;
    text-align: center;
    color: #FFF;
    padding: 5px;
}
.mod-prod-desc #txt-destino{
    margin-top: 30px;
}
.button-pointer{
 cursor: pointer;
}



/********  CARRUSEL DE IMAGENES **********/
.carousel{
            min-width: 500px;
            margin: 0 auto;
        }
#imagen {
    width: 100%;
    height: 350px;
    background-size: contain;
    background-repeat:no-repeat;
    background-position-x: center;
}
#c-controls{
    display: flex;
    justify-content: space-around;
    margin-top: 5px;
}
#c-controls button{
    width: 100px;
    padding: 4px;
    border: none;
    background-color: purple;
    color: white;
    font-size: 14px;
}
#c-controls button:hover{
    background-color: #df1991;
}
#c-controls button:active{
    background-color: green;
}


/********** END SEARCH PAGE *******************/


/********** CONTACT PAGE *******************/

#contact{
    background: linear-gradient(
            to bottom,
            #efefef 0%,
            #efefef 30%,
            #009440 30%,
            #009440 70%,
            /*#61bd2f 30%,
            #61bd2f 70%,*/
            #efefef 70%,
            #efefef 100%
        );
       
}
.contact-card{
    width: 60%;
    height: 420px;
    background-color: #FFF;
    border-radius: 15px;
    box-shadow: 0px 4px 10px -5px rgba(53,50,50,0.74);
    margin-top: 40px;
    margin-bottom: 40px;
    position: relative;

    /* Flexbox */
    display: flex;

    justify-content: space-around;
    align-items: center;
    flex-flow: row wrap;

}
.contact-form-image{
    width: 200px;
    height: 200px;
    margin-left: 5%;
}
.contact-card > form{
    width: 65%;
    display: flex;
    justify-content: space-around;
    align-items: center;
    flex-flow: column wrap;
}
.contact-card > form input{
    width: 80%;
    height: 30px;
    margin-bottom: 20px;
    background-color: #e5e5e5;
    border: 0;
    outline: none;
    padding-left: 10px;
}
.contact-card > form textarea{
    width: 80%;
    margin-bottom: 20px;
    resize:none;
    background-color: #e5e5e5;
    border: none;
    padding: 10px 0 0 10px;
}
.contact-card > form textarea:focus{
    outline: none;
    background-color: #ccc;
    border: 1px solid purple;
}
.contact-card > form .submit-button-contact-form{
    background-color: #009440;
    color: #fff;
    height: 40px;
    padding: 0;
    margin-bottom: 0;
    font-size: 16px;
    cursor: pointer;

}
.contact-card > form input:focus{
background-color:#CCC;
border: 1px solid purple;
}

/********** END CONTACT PAGE *******************/

footer {
    background:#2c3e50;
    width: 100%;
/*    margin-top:50px;*/
    color:#fff;
    padding:20px 50px 20px 50px;
    font-size: 14px;

    /* Flexbox */
    display: flex;
    flex-wrap:wrap;
    justify-content:space-around;
}

footer section{
    width: 40%;
}

footer .footer-title{
    padding: 20px 0;
}

footer .footer-title p{
}

footer .social a{
    margin-left: 10px;
}

footer .social a:nth-child(2){
    margin-left: 0px;
}

footer .copy-right{
    width: 90%;
    padding: 30px 0px 0px 0px;
    margin-top:30px;
    border-top: 1px solid #aaa;
    color: #999;
}


