/*********************** 
*** Tipos de fuentes ***
***********************/
@font-face { font-family: BONKUS-BO; src: url(BONKUS-BOLD.OTF) }
@font-face { font-family: BONKUS-ME; src: url(BONKUS-MEDIUM.OTF) }
@font-face { font-family: BONKUS-RE; src: url(BONKUS-REGULAR.OTF) }
@font-face { font-family: OPENSANS-RE; src: url(OPENSANS-REGULAR.TTF) }

/***************************** 
*** Contenedores plantilla ***
*****************************/
body {
    background: #ededed;
    font-family: 'OPENSANS-RE';
    color: #000000;
    font-size: 20px;
    line-height: 1.6em;
    margin: 0;
}

.container {
    width: 85.70%;
    max-width: 1644px;
    margin: 0 auto;
}

/************************** 
*** Barra fija superior ***
**************************/

.header {
    background: #ededed;
    color: #b2b2b2;
    padding: 2rem 0;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
}

.topnav {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;    /* permite bajar de linea cuando no cabe en la actual */
    font-family: 'BONKUS-BO';
}

.tb_logo {
    width: 28.56%;
    max-width: 548px;
    font-size: 5.0vw;
    color: #000000;
    text-decoration: none;
}

.tb_buscar {
    width: 59%;
    font-size: 18px;
}

.tb_buscar input[type=text] {
    margin-right: 10px;
    padding: 8px;       /* Altura del campo de texto*/
    width: 96%;
    background-color: #ebebeb;
    background-image: url('ico_lupa_off.png');
    background-size: 29px 29px;
    background-position: right; 
    background-repeat: no-repeat;
    border: none ;
    border-radius: 8px;
}

.tb_buscar input[type=text]:hover {
    background-color: #ffffff;
    opacity: 50%;
    outline: none;
}

.tb_buscar input[type=text]:focus {
    background-color: #ffffff;
    background-image: url('ico_lupa_on.png');
    opacity: 50%;
    outline: none;
}

.tb_usuario {
    padding-top: 10px;
    margin: 5px 5px;
    opacity: 50%;
}
.tb_usuario:hover {
    opacity: 100%;
}

.tb_idiomas {
    float: right;
    padding-top: 15px;
}

/* Order por defecto de los elementos de la barra superior */

#tb_logo_or     {order: 1;}
#tb_buscar_or   {order: 2;}
#tb_usuario_or  {order: 3;}
#tb_idiomas_or  {order: 4;}

/* RESPONSIVE: Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .header {
        height: 10px;
    }
    #tb_logo_or     {order: 2;}
    #tb_buscar_or   {order: 1;}
    #tb_usuario_or  {order: 3;}
    .tb_logo {
        width: 75%;
        text-align: center;
        font-size: 40px; 
    }
    .tb_buscar {
        width: 10%;
        background-position: left; 
    }
    .tb_usuario {
        width: 10%;
    }
    .tb_idiomas {
        visibility:hidden;
    }
}

/**************************** 
**** Barra fija inferior ****
****************************/

#footer {
    position: fixed; 
    bottom: 0;
    left: 0px;
    width: 100%;
    height: 50px; /*70*/  
    background-color: #ffffff;
    font-family: BONKUS-RE;        /* Tipo de letra */
    font-size: 20px;
}
/*#footer*/ 
.nav {
    /*margin-left: 7.15%;*/

    width: 85.70%;
    max-width: 1644px;
    margin: 5px auto;
    justify-content: space-between;
}

ul, ol {
    list-style: none;
    padding: 0px 0px 0px 0px;
}

/* menu principal */
.nav > li {
    float: left;
    width: 30%;
}

.nav li a {
    padding: 5px 5px;
    display: block;
    background-color: #ffffff;
    color: #b2b2b2;
    text-decoration: none;
    text-align: left;
}
.nav li a:hover {
    color: #000000;
}

/* submenu drop-up */
.nav li ul {
    bottom: 45px;       /* Posicion donde empieza la 1ª opcion del submenu*/
}

.nav li:hover > ul {
    display: block;
    opacity: 80%;
}

.nav li ul {
    display: none;
    position: absolute;
    min-width: 185px;
}
  
.nav li ul li {
    position: relative;
    text-align: center;
    font-size: 20px;
}
  
.nav li ul li a:hover {
    color: #000000;
}

/* Enlaces RRSS */
#footer-ico {
    display: flex;
    float: right;
    padding-top: 10px;
    margin: 5px 5px;
    opacity: 50%;
}
#footer-ico:hover {
    opacity: 100%;
}

.foo_creditos {
    /*padding-top: 5px;*/
    font-size: 16px;
    color: #000000;
    opacity: 90%;
}

/* RESPONSIVE: Extra small devices (phones, 600px and down) */
@media only screen and (max-width: 600px) {
    .nav {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }

    .nav > li {
        float:none;
        width: 42.85%; /* prueba */
    }

    .nav li a {
        text-align: center;
    }
}    

/************************** 
*** Barra fija superior ***
**************************/

.main {
    line-height: 1.6em;
    padding-top: 8rem;
    padding-bottom: 1rem;
}

h1 {
    font-size: 2rem;
    line-height: 1.3em;
}

p {
    margin-bottom: 0;
}

a:link, a:visited, a:active {
    text-decoration: none;
    color: inherit;
}

.container-14 {
    column-count: 14;
    padding-top: 3rem;
    padding-bottom: 8rem;
}

/*** Seccion 1. Color ***/

.container-color {
    position: relative;
    margin-left: 0%;
    width: 100%;
}

.color-titulo {
    position: absolute;
    width: 42.84%;
    max-width: 548px;
    top: 10%;
    margin-left: 7.15%;
    font-family: BONKUS-BO;
    font-size: 10.0vw;
    text-align: left;
    color: #ffffff;
}
.color-leyenda {
    position: absolute;
    width: 64.26%;
    max-width: 1234px;
    top: 34%;
    margin-left: 21.42%;
    font-family: BONKUS-ME;
    font-size: 4.0vw;
    text-align: right;
    line-height: 1.1em;
    color: #ffffff;
}


.color-titulo2 {
    position: absolute;
    width: 42.84%;
    max-width: 548px;
    top: 10%;
    margin-left: 7.15%;
    font-family: BONKUS-BO;
    font-size: 10.0vw;
    text-align: left;
    color: #ffffff;
}
.color-leyenda2 {
    position: absolute;
    width: 64.26%;
    max-width: 1234px;
    top: 34%;
    margin-left: 14.28%;
    font-family: BONKUS-ME;
    font-size: 4.0vw;
    text-align: right;
    line-height: 1.1em;
    color: #ffffff;
}


/* version móvil < 768px*/
@media only screen and (max-width: 767px) {
    
    .menu-icon {
        display: block;
        cursor: pointer;
    }

    .navigation {
        width: 100%;
        margin-top: 1rem;
    }

    .navigation ul {
        display: none;
    }

    .navigation ul.show {
        display: block;
    }

    .navigation ul li {
        display: block;
    }
    
    .navigation ul li a {
        display: block;
        padding: 0.5rem 0;
        transition: all 0.4s linear;
        border-radius: 5px;
    }   
    
    .navigation ul li a:hover {
        background: #ffffff;
        color: #000000;
    }
}
