/*
Theme Name: Gym Fitness
Theme URI: 
Author: Juan Pablo De la torre Valdez
Author URI: http://twitter.com/codigoconjuan
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/licenses/gpl-2.0.html
Tags: Gym, gimnasio, flexbox, css grid, mobile first
Text Domain: gymfitness
*/

/*@import url('https://fonts.googleapis.com/css2?family=Raleway:wght@400;700;900&family=Staatliches&display=swap');*/

@import url('https://fonts.googleapis.com/css2?family=Arvo:ital@1&display=swap');

:root {
    --fuente-principal: 'Raleway', sans-serif;
    --fuente-headings: 'Arvo', serif;

    /* Colores */
    --primario: #f7aab4;
    --gris-oscuro: #2f2e2e;
    --gris-claro: #EBEBEB;
    --blanco: #fff;
    --negro: #000;
}

/* EVITA QUE CREZCAN MAS DE LO QUE DEBEN PADDINGS, MARGIN, ETC */
html {
    box-sizing: border-box;
    font-size: 62.5%;
    /* 10px = 1 rem*/
}

*,
*:before,
*:after {
    box-sizing: inherit;
}

/*  */
body {
    font-family: var(--fuente-principal);
    font-size: 18px;
    font-size: 1.8rem;
    line-height: 2;
}

/* Headings*/
h1,
h2,
h3,
h4 {
    font-family: var(--fuente-headings);
    margin: 0 0 5rem 0;
    line-height: 1.2;
}

h1 {
    font-size: 6rem;
}

h2 {
    font-size: 4.8rem;
}

h3 {
    font-size: 3.6rem;
}

h4 {
    font-size: 2.4rem;
}

/* Globales */
p {
    margin: 0;
}

a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}

img {
    display: block;
    max-width: 100%;
    height: auto;
}

hr {
    border: 1px solid var(--gris-claro);
}

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

.contenedor {
    width: min(95%, 120rem);
    margin: 0 auto;
}

.contenido-centrado {
    width: min(95%, 80rem);
}
.contenedor-boton {
    display: flex;
    justify-content: flex-end;
}
.form-submit .submit,
.boton {
    background-color: var(--blanco);
    color: var(--negro);
    padding: 1rem 3rem;
    display: block;
    flex: 1;
    width: 100%;
    text-align: center;
    font-weight: 700;
    text-transform: uppercase;
    border-radius: .5rem;
    margin: 1rem 0;
    border: none;
}
@media (min-width: 768px) {
    .boton {
        display: inline-block;
        flex: 0 0 auto;
        width: auto;
    }
}

.boton-primario {
    background-color: var(--primario);
    color: var(--blanco);
}

/* Utilidades */

.text-center {
    text-align: center;
}

.text-primary {
    color: var(--primario);
}

.text-blanco {
    color: var(--blanco);
}

.seccion {
    padding: 5rem 0;
}
/* HEADER */
body.home .header {
    padding-top: 2rem;
    height: auto;
    min-height: 70rem;
    background-size: cover;
    background-position: top center;
}


@media (min-width: 768px) {
    body.home .header {
        height: 100vh;
        max-height: 90rem;
    }
}
.header {
    background-color: var(--primario);
    padding: 2rem 0;
}

