:root {
  --ndm-font-family-base: "Figtree", sans-serif;
  --ndm-font-family-heading: "Raleway", sans-serif;
  --ndm-heading-h1-size: clamp(2rem, 3.2vw, 35px);
  --ndm-heading-h2-size: calc(var(--ndm-heading-h1-size) * 1);
  --ndm-heading-h3-size: calc(var(--ndm-heading-h1-size) * 0.8571428571);
  --ndm-heading-h4-size: calc(var(--ndm-heading-h1-size) * 0.7428571429);
  --ndm-heading-h5-size: calc(var(--ndm-heading-h1-size) * 0.6857142857);
  --ndm-heading-h6-size: calc(var(--ndm-heading-h1-size) * 0.6285714286);
  --ndm-heading-display-size: var(--ndm-heading-h2-size);
  --ndm-heading-display-weight: 700;
  --ndm-heading-h2-compact-size: clamp(2rem, 2.9vw, 2.65rem);
  --ndm-content-max-width: 1120px;
  --ndm-content-text-width: 640px;
  --ndm-two-col-media-width: 460px;
  --ndm-two-col-copy-width: 520px;
}

.ndm-pregrado-banner,
.ndm-postgrados-banner,
.ndm-academia-banner,
.ndm-comunidad-banner,
.ndm-pregrado-team,
.ndm-postgrados-team,
.ndm-academia-blog,
.ndm-comunidad-mosaico {
  font-family: var(--ndm-font-family-base);
}

.ndm-pregrado-banner,
.ndm-postgrados-banner,
.ndm-academia-banner,
.ndm-comunidad-banner {
  width: 100%;
  margin-top: 0;
}

.ndm-pregrado-banner__media {
  width: min(100%, var(--ndm-content-max-width));
  margin: 0 auto;
  overflow: hidden;
  border-radius: 15px;
  background: #8f8f8f;
}

.ndm-pregrado-banner__media video,
.ndm-pregrado-banner__media img {
  display: block;
  width: 100%;
  height: min(550px, 62vw);
  object-fit: cover;
}

.ndm-pregrado-banner__content {
  width: min(100%, var(--ndm-content-max-width));
  margin: 46px auto 0;
  padding-top: 20px;
  text-align: center;
}

.ndm-pregrado-banner__content h1,
.ndm-pregrado-banner__content h2 {
  width: min(100%, var(--ndm-content-text-width));
  margin: 0 auto 30px;
  color: #111111;
  font-size: clamp(3rem, 5.2vw, 4.4rem);
  font-weight: 500;
  font-family: var(--ndm-font-family-heading);
  text-transform: uppercase;
  text-align: center;
  line-height: 0.9;
  letter-spacing: 0.01em;
}

.ndm-pregrado-banner__description {
  width: min(100%, var(--ndm-content-text-width));
  margin: 0 auto;
  color: #111111;
  font-size: 0.92rem;
  line-height: 1.6;
  text-align: center;
}

.ndm-pregrado-banner__description p {
  margin: 0;
}

.ndm-pregrado-team,
.ndm-postgrados-team {
  margin-top: 36px;
}

.ndm-academia-blog {
  margin-top: 36px;
}

.ndm-comunidad-mosaico {
  margin-top: 36px;
}

.ndm-comunidad-mosaico__grid {
  width: min(100%, var(--ndm-content-max-width));
  margin: 0 auto;
  column-count: 3;
  column-gap: 18px;
}

.ndm-comunidad-mosaico__item {
  position: relative;
  display: inline-block;
  width: 100%;
  margin: 0 0 18px;
  overflow: hidden;
  border-radius: 26px;
  background: #d7d7d7;
  break-inside: avoid;
  opacity: 0;
  transform: scale(0.95) translateY(30px);
  transition: opacity 0.6s ease, transform 0.6s ease, box-shadow 0.35s ease;
}

.ndm-comunidad-mosaico__item.is-ready {
  opacity: 1;
  transform: scale(1) translateY(0);
}

.ndm-comunidad-mosaico__item img {
  display: block;
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  transition: transform 0.45s ease, filter 0.45s ease;
  border-radius: 26px;
  transform: scale(1);
}

