:root{
    --fuenteHeading: 'PT Sans', sans-serif;
    --fuenteParrafos: 'Open Sans', sans-serif;
    --fuenteSecundaria: 'Oswald';

    --primario: #784D3C;
    --gris: #e1e1e1;
    --gris2: #1a1a1a;
    --marco: #2c2c2c;
    --blanco: #ffffff;
    --negro: #000000;
    --negro2: #0d0d0d;
    --amarillo: #e9c002;
    --verde: #00904d;
    --rojo: #ed2124;
}
html{
    box-sizing: border-box;
    font-size: 62.5%;
    background-color: var(--negro2);
}
*, *:before, *:after {
    box-sizing: inherit;
}
body {
    font-family: var(--fuenteParrafos);
    font-size: 1.6rem;
    line-height: 2;
}
/** Globales **/
.contenedor {
    width: min(90%, 120rem);
    margin: 0 auto;
}
a {
    text-decoration: none;
}
h1, h2, h3, h4 {
    font-family: var(--fuenteHeading);
    line-height: 1.2;
}
h1 {
    font-size: 4.8rem;
}
h2 {
    font-size: 4rem;
}
h3 {
    font-size: 3.2rem;
}
h4 {
    font-size: 2.8rem;
}
img {
    max-width: 100%;
}
/** Utilidades **/
.no-margin {
    margin: 0;
}
.no-padding {
    padding: 0;
}
.centrar-texto {
    text-align: center;
}

.centrar-texto__about{
    color: var(--verde);
}

/** Header **/
.webp .header {
    background-image: url(../img/banner6.jpeg) ;
}
.no-webp .header {
    background-image: url(../img/banner6.jpeg) ;
}
.header {
    background-image: url(../img/banner6.jpeg);
    height: 52rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
    
}
.header__texto {
   text-align: center;
   color: var(--blanco);
   margin-top: 5rem;
}
@media (min-width: 768px) {
    .header__texto {
        margin-top: 15rem;
    }
}
.barra {
    padding-top: 4rem;
}

@media (min-width: 768px) {
    .barra {
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
}
.logo {
    color: var(--blanco);
    
}
.logo__nombre {
    font-weight: 400;
}
.logo__bold {
    font-weight: 700;
}
@media (min-width: 768px) {
    .navegacion {
        display: flex;
        gap: 2rem;
    }
}
.navegacion__enlace {
    display: block;
    text-align: center;
    font-size: 1.8rem;
    color: var(--blanco);
}

/** About us **/
@media (min-width: 768px) {
    .sobre-nosotros {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
        
    }
}

.sobre-nosotros__texto{
    color: var(--blanco);
}

.footer {
    background-color: var(--negro);
    padding-bottom: 0rem;/**Antes 6rem**/
    margin-top: 4rem;
}

/** Contacto **/

.error{
    background-color: rgb(150, 0, 0);
    text-align: center;
    padding: 1rem;
    color: var(--gris);
    text-transform: uppercase;
}

.right{
    background-color: rgb(0, 150, 0);
    text-align: center;
    padding: 1rem;
    color: var(--gris);
    text-transform: uppercase;
}

.contacto-bg {
    background-image: url(../img/contact\ image.jpeg);
    height: 40rem;
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center center;
}

.formulario {
    background-color: var(--gris);
    margin: -18rem auto 0 auto;
    width: 95%;
    padding: 5rem;
    padding-bottom: 0rem;
}
.campo {
    display: flex;
    margin-bottom: 2rem;
}
.campo__label {
    flex: 0 0 9rem;
    text-align: right;
    padding-right: 2rem;
}
.campo__field {
    flex: 1;
    border: 1px solid var(--gris);
}
.campo__field--textarea {
    height: 20rem;
}

/*boton*/
.boton {
    display: block;
    font-family: var(--fuenteHeading);
    color: var(--blanco);
    text-align: center;
    padding: 1rem 3rem;
    font-size: 1.8rem;
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2rem;
    border: none;
}

@media (min-width: 768px) {
    .boton {
        display: inline-block;

    }
}
.boton:hover {
    cursor: pointer;
}
.boton--primario {
    background-color: var(--negro);
}

/** all Services **/
.services{
    max-width: 120rem;
    margin: 0 auto;
}

/** Grid*/
.grid{
    display: grid;
    grid-template-columns: repeat(2, 1fr); 
    gap: 0.6rem;
}
@media (min-width: 768px) {
    .grid{
        grid-template-columns: repeat(3, 1fr);
    }
}

/** Productos */
.service{
    background-color: var(--marco);
    padding: 1rem;
}

.service__name{
    font-size: 3.5rem;
    color: var(--rojo);
}

.service__cost{
    font-size: 2.8rem;
    color: var(--secundario);
}

.service__name,
.service__cost{
    font-family: var(--fuentePrincipal);
    margin: 1rem 0;
    text-align: center;
    line-height: 1.2; 
}

/* Graficos */

.graficos{
    min-height: 30rem;
    background-repeat: no-repeat;
    background-size: cover; 
    grid-column: 1 / 3;
}


.sti{
    font-family: var(--fuenteSecundaria);
    color: var(--verde);
    margin-top: 0rem;
}

.information{
    text-align: center;
    color: var(--blanco);
    font-family: var(--fuenteHeading);
    background-color: var(--gris2);
}

.last{
    color: var(--blanco);
    text-align: center;
    padding-bottom: 0rem;
}

.msnForm {
  display: none;
  position: fixed;
  top: 30px;
  right: 30px;
  background-color: #ffffff;
  color: #000000;
  padding: 16px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.2);
  z-index: 9999;
  max-width: 320px;
  font-family: 'Segoe UI', sans-serif;
  border-left: 5px solid #2196F3;
}

.msnForm__contenido {
  display: flex;
  align-items: center;
  gap: 10px;
}

.msnForm__icono {
  font-size: 20px;
  color: #2196F3;
}

.msnForm__cerrar {
  background-color: #2196F3;
  color: #ffffff;
  border: none;
  padding: 6px 12px;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 600;
  margin-left: auto;
}

.msnForm__cerrar:hover {
  background-color: #1976D2;
}