.barra-navegacion {
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* TAMAÑO DE TABLET */
@media (min-width: 768px) {
    .barra-navegacion {
        flex-direction: row;
        justify-content: space-between;
    }
}
.tagline {
    color: var(--blanco);
    margin-top: 5rem;
}
@media (min-width: 768px) {
    .tagline {
        margin-top: 15rem;
    }
}
.tagline p {
    font-size: 2rem;
}
.logo {
    width: 20rem;
    height: 20rem;
    border-radius: 35rem;
}

@media (min-width: 992px) {
    /* .fixed-top {
        position: fixed;
        width: 100%;
        top: 0;
        left: 0;
        background-color: var(--primario);
        padding: 1rem 5rem;
        height: 16rem;
        z-index: 1000;
        transition: background-color 300ms ease-in-out;
    } */
    .fixed-top .logo{
        width: 20rem;
        height: 20rem;
        margin-top: 0.4rem;
    }
}


.hamburguer-menu:hover {
    cursor: pointer;
}
@media (min-width: 768px) {
    .hamburguer-menu {
        display: none;
    }
}
.contenedor-menu {
    opacity: 0;
    max-height: 0;
    transition-delay: 100ms, 300ms;
    transition-property: opacity, max-height ;
    transition-timing-function: ease-in-out;
    transition-duration: 300ms;
}
@media (min-width: 768px) {
    .contenedor-menu {
        all: unset;
    }
}
.mostrar {
    opacity: 1;
    max-height: 35rem;
    transition-delay: 100ms, 300ms;
    transition-property: max-height, opacity ;
    transition-timing-function: ease-in-out;
    transition-duration: 300ms;
}

@media (min-width: 768px) {
    .menu-principal {
        display: block;
    }

    .menu-principal .menu {
        display: flex;
    }
}

.menu-principal a {
    font-family: var(--fuente-headings);
    display: block;
    text-align: center;
    color: var(--blanco);
    font-size: 3.2rem;
    padding: .5rem 2rem;
}



@media (min-width: 768px) {
    .menu-principal a {
        position: relative;
        z-index: 1;
        font-size: 2.7rem;
    }

    .menu-principal .current_page_item {
        border-bottom: 3px solid var(--primario);
    }

    .menu-principal a::before,
    .menu-principal a::after {
        position: absolute;
        left: 0;
        content: '';
        display: block;
        width: 100%;
        height: 50%;
        background-color: var(--primario);
        z-index: -1;
        transform: scaleX(0);
        transition: transform .6s;
    }

    .menu-principal a::before {
        top: 0;
        transform-origin: left;
    }

    .menu-principal a::after {
        top: 50%;
        transform-origin: right;
    }

    .menu-principal a:hover::before {
        transform: scaleX(1);
    }

    .menu-principal a:hover::after {
        transform: scaleX(1);
    }
}

/* * Footer */
 .contenido-footer {
    padding: 2rem ;
    display: flex;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(2, 1fr);
    gap: 1rem;
    justify-content: center;
    
}

@media (min-width: 768px) {
    .contenido-footer {
        flex-direction: row;
        justify-content: center;
        padding: 4rem ;
    }
   
}
.icono {
    margin: auto;
    color: #fff;
    padding: 1rem;                                                                                        
    text-decoration: none;
    border-radius: 3rem;
    transition: all .3s ease;
}
.icono svg {
    width: 5rem;
    height: 5rem;
}
@media (min-width: 768px) {
    .icono svg {
        width: 5.5rem;
        height: 5.5rem;
    }
   
}

 .whatsapp{
    background: #25d366;
}

.telefono {
    background: #25b0d3;
}

.instagram {
    background: #833ab4;
}

.facebook {
    background: #3b5998;
}
.copyright {
    text-align: center;
    font-family: var(--fuente-headings);
    font-size: 2rem;
    font-weight: 600;
    margin: 2rem 0 0 0;
    color: var(--primario);
}

@media (min-width: 768px) {
    .copyright {
        font-size: 2.4rem;
        margin: 0;
    }
}

/* MEDIAQUERIES */
/*Dispositivos sm*/
@media screen and (max-width: 576px) {
    .redes-sociales .icono {
        width: 5rem;
        height: 5rem;
    }

    .redes-sociales .icono svg {
        width: 2.5rem;
        height: 2.5rem;
    }
}


/* Cards */ 

.listado-grid {
    margin-top: 4rem;
    display: grid;
    gap: 2rem;
}
@media (min-width:768px){
    .listado-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
.card {
    background-image: linear-gradient(to bottom, transparent 0, rgb(0 0 0 / .7));
    position: relative;
    overflow: hidden;
}
.card:hover img {
    transform: scale(1.2);
}
.card img {
    display: block;
    position: relative;
    z-index: -1;
    height: 40rem;
    object-fit: cover;
    transition: transform 300ms ease;
}
.card .contenido{
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 2rem;
}

.card .contenido h3{
    color: var(--blanco);
    margin: 0;
    background-color: #f7aab4e8;
    color: rgb(255, 255, 255);
    border-radius: 1rem;
    padding: 0.5rem;
    padding-left: 0;
    text-decoration: underline;
    
}

.card .contenido p, 
.card .contenido a{
    color: var(--blanco);
    font-weight: 500;
    padding-left: 0;
    
}
.card .meta {
    font-size: 1.4rem;
    font-weight: 700;
}
.card .meta span{
    color: var(--primario);
}

/*Categorias en cards*/
.card .post-categories {
    position: absolute;
    top: 2rem;
    left: 2rem;
    display: flex;
    gap: 2rem;
}
.card .post-categories li {
    background-color: var(--primario);
    padding: .5rem 1rem;
    border-radius: .5rem;
}
.card .post-categories a {
    color: var(--blanco);
    text-transform: uppercase;
    font-weight: 700;
    font-size: 1.6rem;
}
/** Sidebar **/
@media(min-width: 768px) {
    .con-sidebar {
        display: grid;
        grid-template-columns: 2fr 1fr;
        gap: 4rem;
    }
}
.informacion-clase {
    font-weight: 700;
    font-size: 2.2rem;
    text-align: center;
} 

/* Listado de clases sidebar*/
.clases-sidebar li{
    border-bottom: 1px solid var(--gris-claro);    
    padding: 2rem 0;
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 2rem;
    align-items: center;
}
.clases-sidebar li:last-of-type{
    border-bottom: none;    
}
.clases-sidebar .contenido-clase h3{
    margin: 0;
    font-size: 2.6rem;
}
.clases-sidebar .contenido-clase a{
    color: var(--primario);
}
.clases-sidebar .contenido-clase p{
    font-size: 1.2rem;
}

/* Galeria */ 

.galeria-imagenes {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: repeat(6, 300px);
    gap: 1rem;
}
@media (min-width: 768px) {
    .galeria-imagenes {
        grid-template-columns: repeat(4, 1fr);
        grid-template-rows: auto;
        gap: 2rem;
    }
}
.galeria-imagenes li:nth-child(4) {
    grid-row: 2 / 4;
    grid-column: 2 / 3;
}
.galeria-imagenes li:nth-child(6) {
    grid-row: 4 / 6;
    grid-column: 1 / 2;
}
@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-column: 2 /3;
        grid-row: 2 / 4;
    }
}

