/*
    Theme Name: GymfitnessFlex
    Theme URI:
    Author: Francisco Jiménez Santo
    Author URI: 
    Description: Theme diseñado para el gimnasio GymFitness
    Version: 1.0
    License: GNU General Public License v2 or later
    License URI: http://www.gnu.org/license/gpl-2.0.html
    Tags:
    Tex Domain: gymfitness
*/

:root {
    /** Fuentes **/
    --fuentePrincipal: 'Staatliches', cursive; /* solo mayúsculas */
    --fuenteTextos: 'Open Sans', sans-serif;
    --fuenteSecundaria: 'Raleway', sans-serif;
    
    /** Colores **/
    --colorPrimario: #ff5b00;
    --colorPrimarioAclarado: #ffad7f;
    --grisOscuro: #2f2e2e;
    --grisClaro: #ebebeb;
    --blanco: #ffffff;
    --negro: #000000;
}

html {
    -webkit-box-sizing: border-box;
            box-sizing: border-box;
    scroll-behavior: smooth;
    font-size: 62.5%; /* 10px=1rem */
    margin: 0;
}
*, *:before, *:after {
    -webkit-box-sizing: inherit;
            box-sizing: inherit;
}

body {
    font-size: 16px; /* sino soporta rem pasa a px */
    font-size: 1.6rem;
    /*line-height: 2;*/
    font-family: var(--fuenteSecundaria);
}

/** Títulos */
h1, h2, h3, h4 {
    font-family: var(--fuentePrincipal);
    margin: 1rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 6rem;
}
h2 {
font-size: 4.8rem;
}
h3 {
font-size: 3.8rem;
}
h4 {
font-size: 3rem;
}

/** Glovales **/
a {
    text-decoration: none;
}
ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
img {
    max-width: 100%;
    height: auto;
}
.contenedor {
    max-width: 1200px;
    width: 95%; /* si el maximo no pasa de 1200 */
    margin: 0 auto;
}
hr {
    color: var(--grisClaro);

}
.imagen-destacada {
    margin-bottom: 3rem;
}

