:root{
    --vsf-body-color: #707070;
    --vsf-primary-color: #81b700;
}

/*** General ***/
html{
    scroll-behavior: smooth;
}
body{
    font-family: 'Roboto', sans-serif;
    color: #707070;
    font-size: 0.9rem;
    background: #FAFAFA;
    position: relative;
}

img {
    height: auto;
}

a{
    color: var(--vsf-primary-color);
    transition: all 300ms ease;
}
a:hover{
    color: var(--vsf-primary-color);
    text-decoration: underline;
}

h1{
    color: #000;
}

h2{
    color: #000;
    font-size: 1.7rem;
    line-height: 1.2;
}

h3{
    color: #000;
    font-size: 1.5rem;
    font-weight: 400;
}

h4{
    color: #000;
    font-size: 1.3rem;
    font-weight: 400;
}

h5{
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color:#000;
    font-weight: 500;
}

h6{
    font-size: 1rem;
    margin: 0 0 0.5rem 0;
    color:var(--vsf-primary-color);
    font-weight: 400;
}

h1.page-title{
    margin-bottom: 2rem;
    font-size: 2rem;
    font-weight: 300;
}

h1.page-title.page-title-list{
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 1.1rem;
}
h1.page-title.page-title-list::after {
    content: "";
    display: block;
    border-top: 2px solid var(--vsf-primary-color);
    width: 2rem;
    margin-top: 0.7rem;
}

blockquote{
    position: relative;
    padding-left: 2rem;
}
blockquote:before{
    -moz-osx-font-smoothing: grayscale;
    -webkit-font-smoothing: antialiased;
    display: inline-block;
    font-style: normal;
    font-variant: normal;
    text-rendering: auto;
    line-height: 1;

    font-family: 'Font Awesome 5 Pro';
    font-weight: 900;
    content: "\f10e";
    color: #A6A6A6;

    position: absolute;
    top: 0.3rem;
    left: 0;
}
blockquote p{
    color: #000;
    margin-bottom: 0.4rem;
}
blockquote cite{
    color: #A6A6A6;
    font-style: normal;
}
blockquote cite:before{
    display: inline-block;
    content: "";
    border-top: 2px solid #A6A6A6;
    width: 1rem;
    margin-right: 0.5rem;
    padding-top: 0.3rem;
}

/* Boostrap */

figure{
    margin: 0;
}

/*** Header ***/
.site-header{
    transition: all 0.3s ease;
    position: relative;
    box-shadow: 0 2px 4px rgba(0,0,0,0.15);
}

/* Animacion cabecera fija - slide */

.site-header-fixed-pre .site-header.site-header-animation-slide{
    top: -100%;
    position: fixed;
}

/*.site-header-fixed-pre,
.site-header-fixed{
    padding-top: 117px;
}*/
.site-header-fixed-pre .site-header.site-header-animation-slide .site-header-top{
    display: none;
}

.site-header-fixed .site-header.site-header-animation-slide{
    position: fixed;
    top:0;
    left:0;
    right: 0;
    z-index: 1000;
}

.admin-bar.site-header-fixed .site-header.site-header-animation-slide{
    top: 32px;
}
@media screen and (max-width:782px){
    .admin-bar.site-header-fixed .site-header.site-header-animation-slide{
        top: 46px;
    }
}
@media screen and (max-width:600px){
    .admin-bar.site-header-fixed .site-header.site-header-animation-slide{
        top: 0;
    }
}

#wpadminbar{
    z-index: 3;
}

/* Animacion cabecera fija - fade */

.site-header.site-header-animation-fade{
    position: fixed;
}
.admin-bar .site-header.site-header-animation-fade{
    top: 32px;
}

/* Header top */
.site-header-top{
    background: var(--vsf-primary-color);
    color: #fff;
    padding: 0.25rem 0 0 0;

    font-weight: 300;
}
.site-header-top a{
    color: #fff;
}
.site-header-top p{
    margin: 0;
}

