/* =====================================================
   VARIABLES BASE
===================================================== */
:root {
  --primary-color: #a57f2c;
  --text-dark: #1f2d3d;
  --text-medium: #444;
  --border-light: #d0d0d0;
}
main.page {
  padding-top: 40px;
}
/* =====================================================
   FILTROS
===================================================== */
.courses-filters-wrapper {
  background: #ffffff;
  border-radius: 8px;
  padding: 1.5rem;
  margin-bottom: 2rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.courses-filters {
  display: grid;
  grid-template-columns: 1fr 220px 220px;
  gap: 1rem;
  align-items: center;
}

.courses-filters input,
.courses-filters select {
  width: 100%;
  padding: 0.75rem 0.9rem;
  border-radius: 6px;
  border: 1px solid var(--border-light);
  font-size: 1.4rem;
  background-color: #fff;
  transition: 0.2s ease;
}

.courses-filters input:focus,
.courses-filters select:focus {
  outline: none;
  border-color: var(--primary-color);
  box-shadow: 0 0 0 3px rgba(165, 127, 44, 0.2);
}

#clearFilters {
  margin-top: 1rem;
  padding: 0.65rem 1.4rem;
  border-radius: 6px;
  font-size: 1.4rem;
  border: none;
  background-color: var(--primary-color);
  color: #fff;
  cursor: pointer;
  transition: 0.2s ease;
}

#clearFilters:hover {
  opacity: 0.9;
}

/* =====================================================
   CONTENEDOR POR MES
===================================================== */
.courses-month {
  margin-bottom: 3rem;
}

.month-title {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  text-align: center;
}
.line-title {
  background-color: var(--primary-color);
  color: #fff;
  padding: 0.75rem 1rem;
  font-size: 2rem;
  font-weight: 400;
  margin-bottom: 1.5rem;
  border-radius: 6px;
  text-align: center;
}

/* =====================================================
   GRID DE CURSOS
===================================================== */
/* .courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 2rem;
  justify-content: center;  
  justify-items: center;     
  align-items: stretch;  
  width: 100%;
  max-width: 1340px;         
  margin: 0 auto;           
} */
.courses-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 300px));
  gap: 2rem;

  justify-content: center;
  align-items: stretch;

  width: 100%;
  max-width: 1340px;
  margin: 0 auto;
}
/* =====================================================
   CARD
===================================================== */
.course-card {
  background: #ffffff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
  transition: all 0.25s ease;
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  max-width: 300px;
}

.course-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.15);
}

.course-link {
  display: flex;
  flex-direction: column;
  width: 100%;
  height: 100%;
  text-decoration: none;
  color: inherit;
}
.course-link:hover {
  text-decoration: none;
  color: inherit;
}

/* =====================================================
   IMAGEN
===================================================== */
.course-image {
  overflow: hidden;
}

.course-image img {
  width: 100%;
  height: 190px;
  object-fit: cover;
  display: block;
  transition: transform 0.35s ease;
}

.course-card:hover .course-image img {
  transform: scale(1.05);
}

/* =====================================================
   CONTENIDO
===================================================== */
.course-content {
  padding: 1.2rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  flex: 1;
}

.course-title {
  font-size: 1.9rem;
  font-weight: 600;
  line-height: 1.4;
  color: var(--text-dark);
  text-align: left;
  transition: color 0.25s ease;
  position: relative;
}

.course-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: -4px;
  width: 0%;
  height: 2px;
  background: var(--primary-color);
  transition: width 0.25s ease;
}

.course-card:hover .course-title::after {
  width: 100%;
}

.course-date {
  font-size: 1.4rem;
  color: #666;
  font-weight: 500;
  margin-top: auto;
}

/* =====================================================
   BADGES
===================================================== */
.course-badge {
  align-self: flex-start;
  padding: 0.35rem 0.75rem;
  font-size: 1.2rem;
  border-radius: 4px;
  font-weight: 500;
  margin-top: 0.3rem;
}

.badge-distancia {
  background-color: #3498db;
  color: #fff;
}

.badge-presencial, .badge-PMonterrey {
  background-color: #27ae60;
  color: #fff;
}

.badge-hibrida {
  background-color: #f39c12;
  color: #fff;
}

