/*
Theme Name: Ascii Mex
Theme URI: http://asciimexico.mx
Author: Rodrigo Hiram González Espinoza
Author URI:
Description: Template creado para Ascii México.
Version: 1.0
Text-domain: ascii
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Tags: e-commerce
*/

@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: #43793E;
    --gris-oscuro: #2f2e2e;
    --gris-claro: #EBEBEB;
    --blanco: #FFF;
    --negro: #000;
}

html {
    box-sizing: border-box;
    font-size: 62.5%;
}
*, *:before, *:after {
    box-sizing: inherit;
}

body {
    font-family: var(--fuente-principal);
    font-size: 18px;
    font-size: 1.8rem;
    line-height: 2;
}

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;
}

p {
    margin: 0;
}
a {
    text-decoration: none;
}

ul {
    list-style: none;
    margin: 0;
    padding: 0;
}
img {
    display: block;
    max-width: 100%;
    height: auto;
}

.imagen-destacada {
    margin-bottom: 3rem;
}

.contenedor {
    width: min(95%, 120rem);
    margin: 0 auto;
}


.contenido-centrado {
    width: min(95%, 80rem);
}

.contenido-centrado p {
    line-height: 1.6;
    margin-top: 1.5rem;
}

/** Utildades **/
.text-center {
    text-align: center;
}
.text-primary {
    color: var(--primario);
}
.text-blanco {
    color: var(--blanco);
}
.seccion {
    padding: 5rem 0;
}

@media (max-width: 767px) {
.seccion:last-of-type {
    padding-bottom: 0;
}
}

/** Header **/
body.home .header {
    height: auto;
    min-height: 40rem;
    background-position: top center;
}

body.home .header p{
    color: var(--primario);
    font-weight:600;
    font-size: 2rem;
    padding: 1rem 1.5rem;
    margin-top: 2rem;
}

@media (min-width: 768px) {
    body.home .header {
        height: 100vh;
        max-height: 90rem;
    }
}

body.home .header .tagline {
    margin-top: 5rem;
}

@media (min-width: 768px) {
body.home .header .tagline {
    width: min(75%, 120rem);;
    margin: 15rem auto;
}
}

.header {
    background-color: var(--gris-claro);
  }
   
.header__contenedor {
    width: min(95%, 120rem);
    margin: 0 auto;
    }


.logo img {
    width: 12rem;
}

.header__barra {
    display: flex;
    flex-direction: column;
    align-items: center;
}

@media (min-width: 768px) {
    .header__barra {
        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(--primario);
    font-size: 2.2rem;
    padding: .5rem 2rem;
}

@media (min-width: 768px) {
    
    .menu-principal .current_page_item {
        border-bottom: 3px solid var(--primario) ;
    }

    .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(--gris-oscuro);
        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 **/
.footer {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    background-color: var(--gris-oscuro);
}

.contenido-footer {
    display: flex;
    flex-direction: column;
    align-items: center;
    padding-top: 2rem;
}

@media (min-width: 768px) {
    .contenido-footer {
        flex-direction: row;
    justify-content: space-evenly;
    padding-top: 2rem;
}

.footer .logo img{
    width:16rem;
}
}

.footer .menu {
    flex-direction: column;
}
.footer .menu-principal a{
    color: var(--blanco);
    text-align: center;
}
.footer .menu-principal {
    display: block;
}

.footer .menu-principal a::before, 
.footer .menu-principal a::after {
    display: none;
}

.copyright {
    text-align: center;
    font-family: var(--fuente-headings);
    font-size: 1.8rem;
    margin: 2rem 0 0 0;
}

/** Pagina Principal**/
.hero p {
   max-width: 80rem;
   margin: 0 auto; 
   color: var(--primario);
}

/** Seccion Nosotros**/

.nosotros {
    color: var(--blanco);
    padding: 1rem;
    display: grid;
    grid-template-rows: repeat(2, 1fr);
    background-image: linear-gradient( to bottom, var(--gris-oscuro) 0%, var(--gris-oscuro) 50%, transparent 50%), url(./img/nosotros.jpg);
    background-size: 100%, 90rem;
    background-position: center, center bottom;
    background-repeat: no-repeat;
}

.nosotros h1{
 margin: 0;
}

.info-nosotros {
    padding: 1.5rem;
}

.info-nosotros p {
    margin-top: 1.5rem;
}

@media (min-width: 768px) {
    .nosotros {
        
        grid-template-columns:repeat(2, 1fr);
        background-image: linear-gradient(to right, var(--gris-oscuro) 0%, var(--gris-oscuro) 50%, transparent 50%), url(./img/nosotros.jpg);
        background-size: 100%;
        background-position: center, top center;
        height: 50vh;
}

.info-nosotros {
    padding: 5rem;
}

}

/**Servicios IT**/
.servicios {
    color: var(--primario);
    text-align: center;
    padding-top: 5rem;
    
}
.servicios-grid{
display: grid;
grid-template-rows: repeat(3, 1fr);
}

@media (min-width: 768px) {
.servicios-grid{
    grid-template-rows: unset;
    grid-template-columns: repeat(3, 1fr);
    text-align: center;
}
}
.servicio-bloque {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.servicio-imagen{
    width: 15rem;
    height: auto;
}

/**Contacto**/
@media (min-width: 768px) {
.contacto {
    display: grid;
    grid-template-columns: 2fr 1fr;
}
}

/** Formulario de Contacto **/
.wpcf7 {
    color: var(--blanco);
    display: flex;
    justify-content: center;
    background-color: var(--gris-oscuro);
    padding: 2rem;
   
}

@media (min-width: 768px) {
.wpcf7 {
    box-shadow: 1px 16px 17px 8px rgba(0,0,0,0.75);
-webkit-box-shadow: 1px 16px 17px 8px rgba(0,0,0,0.75);
-moz-box-shadow: 1px 16px 17px 8px rgba(0,0,0,0.75);
}
}
.wpcf7-form {
width: min(100%, 120rem);
align-items: center;
}

.wpcf7-form label {
    font-weight: 700;
    width: 50%;
}

.wpcf7-form .wpcf7-form-control {
    width: 100%;
}

.contacto-info {
    color: var(--gris-oscuro);
    padding: 5rem;
    height: 55%;
    margin: auto 0;
    background-color: var(--gris-claro);
    position: relative;
    z-index: -1;
}

.contacto-info h4 {
    margin: 0;
}

.contacto-heading {
    text-align: center;
}

.contacto-info p {
    font-family: var(--fuente-headings);
}

.contacto-telefono, .contacto-email {
    display: flex;
    justify-content: space-between;
}

@media (min-width: 768px) {
    .contacto-heading {
        text-align: left;
    }
    .contacto-telefono, .contacto-email {
        display: block;
    }
}