/* Utilidades */
.text-center {
    text-align: center;
}
.texto-blanco {
    color: var(--blanco);
}
.texto-justificado {
    text-align: justify;
}
.texto-primario {
    color: var(--colorPrimario);
}
.seccion {
    padding: 5rem 0;
}
/* boton */
.contenedor-boton {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: end;
        -ms-flex-pack: end;
            justify-content: flex-end;
}
.boton {
    background-color: var(--blanco);
    color: var(--negro);
    padding: 1rem 3rem;
    display: block;
    -webkit-box-flex: 1;
        -ms-flex: 1;
            flex: 1;
    text-align: center;
    font-size: 1.6rem;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: 3px;
}
@media(min-width: 768px) {
    .boton {
        display: inline-block;
        -webkit-box-flex: 0;
            -ms-flex: 0 0 auto;
                flex: 0 0 auto;
    }
}
.boton-primario {
    -webkit-transition: all .3s;
    transition: all .3s;
    background-color: var(--colorPrimario);
    color: var(--blanco);
}
.boton-primario:hover {
    -webkit-transition: all .3s;
    transition: all .3s;
    background-color: var(--colorPrimarioAclarado);
}
/** Header **/
/* Header página inicio */
body.home .site-header {
    padding-top: 2rem;
    height: auto;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
}
@media(min-width: 768px) {
    body.home .site-header {
        height: 100vh;
        max-height: 950px;
        padding: 0;
    }
    .header-grid {
        height: 100%;
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: (1fr)[4];
        grid-template-columns: repeat(4, 1fr);
        -ms-grid-rows: (1fr)[5];
        grid-template-rows: repeat(5, 1fr);
    }
    .header-grid > *:nth-child(1) {
        -ms-grid-row: 1;
        -ms-grid-column: 1;
    }
    .header-grid > *:nth-child(2) {
        -ms-grid-row: 1;
        -ms-grid-column: 2;
    }
    .header-grid > *:nth-child(3) {
        -ms-grid-row: 1;
        -ms-grid-column: 3;
    }
    .header-grid > *:nth-child(4) {
        -ms-grid-row: 1;
        -ms-grid-column: 4;
    }
    .header-grid > *:nth-child(5) {
        -ms-grid-row: 2;
        -ms-grid-column: 1;
    }
    .header-grid > *:nth-child(6) {
        -ms-grid-row: 2;
        -ms-grid-column: 2;
    }
    .header-grid > *:nth-child(7) {
        -ms-grid-row: 2;
        -ms-grid-column: 3;
    }
    .header-grid > *:nth-child(8) {
        -ms-grid-row: 2;
        -ms-grid-column: 4;
    }
    .header-grid > *:nth-child(9) {
        -ms-grid-row: 3;
        -ms-grid-column: 1;
    }
    .header-grid > *:nth-child(10) {
        -ms-grid-row: 3;
        -ms-grid-column: 2;
    }
    .header-grid > *:nth-child(11) {
        -ms-grid-row: 3;
        -ms-grid-column: 3;
    }
    .header-grid > *:nth-child(12) {
        -ms-grid-row: 3;
        -ms-grid-column: 4;
    }
    .header-grid > *:nth-child(13) {
        -ms-grid-row: 4;
        -ms-grid-column: 1;
    }
    .header-grid > *:nth-child(14) {
        -ms-grid-row: 4;
        -ms-grid-column: 2;
    }
    .header-grid > *:nth-child(15) {
        -ms-grid-row: 4;
        -ms-grid-column: 3;
    }
    .header-grid > *:nth-child(16) {
        -ms-grid-row: 4;
        -ms-grid-column: 4;
    }
    .header-grid > *:nth-child(17) {
        -ms-grid-row: 5;
        -ms-grid-column: 1;
    }
    .header-grid > *:nth-child(18) {
        -ms-grid-row: 5;
        -ms-grid-column: 2;
    }
    .header-grid > *:nth-child(19) {
        -ms-grid-row: 5;
        -ms-grid-column: 3;
    }
    .header-grid > *:nth-child(20) {
        -ms-grid-row: 5;
        -ms-grid-column: 4;
    }
    .header-grid .barra-navegacion {
        -ms-grid-column: 1;
        -ms-grid-column-span: 4;
        grid-column: 1 / 5;
    }
}
.tagline {
    color: var(--blanco);
    margin-top: 10rem;
}
@media(min-width: 768px) {
    .tagline {
        -ms-grid-column: 2;
        -ms-grid-column-span: 2;
        grid-column: 2 / 4;
        -ms-grid-row: 3;
        -ms-grid-row-span: 1;
        grid-row: 3 / 4;
        margin-top: 0;
    }
    .tagline p {
        font-size: 2.2rem;
    }
}

/** Resto de header otras páginas **/
.site-header {
    background-color: var(--grisOscuro);
    padding: 2rem 0;
}
@media(min-width: 768px) {
    .barra-navegacion {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }
}
.logo {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}

/** Menú Principal **/
.menu-principal {
    display: none;
}
.menu-principal .current_page_item {
    border-bottom: 3px solid var(--colorPrimario);
}
@media(min-width: 768px) {
    .menu-principal {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
    }
    .menu-principal .menu {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: distribute;
            justify-content: space-around;
    }
    .menu-principal li {
        margin-right: 1rem;
    }
    .menu-principal li:last-of-type {
        margin-right: 0;
    }
}
.slicknav_nav li {
    margin-top: 3rem;
}
.menu-principal a {
    font-family: var(--fuentePrincipal);
    color: var(--blanco);
    font-size: 2.2rem;
    padding: .5rem 2rem;
    /*display: block;*/
}
@media(min-width: 768px) {
    .menu-principal a {
        font-size: 2rem;
        position: relative;
        z-index: 1;/* efecto */
    }
    /* Efecto hover */
    .menu-principal a::before,
    .menu-principal a::after {
        position: absolute;
        left: 0;
        content: '';
        display: block;
        width: 100%;
        height: 50%;
        background-color: var(--colorPrimario);
        z-index: -1;
        -webkit-transform: scaleX(0);
                transform: scaleX(0);
        -webkit-transition: -webkit-transform .5s;
        transition: -webkit-transform .5s;
        transition: transform .5s;
        transition: transform .5s, -webkit-transform .5s;
    }
    .menu-principal a::before {
        top: 0;
        -webkit-transform-origin: left;
                transform-origin: left;
    }
    .menu-principal a::after {
        top: 50%;
        -webkit-transform-origin: right;
                transform-origin: right;
    }
    .menu-principal a:hover::before {
        -webkit-transform: scaleX(1);
                transform: scaleX(1);
    }
    .menu-principal a:hover::after {
        -webkit-transform: scaleX(1);
                transform: scaleX(1);
    }
    /* Fin efecto hover */
}
@media(min-width: 992px) {
    .menu-principal a {
        font-size: 2.5rem;
    }
}

