



.curso-thumb { 
  position: relative; 
  width: 100%; 
  height: 120px; 
}
.curso-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.curso-thumb .tag { 
  position: absolute; 
  bottom: 12px; 
  left: 12px; 
}
.curso-body { 
  padding: 22px; 
  display: flex; 
  flex-direction: column; 
  gap: 10px; 
  flex: 1; 
}
/* .curso-card:hover → cubierto por .card-interactive:hover */
.curso-title { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  font-size: 16px; 
  margin-top: 6px; 
}
.curso-provider { 
  font-size: 13.5px; 
  color: var(--slate); 
}
.curso-modality { 
  display: flex; 
  gap: 14px; 
  font-size: 12.5px; 
  color: var(--slate-light); 
  font-weight: 600; 
  margin-top: 2px; 
  justify-content: space-between;
}
.curso-modality span { 
  display: flex; 
  align-items: center; 
  gap: 5px; 
}
.curso-card .btn { 
  margin-top: 6px; 
}


/* ============================================================
   11. NOTICIAS
   ============================================================ */

.news-card { 
  display: flex; 
  flex-direction: row; 
  gap: 16px; 
  align-items: flex-start; 
}
.news-thumb { 
  flex: none; 
  width: 130px; 
  height: 150px; 
  border-radius: 12px; 
  overflow: hidden; 
}
.news-thumb img { 
  width: 100%; 
  height: 100%; 
  object-fit: cover; 
}
.news-content { 
  display: flex; 
  flex-direction: column; 
  justify-content: space-between; 
  flex: 1; 
  height: 150px; 
}
.news-date-title { 
  display: flex; 
  flex-direction: column; 
  gap: 6px; 
}
.news-date { 
  font-size: 12.5px; 
  font-weight: 800; 
  color: var(--slate); 
  text-transform: uppercase; 
  letter-spacing: .02em; 
}
.news-title { 
  font-family: var(--font-heading); 
  font-weight: 800; 
  font-size: 16.5px; 
  line-height: 1.4; 
  margin: 0; 
}
.news-read { 
  font-weight: 700; 
  font-size: 14px; 
  color: var(--blue-600); 
  margin-top: 4px; 
  margin-bottom: 10px;
  text-decoration: none !important; 
  display: inline-block; 
}
.news-read:hover { 
  color: var(--teal-600); 
}
.news-footer { 
  text-align: center; 
  margin-top: 44px; 
}


.cta-wrap { 
  padding: 40px 0; 
}

.cta {
  background: var(--navy-800);
  border: none;
  border-radius: 24px;
  padding: 48px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 40px;
  align-items: center;
  box-shadow: var(--shadow-lg);
  position: relative;
  overflow: hidden;
}
.cta::before { 
  content: ""; 
  position: absolute; 
  top: -40px; 
  left: -40px; 
  width: 120px; 
  height: 120px; 
  border-radius: 50%; 
  background: var(--teal-600); 
  opacity: 0.3; 
  pointer-events: none; 
}
.cta::after { 
  content: ""; 
  position: absolute; 
  bottom: -60px; 
  right: -60px; 
  width: 200px; 
  height: 200px; 
  border-radius: 50%; 
  border: 2px solid rgba(255,255,255,0.1); 
  pointer-events: none; 
}

.cta-visual { 
  position: relative; 
  width: 200px; 
  height: 200px; 
  z-index: 2; 
}
.cta-visual .main-img { 
  width: 100%; 
  height: 100%; 
  border-radius: 50%; 
  background-color: rgba(255,255,255,0.05); 
  border: 2px solid rgba(255,255,255,0.15); 
  object-fit: cover; 
}

.cta-floating { 
  position: absolute; 
  width: 40px; 
  height: 40px; 
  border-radius: 50%; 
  background: var(--navy-900); 
  box-shadow: 0 4px 12px rgba(0,0,0,0.4); 
  display: grid; 
  place-items: center; 
  color: var(--teal-500); 
  font-size: 20px; 
}
.cta-floating.f1 { 
  top: 20px; 
  right: -15px; 
}
.cta-floating.f2 { 
  top: 50%; 
  right: -15px; 
  transform: translateY(-50%); 
}
.cta-floating.f3 { 
  bottom: 20px; 
  right: -15px; 
  left: auto; 
}

.cta-copy { 
  z-index: 2; 
}
.cta-copy h2 { 
  color: #fff; 
  font-size: 24px; 
  margin-bottom: 24px; 
}
.cta-list { 
  list-style: none; 
  padding: 0; 
  margin: 0; 
  display: grid; 
  gap: 12px; 
}
.cta-list li { 
  display: flex; 
  align-items: flex-start; 
  gap: 12px; 
  font-size: 15px; 
  color: #dbe8f2; 
}
.cta-list li i { 
  font-size: 18px; 
  color: var(--teal-500); 
  margin-top: 2px; 
}

.cta-actions { 
  display: flex; 
  flex-direction: column; 
  align-items: center; 
  gap: 16px; 
  min-width: 280px; 
  z-index: 2; 
}

.cta-login-link { 
  font-size: 13.5px; 
  color: #8ba3b6; 
}
.cta-login-link a { 
  font-weight: 700; 
  color: #fff; 
  text-decoration: underline; 
}