.galeria-imagenes li:nth-child(4) img,
.galeria-imagenes li:nth-child(6) img {
    height: 620px;
}
.galeria-imagenes img {
    height: 300px;
    object-fit: cover;
}

/* Informacion Meta */ 
.meta-info {
    background-color: var(--gris-claro);
    padding: 2rem;
}
@media (min-width: 992px) {
    .meta-info{
        display: flex;
        justify-content: space-between;  
      
    }
}
.meta-info p,
.meta-info a {
    font-size: 1.6rem;
    font-weight: 700;
    color: var(--negro);

}
.meta-info span {
    color: var(--primario);
}
.meta-info .categoria {
    display: flex;
    align-items: center;
    gap: .5rem;
}
.meta-info .post-categories {
    display: flex;
    gap: 1rem;
}
/* formulario de contacto */
.wpcf7-form label {
    font-weight: 700;

}

.wpcf7-form .wpcf7-form-control {
    width: 100%;
    border: 1px solid var(--gris-claro);
    padding: 1rem;
}

.wpcf7-form .wpcf7-submit {
    background-color: var(--primario);
    font-size: 2rem;
    font-family: var(--fuente-headings);
    padding: 1.2rem;
    color: white;
}

.wpcf7-form .wpcf7-submit:hover {
    cursor: pointer;
}

.wpcft7-form .wpcf7-not-valid-tip {
    background-color: rgb(200, 6, 6);
    color: var(--blanco);
    padding: .5rem;
    margin: .5rem 0;
    display: block;
    font-size: 1.4rem;
}
.wpcft7-form .ajax-loader {
    display: block;
    margin: 2rem auto 0 auto;
}
.wpcft7-form .wpcf7-spinner {
    display: block;
    margin: 2rem auto 0 auto;
    background-color: var(--primario);
    opacity: 1;
}

.mapa {
    margin-bottom: 5rem;
}


/** Pagina principal */
.bienvenida p {
    max-width: 80rem;
    margin: 0 auto;
}

