/*
    Theme Name: GymFitnessFlex
    Theme URI::
    Author: Daniela Melgarejo
    Author: https://dmdstudio.net/
    Description: Theme disign for gym 
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/licenses/gpl-2.0.html
    Tags: Gym, flexbox, css, grid, mobile 
    Text Domain: gymfitness
*/

:root{
    /* Main Fonts*/
    --mainFont: 'Staatliches', cursive;
    --textFont: 'Open Sans', sans-serif;
    --secundaryFont : 'Raleway', sans-serif;
  
    --mainColor : #ff5b00;
    --greyDark : #2f2e2e;
    --greyWhite: #ebebeb;
    --white: #ffffff;
    --black: #000000;

}

html {
    box-sizing: border-box;
    font-size: 62.5%; /* Now 10px = 1rem! */
}
body {
    font-size: 16px; /* px fallback */
    font-size: 1.6rem; /* default font-size for document */
    line-height: 2; /* a nice line-height */
    font-family: var(--secundaryFont);
}

*, *:before, *:after {
    box-sizing: inherit;
}

h1, h2, h3, h4{
    font-family: var(--mainFont);
    margin: 1rem 0;
    line-height: 1.2;
}

h1{
    font-size: 6rem;
}
h2{
    font-size: 4.8rem;
}
h3{
    font-size: 3.6rem;
}
h4{
    font-size: 2.4rem;
}

/*Globals*/

a{
    text-decoration: none;
}
ul{
    list-style: none;
    margin: 0;
    padding: 0;
}
img{
    max-width: 100%;
    height: auto;
}
.contenedor{
    max-width: 1200px;
    width: 95%;
    margin: 0 auto;
}

hr{
    border: 1px solid var(--greyWhite);
}

.imagen-destacada{
    margin-bottom: 3rem;
}
/**Utilicades**/

.text-center{
    text-align: center  !important;
}

.texto-primario{
    color: var(--mainColor);
}

.texto-blanco{
    color: var(--white);
}
.seccion{
    padding: 5rem 0;
}
.contenedor-boton {
    display: flex;
    justify-content: flex-end;
}

/** Boton **/
.boton {
    background-color: var(--white);
    color: var(--black);
    padding: 1rem 3rem;
    display: block;
    flex:1;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: .5rem;
}
@media (min-width: 768px) {
    .boton {
        display: inline-block;
        flex: 0 0 auto;
    }
}
.boton-primario {
    background-color: var(--mainColor);
    color: var(--white);
}

