@charset "utf-8";
/* CSS Document */
#telefonoflotante {
    display: block;
    margin-left: auto;
    margin-right: 0px;
    width:3rem;
    height: auto;
    position: fixed;
    bottom: 6rem;
    right: calc(var(--rellenohorizontalfijo) * 2 + var(--margenhorizontal));
    z-index: 15;
    background-image:url("../imagenes/llamar.svg");
    background-size: 100% 100%;
    transition: background-image .2s ease-out 0s, transform .2s ease-out 0s;
   /* box-shadow: 1px 1px 3px 0px rgba(2,0,36,1);*/
 
}
#telefonoflotante img {
    display: block;
    width: 100%;
    height: auto;
}
#telefonoflotante:hover {
    background-image:url("../imagenes/llamar-hover.svg");
    transform: scale(1.2);
}
    
#encabezado {
    position: sticky;
    top: 0px;
    padding-top: 1rem;
    padding-bottom: 1rem;
    padding-left: calc(var(--rellenohorizontalfijo) + var(--margenhorizontal));
    padding-right: calc(var(--rellenohorizontalfijo) + var(--margenhorizontal));
    display: flex;
    align-items: center;
    transition: border-radius .2s ease-in 0s;   
    background-color: var(--g100);
    border-bottom: solid var(--margenvertical) var(--g000);
    z-index: 11;
    border-radius: var(--radio-g);
}

#logo {
    height: 3em;
    width: auto;
    cursor: pointer;
    display: block;
}
#encabezado > div {
    flex-grow: 1;
    font-size: var(--l-link);
}
#lineaarriba {
    margin-bottom: 1rem;
}
#lineaarriba, #lineaabajo {
    display: flex;
    justify-content: flex-end;
    align-items: center;
}
#contenedoridiomas, #contenedoridiomas1 {
    font-size: var(--l-lang);
    margin-right: 2em;
}
#contenedoridiomas a, #contenedoridiomas1 a {
    font-weight: 600;
}
#contenedoridiomas a:not(:first-of-type), #contenedoridiomas1 a:not(:first-of-type), #contenedoridiomas1 img {
    margin-left: 1em;
}
#contenedorbuscador {
    display: flex;
    align-items: center;
    line-height: 1em;
}
#contenedorbuscador #lupa {
    width: 1.5em;
    height: auto;
    background-image: url(../imagenes/lupa.svg);
    background-size: 100% 100%;
    transition: background-image .2s ease-out 0s;
}
#contenedorbuscador #lupa:hover {

    background-image: url(../imagenes/lupa-hover.svg);
}
#contenedorbuscador #lupa img {
    width: 100%;
    height: auto;
    cursor: pointer;
}
#contenedorbuscador select {
    color: var(--a200);
    border: solid 1px var(--a200);
    background-color: var(--g000);
    border-radius: var(--radio-p);
}
#referencia {
    margin-left: .5rem;
    margin-right: .5rem;
    background-color: var(--g000);
    border: solid 1px var(--a100);
    border-radius: var(--radio-p);
    color: var(--g300);
    width: 6em;
}
#lineaabajo nav {
    flex-grow: 1;
    display: flex;
    justify-content: space-around;
    padding-left: 1em;
    padding-right: 1em;
}

#encabezado nav a:hover {
    background-size: 100% 1px;
}
#encabezado > div a:not(.boton1) {
    color: var(--a300);
    font-size: var(--l-link);
    transition: transform .2s ease-out 0s;
    display: inline-block;
}
#encabezado nav a {
    background-image:url("../imagenes/punto-vinculos.png");
    background-repeat: no-repeat;
    background-size: 0px 1px;
    background-position: left bottom;
    transition: background-size .2s ease-out 0s;
}
#encabezado nav a.activo {
    background-size: 100%  1px;    
}
#encabezado #contenedoridiomas a:hover, #encabezado #contenedoridiomas1 a:hover {
    transform: translateY(-2px);
}
#lineaabajo nav span:not(:first-of-type) a:not(:first-of-type) {
    margin-left: 1.5rem;
}

