:root {
  --fuenteHeadig: "PT Sans", "sans-serif";
  --fuenteParrafos: "Open Sans", "sans-serif";

  --colorPrimario: #784d3c;
  --blanco: #fff;
  --negro: #00000000;
}

html {
  box-sizing: border-box;
  font-size: 62.5%;
}
*,
*:before,
*:after {
  box-sizing: inherit;
}
body { 
  font-family: var(--fuenteParrafos);
  font-size: 1.6rem;
  line-height: 2;
}

/* Globales */
.contenedor {
  max-width: 120rem;
  width: 90%;
  margin: 0 auto;
}
a {
  text-decoration: none;
  color: var(--blanco);
}

h1,
h2,
h3,
h4 {
  font-family: var(--fuenteHeadig);
  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;
}

/* Inicio del proyecto */

/* Header*/
.header {
  background-image: url(../img/banner.webp);
  height: 100vh;
  background-size: cover;
  background-repeat: no-repeat;
  background-position: center center;
}
.header a:hover{
  color: #d8d8d8;
}
.header__texto {
  color: var(--blanco);
  margin-top: 5rem;
}
@media (min-width: 768px) {
  .header__texto {
    margin-top: 15rem;
  }
}
.logo {
  color: var(--blanco);
}
.logo__nombre {
  font-weight: normal;
}
.logo__bold {
  font-weight: bold;
}
@media (min-width: 768px) {
  .barra {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 2rem;
  }
}
.navegacion__enlace {
  display: block;
  text-align: center;
  font-size: 1.8rem;
  color: var(--blanco);
}
@media (min-width: 768px) {
  .navegacion {
    display: flex;
    gap: 2rem;
  }
}

/* Blogs */
@media (min-width: 768px) {
  .contenido-principal {
    display: grid;
    grid-template-columns: 2fr 1fr; /*Separación en dos columnas*/
    column-gap: 3rem;
  }
}
.entrada {
  margin-bottom: 1.8rem;
}

/* Botones */
/* From Uiverse.io by CristianMontoya98 */
.btn {
  width: 10em;
  height: 2.3em;

  background: black;
  color: white;
  border: none;
  border-radius: 0.625em;
  font-family: var(--fuenteHeadig);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}

button:hover,
a:hover,
.btn:hover {
  color: black;
}

button:after {
  content: "";
  background: white;
  position: absolute;
  z-index: -1;
  left: -20%;
  right: -20%;
  top: 0;
  bottom: 0;
  transform: skewX(-45deg) scale(0, 1);
  transition: all 0.5s;
}

button:hover:after {
  transform: skewX(-45deg) scale(1, 1);
  -webkit-transition: all 0.5s;
  transition: all 0.5s;
}

@media (max-width: 480px) {
  .btn-center {
    width: 20rem;
    margin: 0 auto;
  }
}

/* Boton para aside (cursos) */
.btn--aside {
  width: 10em;
  height: 2.3em;
  margin-bottom: 2rem;
  background: var(--colorPrimario);
  color: white;
  border: none;
  border-radius: 0.625em;
  font-family: var(--fuenteHeadig);
  font-size: 2rem;
  font-weight: bold;
  cursor: pointer;
  position: relative;
  z-index: 1;
  overflow: hidden;
}
/* Cursos */
.cursos {
  list-style: none;
}
.widget-curso,
.curso__labe {
  border-bottom: 1px solid #858585;
  margin-bottom: 2rem;
}
.widget-curso:last-of-type {
  border-bottom: none;
  margin-bottom: 0;
}
.widget-curso__label,
.curso__label {
  font-family: var(--fuenteHeadig);
  font-weight: bold;
}
.widget-curso__info,
.curso__info {
  font-weight: normal;
}
.widget-curso__info,
.widget-curso__label,
.curso__info,
.curso__label {
  font-size: 2rem;
}

/* footer */
.footer {
  height: auto;
  background-color: #000000;
  padding-bottom: 2rem;
  margin-top: 3rem;
}

/* Pagina nosotros */
@media (min-width: 768px) {
  .sobre-nosotros {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
  }
  .sobre-nosotros p {
    margin-top: 0;
  }
}

/* Pagina de cursos */
.curso {
  padding: 3rem;
  border-bottom: 1px solid #858585;
}

.curso:last-of-type {
  padding: 3rem;
  border-bottom: none;
}

@media (min-width: 768px) {
  .curso {
    display: grid;
    grid-template-columns: 1fr 2fr;
    column-gap: 3rem;
  }
}
/* contacto */
.contacto_bg{
  background-image: url(../img/contacto.jpg);
  height: 40rem;
  background-size: cover;
  background-repeat: no-repeat;
}

/* fomulario */
.formulario{
  background-color: var(--blanco);
  margin: -8rem auto 0 auto;
  width: 90%;
  border-top-right-radius: 1rem;
  border-top-left-radius: 1rem;
  padding: 3rem;
}


 .campo{
  display: flex;
  margin-bottom: 2rem;
  gap: 2rem;
}
.campo_label{
flex: 0 0 9rem;
text-align: right;
}
.campo_fiel{
  flex: 1;
}
.campo_fiel--textarea{
height: 12rem;
} 
