@import "fonts.css";

:root {
    --background: #1e2d3b;
    --menu-color: #FFFFFF;
    --menu-hover-color: #ef7918;
    --language-bkg: #373b4d;
    --language-hover: #344655;
    --title-color: #ef7918;
    --title-shadow: rgba(255, 255, 255, 0.2);
    --section-color: #2e4456;
    --button-color: rgb(249, 198, 93);
    --fancy-shadow: #c8c8c8 1px 1px 0px, #b4b4b4 0px 2px 0px, #a0a0a0 0px 3px 0px, rgba(140, 140, 140, 0.498039) 0px 4px 0px, #787878 0px 0px 0px, rgba(0, 0, 0, 0.498039) 0px 5px 10px;
    --blue-color: rgb(91, 134, 176);
    font-family: "Lexend", sans-serif;

    --bulma-navbar-height: 8rem
}


html, body {
    background: var(--background);
}

header .navbar {
    background: var(--background);
    position: fixed;
    top: 0;
    z-index: 999;
    width: 100%;
    border-bottom: 1px solid #000000;
}

header .navbar-burger {
    color: var(--background);
    background-color: white;
}

header .navbar-burger:hover {
    background-color: var(--title-color);
}


header .logo img {
    margin: 1vw
}

header .menu {
    display: flex;
    flex-direction: row;
    align-items: center;
    text-align: center;
    flex-grow: 1;
    justify-content: center;
    margin-top: 1em;
    overflow: hidden;
}

header .menu li {
    display: inline-block;

    color: var(--menu-color);
    text-transform: uppercase;
    font-family: poppins, sans-serif;
    font-weight: 600;
    height: 50%

}

header .menu li[data-selected] {
    border-top: 4px solid #000000;
    padding-top: 0;
    color: var(--menu-hover-color);
}

header .menu li:hover {
    border-top: 4px solid var(--menu-hover-color);
    color: var(--menu-hover-color);

}

header .menu li a {
    color: inherit;
    padding: 1em 0 0 0;
    display: block;
    height: 100%;
}

header .language {
    display: flex;
    align-items: center;
}


.i18n {
    position: relative;
    white-space: nowrap;
    margin-left: auto;
    margin-right: 0;
    background-color: var(--language-bkg);
    border-radius: 2em;
}


.i18n-header {
    display: flex;
    margin: 1em
}

.i18n-header svg {
    fill: grey;
    display: inline-block;
    width: 1em;
    margin-left: 1em
}


.i18n-content {
    border-radius: inherit;
    display: none;
    position: absolute;
    min-width: 100%;
    z-index: 1;
    top: 0;
    left: 0
}


.i18n-content li {
    border-top: 1px solid #ffffff;
    display: flex;
    align-items: center;
}


.i18n-content li a {
    display: inline-block;
    margin: 0.5em 0 0.5em 1em;
    color: white;

}

.i18n-content li a img {
    vertical-align: middle;
    margin-right: 0.5em
}

.i18n-content li:first-child {
    border-top: none;
    margin-top: 0.5em
}

.i18n:hover .i18n-content {
    display: block;
    background-color: var(--language-hover);

}

.i18n:hover a:hover {
    color: var(--title-color)
}


@media (max-width: 1024px) {

    .logo {
        display: block;
        width: 100%;
        text-align: center
    }

    .navbar-burger {
        position: absolute;
        right: 1em
    }

    .i18n {
        position: static;
        margin: 1em auto
    }

    .i18n .i18n-header {
        display: none
    }

    .i18n .i18n-content {
        display: flex;
        position: static;
    }

    .i18n .i18n-content li {
        border: none
    }

    .i18n .i18n-content li:first-child {
        margin: 0
    }

    .i18n .i18n-content {
        display: flex;
    }

    .i18n:hover .i18n-content {
        display: flex;
    }


}


h1 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-size: 6vw;
    color: var(--title-color);
    text-shadow: var(--fancy-shadow);
    text-transform: uppercase;
    text-align: center;

    margin: 0 auto;
    letter-spacing: 0.2em;
}

