/* Editorial listings and details for continuing education and news. */

.page-education-list .ec-hero,
.page-news-list .ec-hero {
  min-height: 0;
  margin-top: 52px;
  overflow: hidden;
  background: var(--color-primary, #0130ce);
}

.page-education-list .ec-hero::before,
.page-news-list .ec-hero::before {
  display: none;
}

.page-education-list .ec-hero-overlay,
.page-news-list .ec-hero-overlay {
  padding: 44px 0 42px;
}

.page-education-list .ec-hero-title,
.page-news-list .ec-hero-title {
  max-width: 900px;
  margin: 0 0 10px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3rem);
  font-weight: 800;
  line-height: 1.12;
}

.page-education-list .ec-hero-sub,
.page-news-list .ec-hero-sub {
  max-width: 680px;
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: 1.05rem;
  line-height: 1.65;
}

.page-education-list .ec-filters-section {
  position: static;
  z-index: auto;
  padding: 22px 0;
  border-bottom: 1px solid #e4e9f3;
  background: #fff;
  box-shadow: none;
}

.page-education-list .ec-filters-wrap {
  align-items: center;
  gap: 24px 36px;
}

.page-education-list .ec-filter-group {
  gap: 9px;
}

.page-education-list .ec-filter-label {
  color: #5e6572;
  font-size: 0.7rem;
  letter-spacing: 0.08em;
}

.page-education-list .ec-filter-btns {
  gap: 7px;
}

.page-education-list .ec-filter-btn {
  min-height: 36px;
  padding: 7px 12px;
  border: 1px solid #cbd5ed;
  border-radius: 7px;
  background: #fff;
  color: #17203a;
  font-size: 0.8rem;
  font-weight: 600;
  transition: background-color 0.18s, border-color 0.18s, color 0.18s;
}

.page-education-list .ec-filter-btn:hover,
.page-education-list .ec-filter-btn.active {
  border-color: var(--color-primary, #0130ce);
  background: var(--color-primary, #0130ce);
  color: #fff;
}

.page-education-list .ec-filter-btn:focus-visible,
.page-news-list .ec-btn:focus-visible,
.page-education-list .ec-btn:focus-visible {
  outline: 3px solid #9bb2ff;
  outline-offset: 2px;
}

.page-education-list .ec-events-section,
.page-news-list .ec-events-section {
  padding: 42px 0 64px;
  background: #fff;
}

.page-education-list .ec-events-grid,
.page-news-list .ec-events-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
  align-items: stretch;
  gap: 24px;
}

.page-news-list .ec-events-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
  justify-content: center;
}

.page-education-list .ec-card,
.page-news-list .ec-card {
  min-width: 0;
  overflow: hidden;
  border: 1px solid #e2e7f0;
  border-radius: 12px;
  background: #fff;
  box-shadow: none;
  transition: border-color 0.18s ease;
}

.page-news-list .ec-card {
  width: 100%;
  max-width: 420px;
  justify-self: center;
}

.page-education-list .ec-card:hover,
.page-news-list .ec-card:hover {
  transform: none;
  border-color: #9bb2ff;
  box-shadow: none;
}

.page-education-list .ec-card-img,
.page-news-list .ec-card-img {
  height: auto;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: #eef2f8;
  transition: none;
}

.page-education-list .ec-card-img img,
.page-news-list .ec-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.page-education-list .ec-card:hover .ec-card-img,
.page-news-list .ec-card:hover .ec-card-img {
  transform: none;
}

.page-education-list .ec-card-img-overlay,
.page-news-list .ec-card-img-overlay {
  display: none;
}

.page-education-list .ec-card-body,
.page-news-list .ec-card-body {
  gap: 12px;
  padding: 20px 22px 18px;
}

.page-education-list .ec-card-badges {
  gap: 7px;
}

.page-education-list .ec-badge {
  padding: 4px 9px;
  border: 1px solid #d4defa;
  border-radius: 5px;
  background: #f1f4fc;
  color: #152b74;
  font-size: 0.68rem;
  letter-spacing: 0.03em;
}

