/*
Theme Name: BifazTheme
Author: Luisa Cidoncha Polo
Description: Tema desarrollado para el dominio web bifaz.es 
Version: 1.1
ForgeoTheme WordPress Theme, (C) 2022 bifaz.es
Text Domain: bifaz

*/

/*

0.1 FOOTER
0.2 HEADER 
0.3 NAVEGACIÓN [header & main]
1.0 HOME > front-page.php                           is_front_page()
2.0 SERVICIOS > page.php                            is_page('x')
//7.0 ERROR > 404.php                               is_404()
//8.0 POLÍTICA PRIVACIDAD Y AVISO LEGAL> page.php   is_page('x')
//9.0 



/*
@media (max-width: 1080px)
@media (max-width: 820px)
@media (max-width: 480px)
@media (max-width: 375px)
@media (min-width: 1081px)
@media (min-width: 821px) 
@media (min-width: 481px)
@media (min-width: 376px)
*/




/*VARIABLES*/
:root {
    
    --gray1: #BDBCBC;                             /*claim*/
    --gray2: #808080; /*rgba(128,128,128,1.00)*/  /*logoBg*/
    --gray2T: rgba(128,128,128,0.24);
    --gray3: #5C5C5C; /*rgba(92,92,92,1.00)*/     /*BIFAZ*/
    --green: #A2DA41;/*rgba(162,218,65,1.00)*/
    --darkBg: #3e343b;
    
    --line: 1.44rem;
    --phi3: calc(((100vw / 1.618) / 1.618)/ 1.618);
}


/*GENERAL*/
*, ::before, ::after {box-sizing: border-box;}
input, textarea, keygen, select, button {font-size: inherit;font-family: inherit;
line-height: inherit;}
a{text-decoration: none;}

html{
    /*scroll-behavior: smooth;*/
}
body{margin:0;}

::selection {
    background-color:aquamarine;
    background-color: #92c4c4;
    color:darkolivegreen; /*#556B2F*/
}

/*:focus {
    outline: 2px dashed rgb(100, 255, 218);
    outline-offset: 3px;
}*/

figure{margin:0;}
img {max-width: 100%;/*eliminar margen inferior imágenes display: block;*/}


/*
////////////////////////////////////////////////////////////////////
////////////////////////   UTILITY CLASS   /////////////////////////////// 
////////////////////////////////////////////////////////////////////
*/


/*ul.reset*/
.list--reset, .list--reset ul {
    list-style-type: none; 
    margin-top:0; margin-bottom: 0; 
    padding-left:0;
}

/*.flexx, .flexxParent>* { 
    display: flex; 
    flex-wrap: wrap; 
    justify-content: space-between;
    align-items: center;
}*/
.block{display: block;}
.none{display:none}
.column{flex-direction: column;}
.nowrap{ flex-wrap: nowrap;}
.abs{ position: absolute;}
.rel{ position:relative;}
.fixed{ position: fixed;}

.right { text-align: right;}
.left{text-align:left }
.center{text-align:center;}

.img_as_bg{
    background-size: cover;
    background-position: center;
}
.upper{text-transform: uppercase}


/*
////////////////////////////////////////////////////////////////////
///////////////////////////////  TEXTOS  //////////////////////////////////// 
////////////////////////////////////////////////////////////////////
*/

/*TEXTOS: FONT  ||||||||||||||||||||||||||||||||||||||| */

/*
    font-family:'Raleway';
    
    Thin 100
    ExtraLight 200 
    Light 300
    Regular 400 
    Medium 500 
    SemiBold 600 
    Bold 700  
    ExtraBold 800
    Black 900
    All italics

    font-family: 'GFS Didot';
    Regular 400
*/

body{
    margin:0;
    font-family: Raleway, Verdana, "sans-serif";
    font-size: 1.1rem;
    line-height: var(--line);
}

h1,h3,h4, .title{
   font-weight: normal; 
}

