:root{
    --fuenteheading:'PT Sans', sans-serif;
    --fuenteparrafos:'Open Sans, sans-serift';

    --primario:#784D3C;
    --grir:#e1e1e1;
    --blanco:#ffffff;
    --negro:#000000;
}

html{
    box-sizing: border-box;
    font-size: 62.5%; /*1 rem =10px*/
    padding: 0;
    margin: 0;
}
*, *::before, *::after{
     box-sizing: inherit;
}
body{
    font-family: var(--fuenteparrafos);
    font-size:1.6rem ;
    line-height: 2;
    background-image: url('/img/fondo.jpg'); /* Ruta de la imagen */
    background-size: 100% auto; /* La imagen ocupa el 100% del ancho y ajusta la altura automáticamente */
    background-position: center; /* Centra la imagen en el fondo */
 
    
}
/**Globales**/

.contenedor{
    max-width: 120rem;
    width: 90%;
    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%;
    border-radius: 10px;
    box-shadow: 5px 5px 5px 3px rgba(19, 17, 17, 0.418);
}
p{
  display: flex;
  justify-content: center;
    text-align: justify;
}
/**Utilidades**/
.no-margin{
    margin: 0;
    border-left: #784D3C solid 1px;
    border-bottom: #784D3C solid 1px;
}
.no-padding{
    padding: 0;
}

.centrar-texto{
    text-align: center;
    border-left: #784D3C solid 1px;
    border-bottom: #784D3C solid 1px;
}

/**Header**/
/* .webp .header{
    background-image: url(/img/banner.webp);
} */
.no-webp .header{
    background-image: url(/img/banner1.jpg);
}

.header{
     background-image: url(/img/banner1.jpg);
     height: 60rem;
     background-size: cover;
     background-repeat: no-repeat;
     background-position: center center;
}
@media (max-width: 768px) {
    .header__texto{
       margin-top: 15rem; 
    }
    .header__texto h2{
        margin:  0 auto;
        font-size: 15px;
     }
} 

.header__texto{
    color: var(--blanco);
    text-align: center;
    margin-top: 5rem;
}
.navegacion a:hover{
color: #ce8061;
font-size: 25px;
 transition: all .8s;
 text-decoration: underline;
}
.navegacion  img{
    width: 30px;
    
}
.barra{
    padding-top: 4rem;
}
@media (min-width: 768px) {
    .barra{
        display: flex;
        justify-content: space-between;
        align-items: center;
    }
} 
.logo img{
    width: 160px;
}
.logo{
    color: var(--blanco);
    text-decoration: underline;
}

@media (min-width: 768px) {
    .navegacion{
        display: flex;
        justify-content: center;
        gap: 2rem;
    }
} 
.navegacion__enlace{
    display: block;
    text-align: center;
    font-size: 2rem;
    color: var(--blanco);
}

@media (min-width: 768px) {
    .contenido-principal{
        display: grid;
        grid-template-columns: 2fr 1fr;
        column-gap: 4rem;
        
    }
} 
.titulo {
    text-align: center;

    border-left: #784D3C solid 1px;
    border-bottom: #784D3C solid 1px;
  }

@media(max-width:768px){
    .titulo {
        text-align: center;
        font-size: 30px;
        border-left: #784D3C solid 1px;
        border-bottom: #784D3C solid 1px;
      }
     
}

  .titulo img{
   width: 30px;
  }
  .titulo2 {
    text-align: center;
  }
#titulo{
    border-left: #784D3C solid 1px;
    border-bottom: #784D3C solid 1px;
}
.entrada{
    border-bottom: 1px solid var(--grir);
    margin-bottom: 2rem;
}
.entrada:last-of-type{
    border: none;
    margin-bottom: 0;
}

.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);
    border-radius: 10px;
}

.boton--secundario{
    background-color: var(--primario);
    border-radius: 10px;
}
.cursos{
    list-style: none;
}
.widyet-curso{
    border-bottom: 1px solid var(--grir);
    margin-bottom: 2rem;
}
.widyet-curso:last-of-type{
    border: none;
    margin-bottom: 0;
}
.widyet-curso__label{
   font-family: var(--fuenteheading);
   font-weight: bold;
}
.widyet-curso__info{
   font-weight: normal;
}
.widyet-curso__label,
.widyet-curso__info{
    font-size: 2rem;
}

/*footer*/
.footer{
    background-image: url(/img/fondo.png);
    background-size: contain;
    background-color: #000000;
   
}

/**Sobre nosotros**/

@media (min-width: 768px) {
    .sobre-nosotros{
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        column-gap: 2rem;
    }
   
} 
@media(max-width:768px){
    .barra{
        background-size: contain;
       
       display: flex;
       justify-content: space-around;
     
    }
}
/**cursos**/

.curso{
    padding: 3rem  0;
    border-bottom: 2px solid var(--grir);
}
.curso:last-of-type{
    border: none;
}

@media (min-width: 768px) {
    .curso{
        display: grid;
        grid-template-columns:1fr 2fr ;
        column-gap: 2rem;
    }
} 
.curso__label{
    font-family: var(--fuenteheading);
    font-weight: bold;
 }
 .curso__info{
    font-weight: normal;
 }
 .curso__label,
 .curso__info{
     font-size: 2rem;
 }

 .curso_icon i{
    font-size: 30px;
    margin: 5px;
    color: #000000;
    
 }


/**contacto**/
.container {
    max-width: 600px;
    margin: auto;
    padding: 20px;
    border: 1px solid #ccc;
    border-radius: 10px;
    background-color: #f9f9f965;
  }
  
  .contact-image {
    width: 100%;
    max-width: 200px;
    display: block;
    margin: auto;
  }
  
  input[type="text"],
  input[type="tel"],
  input[type="email"],
  textarea {
    width: 100%;
    padding: 10px;
    margin-top: 10px;
    margin-bottom: 20px;
    border: 1px solid #ccc;
    border-radius: 5px;
  }
  
  textarea {
    resize: vertical;
    min-height: 100px;
  }
  
  input[type="submit"] {
    background-color: #6d4804;
    color: #fff;
    border: none;
    border-radius: 5px;
    padding: 10px 20px;
    cursor: pointer;
    transition: background-color 0.3s ease;
  }
  
  input[type="submit"]:hover {
    background-color: #9b7b40;
  }

/* card */

.card-container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    z-index: 1;
  }
  
  .card {
    flex-basis: calc(33.333% - 20px); /* Ajusta el ancho de cada tarjeta */
    margin-bottom: 20px;
   margin: 0 auto;
    border: 1px solid #ccc;
    border-radius: 10px;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.349);
    transition: transform 0.3s ease;
    background-color: #0000003b;
  }
  
  .card img {
    width: 100%;
    height: auto;
    border-radius: 8px;
  }
  
  .card h2 {
    margin-top: 15px;
    font-size: 20px;
  }
  
  .card p {
    margin-top: 10px;
    font-size: 16px;
    margin: 5px;
  }

 
  
  .button i{
    font-size: 30px;
    margin: o auto;
    display: flex;
    justify-content: center;
    margin-top: 20px;
    color: #643b05;
  }
  
  /* Media query para dispositivos móviles */
  @media only screen and (max-width: 768px) {
    .card {
      flex-basis: calc(100% - 20px);
      margin-bottom: 20px;
    }
  }