.page-education-list .ec-badge--virtual,
.page-education-list .ec-badge--hibrida,
.page-education-list .ec-badge--gratuito,
.page-education-list .ec-badge--con-costo {
  border-color: #d4defa;
  background: #f1f4fc;
  color: #152b74;
}

.page-education-list .ec-card-title,
.page-news-list .ec-card-title {
  margin: 0;
  color: #151a24;
  font-size: 1.06rem;
  font-weight: 700;
  line-height: 1.4;
}

.page-education-list .ec-card-desc,
.page-news-list .ec-card-desc {
  display: -webkit-box;
  overflow: hidden;
  color: #505867;
  font-size: 0.9rem;
  line-height: 1.65;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.page-education-list .ec-card-footer,
.page-news-list .ec-card-footer {
  align-items: center;
  margin-top: 2px;
  padding-top: 14px;
  border-top: 1px solid #e7ebf2;
}

.page-education-list .ec-date,
.page-news-list .ec-date {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #4d5664;
  font-size: 0.82rem;
  font-weight: 500;
  line-height: 1.45;
}

.page-education-list .ec-date .ui-icon,
.page-news-list .ec-date .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  vertical-align: middle;
}

.page-education-list .ec-btn,
.page-news-list .ec-btn {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  padding: 9px 14px;
  border-radius: 7px;
  background: var(--color-primary, #0130ce);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 700;
  text-decoration: none;
  transition: background-color 0.18s ease;
}

.page-education-list .ec-btn:hover,
.page-news-list .ec-btn:hover {
  transform: none;
  background: #0025a8;
  opacity: 1;
}

.page-education-list .ec-empty,
.page-news-list .ec-empty {
  padding: 42px 0;
  color: #505867;
  font-size: 1rem;
}

/* Shared editorial detail layout. */
.page-education-detail .da-hero,
.page-news-detail .da-hero {
  position: relative;
  height: auto;
  min-height: 0;
  margin-top: 52px;
  padding: 32px 0 36px;
  overflow: hidden;
  background: var(--color-primary, #0130ce);
  display: flex;
  align-items: center;
}

.page-education-detail .da-hero > .wave,
.page-news-detail .da-hero > .wave {
  display: none;
}

.page-education-detail .da-hero .container.content,
.page-news-detail .da-hero .container.content {
  position: relative;
  z-index: 1;
  display: block;
  text-align: left;
}

.page-education-detail .da-back,
.page-news-detail .da-back {
  margin-bottom: 15px;
  color: rgba(255, 255, 255, 0.9);
}

.page-education-detail .da-back:hover,
.page-news-detail .da-back:hover {
  color: #fff;
}

.page-education-detail .da-hero .content h1,
.page-news-detail .da-hero .content h1 {
  max-width: 920px;
  margin: 0 0 12px;
  color: #fff;
  font-size: clamp(2rem, 4vw, 3.1rem);
  font-family: inherit;
  font-weight: 800;
  line-height: 1.12;
  letter-spacing: normal;
  text-transform: none;
  text-shadow: none;
  overflow-wrap: anywhere;
}

.page-education-detail .da-hero .content p,
.page-news-detail .da-hero .content p {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: rgba(255, 255, 255, 0.94);
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
}

.page-education-detail .da-hero-fecha .ui-icon,
.page-news-detail .da-hero-fecha .ui-icon {
  width: 1.25rem;
  height: 1.25rem;
  margin: 0;
  vertical-align: middle;
  filter: brightness(0) invert(1);
}

.page-education-detail .da-content-section,
.page-news-detail .da-content-section {
  padding: 34px 0 56px;
  background: #fff;
}

.page-education-detail .da-layout,
.page-news-detail .da-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 330px);
  align-items: start;
  gap: clamp(28px, 4vw, 56px);
}

.page-education-detail .da-main,
.page-news-detail .da-main {
  min-width: 0;
}

