/*
Theme Name: Tema Naturgy
Theme URL:
Description: Diseño Naturgy
Author: GaoFreelance
Author
Template: twentyseventeen
Version: 1.0.0
Text Diseño Naturgy para Wordpress
*/

@font-face {
    font-family: 'FSEmericWeb';
    src: url('./fonts/FSEmericWeb-Bold.woff');
    font-weight: bold;
}

@font-face {
    font-family: 'FSEmericWeb';
    src: url('./fonts/FSEmericWeb-Medium.woff');
    font-weight: 500;
}

@font-face {
    font-family: 'FSEmericWeb';
    src: url('./fonts/FSEmericWeb-Regular.woff');
    font-weight: 400;
}

@font-face {
    font-family: 'FSEmericWeb';
    src: url('./fonts/FSEmericWeb-Thin.woff');
    font-weight: 300;
}

:root {
    --color-naturgy-blue: #004571;
    --color-naturgy-orange: #E57200;
    --color-naturgy-white: #FFFFFF;
    --color-naturgy-brown: #7A7256;
    --color-naturgy-grey: #BFB8AE;
    --color-naturgy-light-grey: #e7e7e7;
    --color-naturgy-red: #D3222A;
    --color-naturgy-yellow: #FFD833;
    --color-naturgy-green: #A2AD00;
    --color-naturgy-text: #403D3A;
}

/* width */
::-webkit-scrollbar {
    width: 7px;
}

/* Track */
::-webkit-scrollbar-track {
    box-shadow: inset 0 0 7px grey;
    border-radius: 3px;
}

/* Handle */
::-webkit-scrollbar-thumb {
    background: #767676;
    border-radius: 3px;
}

/* Handle on hover */
::-webkit-scrollbar-thumb:hover {
    background: var(--color-naturgy-orange);
}

input {
    user-select: none;
    -khtml-user-select: none;
    -o-user-select: none;
    -moz-user-select: -moz-none;
    -webkit-user-select: none;
}

input, input:before, input:after {
    -webkit-user-select: initial;
    -khtml-user-select: initial;
    -moz-user-select: initial;
    -ms-user-select: initial;
    user-select: initial;
    -webkit-appearance: none;
}

html {
    scroll-behavior: smooth;
}

*  {
    box-sizing: border-box;
}

body {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: "FSEmericWeb" !important;
}

.elementor-widget-text-editor {
    font-family: "FSEmericWeb" !important;
}

h1,h2,h3,h4,h5 {
    margin: 0;
    font-weight: normal;
}

p {
    margin: 0;
}

.sticky-header {
    z-index: 999;
    position: fixed !important;
    width: 100%;
    top: 0;
}

body {
    margin-top: 70px;
}

@media screen and (max-width: 1024px) {
    body {
        margin-top: 99px;
    }
}

.container-naturgy {
    width: 100%;
    margin: 0 auto;
    padding: 0 15px;
    max-width: 1120px;
}

.elementor-widget:not(:last-child) {
    margin: 0 !important;
}

.margin-right-auto > div {
    margin-right: auto !important;
    margin-left: 0 !important;
}

