/* =========================
   CURSOS (Cards)
========================= */

.section{
  padding:1px 0;
  background:
    radial-gradient(circle at 18% 28%, rgba(45,84,172,.10), transparent 60%),
    radial-gradient(circle at 82% 35%, rgba(247,134,42,.10), transparent 62%),
    radial-gradient(circle at 55% 90%, rgba(119,154,49,.08), transparent 60%),
    #ffffff;
}


/* =========================
   GRID
========================= */
.cards-grid{
  display:grid;
  grid-template-columns:repeat(3, 1fr);
  gap:26px;
  align-items:stretch;
}

/* =========================
   CARD BASE
========================= */
.course-card{
  border-radius:22px;
  overflow:hidden;
  background:#fff;
  border:1px solid rgba(45,84,172,.12);
  box-shadow:0 22px 60px rgba(45,84,172,.10);
  transition:.25s ease;

  display:flex;
  flex-direction:column;
  min-height:520px;
}

.course-card:hover{
  transform:translateY(-5px);
  box-shadow:0 32px 90px rgba(45,84,172,.16);
  border-color:rgba(45,84,172,.22);
}

/* =========================
   TOP
========================= */
.course-top{
  height:150px;
  position:relative;
}

/* Icon glass */
.course-icon{
  width:68px;
  height:68px;
  border-radius:18px;
  display:grid;
  place-items:center;
  color:#fff;

  position:absolute;
  left:50%;
  top:32px;
  transform:translateX(-50%);

  background:rgba(255,255,255,.18);
  border:1px solid rgba(255,255,255,.22);
  backdrop-filter:blur(10px);
  box-shadow:0 18px 45px rgba(0,0,0,.18);
}

.course-icon i{
  font-size:26px;
}

/* =========================
   BODY
========================= */
.course-body{
  padding:50px 26px 26px;
  flex:1;
  display:flex;
  flex-direction:column;
}

.course-body h3{
  font-size:22px;
  margin-bottom:10px;
  color:#0f1a33;
  line-height:1.22;
}

.course-desc{
  color:rgba(45,84,172,.72);
  line-height:1.6;
  margin-bottom:12px;
}

/* =========================
   CERTIFICADO BADGE
========================= */
.course-badge{
  align-self:flex-start;
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 12px;
  border-radius:999px;
  font-size:12.5px;
  font-weight:900;
  color:#92400e;
  background:rgba(247,134,42,.18);
  margin-bottom:10px;
}

.course-badge i{
  color:#F7862A;
}

/* =========================
   META INFO
========================= */
.course-meta{
  display:flex;
  flex-wrap:wrap;
  gap:12px 18px;
  margin:12px 0 22px;
  font-size:13.5px;
  color:rgba(15,26,51,.78);
}

.course-meta span{
  display:inline-flex;
  align-items:center;
  gap:8px;
}

.course-meta i{
  color:#16a34a;
  font-size:14px;
}

/* =========================
   FOOTER
========================= */
.course-footer{
  margin-top:auto;
  display:flex;
  align-items:center;
  justify-content:space-between;
  gap:14px;
}

/* =========================
   PRECIO
========================= */
.course-price{
  font-size:20px;
  font-weight:900;
  color:#0f1a33;
}

/* =========================
   BOTÓN
========================= */
.course-btn{
  display:flex;
  align-items:center;
  justify-content:center;
  gap:10px;

  text-decoration:none;
  font-weight:900;
  padding:13px 18px;
  border-radius:14px;

  border:1px solid transparent;
  box-shadow:0 14px 35px rgba(45,84,172,.08);
  transition:.22s ease;
}

.course-btn i{
  font-size:14px;
  transition:transform .22s ease;
}

.course-btn:hover{
  transform:translateY(-3px);
  box-shadow:0 22px 55px rgba(45,84,172,.14);
}

.course-btn:hover i{
  transform:translateX(4px);
}

/* =========================
   TITULOS DE BLOQUES
========================= */

.courses-title {
  font-size: clamp(26px, 3vw, 38px);
  font-weight: 900;
  color: #1e3a8a;
  margin: 40px 0 26px;
  position: relative;
  letter-spacing: -0.5px;
}

/* Línea decorativa */
.courses-title::after {
  content: "";
  display: block;
  width: 64px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(
    90deg,
    #3b82f6,
    #60a5fa
  );
}

/* =========================
   VARIANTE: PRÓXIMAMENTE
========================= */

.courses-title.upcoming {
  color: #0f766e;
  margin-top: 80px;
}

.courses-title.upcoming::after {
  background: linear-gradient(
    90deg,
    #16a34a,
    #4ade80
  );
}


/* =========================
   THEMES (TOP)
========================= */
.theme-navy .course-top{
  background:linear-gradient(135deg,#1e3a8a,#0f172a);
}
.theme-blue .course-top{
  background:linear-gradient(135deg,#3B82F6,#60A5FA);
}
.theme-electric .course-top{
  background:linear-gradient(135deg,#F59E0B,#F97316);
}
.theme-green .course-top{
  background:linear-gradient(135deg,#16A34A,#4ADE80);
}
.theme-purple .course-top{
  background:linear-gradient(135deg,#7C3AED,#A78BFA);
}

/* =========================
   BUTTON COLORS
========================= */
.btn-navy{
  background:rgba(30,58,138,.12);
  color:#1e3a8a;
}
.btn-navy:hover{
  background:linear-gradient(135deg,#1e3a8a,#0f172a);
  color:#fff;
}

.btn-blue{
  background:rgba(59,130,246,.12);
  color:#2563EB;
}
.btn-blue:hover{
  background:linear-gradient(135deg,#3B82F6,#60A5FA);
  color:#fff;
}

.btn-electric{
  background:rgba(249,115,22,.14);
  color:#F97316;
}
.btn-electric:hover{
  background:linear-gradient(135deg,#F59E0B,#F97316);
  color:#fff;
}

.btn-green{
  background:rgba(22,163,74,.14);
  color:#16A34A;
}
.btn-green:hover{
  background:linear-gradient(135deg,#16A34A,#4ADE80);
  color:#fff;
}

.btn-purple{
  background:rgba(124,58,237,.14);
  color:#7C3AED;
}
.btn-purple:hover{
  background:linear-gradient(135deg,#7C3AED,#A78BFA);
  color:#fff;
}


/* =========================
   FECHA (debajo del título)
========================= */
.course-date{
  display:inline-flex;
  align-items:center;
  gap:8px;
  margin:6px 0 10px;
  padding:6px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
  color:#1e3a8a;
  background:rgba(59,130,246,.14);
}

.course-date i{
  color:#2563eb;
  font-size:14px;
}

/* =========================
   PILLS META
========================= */
.meta-pill{
  display:inline-flex;
  align-items:center;
  gap:8px;
  padding:6px 14px;
  border-radius:999px;
  font-size:13px;
  font-weight:900;
}

/* Duración */
.pill-green{
  color:#166534;
  background:rgba(34,197,94,.18);
}

.pill-green i{
  color:#16a34a;
}

/* Modalidad Virtual */
.pill-red{
  color:#991b1b;
  background:rgba(239,68,68,.18);
}

.pill-red i{
  color:#dc2626;
}


/* =========================
   RESPONSIVE
========================= */
@media (max-width:980px){
  .cards-grid{
    grid-template-columns:1fr;
  }
  .course-card{
    min-height:auto;
  }
  .course-top{
    height:110px;
  }
  .course-body{
    padding:38px 20px 22px;
  }
  .course-footer{
    flex-direction:column;
    align-items:stretch;
  }
}