#contenedoraccesos a {
        padding-left: .5em;
        padding-right: .5em;
}
#encabezado1 {
    display: flex;    
    justify-content: space-between;
    align-items: center;
}
#contenedoridiomas1 {
    display: none;
    margin-right: 0px;
}
@media (max-width: 1200px) {    
    #lineaabajo nav span:not(:first-of-type) a:not(:first-of-type) {
        margin-left: .5rem;
    }       
}
@media (max-width: 1000px) {
    #lineaarriba {
        margin-bottom: .675rem
    }
    #lineaabajo {
        display: flex;
        flex-direction: column-reverse;
        align-items: flex-end;
    }
    #contenedoraccesos {
        margin-bottom: .75em;
    }
    #contenedoraccesos a {
        padding-left: 1.5em;
        padding-right: 1.5em;
    }
    #lineaabajo nav {
        width: 100%;
    }
}
@media (max-width: 750px) {
    #logo {
        height: 3.25em;
            width: auto;
            cursor: pointer;
            display: block;
    }
    #contenedoridiomas {
        display: none;
    }
    #contenedoridiomas1 {
        display: flex;
        align-items: flex-start;
    }
    #contenedoridiomas1 a {
        margin-top: .125em;
    }
    #encabezado {
        flex-direction: column;
        padding-bottom: 0px;
    }
    #encabezado #encabezado1 {
        width: 100%;
        flex-grow: 0;
    }
    #encabezado2 {
        width: 100%;
        display: flex;
        flex-direction: column;
        flex-grow: 1;
    }
    #lineaarriba, #lineaabajo {
        width: 100%;
        justify-content: flex-start;
        align-items: flex-start;
    }
    #lineaabajo {
        flex-grow: 1;
    }
    #lineaabajo nav span {
        flex-grow: 1;
        display: flex;
        flex-direction: column;
        margin:0px;
        justify-content: space-evenly;
        align-items: flex-start;
    }
    
    #lineaabajo nav span:nth-of-type(2) {
        flex-grow: 2;
    }
    #encabezado #lineaabajo nav span a {
        margin: 0px;
    } 
    #encabezado #lineaabajo nav span a {
        font-size: 1.25em;
    }
     #contenedoraccesos .boton1, #contenedorbuscador {
        font-size: 1.25em;
    }
    #lineaabajo nav {
        flex-direction: column;
        flex-grow: 1;
        padding: 1rem 0px;
    }
    #encabezado2 {        
        height: 0px;
        transform: scale(1,0);
        transform-origin: top center;
        transition: transform .2s ease-in .0s,height .2s ease-in .0s,padding-top .2s ease-in .0s;
    }
    
    
}
@media (max-width: 700px) {
    #encabezado {
        padding-left: var(--rellenovertical);
        padding-right: var(--rellenovertical);
    }
}
@media (max-width: 600px) {  
    
    #telefonoflotante {
        width: 2.5em;
    }
}
@media (max-width: 550px) {
  
  #lineaabajo {
      flex-direction: column;
  }
  #contenedoraccesos {
        display: flex;
        flex-direction: column;
        align-self: stretch;
        text-align: center;
    }
    #contenedoraccesos .boton1:first-of-type {
        margin-bottom: 1rem;
    }
    #contenedorbuscador {
        flex-wrap: wrap;
        justify-content: center;
        margin-bottom: 1.5rem;
        width: 100%;
        margin-bottom: 0px;
    }
    #contenedorbuscador select {
        width: 100%;
        margin-bottom: 1rem;
    }
    #contenedorbuscador select option {
        font-size: 1.5rem;
    }
    #contenedorbuscador select option:first-of-type {
        text-align: center;
    }
    #lineaabajo nav {
        padding-top: 0px;
    }
 
}