.home h1{
    font-size: 2.8753rem;
    line-height: 3rem;
}
h2{
    font-family: GFS Didot, Didot, "monospace";
    font-size: 3rem;
    line-height: 3rem;
    margin:2.5rem 0rem;
    
}
p, ul{
    margin-top: var(--line);
    margin-bottom: var(--line);
}
li{
    margin-bottom: var(--line);
}

.primary a, .text_container /*.text_container>ul*/{ 

    text-shadow: 1px 1px 2px rgba(33,30,32,0.60);
    text-transform: uppercase;
    letter-spacing: 0.24em;
    font-size: 62%;
}

/*COLOR*/

.primary li, .primary a{ 
    color: var(--gray1);
}

h1{color:var(--gray1);}
h2, a{color:var(--green);}
h3, .title{color:white;}

section{
    color: var(--gray1);
}

@media (max-width: 820px){
    h2{
        font-size: 2rem;
        line-height: 2rem;
    }
    h2, a{
        overflow-wrap: break-word;
    }
    .home h1{
        margin-top: 0;
    }
}

body, nav{background-color: var(--darkBg);}

/*
////////////////////////////////////////////////////////////////////
///////////////////////////////  HEADER  //////////////////////////////////// 
////////////////////////////////////////////////////////////////////
*/

header{
    position: fixed;
    top: 0;
    height: 100vh;
    min-width: var(--phi3);
    z-index: 2;
}

nav{
    position: relative; 
    height: 100%;
}

.logo{
    padding: 1rem;
    display: block;
    text-align: center;
}

@media (max-width: 820px){
    header{
        height: 62vh;
        min-width: 100%;
        margin-top: 38vh;
    }
        
    nav{
        transition: opacity 1s;
        opacity: 1;
        /*background-color: inherit;
        background-image: linear-gradient(0deg, rgba(13,11,12,1)80%, rgba(49,49,49,0.0)100%);*/
    }
    .logo{
        transform: translateY(-100%);
        padding: inherit;
        height: 38vh;
        display: flex;
        justify-content: center;
        opacity: 1;
        transition: opacity .5s;
    }
    .logo svg{
        filter: drop-shadow(0 0 0.75rem rgba(0,0,0,0.75));
    }
}

.primary {
    position: absolute;
    top: max(50vh, 400px);
    transform: translateY(-50%);
    left: 2rem;
    right: 5.5rem;
    min-width: 10rem;
    counter-reset: section 0 subsection;
}
.primary li {
    position: relative;
    padding-left: 2rem;
    border-bottom: 1px dotted;
}

.primary li:before{
    position:absolute;
    left:0px;
    counter-increment: subsection;
    /*content: counter(section) "." counter(subsection) " ";*/
    content: counter(section) counter(subsection) " ";
    color:#8c455f;
 }

/*
/////////////////////  .tertiary MENU FOOTER  //////////////////////////////////// 
*/

.tertiary{
    position: absolute;
    bottom: 0rem;
    right: 1rem;     
}
.tertiary a{
    color: var(--gray3);
}
.tertiary a:hover, .current_page_item a{
    filter: invert(69%) sepia(57%) saturate(438%) hue-rotate(39deg) brightness(98%) contrast(102%);
}
.tertiary li a{
    background-position: center center;
    background-repeat:no-repeat;
    padding-left: 3.5rem;
    width: 2.5rem;
    height: 2.5rem;
    font-size: 0;
    display: block;
}

