*{
  padding:0;
  margin: 0;
}
*,*::before,*::after{
  box-sizing: border-box;
}

body{
  font-family:'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
  color: #333333;
  line-height: 1.6;
}

.encabezado-principal
{
  background-color: #ffffff;
  padding: 15px 5%;
  border-bottom: 1px solid #eee;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

#logo {
  color: #1a252f;
  font-size: 1.8rem;
}

#logo span 
{
  color: #3498db;
}

.menu-nav ul{
  list-style: none;
  display: flex;
  gap: 20px;
}

.menu-nav a {
  text-decoration: none;
  color: #2c3e50;
  font-weight: 600;
  display: inline-block;
  padding: 5px 10px;
}

.banner-descuento
{
  background-color: #f39c12;
  color: #ffffff;
  text-align: center;
  padding: 10px 15px;
  border-bottom: 3px solid #af5112;
  font-weight: bold;
  font-size: 0.9rem;
  position: sticky;
  top: 0;
  z-index: 100;
}

.hero{
  background: linear-gradient(135deg,#2c3e50,#3498db);
  color: #ffffff;
  padding: 60px 20px;
  text-align: center;
}

.hero h2{
  color: #ffffff;
}
.hero .subtitulo{
  color: #ecf0f1;
}

.subtitulo{
  color: #555555
}

/*darle estilo al boton*/
.btn-principal{
  padding: 12px 15px;
  background-color: #27ae60;
  border: none;
  border-radius: 3px;
  color: #ffffff;
  font-size: 1rem;
  margin-top: 15px;
  font-weight: bold;
  transition: background-color 0.2s ease;
}

.btn-principal:hover
{
  background-color: #219150;
}

.btn-principal:focus{
  outline: 2px solid #f1c40f;
}


/*estructura bidimensional*/
.seccion-cursos
{
  padding: 40px 5%;
}
.grid-curso
{
  display: grid;
  gap: 25px;
  grid-template-columns: repeat(auto-fit,minmax(250px,1fr));
  
}
.tarjeta-cursos
{
  background-color: #ffffff;
  width: 100%;
  max-width: 350px;
  border: 1px solid #e0e0e0e0;
  padding: 25px;
  margin: 15px 0;
  border-radius: 8px;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
  /*transition*/
  transition: transform 0.3 ease, box-shadow 0.3 ease;
}

.tarjeta-cursos h3
{
  font-size: 1.2rem;
  color: #2c3e50;
  margin-bottom: 10px;
}

.tarjeta-cursos:hover{
  transform: translateY(-8px);
  box-shadow: 0 12px 20px rgba(0, 0, 0, 0.15);
}

.tarjeta-cursos.destacados
{
  border: 1px solid #3498db;
  position: relative;
}

.tarjeta-cursos.destacados::before
{
  content: "¡MAS POPULAR!";
  position: absolute;
  top: -15px;
  right: 15px;
  background-color: #e74c3c;
  color: #ffffff;
  font-size:0.7rem;
  font-weight: bold;
  padding: 4px 10px;
  border-radius: 3px;
}

.tarjeta-cursos p{
  color: #555555;
}

.precio
{
  display: inline-block;
  margin-top: 15px;
  font-size: 1rem;
  font-weight: bold;
  color: #27ae60;
}

.pie-pagina{
  background-color: #333333;
  color: #ffffff;
  font-weight: bold;
  padding: 20px;
  text-align: center;
  margin-top: 40px;
}


/*se urilizarian las medias queries*/
@media(max-width:760px)
{
  .encabezado-principal{
  flex-direction: column;
  gap: 15px;
  text-align: center;
  }
  .hero h2{
    font-size: 1.5rem;
    text-align: center;
  }

  .grid-curso
  {
    grid-template-columns: 1fr;
  }
  

}

