 /* Definiremos una custom properties, una paleta de colores propia */
:root {
    --blanco: #ffffff;
    --ghostwhite: #F8F8FF;
    --oscuro: #212121;
    --primario: #FFC107;
    --secundario: #0097A7;
    --gris: #757575;
    --grisclaro: #DFE9F3;

    --fuente-principal: 4rem;
}

/* En el html y body hará que 1rem= 10px */
html{
    font-size: 50.5%; /* antes 62.5% */
    box-sizing: inherit;
    scroll-snap-type: y mandatory;/* para indicar con scroll hasta donde llegar, ver .servicios */
}
*, *:before, *:after{
    box-sizing: inherit;
}


/* Scroll Snap / no funcionara en opera e internet explorer
.titulo,
.navegacion-principal,
.misservicios,
.formulario,
.footer{
    scroll-snap-align: center;
    scroll-snap-stop: always;
}
*/


/* Tipografía */
body{
    font-size: 16px;
    font-family: 'Arsenal', sans-serif;
    background-image: linear-gradient(to top, var(--grisclaro) 0%, var(--ghostwhite) 80%);
    margin-top: 5rem;
}

h1{
    font-size: 3,8rem;
    
}
h2{
    font-size: 2,8rem;

}
h3{
    font-size: 1,8rem;
}

h1, h2, h3{
    text-align: center;
    color: var(--primario);
    /* text-transform: uppercase; */
    font-size: var(--fuente-principal);
    font-family: 'Parisienne', cursive;

}

.titulo span{
    font-size: 2rem;
}

/* Preloader */
.hidden{
    overflow: hidden;
}
.preload-centrado{
    height: 100vh;
    display: flex;
    justify-content: center;
    align-items: center;
    background-color: var(--ghostwhite);
}
.lds-default {
    display: inline-block;
    position: relative;
    width: 90px;
    height: 90px;
  }
  .lds-default div {
    position: absolute;
    width: 7px;
    height: 7px;
    background: rgb(76, 169, 215);
    border-radius: 50%;
    animation: lds-default 1s linear infinite;
  }
  .lds-default div:nth-child(1) {
    animation-delay: 0s;
    top: 37px;
    left: 66px;
  }
  .lds-default div:nth-child(2) {
    animation-delay: -0.1s;
    top: 22px;
    left: 62px;
  }
  .lds-default div:nth-child(3) {
    animation-delay: -0.2s;
    top: 11px;
    left: 52px;
  }
  .lds-default div:nth-child(4) {
    animation-delay: -0.3s;
    top: 7px;
    left: 37px;
  }
  .lds-default div:nth-child(5) {
    animation-delay: -0.4s;
    top: 11px;
    left: 22px;
  }
  .lds-default div:nth-child(6) {
    animation-delay: -0.5s;
    top: 22px;
    left: 11px;
  }
  .lds-default div:nth-child(7) {
    animation-delay: -0.6s;
    top: 37px;
    left: 7px;
  }
  .lds-default div:nth-child(8) {
    animation-delay: -0.7s;
    top: 52px;
    left: 11px;
  }
  .lds-default div:nth-child(9) {
    animation-delay: -0.8s;
    top: 62px;
    left: 22px;
  }
  .lds-default div:nth-child(10) {
    animation-delay: -0.9s;
    top: 66px;
    left: 37px;
  }
  .lds-default div:nth-child(11) {
    animation-delay: -1s;
    top: 62px;
    left: 52px;
  }
  .lds-default div:nth-child(12) {
    animation-delay: -1.1s;
    top: 52px;
    left: 62px;
  }
  @keyframes lds-default {
    0%, 20%, 80%, 100% {
      transform: scale(1);
    }
    50% {
      transform: scale(1.5);
    }
  }
  









/* Botones  */
.boton{ /* Propiedades de todoso los botnes */
    background-color: var(--secundario);
    color: var(--blanco);
    padding: 1rem 3rem;
    margin-top: 1rem;
    font-size: 2rem;
    text-decoration: none;
    text-transform: uppercase;
    font-weight: bold;
    border-radius: .5rem;
    width: auto;
    text-align: center;
    border: none;
}
@media (min-widht: 786px){
    .boton{
        width: 80%;
    }
}

.boton:hover{
    background-color: var(--primario);
    cursor: pointer;
    transition: all 0.5s;
}

.boton:active{
    background-color: var(--secundario);
    transform: scale(.95);
}

/* utilidad para el ancho del boton enviar*/
.w-sm-100{
    width: 100%;
}
@media (min-widht: 768px){
    .w-sm-100{
        width: 100%;
    }
}
.flex{
    display: flex;
}
.alinear-derecha{
    display: flex;
    justify-content: flex-end;
    
}


/* sombreado contenido  */
.sombra{
    -webkit-box-shadow: 3px 3px 8px 1px rgba(145,135,145,0.57);
    -moz-box-shadow: 3px 3px 8px 1px rgba(145,135,145,0.57);
    box-shadow: 3px 3px 8px 1px rgba(145,135,145,0.57);
    background-color: var(--ghostwhite);
    padding: 4rem;
    border-radius: 2rem;
    
}



/* Navegador o Menus */
.contenedor{ /* esta es una segunda claase del navegador principal para centrar */
    max-width: 120rem; /* ancho de margen auto */ 
    margin: 0 auto 0 auto; /* margen arriba, derecha, abajo, izquierda */
}