/* Estilos para el menú movil */
body.home .slicknav_menu {
    background-color: transparent;
}
.slicknav_menu {
    background-color: var(--grisOscuro);
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex; /* Centramos el menú despues de poner appendTo en scriptslicjnav.js */
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.slicknav_btn {
    background-color: var(--colorPrimario);
    margin: 3rem 0;
    padding: 1.5rem;
}
.slicknav_nav a {
    font-size: 22px;
    text-align: center;
    font-family: var(--fuentePrincipal);
}
.slicknav_nav a:hover {
    background-color: transparent;
    color: var(--colorPrimario);
}
.slicknav_icon {
    font-size: 2.5rem;
}

@media(min-width: 768px) {
    .slicknav_menu {
        display: none;
    } 
}

/** front-page **/
.bienvenida p {
    font-size: 1.8rem;
    font-family: var(--fuenteSecundaria);
    font-style: italic;
    margin: 1rem;
    line-height: 3rem;
    font-style: normal;
}
.bienvenida p:last-child {
    font-weight: 700;
    font-size: 2.2rem;
    color: var(--colorPrimario);
    background-color: var(--grisClaro);
    padding: 1rem 2rem;
    max-width: 95%;
    margin: 3rem auto;
    border-radius: 3px;
}
@media(min-width: 768px) {
    .bienvenida p:last-child {
        max-width: 65rem;
    }

}
/* areas */
.contenedor-areas {
    width: 95%;
    margin: 0 auto;
}
.contenedor-areas .area {
    position: relative;
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.contenedor-areas .area::after {
    display: block;
    width: 100%;
    height: 100%;
    position: absolute;
    top: 0;
    left: 0;content: '';
    background: -webkit-gradient(linear, left top, left bottom, from(rgba(0,0,0, 0.5)), to(rgba(0,0,0, 0.5)));
    background: linear-gradient(rgba(0,0,0, 0.5), rgba(0,0,0, 0.5));
    
}
@media(min-width: 480px) {
    .contenedor-areas {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: (1fr)[2];
        grid-template-columns: repeat(2, 1fr);
    }

}
@media(min-width: 768px) {
    .contenedor-areas {
        display: -ms-grid;
        display: grid;
        -ms-grid-columns: (1fr)[4];
        grid-template-columns: repeat(4, 1fr);
        width: 100%;
    } 
        
}
.contenedor-areas .area .contenido-texto {
    position: absolute;
    color: var(--blanco);
    font-size: 2rem;
    font-weight: 900;
    z-index: 10;
}
@media(min-width: 480px) {
    .contenedor-areas .area .contenido-texto {
       font-size: 1.8rem;
    }

}
@media(min-width: 1024px) {
    .contenedor-areas .area .contenido-texto {
        padding: 2.3rem;
        -webkit-transition: all .3s;
        transition: all .3s;
        opacity: 0;
    }
    .contenedor-areas .area .contenido-texto:hover {
        -webkit-transition: all .3s;
        transition: all .3s;
        opacity: 1;
    }

}

@media(min-width: 1024px) {
    .contenedor-areas .area .contenido-texto {
        font-size: 2.2rem;
     }

}

/* clases */
.clases {
    background-color: var(--grisClaro);
}
.clases .contenedor-boton {
    margin-top: 3rem;
}
.home .contenido p {
    text-align: center;
}

/* instructores */
.listado-instructores li {
    margin: 2rem 0;
    border-bottom: 1px solid var(--grisClaro);
}
@media(min-width: 768px) {
    .listado-instructores {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
    }
    .listado-instructores li {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc(50% - 2rem);
                flex: 0 0 calc(50% - 2rem);
        border-bottom: none;
        position: relative;
    }
}
.instructor img {
    display: block;
    height: 400px;
    -o-object-fit: cover;
       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(--blanco);
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: vertical;
        -webkit-box-direction: normal;
            -ms-flex-direction: column;
                flex-direction: column;
        -webkit-box-pack: center;
            -ms-flex-pack: center;
                justify-content: center;
        opacity: 0;
        -webkit-transition: .75s;
        transition: .75s;
        -webkit-transition-delay: .2s;
                transition-delay: .2s;
    } 
    .instructor:hover .contenido {
        opacity: 1;
        -webkit-transition: .75s;
        transition: .75s;
        -webkit-transition-delay: .2s;
                transition-delay: .2s;
    }
}
.etiqueta {
    margin-right: 2rem;
    background-color: var(--colorPrimario);
    color: var(--blanco);
    font-family: var(--fuentePrincipal);
    font-size: 2.2rem;
    padding: .5rem;
    border-radius: 3px;
}
.etiqueta:last-of-type {
    margin-right: 0;
}

/* testimoniales */
.testimoniales {
    background: -webkit-gradient(linear,
                                left top, left bottom,
                                from(rgba(0, 0, 0, 0.75)),
                                to(rgba(0, 0, 0, .75))),
                                url(img/testimonial-bg.jpg);
    background: linear-gradient(rgba(0, 0, 0, 0.75),
                                rgba(0, 0, 0, .75)),
                                url(img/testimonial-bg.jpg);
    padding: 6rem 0;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    
}
.testimoniales h2 {
    margin-bottom: 5rem;
}
.contenedor-testimoniales {
    max-width: 900px;
    margin: 0 auto;
}
.testimonial {
    position: relative;
}
.testimonial blockquote::before {
    position: absolute;
    content: '';
    display: block;
    top: 0;
    left: 4rem;
    width: 10rem;
    height: 8rem;
    background-image: url(img/quote.svg);
    background-repeat: no-repeat;
}
.testimonial blockquote p {
    margin-top: 12rem;
    line-height: 2.75rem;
    font-size: 2rem;
}
.testimonial-footer {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
}
.testimonial-footer p {
    color: var(--colorPrimario);
    margin-left: 2rem;
    font-weight: 600;
}
@media(min-width: 768px) {
    .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 blockquote p {
        margin-top: 0;
    }
    .testimonial-footer {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-orient: horizontal;
        -webkit-box-direction: normal;
            -ms-flex-direction: row;
                flex-direction: row;
        -webkit-box-pack: end;
            -ms-flex-pack: end;
                justify-content: flex-end;
        margin-right: 20px;
    }
}
.testimonial {
    color: var(--blanco);
}
.testimonial-footer img {
    width: 10rem;
    height: 10rem;
    border-radius: 50%;
    border: 2px solid var(--colorPrimario) ;
}
/* Reescribir bxSlider */
.bx-wrapper {
    background: transparent;
    border: none;
    -webkit-box-shadow: none;
            box-shadow: none;
}
.bx-wrapper .bx-pager.bx-default-pager a, 
.bx-wrapper .bx-pager.bx-default-pager a:hover {
    background: var(--blanco);
    margin: 0 2rem;
}
.bx-wrapper .bx-pager.bx-default-pager a.active {
    background: var(--colorPrimario);
}

/* Footer */
.contenido-footer {
    padding: 4rem 0;
} 
@media(min-width: 1100px) {
    .contenido-footer {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-pack: distribute;
            justify-content: space-around;
        -webkit-box-align: center;
            -ms-flex-align: center;
                align-items: center;
    }
}
.site-footer .menu-principal {
    display: block;
}
.site-footer .menu-principal li {
    margin-top: 3rem;
}
@media(min-width: 768px) {
    .site-footer .menu-principal li {
        margin-top: 0;
    }
}
.site-footer .menu-principal a {
    color: var(--negro);
    display: block;
    text-align: center;
    font-size: 2.4rem;
    padding: 0 .5rem;
}
.site-footer .menu-principal .current_page_item {
    border: none;
}
.site-footer .menu-principal li.current_page_item a {
    color: var(--colorPrimario);
}
.site-footer .menu-principal a::before,
.site-footer .menu-principal a::after {
    display: none;
}
.copyright {
    text-align: center;
    font-size: 1.5rem;
    font-family: var(--fuentePrincipal);
    /*margin-top: 3rem;*/
    margin: 2rem;
}

/** Páginas **/
.pagina h1 {
    margin-bottom: 4rem;
    margin-top: 0;
}
@media(min-width: 768px) {
    .pagina.con-sidebar {
        display: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }
    .con-sidebar .contenido-principal {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc(65% - 2rem);
                flex: 0 0 calc(65% - 2rem);
    }
    .con-sidebar .sidebar {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc(35% - 2rem);
                flex: 0 0 calc(35% - 2rem);
    }
}

/** Sin Sidebar **/
.seccion.sin-sidebar {
    margin-bottom: -3rem;
}
.sin-sidebar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
    -webkit-box-orient: vertical;
    -webkit-box-direction: normal;
        -ms-flex-direction: column;
            flex-direction: column;
}
.sin-sidebar .contenido-principal {
    -webkit-box-flex: 0;
        -ms-flex: 0 1 800px;
            flex: 0 1 800px;/* 1 para que no crezca en pantallas menores de 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: -webkit-box;
        display: -ms-flexbox;
        display: flex;
        -ms-flex-wrap: wrap;
            flex-wrap: wrap;
        -webkit-box-pack: justify;
            -ms-flex-pack: justify;
                justify-content: space-between;
    }
    
}

/* card */
@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+0,0.65+99,0.65+99 */ /* FF3.6-15 */ /* Chrome10-25,Safari5.1-6 */
        background: -webkit-gradient(linear,  left top, left bottom,  from(rgba(0,0,0,0)),color-stop(99%, rgba(0,0,0,0.65)),to(rgba(0,0,0,0.65)));
        background: linear-gradient(to bottom,  rgba(0,0,0,0) 0%,rgba(0,0,0,0.65) 99%,rgba(0,0,0,0.65) 100%); /* W3C, IE10+, FF16+, Chrome26+, Opera12+, Safari7+ */
        filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#00000000', endColorstr='#a6000000',GradientType=0 ); /* IE6-9 */
    }
}
.card {
    margin-bottom: 3rem;
    border-bottom: 1px solid var(--grisClaro);
    overflow: hidden;
}
.card:last-of-type {
    border-bottom: none;
}
.card:last-child {
    margin-bottom: 0;
}
.card img {
    display: block;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.card:hover img {
    -webkit-transform: scale(1.1);
            transform: scale(1.1);
    -webkit-transition: all .3s;
    transition: all .3s;
}
@media(min-width: 768px) {
    .card {
        -webkit-box-flex: 0;
            -ms-flex: 0 0 calc(50% - 2rem);
                flex: 0 0 calc(50% - 2rem);
        position: relative;
        border: none;
        margin-bottom: 3rem;
    }
    .card:last-child {
        margin-bottom: 3rem;
    }
}
.card .contenido {
    padding: 1rem 0;
}
@media(min-width: 768px) {
    .card .contenido {
        position: absolute;
        bottom: 1rem;
        left: 0;
        text-align: left;
        padding: 1rem;
        margin-left: 1rem;
        margin-bottom: 1rem;
        z-index: 5;
    }
}
.card .contenido h3 {
    color: var(--colorPrimario);
    font-size: 2.5rem;
    text-align: center;
    letter-spacing: 2px;
}
@media(min-width: 768px) {
    .card .contenido h3 {
        font-size: 3rem;
        color: var(--blanco);
        text-align: left;
    }
}
.card .contenido p {
    font-weight: 700;
    font-size: 1.2rem;
    color: var(--negro);
    margin: 0;
}
@media(min-width: 768px) {
    .card .contenido p {
        font-size: 1.5rem;
        color: var(--blanco);
    }

}
.card .contenido .meta,
.card .contenido .meta a {
    color: var(--negro);
}
@media(min-width: 768px) {
    .card .contenido .meta,
    .card .contenido .meta a {
        color: var(--blanco);
    }
    
}
.card .contenido .meta {
    font-size: 1.3rem;
    letter-spacing: 2px;
    margin-bottom: .5rem;
}
.card .contenido .meta span {
    color: var(--colorPrimario);
    font-weight: 900;
}
/* categorias */
.card .post-categories {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: center;
        -ms-flex-pack: center;
            justify-content: center;
}
@media(min-width: 768px) {
    .card .post-categories {
        position: absolute;
        top: 1rem;
        left: 1rem;
        z-index: 5;
    }
}

.card .post-categories li {
    padding: .5rem 2rem;
    margin-right: 2rem;
    border-radius: .5rem;
}
@media(min-width: 768px) {
    .card .post-categories li {
        background-color: var(--colorPrimario);
    }
}
.card .post-categories li:last-of-type {
    margin-right: 0;
}
.card .post-categories li a {
    font-size: 2rem;
    color: var(--grisOscuro);
    font-family: var(--fuentePrincipal);
    border-bottom: 1px solid var(--colorPrimario);
}
@media(min-width: 768px) {
    .card .post-categories li a {
        color: var(--blanco);
        border-bottom: none;
    }
}

/* de category.php */
/* Clases Sidebar */
.clases-sidebar {
    display: -webkit-box;
    display: -ms-flexbox;
    display: flex;
    -webkit-box-pack: justify;
        -ms-flex-pack: justify;
            justify-content: space-between;
    -webkit-box-align: center;
        -ms-flex-align: center;
            align-items: center;
    padding: 2rem 0;
    border-bottom: 1px solid var(--grisClaro);
}
.clases-sidebar:last-of-type {
    border-bottom: none;
}
.clases-sidebar .imagen img {
    display: block;
}
.clases-sidebar .imagen {
    -webkit-box-flex: 0;
        -ms-flex: 0  0 30%;
            flex: 0  0 30%;
}
.clases-sidebar .contenido-clase {
    -webkit-box-flex: 0;
        -ms-flex: 0 0 calc(70% - 2rem);
            flex: 0 0 calc(70% - 2rem);
}
.clases-sidebar .contenido-clase h3 {
    margin-top: 0;
    font-size: 2.2rem;
}
.clases-sidebar .contenido-clase a {
    color: var(--colorPrimario);
}
.clases-sidebar .contenido-clase p {
    font-weight: 700;
    font-size: 1.4rem;
    margin: 0;
}

/** Sidebar */
.sidebar {
    margin-top: 4rem;
    border-top: 1px solid var(--grisClaro);
}
@media(min-width: 768px) {
    .sidebar {
        margin-top: 0;
        border-top: none;
    }
}
.widget {
    padding: 2rem 1rem;
    border-bottom: 1px solid var(--grisClaro);
}
.widget:first-of-type {
    padding-top: 0;
}
.widget:last-of-type {
    border: none
}
.widget:nth-child(3) {
    display: block;
    text-align: center;
}
.widget li {
    margin-top: 1rem;
    text-align: center;
}
.widget a {
    color: var(--negro);
    -webkit-transition: all .3s;
    transition: all .3s;
}
.widget a:hover {
    color: var(--colorPrimario);
    -webkit-transition: all .3s;
    transition: all .3s;
}

/** Galeria **/
.galeria-imagenes {
    display: -ms-grid;
    display: grid;
    -ms-grid-columns: 1fr 2rem 1fr;
    grid-template-columns: repeat(2, 1fr);
    -ms-grid-rows: auto 2rem auto 2rem auto 2rem auto 2rem auto 2rem auto;
    grid-template-rows: repeat(6, auto);
    grid-gap: 2rem;
}
.galeria-imagenes > *:nth-child(1) {
    -ms-grid-row: 1;
    -ms-grid-column: 1;
}
.galeria-imagenes > *:nth-child(2) {
    -ms-grid-row: 1;
    -ms-grid-column: 3;
}
.galeria-imagenes > *:nth-child(3) {
    -ms-grid-row: 3;
    -ms-grid-column: 1;
}
.galeria-imagenes > *:nth-child(4) {
    -ms-grid-row: 3;
    -ms-grid-column: 3;
}
.galeria-imagenes > *:nth-child(5) {
    -ms-grid-row: 5;
    -ms-grid-column: 1;
}
.galeria-imagenes > *:nth-child(6) {
    -ms-grid-row: 5;
    -ms-grid-column: 3;
}
.galeria-imagenes > *:nth-child(7) {
    -ms-grid-row: 7;
    -ms-grid-column: 1;
}
.galeria-imagenes > *:nth-child(8) {
    -ms-grid-row: 7;
    -ms-grid-column: 3;
}
.galeria-imagenes > *:nth-child(9) {
    -ms-grid-row: 9;
    -ms-grid-column: 1;
}
.galeria-imagenes > *:nth-child(10) {
    -ms-grid-row: 9;
    -ms-grid-column: 3;
}
.galeria-imagenes > *:nth-child(11) {
    -ms-grid-row: 11;
    -ms-grid-column: 1;
}
.galeria-imagenes > *:nth-child(12) {
    -ms-grid-row: 11;
    -ms-grid-column: 3;
}
@media(min-width: 768px) {
    .galeria-imagenes {
        -ms-grid-columns: 1fr 2rem 1fr 2rem 1fr 2rem 1fr;
        grid-template-columns: repeat(4, 1fr);
    }
}
.galeria-imagenes img {
    display: block;
}
.galeria-imagenes li:nth-child(4) {
    -ms-grid-column: 2;
    -ms-grid-column-span: 1;
    grid-column: 2 / 3;
    -ms-grid-row: 2;
    -ms-grid-row-span: 2;
    grid-row: 2 / 4;
}
@media(min-width: 768px) {
    .galeria-imagenes li:nth-child(4) {
        -ms-grid-column: 4;
        -ms-grid-column-span: 1;
        grid-column: 4 / 5;
        -ms-grid-row: 1;
        -ms-grid-row-span: 2;
        grid-row: 1 / 3;
    }
}
.galeria-imagenes li:nth-child(6) {
    -ms-grid-row: 5;
    -ms-grid-row-span: 2;
    grid-row: 5 / 7;
}
@media(min-width: 768px) {
    .galeria-imagenes li:nth-child(6) {
        -ms-grid-column: 2;
        -ms-grid-column-span: 1;
        grid-column: 2 / 3;
        -ms-grid-row: 2;
        -ms-grid-row-span: 2;
        grid-row: 2 / 4;
    }
}

/** Formulario de contacto */
body.page-template-page-no-sidebar-php .contenido-principal {
    margin-bottom: -15rem;
}
.wpcf7-form {
    font-weight: 700;
    color: var(--colorPrimario) !important;
}
.wpcf7-form .wpcf7-form-control {
    width: 100%;  
    padding: 1rem;
    height: 4rem;
    border: 2px solid var(--grisClaro);
}
.wpcf7-form p:nth-last-child(4) span {
    font-size: 1.5rem;
    color: var(--grisOscuro);
    font-style: italic;
}
.wpcf7-form .wpcf7-textarea {
    height: 15rem;
}
.wpcf7-form p:last-of-type {
    width: 50%;
    margin: 0 auto;
}
.wpcf7-form .wpcf7-submit {
    background-color: var(--colorPrimario);
    font-size: 2rem;
    font-family: var(--fuentePrincipal);
    padding: 1.2rem;
    height: auto;
    color: var(--blanco);
    display: block;
    border: none;
    -webkit-transition: all .3s;
    transition: all .3s;
}
.wpcf7-form .wpcf7-submit:hover {
    cursor: pointer;
    border: none;
    -webkit-transition: all .5s;
    transition: all .5s;
    -webkit-box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
            box-shadow: 5px 5px 5px 0px rgba(0,0,0,0.75);
}
/* errores al enviar el mensaje */
.wpcf7 form div.wpcf7-response-output {
    background-color: #46b450;/*#f7e700*/
    border: none;
    text-align: center;
    margin: 0;
    color: var(--blanco);
}
span.wpcf7-not-valid-tip {
    background-color: red;
    color: var(--blanco);
    padding: 1rem;
    text-align: center;
    margin-top: .25rem;
    display: none;
}
@media(min-width: 768px) {
    .wpcf7-form {
        width: 75%;
        margin: 0 auto;
    }
}
@media(min-width: 1024px) {
    .wpcf7-form {
        width: 50%;
    }
}

/* Mapa */
.mapa-responsive {
    max-width: 800px;
    margin: 3rem auto 18rem auto;
}
.mapa-responsive iframe {
    display: block;
    margin: 0 auto;
}
.map-responsive {
    overflow: hidden;
    padding-bottom: 56.25%;
    position: relative;
    height: 0;
}
.map-responsive iframe {
    left: 0;
    top: 0;
    height: 100%;
    width: 100%;
    position: absolute;
}