/** Header **/
body.home .site-header {
    padding-top: 2rem;
    height: auto;
    min-height: 70rem;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
@media (min-width: 768px) {
    body.home .site-header {
        height: 100vh;
        max-height:900px;
    }
    .header-grid {
        height: 100%;
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: repeat(5, 1fr);
    }
    .header-grid .barra-navegacion {
        grid-column: 1 / 5;
    }
}

.site-header{
    background-color: var(--greyDark);
}

@media(min-width:768px) {
    .barra-navegacion{
        display: flex;
        justify-content: space-between;
    }
}
/** Barra fija **/
@media (min-width: 768px) {
    body.ft-activo {
        margin-top: 4rem;
    }
    .fixed-top {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: var(--grisOscuro);
        padding: 1rem 5rem;
        height: 10rem;
        z-index: 10000;
        transition: all .3s ease;
    }
    .fixed-top img {
        width: 12rem;
    }
}

.logo{
    display: flex;
    justify-content: center;
}

.tagline {
    color: var(--white);
    margin-top: 5rem;
}
@media (min-width: 768px) {
    .tagline {
        grid-row: 3 / 4;
        grid-column: 2 / 4;
        margin-top: 0;
    }
}
.tagline p {
    font-size: 2rem;
}

/** Main Menu**/

.menu-primary{
    display: none;
}

@media(min-width: 768px){
    .menu-primary{
        display: flex;
        align-items: center;
        justify-content: flex-end;
    }

    .menu-primary .menu{
        display: flex;
        justify-content: space-around;
    }

    .menu-primary li{
        margin-right: 2rem;
    }

    .menu-primary li:last-of-type{
        margin-right: 0;
    }
}

.menu-primary a{
    font-family: var(--mainFont);
    color: var(--white);
    font-size: 2.2rem;
    padding: .5rem 2rem;
}

@media(min-width: 768px){
    .menu-primary a{
        font-size: 2.6rem;
        position: relative;
        z-index: 1;
    }

    .menu-primary a::before,
    .menu-primary a::after{
        position: absolute;
        content: '';
        display: block;
        width: 100%;
        height: 50%;
        background-color: var(--mainColor);
        z-index: -1;
        transform: scaleX(0);
        transition: transform .6s;
    }

    .menu-primary a::before{
        top: 0;
        transform-origin: left;
    }

    .menu-primary a::after{
        top: 50%;
        transform-origin: right;
    }

    .menu-primary a:hover::before{
        transform: scaleX(1);
    }
   
    .menu-primary a:hover::after{
        transform: scaleX(1);
    }
   
}

.menu-primary .current_page_item{
    border-bottom: 3px solid var(--mainColor);
}

/** Reescribir Estilos menú movil **/
body.home .slicknav_menu {
    background-color: transparent;
}

.slicknav_menu{
    background-color: var(--greyDark);
    display: flex;
    align-items: center;
    flex-direction: column;

}

@media(min-width: 768px){
    .slicknav_menu{
        display: none;
    }
}

.slicknav_btn{
    background-color: var(--mainColor);
    margin: 2rem 0;
    padding: 1.5rem;
}

.slicknav_nav a{
    font-size: 2.4rem;
    text-align: center;
    font-family: var(--mainFont);
}

.slicknav_nav a:hover{
    background: transparent;
    color: var(--mainColor);
}

/**Footer **/

.contenido-footer {
    padding: 4rem 0;
}
@media (min-width: 768px) {
    .contenido-footer {
        display: flex;
        justify-content: space-between;
    }
}

.site-footer .menu-primary {
    display: block;
   
}

.site-footer .menu-primary a {
    color: var(--black);
    text-align: center !important;
    font-size: 2.4rem;
    padding: 0 1rem;
}

.site-footer .menu-primary .current_page_item{
    border: none;
}
@media(min-width: 768px){
    .site-footer .menu-primary .current_page_item{
        border-bottom: 3px solid var(--mainColor);
    }
}


.site-footer .menu-primary a::before,
.site-footer .menu-primary a::after{
    display: none;
}

.copyright{
    text-align: center;
    font-family: var(--mainFont);
    font-size: 1.8rem;
    margin: 1rem 0 0 0 ;
}


@media(min-width: 768px){
    .copyright{
        font-size: 2.4rem;
        margin: 0;
    }
}

/**Pages**/
.pagina h1{
    margin-bottom: 4rem;
}

@media(min-width: 768px) {
    .pagina.con-sidebar{
        display: flex;
        justify-content: space-between;
    }
    .con-sidebar .contenido-principal{
        flex: 0 0 calc(70% - 2rem);
    }
    .con-sidebar .sidebar{
        flex: 0 0 calc(30% - 2rem);
    }
}

/**No sidebar**/
.no-sidebars{
    display: flex;
    justify-content: center;
}

.no-sidebar .contenido-principal{
    flex: 0 1 800px;
}

/** Single clases **/
.informacion-clase {
    font-weight: 700;
    font-family: var(--fuenteSecundaria);
    font-size: 2.2rem;
    text-align: center;
}

/** Clases**/
.lista-clases, 
.listado-blog{
    margin-top: 4rem;
}
@media (min-width: 768px) {
    .lista-clases,
    .listado-blog
   {
        display: flex;
        flex-wrap: wrap;
        justify-content: space-between;
    }
}
.listado-blog .card .contenido {
    padding: 0 2rem 2rem 2rem;
    text-align: center;
}
@media (min-width: 768px) {
    .listado-blog .card .contenido {
        text-align: left;
    }
}
.listado-blog .card h3 {
    margin: 0;
}

/** Cards**/

@media (min-width: 768px) {
    .gradient::after {
        content: '';
        display: block;
        position: absolute;
        left: 0;
        right: 0;
        bottom: 0;
        top: 0;
      /* Permalink - use to edit and share this gradient: https://colorzilla.com/gradient-editor/#000000+0,000000+100&0+39,0.3+69,0.7+100 */
background: -moz-linear-gradient(top,  rgba(0,0,0,0) 0%, rgba(0,0,0,0) 39%, rgba(0,0,0,0.3) 69%, rgba(0,0,0,0.7) 100%); /* FF3.6-15 */
background: -webkit-linear-gradient(top,  rgba(0,0,0,0) 0%,rgba(0,0,0,0) 39%,rgba(0,0,0,0.3) 69%,rgba(0,0,0,0.7) 100%); /* Chrome10-25,Safari5.1-6 */
background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0) 39%,rgba(0,0,0,0.3) 69%,rgba(0,0,0,0.7) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#b3000000',GradientType=0 ); /* IE6-9 */


    }
}

.card{
    margin-bottom: 4rem;
    border-bottom: 1px solid var(--greyWhite);
    overflow: hidden;
}