.tertiary li:nth-child(1) a{/*home*/
    background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 105 85'%3E%3Cpath fill='rgba(92,92,92,1.00)' d='M51.1 20.8 16 50.1v31.6c0 1.7 1.4 3 3 3h20.2c1.7 0 3-1.4 3-3V64.5c0-1.7 1.4-3 3-3h11.6c1.7 0 3 1.4 3 3V82c0 1.7 1.4 3 3 3H86c1.7 0 3-1.4 3-3V50.1L53.9 20.8c-.8-.6-2-.6-2.8 0zm53.1 21.6L89 29.1V2.2C89 .8 87.9 0 86.8 0h-10c-1.4 0-2.2 1.1-2.2 2.2v14.1L58.9 2.5c-3.6-3-8.6-3-12.2 0L.8 42.4c-.8.8-1.1 2.2-.3 3.3l4.7 6.1c.6.8 1.9.8 3 .3l42.9-37.7c.8-.8 1.9-.8 2.8 0l42.9 37.7c.8.8 2.2.6 3-.3l4.7-6.1c.8-1.1.6-2.5-.3-3.3z'/%3E%3C/svg%3E" );
    background-size: 2.375rem;
}
.tertiary li:nth-child(2) a{/*email*/
    background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 80 55'%3E%3Cpath fill='rgba(92,92,92,1.00)' d='M79.3 6.3 58.7 27.4c-.2.1-.2.4 0 .5l14.5 15.5c1 1 1 2.6 0 3.5-1 1-2.6 1-3.5 0L55.2 31.6c-.2-.1-.4-.1-.5 0l-3.5 3.6c-2.9 3-6.9 4.7-11 4.7-4.2 0-8.3-1.7-11.3-4.8l-3.4-3.5c-.2-.1-.4-.1-.5 0L10.4 47c-1.2 1.2-3.4.9-4.1-.9-.4-.9-.1-2 .6-2.6L21.4 28c.1-.2.1-.4 0-.5L.7 6.3c-.1-.2-.4-.2-.5 0-.2 0-.2.1-.2.3v42.3C0 52.2 2.8 55 6.2 55h67.7c3.4 0 6.1-2.8 6.2-6.2V6.5c0-.2-.2-.4-.4-.4-.2.1-.3.1-.4.2zM40 35.3c2.8 0 5.6-1.1 7.5-3.2L77.8 1.3C76.7.5 75.4 0 74 0H6.1C4.7 0 3.3.5 2.3 1.3l30.2 30.8c2 2.1 4.7 3.2 7.5 3.2z'/%3E%3C/svg%3E" );
    background-size: 1.75rem;
}
.tertiary li:nth-child(3) a{/*phone*/
    background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 55 55'%3E%3Cpath fill='rgba(92,92,92,1.00)' d='M11.1 23.8c4.4 8.7 11.5 15.7 20.1 20.1l6.7-6.7c.8-.8 2-1.1 3.1-.7 3.5 1.2 7.2 1.7 10.8 1.7 1.7 0 3.1 1.3 3.1 3.1V52c0 1.7-1.4 3.1-3 3.1C23.3 55 0 31.7 0 3c0-1.7 1.4-3 3.1-3h10.7c1.7 0 3.1 1.4 3.1 3.1 0 3.7.6 7.3 1.7 10.8.4 1.1.1 2.3-.8 3.1 0 .1-6.7 6.8-6.7 6.8z'/%3E%3C/svg%3E" );
    background-size: 1.75rem;
}
.tertiary li:nth-child(4) a{/*legal*/
    background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 84 84'%3E%3Cpath fill='rgba(92,92,92,1.00)' d='M42 0C18.8 0 0 18.8 0 42s18.8 42 42 42 42-18.8 42-42S65.2 0 42 0zm19.8 58.7c-4.9 5-11.6 7.9-18.6 7.7-13.2.3-24.1-10.1-24.5-23.2v-1.4c-.2-13.2 10.2-24 23.4-24.3h.9c6.5-.2 12.8 2.2 17.5 6.6.6.7.7 1.7.2 2.5L57 32.5c-.6.9-1.9 1.2-2.8.6l-.2-.2c-2.9-2.5-6.6-3.9-10.5-4-6.7-.2-12.3 5-12.5 11.7v1.2c0 6.7 4.3 13.5 12.6 13.5 4.2-.2 8.1-1.9 11.1-4.8.8-.8 2-.9 2.9-.1l.3.3 4.2 5.7c.4.6.3 1.6-.3 2.3z'/%3E%3C/svg%3E" );
    background-size: 2rem;
}

/*
////////////////////////////////////////////////////////////////////
///////////////////////////////   MAIN   //////////////////////////////////// 
////////////////////////////////////////////////////////////////////
*/