/* =====================================================
   INTRO
===================================================== */
.courses-intro {
  background: #ffffff;
  border-radius: 8px;
  padding: 2.5rem 2rem;
  margin-bottom: 3rem;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.courses-title {
  font-size: clamp(2rem, 2.5vw, 2.6rem);
  font-weight: 600;
  color: #1f2d3d;
  margin-bottom: 1.5rem;
  border-left: 5px solid #a57f2c;
  padding-left: 1rem;
  text-align: left;
}

.courses-text {
  font-size: clamp(1.8rem, 1.6vw, 1.5rem);
  line-height: 1.7;
  color: #444;
  margin-bottom: 1.2rem;
  text-align: left;
}

/* ====== BLOQUES POR MODALIDAD ====== */
.courses-block {
  margin-top: 2rem;
}

.courses-block h2 {
  font-size: 2rem;
  font-weight: 500;
  color: #a57f2c;
  margin-bottom: 0.8rem;
  text-align: left;
}

/* Bloque destacado */
.courses-block.highlight {
  background: #f8f9fa;
  border-radius: 6px;
  padding: 1.5rem;
  border-left: 4px solid #a57f2c;
}
/* ====== LISTAS ====== */
.courses-list {
  list-style: none;
  padding-left: 0;
  margin: 1rem 0 2rem;
}

.courses-list li {
  position: relative;
  padding-left: 1.8rem;
  margin-bottom: 0.6rem;
  font-size: 1.45rem;
  color: #333;
  text-align: left;
}

.courses-list li::before {
  content: "•";
  position: absolute;
  left: 0;
  color: #a57f2c;
  font-weight: bold;
}

/* Lista en dos columnas */
.courses-list.columns {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.6rem 2rem;
  max-width: 720px; /* controla qué tan centrada se ve */
  margin: 1.5rem auto 2rem; /* centra horizontalmente */
}
/*Barra de logos*/
.barra_cp {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2rem;
  padding: 1rem 0;
}
.logo-link {
  display: flex;
  align-items: center;
  transition:
    transform 0.2s ease,
    opacity 0.2s ease;
}

.logo-link:hover {
  transform: translateY(-2px);
  opacity: 0.9;
}

.logo_ineel {
  max-height: 70px;
  width: auto;
}

.logo_cp {
  max-height: 65px;
  width: auto;
}
/* ===== BLOQUE PRINCIPAL ===== */
.course-main {
  display: grid;
  grid-template-columns: 1fr 1.3fr;
  gap: 3rem;
  align-items: start;  
}
.course-imageP img {
  width: 100%;
  border-radius: 8px;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.12);
}
.course-title-p {
  font-size: 3rem;
  font-weight: 600;
  margin-bottom: 1.5rem;
  color: #a57f2c;
  text-align: left;
}
.course-info p {
  font-size: 1.6rem;
  margin-bottom: 0.8rem;
}
.course-instructors ul {
  margin: 0.8rem 0 0;
  padding-left: 1.5rem;
}
.course-instructors li {
  font-size: 1.8rem;
}

/* ===== BOTONES ===== */
.course-actions {
  display: flex;
  gap: 1.5rem;
  margin-top: 3rem;
  flex-wrap: wrap;
  justify-content: center;
}
.btn-primary,
.btn-secondary {
  padding: 1rem 2rem;
  font-size: 1.5rem;
  border-radius: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}
.btn-primary {
  background: #fff;
  color: #611232;
}
.btn-primary:hover {
  background: #611232;
}
.btn-secondary {
  border: 2px solid #6f7271;
  color: #6f7271;
}
.btn-secondary:hover {
  background: #6f7271;
  color: #fff;
}

.txtA {
  font-weight: 500;
  margin-left: 10px;
  padding-bottom: 10px;
}

.txtB {
  margin-left: 30px;
  padding-bottom: 10px;
}

.txtC {
  margin-left: 50px;
  padding-bottom: 5px;
}

.txtD {
  margin-left: 70px;
  padding-bottom: 5px;
}

.txtE {
  margin-left: 90px;
  padding-bottom: 5px;
}
/* =====================================================
   HERO CURSOS 
===================================================== */

.courses-hero {
  width: 100%;
  padding: 2rem 1.5rem;
}

.courses-hero-container {
  max-width: 1340px;
  margin: 0 auto;
  border-radius: 10px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(0, 0, 0, 0.08);
}

/* Imagen responsive */

.courses-hero-image {
  width: 100%;
  height: 320px;
  object-fit: cover;
  display: block;
}

/* =====================================================
   RESPONSIVE BREAKPOINTS
===================================================== */

/* ---------- LAPTOP / PC PEQUEÑA ---------- */
@media (max-width: 1200px) {
  /* .courses-grid {
    grid-template-columns: repeat(auto-fit, minmax(240px, 300px));
    justify-content: center;
  } */

  .courses-grid {
    grid-template-columns: repeat(4, 300px);
  }

  .courses-filters {
    grid-template-columns: 1fr 1fr;
  }
}

/* ---------- TABLET ---------- */
@media (max-width: 768px) {
  /* .courses-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
    gap: 1.6rem;
  } */

  .courses-grid {
    grid-template-columns: repeat(2, 300px);
    gap: 1.6rem;
  }

  .courses-filters {
    grid-template-columns: 1fr;
  }

  .courses-intro {
    padding: 1.8rem 1.4rem;
  }

  .barra_cp {
    flex-direction: column;
    justify-content: center;
    gap: 1rem;
  }

  .logo_ineel,
  .logo_cp {
    max-height: 60px;
  }

  .courses-hero {
    padding: 1.8rem 1.2rem;
  }

  .courses-hero-image {
    height: 240px;
  }
  .course-main {
     grid-template-columns: 1fr;
  }
  .course-title-p { font-size: 2.1rem; }
}

/* ---------- MÓVIL ---------- */
@media (max-width: 576px) {
  .courses-grid {
    grid-template-columns: 300px;
    max-width: 340px;
    margin: 0 auto;
  }

  .course-image img {
    height: 180px;
  }

  .course-title {
    font-size: 1.7rem;
  }

  .courses-filters {
    grid-template-columns: 1fr;
  }

  #clearFilters {
    width: 100%;
  }
  .courses-hero {
    padding: 1.4rem 1rem;
  }

  .courses-hero-image {
    height: 180px;
  }
}