.btn-naturgy {
    cursor: pointer;
    padding: 10px 25px;
    border-radius: 40px;
    font-size: 15px;
    line-height: 20px;
    font-weight: 600;
    color: var(--color-naturgy-white);
    border: 2px solid;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.btn-naturgy.inactive {
    cursor: not-allowed;
    opacity: 0.5;
}

.btn-naturgy.btn-naturgy-primary {
    background-color: var(--color-naturgy-orange);
    border-color: var(--color-naturgy-orange);
}

.btn-naturgy.btn-naturgy-primary:not(.inactive):hover {
    background-color: var(--color-naturgy-white);
    color: var(--color-naturgy-orange);
}

.btn-naturgy.btn-naturgy-secondary {
    background-color: var(--color-naturgy-blue);
    border-color: var(--color-naturgy-white);
}

.btn-naturgy.btn-naturgy-secondary:not(.inactive):hover {
    background-color: var(--color-naturgy-grey);
}

.btn-naturgy.btn-naturgy-ternary {
    background-color: #fff;
    border-color: var(--color-naturgy-blue);
    color: var(--color-naturgy-blue);
}

.btn-naturgy.btn-naturgy-ternary:not(.inactive):hover {
    background-color: var(--color-naturgy-blue);
    border-color: var(--color-naturgy-blue);
    color: #fff;
}

.title-simulator h1 {
    font-size: 48px;
    line-height: 58px;
    font-weight: 600;
    color: var(--color-naturgy-text);
}

.title-simulator p {
    color: var(--color-naturgy-orange);
    font-size: 30px;
    font-weight: 400;
    line-height: 40px;
}

@media screen and (max-width: 768px){
    .title-simulator h1 {
        font-size: 30px;
        line-height: 35px;
        margin-bottom: 8px;
    }
    .title-simulator p {
        font-size: 24px;
        line-height: 28px;
    }
}

/* Input Range */

input[type='range'] {
    width: 100%;
    -webkit-appearance: none;
    height: 12px;
    max-height: 12px;
    border-radius: 24px;
    border: none;
    outline: none;
    padding: 0;
    transition: background 450ms ease-in;
    -webkit-appearance: none;
}

input[type='range']::-webkit-slider-thumb {
    cursor: ew-resize;
    -webkit-appearance: none;
    width: 40px;
    height: 40px;
    background: url('/wp-content/themes/naturgy/assets/input-range.png') no-repeat center center;
    background-size: cover;
    box-shadow: none;
}

input[type=range]::-moz-range-thumb {
    width: 40px;
    height: 40px;
    border: 0;
    background: url('wp-content/themes/naturgy/assets/input-range.png') no-repeat center center;
    background-size: contain;
    cursor: pointer;
    box-shadow: none;
}

@media screen and (max-width: 798px) {

    input[type='range'] {
        height: 10px;
        max-height: 10px;
    }

    input[type='range']::-webkit-slider-thumb {
        width: 30px;
        height: 30px;
    }

    input[type=range]::-moz-range-thumb {
        width: 30px;
        height: 30px;
    }
}

.form-group-naturgy {
    position: relative;
    height: 60px;
    width: 100%;
    background: #FFFFFF;
    margin-bottom: 25px;
}

.form-group-naturgy label {
    z-index: 0;
    position: absolute;
    top: 17px;
    left: 16px;
    color: #403D3A;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
    margin: 0 0 5px 0;
    -webkit-transition: 0.3s;
    transition: 0.3s;
}

.form-group-naturgy input {
    position: relative;
    background: transparent;
    height: 60px;
    width: 100%;
    z-index: 2;
    outline: none;
    font-size: 16px;
    line-height: 18px;
    padding: 7px 16px 0 16px;
    color: #7A7256;
    border: 1.6px solid #BFB8AE;
    border-radius: 4px;
}

.form-group-naturgy label.active {
    top: 8px;
    color: #004571;
    font-size: 12px;
    font-style: normal;
    font-weight: 400;
    line-height: 18px;
}

.form-group-naturgy-check {
    display: flex;
    align-items: center;
}

.form-group-naturgy-check input {
    cursor: pointer;
    width: 24px;
    min-width: 24px;
    height: 24px;
    background: #FFFFFF;
    border: 1.6px solid var(--color-naturgy-blue);
    border-radius: 4px;
    margin-right: 12px;
}

.form-group-naturgy-check input:checked {
    background: url('/wp-content/themes/naturgy/assets/form/check.png') no-repeat center center;
    background-size: cover;
}

.form-group-naturgy-check label {
    font-weight: 400;
    font-size: 15px;
    line-height: 18px;
    color: #403D3A;
    margin: 0;
}


/* Check in circle */

.switch {
    position: relative;
    display: inline-block;
    width: 60px;
    min-width: 60px;
    height: 34px;
    border-radius: 34px;
    margin: 0;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.switch .slider {
    position: absolute;
    cursor: pointer;
    border-radius: 34px;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    border: 2px solid var(--color-naturgy-blue);
    background-color: #fff;
    -webkit-transition: .4s;
    transition: .4s;
}

.slider:before {
    position: absolute;
    content: "NO";
    height: 26px;
    width: 26px;
    left: 2px;
    border-radius: 34px;
    bottom: 2px;
    display: flex;
    justify-content: center;
    color: #fff;
    font-size: 12px;
    line-height: 12px;
    align-items: center;
    background-color: var(--color-naturgy-blue);
    -webkit-transition: .4s;
    transition: .4s;
}

.switch input:checked + .slider {
    background-color: var(--color-naturgy-blue);
}

.switch input:focus + .slider {
    box-shadow: 0 0 1px var(--color-naturgy-blue);
}

.switch input:checked + .slider:before {
    content: "SI";
    -webkit-transform: translateX(26px);
    -ms-transform: translateX(26px);
    transform: translateX(26px);
    background-color: #fff;
    color: var(--color-naturgy-blue);
}

.input-naturgy {
    position: relative;
    width: 100%;
    padding: 8px 8px 8px 12px;
    border-radius: 4px;
    border: 1px solid #D9D1C5;
    background: #FFF;
}

.input-naturgy label {
    color: var(--color-naturgy-blue);
    font-size: 12px;
    font-weight: 400;
    line-height: 18px;
}

.input-naturgy input {
    width: 100%;
    background: #FFFFFF;
    font-size: 16px;
    height: 24px;
    color: var(--color-naturgy-text);
    border: none;
    outline: none;
}

.input-naturgy .value-symbol {
    color: var(--color-naturgy-text);
    position: absolute;
    bottom: 8px;
    right: 16px;
    font-size: 16px;
    font-style: normal;
    font-weight: 400;
    line-height: 24px;
}

.pencil-edit {
    cursor: pointer;
    display: flex;
    color: var(--color-naturgy-blue);
    font-size: 14px;
}

.pencil-edit img {
    width: 20px;
    height: auto;
    margin-left: 8px;
}