.background{
    height: 100vh;
    background-size: auto 100vh;
    background-size: cover;
    width: 100vw;
    position: fixed;
/*transition: opacity 5s;
opacity: 0;*/
        
}
@media (max-width: 820px){
    .primary, .tertiary {
        top: 50%;
    }
    .tertiary{
        transform: translateY(-50%);
        bottom:inherit;
    }

    .bg_index{background-image:
            linear-gradient(0deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/mb/solar-energy-by-karsten-wurth--tzkyLKPvL4-unsplash.jpg");
    }
    .privacy-policy .bg_index{background-image:
            linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%), url("assets/images/mb/solar-energy-by-karsten-wurth--tzkyLKPvL4-unsplash.jpg");
    }
    .bg_anchor1{background-image: linear-gradient(0deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/mb/MA_AS_435968662.jpg");
    }
    .bg_anchor2{
        background-image:linear-gradient(0deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%), url("assets/images/mb/ing_AS_292147361.jpg");
    }
    .bg_anchor3{
        background-image: linear-gradient(0deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/mb/gestion_AS_227916631_2.jpg");
    }
    .bg_anchor4{
        background-image:linear-gradient(0deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/mb/forest_AS_267763955_2.jpg");
    }
    .bg_anchor5{        
        background-image: linear-gradient(0deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%), url("assets/images/mb/arqueo_AS_281859156_2.jpg");
    }
    
    section:target{    
        scroll-margin-top: 38vh;
    }
    
    
    
    .bg_anchor1, .bg_anchor2, .bg_anchor3, .bg_anchor4, .bg_anchor5, .bg_index{
    /*opacity: 1;*/

    }
}

@media (min-width: 821px){
    main{
        margin-left: var(--phi3);
    }
    section, .text_container{
        position: relative;
        min-height: 100vh;
    }
    /*.privacy-policy section, .privacy-policy .text_container{
        min-height: inherit;
    }*/
    .bg_index{background-image:
            url("assets/images/solar-energy-by-karsten-wurth--tzkyLKPvL4-unsplash.jpg");
    }
    .privacy-policy .bg_index{background-image:
            linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%), url("assets/images/solar-energy-by-karsten-wurth--tzkyLKPvL4-unsplash.jpg");
    }
    .bg_anchor1{background-image: linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/MA_AS_435968662.jpg");
    }
    .bg_anchor2{
        background-image:linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%), url("assets/images/ing_AS_292147361.jpg");
    }
    .bg_anchor3{
        background-image: linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/gestion_AS_227916631_2.jpg");
    }
    .bg_anchor4{
        background-image:linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%),url("assets/images/forest_AS_267763955_2.jpg");
    }
    .bg_anchor5{        
        background-image: linear-gradient(90deg, rgb(62, 52, 59), rgba(60, 27, 49, 0.7)32%, rgba(198, 118, 174, 0.13)62%), url("assets/images/arqueo_AS_281859156_2.jpg");
    }
    
    .bg_anchor1, .bg_anchor2, .bg_anchor3, .bg_anchor4, .bg_anchor5, .bg_index{
    /*opacity: 1;*/

    }
    .text_container{
        padding: 2rem;
        width: 38vw;
        /*background-image:linear-gradient(90deg, rgb(32, 29, 31), rgba(27,48,64,.2));*/
        
    }
    .text_container>ul{
        border-left: 1px dotted;
    }
}


.text_container ul{
    list-style-type: none; 
    margin-top:0; 
    margin-bottom: 0; 
}
.text_container>ul>li:before{
    content: url("assets/images/bifaz-arrow-down.svg");
    display: block;
    width: 4rem;
    width: 3rem;
}
.text_container ul ul li:before{
    content: "▲▲▲";
    content: "●";
    content:"c";
    display: inline-block;
    vertical-align: middle;
    /*width: .83rem;
    height: .83rem;
    border-radius: .415rem;*/
    font-size: 1.6rem;
    background-color: #8c455f;
    /*background-image: radial-gradient(circle at right, #8c455f, #282227);*/
    background-image: linear-gradient(90deg, rgba(140,69,95,0) 0%, rgba(251, 86, 90, 1) 50%, rgba(140,69,95,0) 50%, rgba(40, 34, 39, 0.4) 100%);
    margin-right: .5rem;
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;    

}