.ndm-comunidad-mosaico__item:hover img {
  transform: scale(1.08);
}

.ndm-comunidad-mosaico__item:hover {
  box-shadow: 0 18px 34px rgba(0, 0, 0, 0.12);
}

.ndm-comunidad-mosaico__item.is-landscape {
  aspect-ratio: 1 / 0.72;
}

.ndm-comunidad-mosaico__item.is-square {
  aspect-ratio: 1 / 1;
}

.ndm-comunidad-mosaico__item.is-portrait {
  aspect-ratio: 0.78 / 1.32;
}

.ndm-comunidad-mosaico__item.is-portrait-soft {
  aspect-ratio: 0.84 / 1.18;
}

.ndm-comunidad-mosaico__lightbox {
  position: fixed;
  inset: 0;
  z-index: 999999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.ndm-comunidad-mosaico__lightbox.is-active {
  display: flex;
}

.ndm-comunidad-mosaico__lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.84);
}

.ndm-comunidad-mosaico__lightbox-dialog {
  position: relative;
  z-index: 2;
  width: min(94vw, 1320px);
  max-height: 92vh;
  padding: 18px;
  border-radius: 20px;
  background: #ffffff;
  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.28);
}

.ndm-comunidad-mosaico__lightbox-close {
  position: absolute;
  top: 10px;
  right: 12px;
  z-index: 3;
  width: 44px;
  height: 44px;
  border: 0;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: #111111;
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
}

.ndm-comunidad-mosaico__lightbox-content {
  overflow: auto;
  max-height: calc(92vh - 36px);
  border-radius: 14px;
}

.ndm-comunidad-mosaico__lightbox-content img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 12px;
}

.ndm-pregrado-team__intro,
.ndm-equipo-intro {
  width: min(100%, var(--ndm-content-max-width));
  margin: 0 auto 42px;
  display: grid;
  grid-template-columns: minmax(0, var(--ndm-two-col-media-width)) minmax(0, var(--ndm-two-col-copy-width));
  justify-content: center;
  align-items: center;
  gap: 56px;
}

.ndm-pregrado-team__intro-media img,
.ndm-equipo-intro__media img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 24px;
}

.ndm-pregrado-team__intro-copy,
.ndm-equipo-intro__content {
  width: 100%;
  max-width: var(--ndm-two-col-copy-width);
  text-align: left;
}

.ndm-postgrados-team--docentes .ndm-postgrados-team__intro-copy,
.ndm-postgrados-team--docentes .ndm-postgrados-team__intro-copy--split {
  padding-top: 30px;
  padding-bottom: 30px;
}

.ndm-postgrados-team--nucleo {
  scroll-margin-top: 96px;
}

.ndm-postgrados-team__intro--text-only {
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
}

.ndm-postgrados-team__intro-copy--split {
  width: 100%;
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  align-items: center;
  gap: 42px;
}

.ndm-postgrados-team__intro-title h2 {
  margin: 0;
  font-size: clamp(3rem, 4.6vw, 4.8rem);
  font-weight: 500;
  line-height: 0.85;
  font-family: var(--ndm-font-family-heading);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.ndm-postgrados-team__intro-text--right {
  max-width: 34rem;
  margin-left: auto;
  margin-top: 0;
  align-self: center;
}

.ndm-postgrados-team__intro-text--right p:first-child {
  margin-top: 0;
}

.ndm-pregrado-team__intro-copy h2,
.ndm-equipo-intro__content h2 {
  margin: 0 0 16px;
  color: #111111;
  font-size: var(--ndm-heading-h2-compact-size);
  font-weight: 500;
  line-height: 0.95;
  font-family: var(--ndm-font-family-heading);
  text-transform: uppercase;
}

body .ndm-quienes-somos .ndm-quienes-somos__title {
  margin: 0 0 42px !important;
  color: #111111 !important;
  font-size: var(--ndm-heading-h2-compact-size) !important;
  font-weight: 500 !important;
  line-height: 0.95 !important;
  font-family: var(--ndm-font-family-heading) !important;
  text-align: center !important;
  text-transform: uppercase !important;
  letter-spacing: -0.025em !important;
  white-space: normal !important;
}

body .ndm-quienes-somos .ndm-quienes-somos__media {
  border-radius: 24px !important;
}

.ndm-pregrado-team__intro-text,
.ndm-equipo-intro__content p {
  color: #111111;
  font-size: 1rem;
  font-weight: 500;
  line-height: 1.45;
  max-width: 32rem;
}

.ndm-pregrado-team__intro-text p,
.ndm-equipo-intro__content p {
  margin: 0;
}

.ndm-equipo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 270px));
  justify-content: center;
  gap: 30px;
}