.card:last-of-type {
    border: none;
}

@media (min-width: 768px) {
    .card{
        flex: 0 0 calc(50% - 2rem);
        position: relative;
        border: none;
    }
}

.card img{
    display: block;
    transition: transform .5s ease;
}

.card:hover img {
    transform: scale(1.1);
}

.card .contenido{
    padding: 2rem;
}

@media (min-width: 768px) {
    .card .contenido{
        position: absolute;
        bottom: 0;
        left: 0;
        text-align: left;
        z-index: 2;
    }
}

.card .contenido h3{
    line-height: 1;
    color: var(--mainColor);
}

@media (min-width: 768px) {
    .card .contenido h3{
    color: var(--white);
    }

}
.card .contenido p{
    font-weight: 700;
    font-size: 2rem;
    margin: 0;
}

@media (min-width: 768px) {
    .card .contenido p{
        color: var(--mainColor);
    }

}

.card .contenido .meta,
.card .contenido .meta a {
    color: var(--black);
}
@media (min-width: 768px) {
    .card .contenido .meta,
    .card .contenido .meta a {
        color: var(--white);
    }
}
.card .contenido .meta span {
    color: var(--mainColor);
}
.card .contenido .meta {
    font-size: 1.4rem;
}

.post-categories {
    display: flex;
    justify-content: center;
}
@media (min-width: 768px) {
    .post-categories {
        position: absolute;
        top: 2rem;
        left: 2rem;
        z-index: 10;
    }
}

.post-categories li {
    padding: .5rem 2rem;
    margin-right: 2rem;
    border-radius: .5rem;
}
@media (min-width: 768px) {
    .post-categories li {
        background-color: var(--mainColor);
    }
}
.post-categories li a {
    font-size: 2.2rem;
    font-family: var(--mainFont);
    color: var(--greyDark);
}

@media (min-width: 768px) {
    .post-categories li a {
        color: var(--white)
    }
}
.post-categories li:last-of-type{
    margin-right: 0;
}

/** Clases Sidebar **/
.clase-sidebar {
    display: flex;
    justify-content: space-between;
    padding: 2rem 0;
    border-bottom: 1px solid var(--greyWhite);
}
.clase-sidebar:last-of-type{
    border-bottom: none;
}
.clase-sidebar .imagen {
    flex: 0 0 30%;
}
.clase-sidebar .imagen img {
    display: block;
}
.clase-sidebar .contenido-clase {
    flex: 0 0 calc(70% - 2rem);
}
.clase-sidebar .contenido-clase h3 {
    margin: 0;
    font-size: 2.6rem;
}
.clase-sidebar .contenido-clase a {
    color: var(--mainColor);
}
.clase-sidebar .contenido-clase p {
    margin: 0;
    font-weight: 700;
    font-size: 1.2rem;
}

/** Sidebar **/
.widget {
    padding: 2rem 0;
    border-bottom: 1px solid var(--greyWhite);
}
.widget:first-of-type {
    padding-top: 0;
}
.widget:last-of-type {
    border:none;
}
.widget a {
    color: var(--black);
}
.widget a:hover {
    color: var(--mainColor);
}

/** Galeria **/
.galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, auto);
    grid-gap: 2rem;
}
@media (min-width: 768px) {
    .galeria-imagenes {
        grid-template-columns: repeat(4, 1fr);
    }
}
.galeria-imagenes img {
    display: block;
}
.galeria-imagenes li:nth-child(4) {
    grid-row: 2 / 4;
    grid-column: 2 / 3;
}
@media (min-width: 768px) {
    .galeria-imagenes li:nth-child(4) {
        grid-column: 4 / 5;
        grid-row: 1 / 3;
    }
}
.galeria-imagenes li:nth-child(6) {
    grid-row: 5 / 7;
}
@media (min-width: 768px) {
    .galeria-imagenes li:nth-child(6) {
        grid-column: 2 / 3;
        grid-row: 2 / 4;
    }
}

/** Formulario de Contacto **/

.wpcf7-form label {
    font-weight: 700;

}
.wpcf7-form .wpcf7-form-control {
 
    width: 100%;
    padding: 1rem;

    height: 4rem;
    border: 1px solid var(--greyWhite);
    
}

.wpcf7-form .wpcf7-textarea {
    height: 20rem;
}
.wpcf7-form .wpcf7-submit {
    background-color: var(--mainColor);
    font-size: 2rem;
    font-family: var(--mainFont);
    padding: 1.2rem;
    height: auto;
    color: var(--white);
}
.wpcf7-form .wpcf7-submit:hover {
    cursor: pointer;
} 