.areas {
    display: grid;
    grid-template-columns: 1fr;
}
@media (min-width: 480px) {
    .areas {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (min-width: 768px) {
    .areas {
        grid-template-columns: repeat(4, 1fr);
    }
}

.area {
    height: 25rem;
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
}
.area::after {
    content: '';
    background-image: linear-gradient( rgb(0 0 0 / .75), rgb(0 0 0 / .75));
    position: absolute;
    width: 100%;
    height: 100%;
    top: 0;
}
.area img {
    height: 25rem;
    width: 50rem;
    object-fit: cover;
}
@media (min-width: 768px) {
    .area,
    .area img {
        height: 30rem;
    }
}

.area p {
    position: absolute;
    color: var(--blanco);
    z-index: 100;
    font-weight: 900;
}
@media (min-width: 768px) {
    .area p {
        opacity: 0;
        transition: opacity .5s ease-out;
    }
    .area:hover p {
        opacity: 1;
    }
}
/** Instructores **/
.instructor {
    margin: 2rem 0;
    border-bottom: 1px solid var(--gris-claro);
}
.instructor:last-of-type {
    border: none;
}
@media (min-width: 992px) {
    .instructor {
        position: relative;
        margin: 0;
    }
}
.instructor img {
    height: 40rem;
    object-fit: cover;
}
.instructor .contenido {
    padding: 3rem;
}
@media (min-width: 992px) {
    .instructor .contenido {
        position: absolute;
        top: 0;
        width: 100%;
        height: 100%;
        background-color: rgb(0 0 0 / .75);
        display: flex;
        flex-direction: column;
        justify-content: center;
        color: var(--blanco);
        opacity: 0;
        transition: opacity .5s ease-out;
        transition-delay: .2s;
    }
    .instructor:hover .contenido {
        opacity: 1;
    }
}
.instructor h3 {
    margin-bottom: 2rem;
}

.especialidad {
    margin-top: 2rem;
}
.instructor .etiqueta {
    background-color: var(--primario);
    color: var(--blanco);
    text-transform: uppercase;
    font-family: var(--fuente-headings);
    margin-right: 2rem;
    font-size: 2.2rem;
    border-radius: .5rem;
    padding: .5rem 2rem;
}
.instructor .etiqueta:last-of-type {
    margin-right: 0;
}

/** Testimoniales **/
.testimoniales {
    background: linear-gradient(
        rgb(0 0 0 / .75),
        rgb(0 0 0 / .75)
    ), url(img/testimonial-bg.jpg);
    background-size: cover;
    background-position: center center;
    padding: 12rem 0;
}
.contenedor-testimoniales {
    width: min(95%, 80rem);
    margin: 0 auto;
}
.testimonial {
    color: var(--blanco);
}
.testimonial blockquote {
    position: relative;
    padding: auto;
}

.testimonial-footer {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 2rem;
}
@media (min-width: 768px) {
    .testimonial-footer {
        justify-content: flex-end;
    }
}
.testimonial-footer img {
    width: 6rem;
    height: 6rem;
    border-radius: 50%;
}
.testimonial-footer p {
    font-weight: 700;
    color: var(--primario);
}

/** Animación Letras **/
.ml2 {
    font-weight: 800;
    font-size: 1.5rem;
}
.ml2 .letter {
    display: inline-block;
    line-height: 1rem;
}
@media (min-width: 320px) {
    .ml2 {
        font-size: 1.6rem;
    }
}
@media (min-width: 375px) {
    .ml2 {
        font-size: 1.9rem;
    }
}
@media (min-width: 425px) {
    .ml2 {
        font-size: 2rem;
    }
}
@media (min-width: 768px) {
    .ml2 {
        font-size: 2.2em;
    }
}

/** Comentarios **/
.comentarios {
    width: min(95%, 60rem);
    margin: 5rem auto 0 auto;
}
.comment-reply-title {
    color: var(--primario);
    text-align: center;
}

.logged-in-as a {
    color: var(--primario);
}
.comment-form-comment label {
    font-weight: 700;
    margin: 2rem 0;
    display: block;
}

.form-submit .submit {
    background-color: var(--primario);
    color: var(--blanco);
}
.comment-form-comment textarea,
.comentarios input[type="text"] {
    border: 1px solid var(--gris-claro);
    width: 100%;
    padding: 1rem;
}

.comentarios input[type="text"] {
    margin: .5rem 0;
}

h3.comentarios {
    margin: 3rem 0;
}

.lista-comentarios .comment {
    background-color: var(--gris-claro);
    padding: 2rem;
    margin-bottom: 2rem;
    border-radius: .5rem;
}
.lista-comentarios a {
    color: var(--primario);

}
.lista-comentarios cite {
    color: var(--primario);
    font-size: 2rem;
    font-weight: 700;
}
.lista-comentarios .children .comment {
    background-color: var(--blanco);
    margin: 2rem 0;
}
/** Paginación **/
.pagination .screen-reader-text {
    visibility: hidden;
}
.nav-links {
    display: flex;
    justify-content: center;
    gap: .5rem;
}
.nav-links a {
    font-size: 1.4rem;
    color: var(--primario);
    font-weight: 700;
    padding: .5rem;
}
.nav-links .current {
    font-size: 1.4rem;
    padding: .5rem;
}
/* TABLA DE PRECIOS*/
.tabla-precios {
    margin: auto;
    margin-bottom: 3rem;
    border-collapse: collapse;
}
.tabla-precios th, td {
    margin: 1rem;
    padding: 1.5rem;
    border: 1px solid black;

}
.tabla-precios th p{
    font-weight: 600;
    font-size: 3rem;

}
.tabla-precios td{
    font-weight: 600;
    font-size: 3rem;
    color: #1f1e1e;

}
.tabla-precios td span{
    color: #25d366;

}
.tabla-precios td .advertencia{
    color: red;

}

@media screen and (max-width: 600px) {
    table {
        width:100%;
    }
    thead {
        display: none;
    }
    tr:nth-of-type(2n) {
        background-color: inherit;
    }
    tr td:first-child {
        background: #f0f0f0;
        font-weight:bold;
        font-size:1.3em;
    }
    tbody td {
        
        display: block;
        text-align:center;
    }
    th td {
        border: 1px solid black;
        
    }
   
    tbody td:before {
        content: attr(data-th);
        display: block;
        text-align:center;
    }
    
} 
.striped td{
    background-color: #EBEBEB;
}