.ndm-equipo-card {
  width: 270px;
  cursor: pointer;
}

.ndm-equipo-img {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 24px;
  background-color: #d0d0d0;
  background-position: 10% 40%;
  background-repeat: no-repeat;
  background-size: cover;
  transition: transform 0.3s ease;
}

.ndm-equipo-card:hover .ndm-equipo-img {
  transform: scale(1.05);
}

.ndm-nochedemonos-guests .ndm-equipo-wrapper {
  width: min(100%, var(--ndm-content-max-width));
  margin: 0 auto;
}

.ndm-nochedemonos-guests .ndm-equipo-grid {
  grid-template-columns: repeat(3, minmax(0, 270px));
  gap: 30px;
}



.ndm-lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 999999;
}

.ndm-lightbox.active {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 40px;
}

.ndm-lightbox-overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.5);
}

.ndm-lightbox-content {
  position: relative;
  width: 1000px;
  max-width: 95%;
  padding: 46px 46px 42px;
  border-radius: 24px;
  background: #ffffff;
  animation: ndmPregradoFade 0.28s ease;
}

@keyframes ndmPregradoFade {
  from {
    opacity: 0;
    transform: translateY(20px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.ndm-lightbox-inner {
  display: flex;
  align-items: flex-start;
  gap: 36px;
}

.ndm-lightbox-img {
  width: 280px;
  height: 320px;
  flex-shrink: 0;
  border-radius: 20px;
  background-color: #dfdfdf;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
}

.ndm-lightbox-text {
  max-height: 72vh;
  overflow-y: auto;
  color: #111111;
}

.ndm-lightbox-text h3 {
  margin: 0 0 14px;
  font-size: var(--ndm-heading-h3-size);
  font-weight: 700;
  line-height: 1.1;
  font-family: var(--ndm-font-family-heading);
}

.ndm-lightbox-text p {
  margin: 0;
  font-size: 1rem;
  line-height: 1.45;
}

.ndm-pregrado-banner__description,
.ndm-pregrado-banner__description p,
.ndm-pregrado-team__intro-text,
.ndm-pregrado-team__intro-text p,
.ndm-equipo-intro__content,
.ndm-equipo-intro__content p,
.ndm-postgrados-team__intro-text--right,
.ndm-postgrados-team__intro-text--right p,
.ndm-lightbox-text,
.ndm-lightbox-text p {
  font-size: 1rem !important;
  line-height: 1.45 !important;
}

.ndm-lightbox-close,
.ndm-prev,
.ndm-next {
  border: 0;
  background: transparent;
  color: #111111;
  cursor: pointer;
}

.ndm-lightbox-close {
  position: absolute;
  top: 16px;
  right: 22px;
  font-size: 38px;
  line-height: 1;
}

.ndm-prev,
.ndm-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  padding: 10px 15px;
  font-size: 46px;
  line-height: 1;
}

.ndm-prev {
  left: -54px;
}

.ndm-next {
  right: -54px;
}

@media (max-width: 1200px) {
  .ndm-equipo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ndm-equipo-card {
    width: 100%;
  }

  .ndm-nochedemonos-guests .ndm-equipo-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .ndm-nochedemonos-guests .ndm-equipo-card {
    width: 100%;
  }

  .ndm-nochedemonos-guests .ndm-equipo-img {
    border-radius: 24px;
  }
}

@media (max-width: 992px) {
  .ndm-pregrado-team__intro,
  .ndm-equipo-intro {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .ndm-pregrado-team__intro-copy,
  .ndm-equipo-intro__content {
    max-width: none;
    text-align: center;
  }

  .ndm-postgrados-team__intro-copy--split {
    grid-template-columns: 1fr;
    gap: 18px;
    text-align: center;
  }

  .ndm-postgrados-team__intro-text--right {
    margin: 0 auto;
  }

  .ndm-pregrado-team__intro-text,
  .ndm-equipo-intro__content p {
    max-width: var(--ndm-content-text-width);
    margin: 0 auto;
  }

  .ndm-equipo-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .ndm-nochedemonos-guests .ndm-equipo-grid {
    grid-template-columns: repeat(2, minmax(0, 270px));
    gap: 30px;
  }

  .ndm-comunidad-mosaico__grid {
    column-count: 2;
  }
}

@media (max-width: 768px) {
  .ndm-pregrado-banner__content,
  .ndm-pregrado-banner__description,
  .ndm-pregrado-team__intro,
  .ndm-postgrados-team__intro,
  .ndm-equipo-intro,
  .ndm-equipo-grid,
  .ndm-nochedemonos-guests .ndm-equipo-wrapper {
    width: min(100%, calc(100% - 40px)) !important;
    max-width: calc(100% - 40px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
    box-sizing: border-box;
  }

  .ndm-pregrado-banner__description,
  .ndm-pregrado-team__intro-text,
  .ndm-equipo-intro__content p,
  .ndm-postgrados-team__intro-text--right,
  .ndm-postgrados-team__intro-text--right p {
    line-height: 1.45 !important;
    overflow-wrap: anywhere;
  }

  .ndm-pregrado-banner__description,
  .ndm-pregrado-team__intro-text,
  .ndm-equipo-intro__content p,
  .ndm-postgrados-team__intro-text--right {
    width: min(100%, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ndm-pregrado-banner__media video,
  .ndm-pregrado-banner__media img {
    height: 360px;
  }

  .ndm-pregrado-banner__content {
    margin-top: 34px;
    padding-top: 14px;
  }

  .ndm-pregrado-banner__content h1,
  .ndm-pregrado-banner__content h2 {
    font-size: clamp(1.65rem, 8vw, 2.45rem) !important;
    line-height: 0.95 !important;
    margin-bottom: 22px !important;
    width: 100% !important;
    max-width: 100% !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body .ndm-pregrado-banner .ndm-pregrado-banner__content h1,
  body .ndm-pregrado-banner .ndm-pregrado-banner__content h2 {
    width: 100% !important;
    max-width: 100% !important;
    font-size: clamp(1.65rem, 8vw, 2.45rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.035em !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  .ndm-pregrado-team__intro-copy h2,
  .ndm-equipo-intro__content h2,
  .ndm-postgrados-team__intro-title h2 {
    font-size: clamp(1.9rem, 10vw, 2.8rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.035em !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__title {
    width: 8.8ch !important;
    max-width: 100% !important;
    margin: 0 auto 34px !important;
    font-size: clamp(1.9rem, 10vw, 2.8rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.035em !important;
    text-align: center !important;
    white-space: normal !important;
    overflow-wrap: normal !important;
    word-break: normal !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__list {
    gap: 42px !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__item,
  body .ndm-quienes-somos .ndm-quienes-somos__item.is-reverse {
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    gap: 18px !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__item.is-reverse .ndm-quienes-somos__media,
  body .ndm-quienes-somos .ndm-quienes-somos__item.is-reverse .ndm-quienes-somos__content {
    order: initial !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__media {
    width: min(100%, 270px) !important;
    max-width: 270px !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 24px !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__media img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    border-radius: 24px !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__content {
    width: 100% !important;
    max-width: 34rem !important;
    text-align: center !important;
  }

  .ndm-equipo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    gap: 16px;
  }

  .ndm-equipo-card,
  .ndm-equipo-img {
    width: 100% !important;
  }

  .ndm-nochedemonos-guests .ndm-equipo-wrapper {
    width: min(100%, var(--ndm-content-max-width)) !important;
    margin: 0 auto !important;
  }

  .ndm-nochedemonos-guests .ndm-equipo-grid {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: start !important;
    gap: 16px !important;
    width: 100% !important;
  }

  .ndm-nochedemonos-guests .ndm-equipo-card {
    width: 100% !important;
    max-width: none !important;
  }

  .ndm-nochedemonos-guests .ndm-equipo-img {
    width: 100% !important;
    aspect-ratio: 1 / 1 !important;
    border-radius: 24px !important;
    background-position: center center !important;
    background-size: cover !important;
  }

  .ndm-comunidad-mosaico__grid {
    column-count: 2;
    column-gap: 14px;
  }

  .ndm-comunidad-mosaico__item {
    margin-bottom: 14px;
    aspect-ratio: auto !important;
  }

  .ndm-comunidad-mosaico__lightbox {
    padding: 14px;
  }

  .ndm-comunidad-mosaico__lightbox-dialog {
    width: 100%;
    max-height: 94vh;
    padding: 12px;
    border-radius: 16px;
  }

  .ndm-comunidad-mosaico__lightbox-close {
    top: 8px;
    right: 8px;
    width: 40px;
    height: 40px;
    font-size: 28px;
  }

  .ndm-comunidad-mosaico__lightbox-content {
    max-height: calc(94vh - 24px);
  }

  .ndm-lightbox.active {
    padding: 18px;
  }

  .ndm-lightbox-content {
    padding: 34px 24px 24px;
  }

  .ndm-lightbox-inner {
    flex-direction: column;
    align-items: center;
    gap: 20px;
    text-align: center;
  }

  .ndm-lightbox-img {
    width: 220px;
    height: 260px;
  }

  .ndm-prev {
    left: 8px;
  }

  .ndm-next {
    right: 8px;
  }
}

@media (max-width: 480px) {
  .ndm-pregrado-banner__content,
  .ndm-pregrado-banner__description,
  .ndm-pregrado-team__intro,
  .ndm-postgrados-team__intro,
  .ndm-equipo-intro,
  .ndm-equipo-grid,
  .ndm-nochedemonos-guests .ndm-equipo-wrapper {
    width: min(100%, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  .ndm-pregrado-banner__description,
  .ndm-pregrado-team__intro-text,
  .ndm-equipo-intro__content p,
  .ndm-postgrados-team__intro-text--right {
    width: min(100%, calc(100% - 32px)) !important;
    max-width: calc(100% - 32px) !important;
  }

  .ndm-pregrado-banner__content h1,
  .ndm-pregrado-banner__content h2 {
    font-size: clamp(1.45rem, 7.6vw, 2rem) !important;
    letter-spacing: -0.04em !important;
  }

  body .ndm-pregrado-banner .ndm-pregrado-banner__content h1,
  body .ndm-pregrado-banner .ndm-pregrado-banner__content h2 {
    font-size: clamp(1.45rem, 7.6vw, 2rem) !important;
    line-height: 0.95 !important;
    letter-spacing: -0.04em !important;
    white-space: normal !important;
  }

  .ndm-pregrado-team__intro-copy h2,
  .ndm-equipo-intro__content h2,
  .ndm-postgrados-team__intro-title h2 {
    font-size: clamp(1.75rem, 9.5vw, 2.35rem) !important;
    line-height: 0.95 !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__title {
    width: 8.8ch !important;
    font-size: clamp(1.75rem, 9.5vw, 2.35rem) !important;
    line-height: 0.95 !important;
  }

  body .ndm-quienes-somos .ndm-quienes-somos__media {
    width: min(100%, 250px) !important;
    max-width: 250px !important;
  }

  .ndm-equipo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    justify-content: start;
    gap: 12px;
  }

  .ndm-equipo-card,
  .ndm-equipo-img {
    width: 100% !important;
  }

  .ndm-nochedemonos-guests .ndm-equipo-wrapper {
    width: min(100%, var(--ndm-content-max-width)) !important;
  }

  .ndm-nochedemonos-guests .ndm-equipo-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    justify-content: start !important;
    gap: 12px !important;
  }

  .ndm-comunidad-mosaico__grid {
    column-count: 1;
  }
}
..ndm-academia-creacion__res-image img  {
  border-radius: 24px;
}