/* div.wpcf7-validation-errors { */
div.wpcf7 form.unaccepted .wpcf7-response-output {
    background-color: #f7e700;
    text-align: center;
}
div.wpcf7 .ajax-loader {
    display: block;
    margin: 2rem auto 0 auto;
}
span.wpcf7-not-valid-tip {
    background-color: red;
    color: var(--white);
    padding-left: 1rem;
}
/* div.wpcf7-mail-sent-ok{ */

div.wpcf7 form.sent .wpcf7-response-output{

    background-color: #398f14;
    color: var(--white);
    text-align: center;
}

/** Mapa */
#mapa {
    height: 350px;
}

/** Front page **/
.bienvenida p {
    max-width: 800px;
    margin: 0 auto;
}

.contenedor-areas {
    display: flex;
    flex-wrap: wrap;
}
.contenedor-areas .area {
    flex: 0 0 100%;
    height: 250px;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
@media (min-width: 480px) {
    .contenedor-areas .area {
        flex: 0 0 50%;
    } 
}

@media (min-width: 768px) {
    .contenedor-areas .area {
        flex: 0 0 25%;
        height: 300px;
    }
}
.contenedor-areas .area img {
    height: 250px;
    object-fit: cover;
}
@media (min-width: 768px) {
    .contenedor-areas .area img {
        height: 300px;
    }
}
.contenedor-areas .area::after {
    content: '';
    background: linear-gradient(
        rgba(0, 0,0,0.75),
        rgba(0, 0,0,0.75)
    );
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
}
.area p {
    position: absolute;
    margin: auto;
    color: var(--white);
    font-size: 2rem;
    font-weight: 900;
    z-index: 100;
}
@media (min-width: 768px) {
    .area p {
        opacity: 0;
        transition: opacity .5s ease-in-out;
    }
    .area:hover p {
        opacity: 1;
    }
}

.clases {
    background-color: var(--greyWhite);
}

/** Instructores **/
.listado-instructores li {
    margin: 2rem 0;
    border-bottom: 1px solid var(--greyWhite);
}
@media (min-width: 768px) {
    .listado-instructores {
        display: flex;
        justify-content: space-between;
        flex-wrap: wrap;
    }
    .listado-instructores li {
        flex: 0 0 calc(50% - 2rem);
        border-bottom: none;
        position: relative;
    }
}
.instructor img {
    display: block;
    height: 400px;
    object-fit: cover;
}

.instructor .contenido {
    padding: 3rem;
}
@media (min-width: 768px) {
    .instructor .contenido {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgba(0, 0, 0, 0.75);
        color: var(--white);
        display: flex;
        flex-direction: column;
        justify-content: center;
        opacity: 0;
        transition: opacity .5s ease-out;
        transition-delay: .2s;
    }
    .instructor:hover .contenido{
        opacity: 1;

    } 
}


.etiqueta {
    margin-right: 2rem;
    background-color: var(--mainColor);
    color: var(--white);
    font-family: var(--mainFont);
    font-size: 2.2rem;
    padding: .5rem 2rem;
    border-radius: .5rem;
}
.etiqueta:last-of-type {
    margin-right: 0;
}


/** Testimoniales **/
.testimoniales {
    background: linear-gradient(
        rgba(0,0,0,0.75),
        rgba(0,0,0,0.75)
    ), url(img/testimonial-bg.jpg);
    padding: 12rem 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}
.contenedor-testimoniales {
    max-width: 800px;
    margin: 0 auto;
}
.testimonial {
    color: var(--white);
}
.testimonial blockquote{
    position: relative;
    padding-left: 12rem;
}
.testimonial blockquote::before {
    position: absolute;
    content:'';
    display: block;
    top: 0;
    left: 0;
    width: 10rem;
    height: 9rem;
    background-image: url(img/quote.svg);
    background-repeat: no-repeat;
}
.testimonial-footer {
    display: flex;
    justify-content: center;
}
@media (min-width: 768px) {
    .testimonial-footer {
        justify-content: flex-end;
    }
}
.testimonial-footer img {
    margin-right: 2rem;
    width: 8rem;
    height: 8rem;
    border-radius: 50%;
}
.testimonial-footer p {
    font-weight: 700;
    color: var(--mainColor);
}
/** Reescribir BXSlider **/
.bx-wrapper{
    background: transparent;
    border: none;
    box-shadow:none;
}
.bx-wrapper .bx-pager.bx-default-pager a, 
.bx-wrapper .bx-pager.bx-default-pager a:hover{
    background: var(--white);
}
.bx-wrapper .bx-pager.bx-default-pager a.active {
    background: var(--mainColor);
}