.menuBtn {
    display: none;
}


.social {
    position: fixed;
    top:2rem;
    right: 2rem;
    z-index: 3;
    width: 2rem;
}
.social a{
    margin-bottom: 1rem;
    display:block; 
    background-color: rgba(255,255,255,0.83); 
    width: 2rem;
    height: 2rem; 
    border-radius: 1rem;
    box-shadow: 0px 0px 6px rgba(255,255,255,0.83);
}
.social a:before{
    display:block;
    font-family: 'icomoon';
    content: "\e905";
    width: 2rem;
    height: 2rem;
    font-size: 2rem;
    line-height: 2rem;
    background-color: #8c455f;
    /*background-color: var(--green);*/
    background-image: linear-gradient(90deg, rgba(140,69,95,0) 0%, rgba(40, 34, 39, 0.4) 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    -moz-background-clip: text;
    -moz-text-fill-color: transparent;
    filter: brightness(1.5);
    
}
.social a:nth-child(2)::before{
    content: "\e906";  
}

.privacy-policy main>section, .privacy-policy main>h2{
    padding: 5rem;
}

section, .focusless, .focused{
    -webkit-transition: opacity 1.0s ease-in-out;
    -o-transition: opacity 1.0s ease-in-out;
    transition: opacity 1.0s ease-in-out;    
}
section.focused .text_container{/*background-color:rgba(24,81,104,0.85)*/}

.focusless{opacity: 0;}
.focused{opacity: 1;}

@media (max-width: 820px){
    
    .menuBtn {
        position: absolute;
        display: block;
        top:-4rem;
        right: 0.7rem;
        z-index: 3;
        width: 3.5rem;
        height: 3.5rem;
        border-radius: 2rem;
        background-color: var(--rgba(227,229,227,0.51));
    }

    .menuBtn:after{
            content:"⨯";
            font-size: 4rem;
            color:var(--green);
        } 
    .hideMenuIcon:after{
        content:" ";
        background-position: center center;
        background-repeat:no-repeat;
        background-size: 2rem;
        width: 2.5rem;
        height: 2.5rem;
        /*font-size: 0;*/
        display: block;
        background-image: url( "data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 448 512'%3E%3Cpath fill='rgba(162,218,65,1.00)' d='M0 96C0 78.3 14.3 64 32 64H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32C14.3 128 0 113.7 0 96zM0 256c0-17.7 14.3-32 32-32H416c17.7 0 32 14.3 32 32s-14.3 32-32 32H32c-17.7 0-32-14.3-32-32zM448 416c0 17.7-14.3 32-32 32H32c-17.7 0-32-14.3-32-32s14.3-32 32-32H416c17.7 0 32 14.3 32 32z'/%3E%3C/svg%3E" );
    }
    .hideMenu{
        opacity: 0;
    }

    main{background-color: 
        var(--darkBg);
        padding-top: 38vh;
    }
    .background { 
        height: 38vh;
        transform: translateY(-38vh);
    }
    section{min-height: 62vh;/*position: relative;*/}
    .index{
        /*padding-top: 38vh;*/
        height: 62vh;
        display: flex;
        flex-wrap: wrap;
        align-content:center;
    }
    .text_container, .cta,  .privacy-policy main>section, .privacy-policy main>h2{
        padding: 2rem;
    }
    .text_container ul{
        padding:0px;
    }
}

/*
/////////////////////  SECTION INDEX  //////////////////////////////////// 
*/
@media (min-width: 821px){
    .home .cta{
        position: absolute;
        left:calc(50vw - var(--phi3) + 2rem);
        top: 50vh;
        /*width: 480px;*/
        transform: translateY(-100%);
    }
}

.cta .btn {
    background-color: var(--gray2T);
    height: 56px;
    width: 320px;
    outline: 1px solid var(--green);
    color: var(--green);
    font-size: 1.25rem;
    line-height: 56px;
    text-align: center;
    margin: auto;
}


@media (max-width: 820px){
    .home .cta{
        text-align: center
        /*transform: translateY(-50%);*/
    }
}