h2 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 800;
    font-style: normal;
    font-size: 5vw;
    color: var(--title-color);
    text-shadow: rgba(0, 0, 0, 0.4) 0px 4px 5px;
    text-transform: uppercase;
    text-align: center;

    margin: 0 auto 0.5em auto;
    letter-spacing: 0.2em;
    display: block;

}

.deco-line:after {
    content: "";
    display: block;
    border: 5px solid var(--title-color);
    width: 20%;
    margin: 0.5em auto
}

.deco-chevron:after {
    content: "\00BB";
    display: block;
    width: 100%;
    color: white;
    margin: 0 auto;
    font-size: 100px;
    transform: rotate(90deg);
    transform-origin: center;
    font-weight: 200;
    text-align: center;
}

h3 {
    font-family: "Lexend", sans-serif;
    font-optical-sizing: auto;
    font-weight: 600;
    font-style: normal;
    font-size: 1.5em;
    text-shadow: rgba(0, 0, 0, 0.4) 0 4px 5px;
    color: var(--title-color);
}

strong {
    color: inherit;
    font-weight: bolder;
}

.button.yellow {
    border-radius: 0;
    background-color: var(--button-color);
    margin: 1em;
    box-shadow: rgba(0, 0, 0, 0.4) 0 4px 5px;
}

.big-text {
    text-shadow: rgba(0, 0, 0, 0.4) 0 4px 5px;
    color: white;
    font-size: 2vmax;
    text-align: justify;
}

.big-text p {
    margin-bottom: 1em
}

body.page-index .splash {
    margin: 2em 0 2em 0;
    display: flex;
    align-items: center
}

.splash img {
    margin: 0 auto
}

section.bkg-light {
    background-color: var(--section-color)
}


body.page-index section:first-of-type {
    background: url(bkg_index.webp);
    background-size: cover;
}


body.page-aislamiento .steps {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    grid-template-rows: repeat(2, 1fr);
    grid-column-gap: 0;
    grid-row-gap: 0;
    grid-auto-flow: column;
    counter-reset: section;
    row-gap: 1vw;
    column-gap: 1vw;
}

body.page-aislamiento .steps > * {
    align-self: center;
    justify-self: center;
}

body.page-aislamiento .steps > *:nth-child(even) {
    align-self: start;
}

body.page-aislamiento .steps p {
    color: #8F8F8F;
    text-align: left;
    font-size: 1em;
    font-weight: bold;
    position: relative;

}

body.page-aislamiento .steps p:before {
    counter-increment: section;
    content: counter(section);
    color: var(--title-color);
    font-size: 10vw;
    float: left;
    line-height: 0.8em;
    text-shadow: var(--fancy-shadow);
    padding: 0 0.2em 0.2em 0;
    height: 100%
}

@media (max-width: 768px) {
    body.page-aislamiento .steps p:before {

        display: block;
        text-align: center
    }
    body.page-aislamiento .steps:after {
        clear:both
    }

    body.page-aislamiento .steps {display: block; width: 100%; margin: 0 auto}
    body.page-aislamiento .steps img {display:none}
    body.page-aislamiento .steps p {clear:left}
}


body.page-comprometido {
    background: url(bkg_ecologico.webp) fixed;
    background-size: cover;
}

body.page-rentabilidad {
    background: url(bkg_rentabilidad.webp) fixed;
    background-size: cover;
}

body.page-comprometido .splash {
    margin: 0 auto;
    text-align: center;
}

body.page-comprometido .splash li {
    font-size: 5vw;
    font-family: "Playfair Display", Times, serif;
    font-weight: 700;
    color: var(--blue-color);
    text-shadow: 0 0 0.5em black;
}


footer {
    display: block;
    height: 100px
}

.gmap_view {
    margin: 0 auto;
    display: block;
    width: 70%;
    max-height: 450px;
    text-align: center
}

.gmap_view address {
    color: white;
    font-size: 2vw;
    display: block;
    text-align: right;
}

.page-contacto a {
    color: var(--title-color);
}