/* --- Hero Carousel --- */
.hero-carousel-track {
  position: relative;
  z-index: 2;
  min-height: 430px;
}
.hero-slide {
  display: none;
}
.hero-slide.active {
  display: block;
  animation: heroFadeIn 0.5s ease-out;
}
@keyframes heroFadeIn {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

.hero-carousel-section {
  position: relative;
  padding-bottom: 42px; /* Sobrescribe los 90px que traía por defecto .hero */
}
.hero-carousel-controls {
  position: absolute;
  bottom: 20px;
  left: 0;
  right: 0;
  z-index: 3;
  display: flex;
  justify-content: center;
  align-items: center;
}
.hero-carousel-controls .hero-dots {
  margin-top: 0;
}
.hero-nav-btns-absolute {
  position: absolute;
  top: 50%;
  left: 0;
  right: 0;
  transform: translateY(-50%);
  display: flex;
  justify-content: space-between;
  padding: 0 3%;
  z-index: 5;
  pointer-events: none;
}
.hero-nav-btns-absolute .hero-nav-btn {
  pointer-events: auto;
  background: rgba(255,255,255,0.15);
}
.hero-nav-btns-absolute .hero-nav-btn:hover {
  background: #fff;
}

/* Slide 2: Becas — layout centrado */
.hero-slide-centered .wrap {
  display: flex;
  justify-content: center;
}
.hero-slide-centered .hero-copy {
  width: 100%;
  max-width: 680px;
  text-align: center;
}
.hero-slide-centered .hero-copy .eyebrow {
  display: block;
  text-align: center;
}
.hero-slide-centered .hero-actions {
  justify-content: center;
}
.hero-tags-container {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 32px;
  justify-content: center;
}
.hero-tag-pill {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 100px;
  padding: 8px 20px;
  backdrop-filter: blur(8px);
  color: #fff;
  font-size: 14.5px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: all 0.25s ease;
}
/* .hero-tag-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.35);
} */

/* Slide 3: Cursos (Features List) */
.hero-feature-list {
  list-style: none;
  padding: 0;
  margin: 24px 0;
}
.hero-feature-list li {
  color: #fff;
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 14px;
  font-size: 15px;
}
.hero-feature-list li i {
  color: var(--teal-500);
  font-size: 18px;
}

/* Reverse grid for Slide 4 */
.grid-2-cols.reverse {
  direction: rtl;
}
.grid-2-cols.reverse > * {
  direction: ltr;
}

@media (max-width: 980px) {
  .hero-carousel-track { min-height: auto; }
  .hero-stat-cards { flex-direction: column; }
  .hero-carousel-controls { flex-direction: column; gap: 20px; }
  .grid-2-cols.reverse { direction: ltr; }
}

/* 10. Estilos especficos para Oportunidades Destacadas (Index) */
.card-img-top {
  width: 100%;
  height: 180px;
  object-fit: cover;
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.card-tag-top {
  position: absolute;
  top: 16px;
  left: 16px;
  z-index: 2;
  box-shadow: var(--shadow-sm);
}

/* ============================================================
   RESPONSIVE HERO CAROUSEL (MÓVIL).
   ============================================================ */
.home-hero-visual {
  height: 380px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}

@media (max-width: 980px) {
  .hero-carousel-section {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding-top: 0;
    padding-bottom: 20px;
  }
  .hero-carousel-track {
    flex: 1;
    display: grid;
    align-items: stretch;
  }
  .hero-slide {
    grid-area: 1 / 1;
    display: flex !important;
    flex-direction: column;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease-out;
  }
  .hero-slide.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
  }
  
  /* Flexbox para distribuir verticalmente en el carrusel */
  .hero-slide .wrap {
    display: flex;
    flex-direction: column;
    flex: 1;
    justify-content: center;
    padding-top: 40px;    
    padding-bottom: 50px; 
  }
  .hero-slide .grid-2-cols {
    display: flex !important; /* Sobrescribir el grid-template-columns */
    flex-direction: column;
    flex: 1;
    justify-content: center;
    gap: 24px; /* Separación texto e imagen */
  }
  /* Slide 4: Texto arriba, imagen abajo */
  .hero-slide .grid-2-cols.reverse {
    flex-direction: column-reverse;
  }

  .home-hero-visual {
    height: 200px !important;
    flex: none; 
    width: 100%;
    overflow: hidden;
  }
  
  .home-hero-visual img.img-cover {
    width: 100%;
    height: 100%;
    object-fit: cover; 
    border-radius: var(--radius-md);
  }
}

/* ============================================================
   RESPONSIVE: CTA (Regístrate)
   ============================================================ */
@media (max-width: 768px) {
  .cta {
    grid-template-columns: 1fr !important;
    gap: 32px !important;
    padding: 36px 24px !important;
    justify-items: center;
    text-align: center;
  }
  
  .cta-visual {
    width: 150px !important;
    height: 150px !important;
    margin: 0 auto;
  }
  .cta-floating {
    width: 32px !important;
    height: 32px !important;
    font-size: 16px !important;
  }
  .cta-floating.f1 { top: 5px; right: -5px; }
  .cta-floating.f2 { right: -15px; }
  .cta-floating.f3 { bottom: 5px; right: -5px; }

  .cta-copy {
    display: flex;
    flex-direction: column;
    align-items: center;
  }
  .cta-copy h2 {
    font-size: 22px !important;
    margin-bottom: 20px !important;
  }
  .cta-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .cta-list li {
    font-size: 14px !important;
    text-align: left;
    justify-content: flex-start !important;
  }
  
  .cta-actions {
    width: 100%;
    margin-top: 8px;
  }
  .cta-actions .btn {
    width: 100%; 
    justify-content: center;
  }
}