.page-education-detail .da-bloque,
.page-news-detail .da-bloque {
  margin: 0 0 28px;
  padding: 0 0 24px;
  border: 0;
  border-bottom: 1px solid #e1e7f1;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-education-detail .da-bloque h2,
.page-news-detail .da-bloque h2 {
  display: flex;
  align-items: center;
  gap: 10px;
  margin: 0 0 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid #9bb2ff;
  color: var(--color-primary, #0130ce);
  font-size: clamp(1.2rem, 2vw, 1.45rem);
  font-weight: 700;
  line-height: 1.35;
}

.page-education-detail .da-bloque h2 .ui-icon,
.page-news-detail .da-bloque h2 .ui-icon {
  width: 1.8rem;
  height: 1.8rem;
  margin: 0;
  vertical-align: middle;
}

.page-education-detail .da-bloque > p,
.page-news-detail .da-bloque > p,
.page-education-detail .da-article-content,
.page-news-detail .da-article-content {
  color: #454c58;
  font-size: 0.98rem;
  line-height: 1.8;
}

.page-education-detail .da-bloque > p {
  margin: 0;
}

.page-news-detail .da-banner-img {
  margin-bottom: 30px;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 12px;
  background: #f2f4f8;
  box-shadow: none;
}

.page-news-detail .da-banner-img img {
  display: block;
  width: 100%;
  max-height: 520px;
  object-fit: cover;
}

.page-news-detail .da-article-content > :first-child {
  margin-top: 0;
}

.page-news-detail .da-article-content img {
  max-width: 100%;
  height: auto;
}

.page-education-detail .da-sidebar,
.page-news-detail .da-sidebar {
  min-width: 0;
}

.page-education-detail .da-info-card,
.page-news-detail .da-info-card {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid #dce4f2;
  border-radius: 10px;
  background: #eef3ff;
  box-shadow: none;
}

.page-education-detail .da-form-card {
  margin: 0 0 18px;
  padding: 4px 18px 0;
  border: 0;
  border-inline-start: 3px solid var(--color-primary, #0130ce);
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.page-education-detail .da-form-heading {
  display: block;
  margin: 0 0 18px;
  padding: 0 0 16px;
  border-bottom: 1px solid #dce4f2;
  background: transparent;
}

.page-education-detail .da-form-heading__icon {
  display: flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  margin: 0 0 8px;
}

.page-education-detail .da-form-heading__icon .ui-icon {
  width: 1.4rem;
  height: 1.4rem;
  margin: 0;
  filter: brightness(0);
}

.page-education-detail .da-form-card h3 {
  margin: 0 0 5px;
  color: var(--color-primary, #0130ce);
  font-size: 1.22rem;
  font-weight: 700;
  line-height: 1.35;
}

.page-education-detail .da-form-sub {
  margin: 0;
  color: #4f5b6c;
  font-size: 0.89rem;
  line-height: 1.55;
}

.page-education-detail .da-form {
  padding: 0;
}

.page-education-detail .da-form-group label {
  color: #252c38;
}

.page-education-detail .da-form-group input,
.page-education-detail .da-form-group textarea {
  box-sizing: border-box;
  border: 1px solid #cfd8ec;
  border-radius: 7px;
  background: #fff;
  color: #151a24;
}

.page-education-detail .da-form-group input {
  min-height: 46px;
}

.page-education-detail .da-form-group textarea {
  min-height: 86px;
}

.page-education-detail .da-form-group input:focus,
.page-education-detail .da-form-group textarea:focus {
  border-color: var(--color-primary, #0130ce);
  box-shadow: 0 0 0 2px rgba(1, 48, 206, 0.12);
}

.page-education-detail .da-btn-submit {
  min-height: 50px;
  border-radius: 8px;
  background: var(--color-primary, #0130ce);
  transition: background-color 0.18s ease;
}

.page-education-detail .da-btn-submit:hover {
  transform: none;
  background: #0025a8;
  opacity: 1;
}

.page-education-detail .da-btn-submit:focus-visible {
  outline: 3px solid #9bb2ff;
  outline-offset: 2px;
}

.page-education-detail .da-success-icon {
  display: flex;
  justify-content: center;
  margin: 0 0 16px;
}

.page-education-detail .da-success-icon .ui-icon {
  width: 3rem;
  height: 3rem;
  margin: 0;
}

.page-education-detail .da-form-note {
  margin: 12px 0 0;
  padding: 0;
  color: #596579;
  font-size: 0.8rem;
  line-height: 1.5;
}

.page-education-detail .da-info-item,
.page-news-detail .da-info-item {
  gap: 6px;
  padding: 12px 0;
  border-bottom-color: #d6def0;
}

.page-education-detail .da-info-label,
.page-news-detail .da-info-label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #4f5a6d;
  font-size: 0.7rem;
  letter-spacing: 0.07em;
}

.page-education-detail .da-info-label .ui-icon,
.page-news-detail .da-info-label .ui-icon {
  width: 1.35rem;
  height: 1.35rem;
  margin: 0;
  vertical-align: middle;
}

.page-education-detail .da-info-val,
.page-news-detail .da-info-val {
  color: #151a24;
  font-size: 0.92rem;
  font-weight: 600;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

@media (max-width: 960px) {
  .page-education-detail .da-layout,
  .page-news-detail .da-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .page-education-detail .da-sidebar,
  .page-news-detail .da-sidebar {
    order: 0;
  }
}

@media (max-width: 640px) {
  .page-education-list .ec-hero,
  .page-news-list .ec-hero,
  .page-education-detail .da-hero,
  .page-news-detail .da-hero {
    margin-top: 54px;
  }

  .page-education-list .ec-hero-overlay,
  .page-news-list .ec-hero-overlay {
    padding: 34px 0 32px;
  }

  .page-education-list .ec-hero-title,
  .page-news-list .ec-hero-title,
  .page-education-detail .da-hero-title,
  .page-news-detail .da-hero-title {
    font-size: clamp(1.75rem, 8vw, 2.35rem);
  }

  .page-education-list .ec-hero-sub,
  .page-news-list .ec-hero-sub {
    font-size: 0.95rem;
  }

  .page-education-list .ec-filters-section {
    padding: 18px 0;
  }

  .page-education-list .ec-filters-wrap {
    gap: 18px;
  }

  .page-education-list .ec-events-section,
  .page-news-list .ec-events-section {
    padding: 28px 0 42px;
  }

  .page-education-list .ec-events-grid,
  .page-news-list .ec-events-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 18px;
  }

  .page-education-list .ec-card-body,
  .page-news-list .ec-card-body {
    padding: 18px;
  }

  .page-education-list .ec-card-footer,
  .page-news-list .ec-card-footer {
    align-items: flex-start;
  }

  .page-education-list .ec-date,
  .page-news-list .ec-date {
    max-width: 100%;
  }

  .page-education-detail .da-hero,
  .page-news-detail .da-hero {
    padding: 26px 0 30px;
  }

  .page-education-detail .da-content-section,
  .page-news-detail .da-content-section {
    padding: 26px 0 40px;
  }

  .page-education-detail .da-bloque,
  .page-news-detail .da-bloque {
    margin-bottom: 22px;
    padding-bottom: 20px;
  }

  .page-education-detail .da-info-card,
  .page-news-detail .da-info-card {
    padding: 18px;
  }

  .page-education-detail .da-form-card {
    padding: 4px 14px 0;
  }

  .page-education-detail .da-form-heading {
    margin-bottom: 16px;
    padding-bottom: 14px;
  }

  .page-education-detail .da-form-heading__icon {
    width: 22px;
    height: 22px;
    margin-bottom: 7px;
  }
}

@media (max-width: 680px) {
  .page-education-detail .whatsapp-float,
  .page-news-detail .whatsapp-float {
    display: none;
  }
}
