header {
    position: relative;
    height: 200px;
    padding: 20px;
    background: rgb(250,0,0);
    /*background: radial-gradient(circle, rgba(250,0,0,1) 33%, rgba(180,0,0,1) 100%, rgba(57,8,8,1) 100%);*/
    background: linear-gradient(140deg, rgba(255,0,0,1) 0%, rgba(200,6,6,1) 10%, rgba(20,13,235,1) 48%, rgba(0,8,148,1) 100%);
    /*overflow: hidden; /* Para ocultar cualquier parte de la imagen que exceda el div */
}
header > * {
    z-index: 100;
} 
/*header img.santa {
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
    left: 0;
    object-fit: cover; /* Esto ajustará la imagen para que ocupe todo el espacio del div sin deformarla */
/*}*/
/*//////////////////////////////////////////////////////////////////*/
header .logo {
    position: relative;
    height: 100%;
    width: 200px;
    transition: .2s;
}
header .logo:hover {
    cursor: pointer;
}
header .contenedor_imagen {
    position: absolute;
    height: 75%;
    margin-top: 20px;
}
header .contenedor_imagen .imagen {
    max-height: 100%; /* Evita que la imagen sea más alta que el header */
    width: auto;
}

/*//////////////////////////////////////////////////////////////////*/
header .buscador {
    position: absolute;
    margin: auto;
    right: -40px;
    left: 0px;
    top: 0px;
    margin-top: 65px;
    width: 45vw;
    height: auto;
}
header .busc-text {
    width: 100%;
    height: auto;
    text-align: center;
    align-items: center;
}
header .busc-text .busc-select {
    position: absolute;
    left: 1px;
    top: 1px;
    border-radius: 20px;
    border: 1px solid var(--color-rojo);
    padding: 10px 15px;
    background-color: transparent;
    outline: none;
    cursor: pointer;
}
header .busc-text input {
    flex: 1;
    border: 1px solid transparent;
    border-radius: 20px;
    padding: 12px 50px 12px 140px;
    width: 100%;
    margin: 0px;
    font-size: 13px;
    transition: .2s;
    box-sizing: border-box;
}
header .busc-text input:focus {
    outline: none;
    border: 1px solid red;
}
header .busc-text button {
    position: absolute;
    background-color: transparent;
    right: 1px;
    top: 1px;
    color: #555;
    font-size: 16px;
    cursor: pointer;
    padding: 10px 20px;
    border-radius: 20px;
    border: none;
}
header .busc-apartados {
    display: flex; 
    width: 85%;
    height: auto;
    margin: 10px auto;
    font-size: 0px;
    box-sizing: content-box;
    flex-wrap: wrap; 
}
header .busc-apartados .busc-in-line {
    width: 33.333%;
    color: white;
    border: 1px solid transparent;
    font-size: 14px;
    text-align: center;
    box-sizing: border-box;
    border-radius: 3px;
    position: relative;
    display: flex; 
    align-items: center; 
    transition: border-color .2s;
}
header .busc-apartados .busc-in-line > div {
    display: inline-block;
    padding: 8px;
    margin: 0px;            
}
header .busc-apartados .busc-in-line div.busc-apart-name {
    width: 80%;
}
header .busc-apartados .busc-in-line div.busc-apart-icon {
    width: 20%;
}
header .busc-apartados .busc-in-line:hover {
    cursor: pointer;
    border: 1px solid rgba(229, 229, 229, .8);
}
header .busc-apartados .busc-in-line:hover div.busc-apart-name,
header .busc-apartados .busc-in-line:hover div.busc-apart-icon {
    background-color: rgba(229, 229, 229, .1);
}
header .busc-apartados .busc-in-line div.busc-apart-icon:hover {
    background-color: rgba(229, 229, 229, .3);
}
header .busc-apartados .busc-in-line div.busc-apart-catalogo {
    position: absolute;
    left: -1px;
    top: 32px;
    margin: auto;
    padding: 3px;
    width: 235px;
    max-height: 400px;
    overflow: auto;
    color: black;
    font-weight: bold;
    background-color: rgba(229, 229, 229, 1);
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
    border: 1px solid rgba(0, 0, 0, 0.2);
    visibility: hidden;
    opacity: 0;
    cursor: default;
}
header .busc-apartados .busc-in-line div.busc-apart-icon:hover .busc-apart-catalogo {
    visibility: visible;
    opacity: 1;
}
header .busc-apartados .busc-in-line div.busc-apart-catalogo div {
    margin: 0px;
    text-align: left;
    padding: 7px;
    display: flex;
    color: rgba(0, 0, 0, 0.5);
}
header .busc-apartados .busc-in-line div.busc-apart-catalogo div:hover {
    color: rgba(0, 0, 0, 1);
    background-color: rgba(240, 240, 240, .8);
    cursor: pointer;
}
@media (max-width: 768px) {
    header .busc-apartados .busc-in-line div.busc-apart-catalogo {
        width: 100%;
    }
}

/*//////////////////////////////////////////////////////////////////*/
header .npi {
    position: absolute;
    top: 8px;
    right: 8px;
    width: 100%;
    height: auto;
}
header .npi > div {
    float: right;
    font-size: 18px;
    padding: 18px;
    color: white;
    border-radius: 30px;
}
header .npi > div:hover {
    cursor: pointer;
    background-color: rgba(229, 229, 229, .3);
}

@media (max-width: 768px) {
    header {
        padding: 10px !important;
    }
    /*//////////////////////////////////////*/
    header .logo {
        height: 45% !important;
        width: 20%;
    }
    header .contenedor_imagen {
        margin-top: 0px;
        height: 100%;
    }
    /*//////////////////////////////////////*/
    header .buscador {
        margin-top: 90px;
        margin-left: 0px;
        left: 10px;
        width: 95vw;
        height: 75px !important;
    }
    header .busc-apartados {
        width: 100%;
    }
    /*/////////////////////////////////////*/
    header .npi {
        top: 20px;
    }
    header .npi > div {
        font-size: 18px;
        padding: 12px;
    }
}