@charset "utf-8";

/* === RESET BÁSICO Y TIPOGRAFÍA === */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  color: #333333;
  font-family: "Source Sans 3", sans-serif;
  background-color: #F4F6F8;
}

h1,
h2,
h3 {
  font-family: "Inter", sans-serif;
  color: #0A2A43;
}

a {
  text-decoration: none;
}

button {
  font-family: "Source Sans 3", sans-serif;
  cursor: pointer;
  transition: all 0.3s ease;
}

/* === HERO SECTION === */
.hero {
  background-image: url(/img/background/background-nexus-Digital-Nexora.png);
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  min-height: 90vh;
  display: flex;
  align-items: center;
  padding: 40px 5%;
  position: relative;
  color: #FFFFFF;
}

.hero-content {
  position: relative;
  max-width: 800px;
  z-index: 1;
}

.hero h1 {
  font-size: 4rem;
  margin: 0 0 20px 0;
  color: #FFFFFF;
  line-height: 1.1;
}

.hero p {
  font-size: 1.5rem;
  margin: 0 0 30px 0;
  color: #f2f2f2;
}

.hero .cta-btn {
  display: inline-block;
  background: #0A2A43;
  color: #FFFFFF;
  padding: 18px 35px;
  border-radius: 6px;
  font-weight: bold;
  font-size: 1.1rem;
  transition: background 0.3s ease, transform 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.3);
}

.hero .cta-btn:hover {
  background: #123C5A;
  transform: translateY(-2px);
}

/* === SECCIÓN INTRODUCCIÓN (#learning-op) === */
#learning-op {
  background-color: #f2f2f2;
  padding: 20px 5%;
  text-align: center;
}

#learning-op h2 {
  font-size: 2.2rem;
  margin-bottom: 5px;
}

#learning-op p {
  font-size: 1.1rem;
  color: #555555;
}

#learning-op button {
  padding: 12px 30px;
  background: #0A2A43;
  color: #FFFFFF;
  border: none;
  border-radius: 5px;
  font-weight: bold;
}

/* === CONTENEDOR PRINCIPAL DEL CATÁLOGO === */
.cursos-online {
  width: 90%;
  max-width: 1200px;
  margin: 40px auto;
}

/* === FILTROS (DISEÑO COMPACTO) === */
.filtros-cursos {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  background: #FFFFFF;
  padding: 20px;
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.05);
  margin-bottom: 40px;
}

.filtros-cursos input,
.filtros-cursos select {
  flex: 1 1 180px;
  padding: 10px;
  border: 1px solid #dddddd;
  border-radius: 5px;
  outline: none;
  font-size: 0.9rem;
}

/* === SECCIONES DE CATEGORÍA === */
.categoria-bloque {
  margin-bottom: 60px;
}

.titulo-categoria {
  font-size: 1.8rem;
  border-left: 5px solid #0A2A43;
  padding-left: 15px;
  margin-bottom: 30px;
}

/* === GRID DE TARJETAS DE CURSO === */
.contenedor-cursos {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 25px;
}

.tarjeta-curso {
  background: #FFFFFF;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #eeeeee;
  display: flex;
  flex-direction: column;
  transition: transform 0.3s, box-shadow 0.3s;
}

.tarjeta-curso:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 20px rgba(0, 0, 0, 0.1);
}

.curso-imagen {
  width: 100%;
  height: 180px;
  object-fit: cover;
}

.tarjeta-curso h2 {
  font-size: 1.2rem;
  padding: 15px 15px 5px 15px;
  margin: 0;
}

.tarjeta-curso p {
  font-size: 0.9rem;
  padding: 0 15px;
  color: #666666;
  flex-grow: 1;
  margin: 5px 0;
}

.btn-detalles-curso {
  margin: 15px;
  padding: 10px;
  background: #0A2A43;
  color: #FFFFFF;
  text-align: center;
  border-radius: 5px;
  font-weight: bold;
  font-size: 0.9rem;
}

/* === COMPORTAMIENTO RESPONSIVO (EXCLUSIVO DEL MAIN) === */
@media screen and (max-width: 768px) {
  .filtros-cursos {
    flex-direction: row;
  }

  .filtros-cursos input,
  .filtros-cursos select {
    flex: 1 1 calc(50% - 10px);
    /* Dos columnas simétricas en tablet/móvil horizontal */
    font-size: 0.85rem;
    padding: 8px;
  }

  .titulo-categoria {
    font-size: 1.5rem;
  }
}

@media screen and (max-width: 480px) {

  .filtros-cursos input,
  .filtros-cursos select {
    flex: 1 1 100%;
    /* Una sola columna en pantallas móviles estrechas */
  }
}