:root {
  /* Paleta Institucional Premium */
  --primary-mooc-nooc: #b91116;
  /* Pantone 1807 C */
  --primary-hover: #841816;
  /* Guinda Oscuro */
  --secondary: #e24622;
  /* Pantone Orange 021 C */
  --accent-yellow: #f39200;
  /* Amarillo */
  --accent-peach: #f8b688;
  /* Durazno */
  --accent-green: #2ec4b6;
  /* Verde moderno para detalles de éxito */

  /* Neutros y Textos */
  --text-dark: #3a080a;
  /* Guinda extra oscuro */
  --text-gray: #575756;
  /* Gris Oscuro */
  --border-gray: #e5dcd8;
  /* Gris Arena Claro */
  --bg-white: #ffffff;
  --bg-gray: #faf6f4;
  /* Arena muy claro y cálido */
  --bg-dark: #220304;
  /* Fondo oscuro premium */

  --card-shadow: 0 12px 30px rgba(81, 16, 19, 0.04);
  --card-shadow-hover: 0 22px 45px rgba(185, 17, 22, 0.12);
  --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}
.mooc-section {
  position: relative;
  overflow: hidden;
  padding: 6rem 0 4rem 0;
  background:
    radial-gradient(circle at top left,
      rgba(232, 97, 39, .14),
      transparent 35%),
    radial-gradient(circle at bottom right,
      rgba(255, 155, 112, .16),
      transparent 35%),
    linear-gradient(135deg,
      #ffffff 0%,
      #fff7f3 45%,
      #fff1eb 100%);
  min-height: 80vh;
}

/* =========================
   HEADER
   ========================= */
.mooc-header {
  text-align: center;
  margin-bottom: 2.5rem;
  display: flex;
  flex-direction: column;
  align-items: center;
}

.mooc-badge {
  display: inline-flex;
  align-items: center;
  gap: .6rem;
  background: rgba(232, 97, 39, .1);
  color: #E86127;
  border: 1px solid rgba(232, 97, 39, .2);
  padding: .7rem 1.2rem;
  border-radius: 100px;
  font-size: .85rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  backdrop-filter: blur(10px);
  width: fit-content;
  font-family: 'Outfit', sans-serif;
}

.mooc-title {
  font-size: clamp(2rem, 4vw, 3.2rem);
  margin-bottom: .8rem;
  line-height: 1.1;

  font-weight: 800;
  background: linear-gradient(135deg, var(--secondary) 0%, var(--accent-yellow) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
}

.mooc-subtitle {
  font-size: 1.5rem;
  opacity: .8;
  font-weight: 400;
  color: var(--text-gray);
}

/* =========================
   WRAPPER
   ========================= */
.mooc-wrapper {
  position: relative;
  display: flex;
  align-items: center;
  gap: 1rem;
}

/* =========================
   TRACK
   ========================= */
.mooc-track {
  gap: 1.8rem;
  overflow-x: auto;
  scroll-behavior: smooth;
  padding: 1rem .5rem;
  display: flex !important;
  flex-wrap: nowrap !important;
  -ms-overflow-style: none;
  scrollbar-width: none;
}

.mooc-track::-webkit-scrollbar {
  display: none;
}

/* =========================
   CARD
   ========================= */
.mooc-card {
  min-width: 330px;
  max-width: 330px;
  height: 380px;
  border-radius: 26px;
  overflow: hidden;
  position: relative;
  background: #fff;
  border: 1px solid rgba(255, 255, 255, .5);
  box-shadow: 0 10px 35px rgba(0, 0, 0, .08);
  transition: .35s ease;
}

.mooc-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 18px 45px rgba(232, 97, 39, .18);
}

/* IMAGE */
.mooc-image-wrapper {
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  z-index: 1;
  overflow: hidden;
}

.mooc-card figure {
  margin: 0;
  height: 100%;
}

.mooc-card .curso-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform .35s ease;
}

.mooc-card:hover .curso-img {
  transform: scale(1.08);
}

/* =========================
   OVERLAY
   ========================= */
.mooc-overlay {
  position: absolute;
  top: 1rem;
  left: 1rem;
}

.mooc-overlay span {
  display: flex;
  align-items: center;
  gap: .5rem;
  background: rgba(0, 0, 0, .55);
  color: #fff;
  padding: .55rem .9rem;
  border-radius: 100px;
  font-size: 1rem;
  font-weight: 600;
  backdrop-filter: blur(10px);
}

/* =========================
   BODY
   ========================= */
.mooc-card-body {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  z-index: 2;
  padding: 4rem 1.5rem 1.5rem 1.5rem;
  background: linear-gradient(to top, rgba(255,255,255,1) 0%, rgba(255,255,255,0.98) 65%, rgba(255,255,255,0) 100%);
  transform: translateY(100%);
  opacity: 0;
  transition: transform .4s cubic-bezier(0.16, 1, 0.3, 1), opacity .4s ease;
  display: flex;
  flex-direction: column;
}

.mooc-card:hover .mooc-card-body {
  transform: translateY(0);
  opacity: 1;
}

.mooc-tag {
  font-size: 2rem;
  font-weight: 800;
  margin-bottom: 0.3rem;
  color: var(--text-gray);
  text-transform: uppercase;
}

.curso-titulo {
  line-height: 1.25;
  margin-bottom: 1.8rem;
  font-size: 1.5rem;
  color: #b91116;
  font-weight: 800;
}

.curso-estado {
  font-size: 1.2rem;
  color: #777;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 1rem;
}

/* =========================
   LINK
   ========================= */
.curso-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: .7rem;
  margin-top: auto;
  padding: .9rem 1.3rem;
  border-radius: 14px;
  background: linear-gradient(135deg,
      #E86127,
      #ff8f5e);
  color: white !important;
  font-weight: 700;
  text-decoration: none;
  transition: .3s ease;
  cursor: pointer;
}

.curso-link:hover {
  transform: translateX(4px);
  box-shadow:
    0 10px 25px rgba(232, 97, 39, .25);
}

.curso-link-simple {
  display: inline-flex;
  align-items: center;
  gap: .5rem;
  margin-top: auto;
  color: var(--primary-mooc-nooc) !important;
  font-weight: 900;
  text-decoration: none;
  transition: .3s ease;
  cursor: pointer;
  font-size: 1.4rem;
  align-self: flex-start;
}

.curso-link-simple:hover {
  color: var(--primary-hover) !important;
}

.curso-link-simple i {
  transition: transform 0.3s ease;
}

.curso-link-simple:hover i {
  transform: translateX(4px);
}

/* =========================
   BOTONES
   ========================= */
.mooc-nav {
  width: 54px;
  height: 54px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, .92);
  color: #E86127;
  font-size: 1rem;
  cursor: pointer;
  flex-shrink: 0;
  transition: .3s ease;
  box-shadow:
    0 10px 30px rgba(0, 0, 0, .08);
  display: flex;
  align-items: center;
  justify-content: center;
}

.mooc-nav:hover {
  background: #E86127;
  color: #fff;
  transform: scale(1.08);
}

/* =========================
   RESPONSIVE
   ========================= */
@media(max-width:768px) {
  .mooc-wrapper {
    gap: .5rem;
  }

  .mooc-card {
    min-width: 290px;
    max-width: 290px;
  }

  .mooc-nav {
    display: none;
  }

  .mooc-title {
    font-size: 2rem;
  }

  .mooc-subtitle {
    font-size: .95rem;
  }
}
