:root{

  /*Colores Primarios*/
  --red: hsl(0, 78%, 62%);
  --cyan: hsl(180, 62%, 55%);
  --orange: hsl(34, 97%, 64%);
  --blue: hsl(212, 86%, 64%);

  /*Colores Secundarios*/
  --very-dark-blue: hsl(234, 12%, 34%);
  --grayish-blue: hsl(229, 6%, 66%);
  --very-light-gray: hsl(0, 0%, 98%);

  /*Tipografia*/
  --fuente: 'Poppins', sans-serif;
  --tamaño: 15px;

}

/*Utilidades Generales*/
*{
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body{
  font-family: var(--fuente);
  font-size: var(--tamaño);
  color: var(--very-dark-blue);
  background-color: var(--very-light-gray);
}

/*Contenedor*/
.contenedor{
  margin: 90px 30px;
}

/*Encabezado*/

.encabezado{
  text-align: center;
}

.encabezado h1{
  font-weight: 200;
  font-size: 1.6rem;
  margin: 0;
  margin-bottom: 0.5rem;
  animation: leftright 1000ms;
}
.encabezado h2{
  font-weight: 600;
  font-size: 1.6rem;
  margin: 0;
  animation: rightleft 1000ms;
}
.encabezado p{
  font-size: 1rem;
  color: var(--grayish-blue);
  margin-top: 2rem;
  margin-bottom: 70px;
  animation: updown 1000ms;
}

/*Tarjetas*/

.tarjetas{
  max-width: 500px;
  margin: 0 auto;
  animation: downup 1000ms;
}

.contenido_tarjeta{
  
  border-radius: 8px;
  background-color: var(--very-light-gray);
  box-shadow: 3px 10px 10px var(--grayish-blue);
  margin-bottom: 30px;
  min-width: 310px;
  max-width: 500px;
  height: 222px;
}

.tarjeta_1 .linea{
  background-color: var(--cyan);
  height: 4px;
  overflow: hidden;
}
.tarjeta_2 .linea{
  background-color: var(--red);
  height: 4px;
  overflow: hidden;
}
.tarjeta_3 .linea{
  background-color: var(--orange);
  height: 4px;
  overflow: hidden;
}
.tarjeta_4 .linea{
  background-color: var(--blue);
  height: 4px;
  overflow: hidden;
}

/*Contenido de Tarjetas*/

.contenido_tarjeta_texto{
  padding: 30px;
}
.contenido_tarjeta_texto h3{
  margin-top: 0;
  margin-bottom: 0.5rem;
}
.contenido_tarjeta_texto p{
  color: var(--grayish-blue);
  font-size: 0.89rem;
  margin-bottom: 2rem;
}
.contenido_tarjeta_img{
  text-align: right;
}

/*footer*/
footer{
  .attribution{
    font-size: 11px;
    text-align: center;
  }
  .attribution a {
    color: hsl(228, 45%, 44%);
  }
}

/*Medias Queries*/

/*mq (600px)*/

@media (min-width: 600px ) {   
  .encabezado{
    max-width: 525px;
    margin: 0 auto;
  }
  .encabezado h1{
    font-size: 2.5rem;
  }
  .encabezado h2{
    font-size: 2.5rem;
  }
}

/*mq (780px)*/

@media only screen and (min-width: 780px ) { 
  .tarjetas{
    max-width: 900px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    column-gap: 2rem;
  }
  .tarjetas_medio{
    grid-column: 2 / 3;
    grid-row: 1 / 3;
  }
}

/*mq 1175px*/

@media (min-width: 1175px ) { 
  .tarjetas{
    max-width: 1200px;
    display: flex;
    justify-content: center;
    align-items: center;
  }

  .contenido_tarjeta{
    width: 355px;
    height: 254px;
  }
}

/*Animación*/

@keyframes updown{
  0%{
    transform: translateY(-500px);
  }
  100%{
    transform: translateY(0px);
  }
}
@keyframes downup{
  0%{
    transform: translateY(500px);
  }
  100%{
    transform: translateY(0px);
  }
}
@keyframes leftright{
  0%{
    transform: translateX(-500px);
  }
  100%{
    transform: translateX(0px);
  }
}
@keyframes rightleft{
  0%{
    transform: translateX(500px);
  }
  100%{
    transform: translateX(0px);
  }
}