.nav-bg{
    background-color: var(--secundario); /* color de fondo display block */
    margin-block-end: 3rem;
}

.navegacion-principal{
    display: flex; /* para que se muestre en linea */
    flex-direction: column; /* para que se muestre en linea */
    
}
@media (min-width: 700px){
    .navegacion-principal{
        flex-direction: row; /* para que se reinicie y muestre muestre en columna */
        justify-content: space-between; /* para que se muestre en linea */
    }
}

.navegacion-principal a{
    display: block; /* para que se muestre en bloques en linea */
    text-align: center; /* para que se muestre centrtado */
    color: var(--blanco); /* solo quedaran en color por su dispoición display line */
    text-decoration: none; /* quitar el subrayado */
    font-size: 2rem; /* tamaño de fuente */
    font-weight: bold; /* negrita */
    padding: 2rem; /* relleno de 1rem */
}
.navegacion-principal a:hover{ /* Esta pseudoclase se creara al momento de ser posicionada en ella */
    background-color: var(--primario); /* color de fondo display block */
    color: var(--oscuro); /* color de fondo display block */
    transition: all 0.3s; /* tiempo de transición */
}

.navegacion-principal a:active{
    background-color: var(--secundario); /* color de fondo cuando sea presionado */
    color: var(--ghostwhite); /* color de la fuente cuando se presione */
    transform: scale(0.90, 1); /* tamaño de la imagen */
}

 /* Para que el sitio pueda ser responsive desde aquí definimos las mediquery */

@media (max-width: 768px){
    .navegacion-principal a{
        font-size: 2rem; /* tamaño de fuente */   
    }
}

@media (max-width: 600px){
    .navegacion-principal a{
        font-size: 2.5rem; /* tamaño de fuente */   
    }
}

/* Header e imagenes del sitio */
.section1{
    background-image: url(../imagenes/Captura2.jpeg);
    background-repeat: no-repeat center;
    background-size: cover;
    height: 70rem;
    padding: 15px;
    position: relative;
    margin-bottom: 5rem;
}
.contenido-section1{
    position: absolute;
    background-color: rgba(0, 0, 0, 0.47);
    bottom: 0;
    left: 0;
    top: 0;
    right: 0;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
}
.contenido-section1 h2,
.contenido-section1 p{
    color: var(--blanco);
    text-align: center;
}


/* Seccion de servicios con grid resposivo a 768px */
@media (min-width: 768px){
    .servicios{
        display: grid;
        grid-template-columns: repeat(3, 1fr); /* Divido en una fraccion de tres*/
        column-gap: 2rem; /* Espacio entre columnas */
    }
}

.servicio{
    display: flex;
    flex-direction: column;
    align-items: center;
}
.servicio h3{
    color: var(--secundario);
    font-weight: normal;
}
.servicio p{
    line-height: 2; /* Interlineado de cada parrafo */
    text-align: justify;
}
.servicio .icono{
    height: 13rem;
    width: 13rem;
    background-color: var(--primario);
    border-radius: 50%;
    display: flex;
    justify-content: space-evenly;
    align-items: center;
    border-radius: 10rem;
}

/* Formulario de Contacto */
.formulario{
    background-color: var(--grisclaro);
    width: min(60rem, 100%);/*utilizar el valor mas quepeño: horrandonose algunos media quieries*/
    margin: 0 auto;
    padding: 2rem;
    border-radius: 1rem;
}
.formulario fieldset{
    border: none;
}

.formulario legend{
    margin: 0 auto; /* esta linea simplemnte es para que se pueda centrar en firefox */
    text-align: center;
    font-size: 2rem;
    text-transform: uppercase;
    font-weight: 700;
    color: var(--primario);
    margin-bottom: 2rem;
}

@media (min-width: 768px){
    .contenedor-campos {
        display: grid;
        grid-template-columns: repeat(2, 1fr); /* Divido en una fraccion de dos*/
        column-gap: 3rem; /* Espacio entre columnas */
        grid-template-rows: auto auto 25rem; /* Defino el alto de cada fila */
    }

    .campo:nth-child(3),
    .campo:nth-child(4){ /* Selecciono el tercer y cuarto campo (correo y mensajes) */
        grid-column: 1 / 3; /* Selecciono las dos columnas que abarcaran */

    }

}


.campo{
    margin-bottom: 2rem;
}
.campo label{
    color: var(--oscuro);
    font-weight: bold;
    margin-top: 1rem;
    margin-bottom: .5rem; 
    display: block;
    font-weight: 1.8rem;
}

.campo textarea{
    height: 20rem;
    width: 100%;
    border: none;
    padding: 1.5rem;
    border-radius: .5rem;
    background-color: var(--ghostwhite);
    
    
}

.input-text{
    width: 100%;
    border: none;
    padding: 1.5rem 0rem 1.5rem 1rem;
    border-radius: .5rem;
    box-sizing: border-box;
    background-color: var(--ghostwhite);
}
.input-text:valid,
.texarea:valid{
    background-color: var(--ghostwhite);
}
.input-text:invalid,
.texarea:invalid{
    background-color: rgba(255, 0, 0, 0.273);
}

/* inicio del footer */
.footer{
    text-align: center;
    margin-top: 2rem;
    padding: 2rem;
    
}
.licencia{
    padding: 4rem;
}
.linkedin{
    padding: 1rem;
    margin-block-end: 7rem;
    
}