/*
    Theme Name: Gym Fitness
    Theme URI: www.gymfitness.com
    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:ital,wght@0,100..900;1,100..900&family=Staatliches&display=swap');

:root {
  /** fuentes */
  --fuente-principal: 'Raleway', sans-serif;
  --fuente-headings: 'Staatliches', cursive;

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

/* apply a natural box layout model to all elements, but allowing components to change */
html {
  box-sizing: border-box;
  font-size: 62.5%; /* 1rem = 10px */
}
*, *:before, *:after {
  box-sizing: inherit;
}


body {
  font-family: var(--fuente-principal);
  font-size: 1.8rem;
  font-size: 18px;
  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;
  font-size: 60px;
}

h2 {
  font-size: 4.8rem;
  font-size: 48px;
}

h3 {
  font-size: 3.6rem;
  font-size: 36px;
}

h4 {
  font-size: 2.4rem;
  font-size: 24px;
}
/** Globales */
p {
  margin: 0;
}

a {
  text-decoration: none;
}

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

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

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

/** Utilidades */
.text-center {
  text-align: center;
}

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

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

.seccion {
  padding: 5rem 0;
}

/** Header */
.header {
  background-color: var(--gris-oscuro);
  padding: 2rem;
}

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

@media (min-width: 768px) {
  .barra-navegacion {
    flex-direction: row;
    justify-content: space-between;
  }
}

.menu-principal {
  display: none;
}

@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: 2.2rem;
  padding: .5rem 2rem;
}

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

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

  .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);
  }
}