.site-header-top .row > div:first-child{
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Header main */
.site-header-main{
    background: #fff;
    position: relative;
}

.site-header-main > .container{
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: relative;
}

/* Logo */

.site-header .site-branding a{
    display: block;
    padding: 0.9375rem 0;
}
.site-header .site-branding a img{
    display: block;
    height: auto;
    transition: all 0.3s ease;

    width: 110px;
}
.site-header .site-title{
    display: none;
}
.site-header .site-description{
    display: none;
}

/* Progresss */

.site-header .progress{
    height: 3px;
    border-radius: 0;
    background: transparent;
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
}
.site-header .progress .progress-bar{
    transition-timing-function: ease-out;
    background-color: #fff;
}

/*** Footer ***/

/* Footer main */

.site-footer-main .social{
    display: inline-block;
    width: 2.625rem;
    height: 2.625rem;
    text-align: center;
    border-radius: 50%;
    background: rgba(255,255,255,0.3);
    margin: 0.4rem 1rem 0 0;
    line-height: 2.625rem;
    font-size: 1.25rem;
}
.site-footer-main .social:hover{
    background: #fff;
    color: var(--vsf-primary-color);
}

/* Footer bottom */
.site-footer-bottom p{
    margin: 0;
}

/* Go up */

.go-up{
    display: none;

    position: fixed;
    bottom: 2rem;
    right: 2rem;
    background: #fff;
    color: #9C9C9C;
    border-radius: 5px;
    border: 0;
    padding: 0.3rem 0.6rem;
    box-shadow: 0 0 4px rgba(200, 200, 200, 0.9);
    z-index: 2;
}

/*** Main ***/
.site-main-container{
    background: transparent;
    /*min-height: calc(100vh - 146px);*/
    padding-top: 2rem;
}
.site-main{
    margin-bottom: 2rem;
}

/*** Search ***/

.search-opener{
    background: transparent;
    border:0;
    color: #666;
}

.site-header-fixed .search-opener{
    color: #7f7f7f;
}

/* Search form */
.search-form{
    display: block;
    position: relative;
}
.search-form .screen-reader-text {
    border: 0;
    clip: rect(0, 0, 0, 0);
    height: 1px;
    margin: -1px;
    overflow: hidden;
    padding: 0;
    position: absolute;
    width: 1px;
}
.search-form .search-field {
    display: block;
    width: 100%;
    border:2px solid #ddd;
    border-radius: 4px;
    padding: 3px 2rem 3px 5px;
}
.search-form .search-submit{
    position: absolute;
    top: 0;
    right: 0;
    bottom: 0;
    background: transparent;
    border: 0;
    padding: 0 0.5rem;
}
.search-form .search-submit .fas{
    font-size: 1rem;
    color: #666;
}

/* Search - header */

.search-form-container{
    background: var(--vsf-primary-color);
    padding: 0.5rem;

    display: none;
}

.search-form-container .search-form{
    width: 100%;
}
.search-form-container .search-form .search-field{
    background: transparent;
    border: 0;
    color: #fff;
    padding: 5px 5px 5px 2rem;
    font-weight: 300;
    letter-spacing: 0.025rem;
}
.search-form-container .search-form .search-field::placeholder{
    color: #fff;
}
.search-form-container .search-form .search-field:focus{
    box-shadow:0 0 3px rgba(255,255,255,0.3);
}
.search-form-container .search-form .search-submit{
    left: 0;
    right: unset;
}
.search-form-container .search-form .search-submit .fas{
    color: #fff;
}
.search-form-container .search-closer{
    border: 0;
    background: transparent;
    color: #fff;
}

.site-header-main .search-form-container{
    background: var(--vsf-primary-color);
    padding: 0.5rem;
    position: absolute;
    top:0;
    bottom:0;
    left:0;
    right:0;
    z-index: 10;
}
.site-header-main .search-form-container .container{
    height: 100%;
}

.site-header-main .search-form .search-field{
    height: 100%;
}

/*** Breadcrumb ***/
.breadcrumb{
    background: transparent;
    padding: 0;
}

/*** 3 barras -> cruz ***/

.menu-toggle-btn {
    cursor: pointer;
    width: 30px;
    height: 30px;
    background: transparent;
    padding: 0;
    border: 0;
    margin: 0;
}
.menu-toggle-btn .icon-bar {
    background: #1d1d1b;
    display: block;
    width: 30px;
    height: 4px;
    border-radius: 5px;
    margin-bottom: 5px;
    transition: all 0.3s ease;
}
.menu-toggle-btn .icon-bar:nth-child(3){
    margin-bottom: 0;
}
.menu-toggle-btn.open .icon-bar:nth-child(1),
.menu-toggle-btn.open .icon-bar:nth-child(3) {
    transform: translate(0px, 2px) rotate(-45deg) scalex(1.3);
    margin: 0;
}
.menu-toggle-btn.open .icon-bar:nth-child(2) {
    height: 0;
    margin: 0;
}
.menu-toggle-btn.open .icon-bar:nth-child(3) {
    transform: translate(0px, -2px) rotate(45deg) scalex(1.3);
}

/* Responsive oembed */
:not(.wp-block-embed__wrapper) > .embed-container {
    position: relative;
    padding-bottom: 56.25%;
    overflow: hidden;
    max-width: 100%;
    height: 0;
}

:not(.wp-block-embed__wrapper) > .embed-container iframe,
:not(.wp-block-embed__wrapper) > .embed-container object,
:not(.wp-block-embed__wrapper) > .embed-container embed {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* audio */

.mejs-container{
    z-index: 1;
}

/*** Contenido lateral desplegable ***/

.side-toggle-container{
    position: fixed;
    top:0;
    bottom: 0;
    width: 500px;
    right: -500px;
    transition: all 0.5s cubic-bezier(0.77, 0, 0.175, 1);
    z-index: 1001;
}

.side-toggle-container > ul{
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 150px;
    left: -150px;
    list-style: none;
    padding: 0;
    margin: 0;
    transition: all 0.3s cubic-bezier(0.23, 1, 0.32, 1);
}
.side-toggle-container > ul li{
    box-shadow: 0 0 4px rgba(200, 200, 200, 0.9);
    border-right: 0;
    margin-bottom: 0.85rem;
    font-size: 12px;
    text-transform: uppercase;
    position: relative;
    transition: all 0.3s ease;
}
.side-toggle-container > ul li a{
    display: flex;
    align-items: center;
    background: #fff;
    transition: all 0.3s ease;
}
.side-toggle-container > ul li a .fas,
.side-toggle-container > ul li a .far,
.side-toggle-container > ul li a .fab{
    padding: 1rem 1rem;
    width: 3.625rem;
    height: 3.625rem;
    text-align: center;
    line-height: 1.625rem;
    font-size: 1.25rem;
    transition: all 0.3s ease;
    border-right:1px solid transparent;
}
.side-toggle-container > ul li a .text {
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    margin-left: -0.4rem;
    transition: all 0.3s ease;
}

.side-toggle-container > ul li.link a{
    background: var(--vsf-primary-color);
    color: #fff;
}

.side-toggle-container > ul li a:hover{
    text-decoration: none;
}

.side-toggle-container > ul li .side-toggle-close{
    transition: all 0.3s ease;
    border:0;
    background: #fff;
    color: var(--vsf-primary-color);
    position: absolute;
    top:0;
    left:0;
    padding: 0;

    visibility: hidden;
    opacity: 0;
}
.side-toggle-container > ul li .side-toggle-close .fas,
.side-toggle-container > ul li .side-toggle-close .far,
.side-toggle-container > ul li .side-toggle-close .fab{
    padding: 1rem 1rem;
    width: 3.625rem;
    height: 3.625rem;
    text-align: center;
    line-height: 1.625rem;
    font-size: 1.25rem;
    font-weight: 500;
}

/* Opcion de solo mostrar el icono (y texto en hover) */

.side-toggle-container > ul li{
    margin-left: 102px;
}
.side-toggle-container > ul li a .text{
    margin-left: 0;
}
.side-toggle-container > ul li:hover,
.side-toggle-container.open > ul li{
    margin-left: 0;
}
.side-toggle-container > ul li:hover a .text,
.side-toggle-container.open > ul li a .text{
    margin-left: -0.4rem;
}

/* Content */

.side-toggle-content{
    padding: 0;
    background: #fff;
    position: relative;
    z-index: 2;
    height: 100vh;
    overflow-x: hidden;
    overflow-y: scroll;
}

.side-toggle-content article .entry-content{
    padding: 0 15px;
}
.side-toggle-content article .entry-content .container{
    max-width: unset;
}

/* open */
.side-toggle-container.open2{
    right: 0;
    box-shadow: 0 0 4px rgba(200, 200, 200, 0.9);
}
.side-toggle-container.open > ul{
    left: -3.625rem;
}
.side-toggle-container.open2 > ul li a .fas{
    border-color: #EAEAEA;
}
.side-toggle-container.open > ul li a .text{
    margin-left: 0;
}

.side-toggle-container.open > ul li.open a .fas{
    border-color: transparent;
}
.side-toggle-container.open > ul li.open a:hover{
    color: var(--vsf-primary-color);
}
.side-toggle-container.open > ul li.open2 .side-toggle-close{
    visibility: visible;
    opacity: 1;
}

/*** 404 ***/

.page-404{
    background-image: url("../img/fondo-malla.jpg");
    background-position: center center;
    background-repeat: no-repeat;
}
.page-404 .site-main-container{
    padding-top: 5.5rem;
    padding-bottom: 5.5rem;
}
.page-404 h1{
    font-weight: 700;
    font-size: 2.25rem;
}
.page-404 h2{
    font-weight: 300;
    font-size: 1.625rem;
    margin-bottom: 1rem;
}
.page-404 h2:after{
    content: "";
    display: block;
    border-top:2px solid var(--vsf-primary-color);
    width: 2rem;
    margin-top: 1rem;
}
.page-404 p{
    margin-bottom: 2rem;
}

/*** CONTACT FORM 7 ***/
.wpcf7-form-control-wrap{
    display: block;
    margin:  0 0 0.8124rem 0;
}

.wpcf7-form-control.wpcf7-text,
.wpcf7-form-control.wpcf7-date,
.wpcf7-form-control.wpcf7-select,
.wpcf7-form-control.wpcf7-textarea{
    width: 100%;
    background: #E9EBED;
    border-radius: 4px;
    border: 0;
    padding: 0.8125rem 0.8125rem;
    margin: 0;
    -webkit-appearance:none;
}

.wpcf7-form-control.wpcf7-submit{
    position: relative;
    display: inline-block;
    color: #fff;
    background: var(--vsf-primary-color);;
    text-align: center;
    vertical-align: middle;
    user-select: none;
    border: 2px solid var(--vsf-primary-color);
    line-height: 1.5;
    border-radius: 0.25rem;
    transition: color 0.15s ease-in-out, background-color 0.15s ease-in-out, border-color 0.15s ease-in-out, box-shadow 0.15s ease-in-out;
    padding: 0.6rem 1.5rem 0.5rem 1.5rem;

    font-size: 0.9rem;
    letter-spacing: 0.06rem;
    font-weight: 500;
}
.wpcf7-form-control.wpcf7-submit:hover {
    color: var(--vsf-primary-color);
    background: #fff;
    border-color: var(--vsf-primary-color);
    text-decoration: none;
}
.wpcf7-form-control.wpcf7-submit:focus{
    outline: 0;
    box-shadow: 0 0 0 0.2rem rgba(0, 0, 0, 0.15);
}
.wpcf7-form-control.wpcf7-submit:disabled {
    opacity: 0.65;
}

span.wpcf7-not-valid-tip {
    font-style: italic;
}

.wpcf7-legal{
    font-size: 0.75rem;
}

/* select2 */
.wpcf7-form-control-wrap .select2-container--bootstrap .select2-selection--single{
    background: #fff;
    border-radius: 4px;
    border: 0;
    padding: 0.8125rem 0.8125rem;
    margin: 0;
    box-shadow: unset;
    height: auto;
    line-height: 1.5rem;
}

/*** slick js ***/

.slick-dots li{
    margin: 0 0.25rem 0 0;
}
.slick-dots li button::before{
    font-size: 1.0rem;
}
.slick-dots li button::before{
    color: #BCBCBC;
    opacity: 1;
}
.slick-dots li.slick-active button::before{
    color: #fff;
    opacity: 1;
    border:1px solid #fff;
    border-radius: 50%;
}

/* swiper */
.swiper-container-horizontal > .swiper-pagination-bullets{
    bottom: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    z-index: 2;
}
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet{
    width: 16px;
    height: 16px;
    background: #BCBCBC;
    opacity: 1;
    margin-left: 6px;
    margin-right: 6px;
}
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet-active{
    width: 20px;
    height: 20px;
    position: relative;
    background: transparent;
    border: 1px solid var(--vsf-primary-color);
    margin-left: 4px;
    margin-right: 4px;
}
.swiper-container-horizontal > .swiper-pagination-bullets .swiper-pagination-bullet-active:before{
    content: " ";
    position: absolute;
    top: 4px;
    bottom: 4px;
    left: 4px;
    right: 4px;
    background: var(--vsf-primary-color);
    border-radius: 50%;
}

.swiper-button-prev{
    left: 5px;
}
.swiper-button-next{
    right: 5px;
}
.swiper-button-prev:after,
.swiper-button-next:after{
    font-size: 16px;
    font-weight: 800;
    color: #D3D3D3;
}

/*** Media queries ***/

/* Large devices (landscape tablets, desktops) */
@media (max-width: 1199px) {

}

/* Medium devices (vertical tablets) */
@media (max-width: 991px) {

}

/* Small devices (landscape phones)  */
@media (max-width: 767px) {
    .side-toggle-container > ul {
        left: -56px;
    }
    .side-toggle-container > ul li a .text {
        margin-left: 0;
    }
}

/* Small devices (vertical phones) */
@media (max-width: 575px) {
    .site-header-top{
        display:none;
    }
}