/* ============================================================================
   Hero Campus Galeria  -  modules/hero-campus-galeria.module
   ----------------------------------------------------------------------------
   Fork de css/components/_modulo-hero-funnel.css (2026-08-31).
   Vive dentro del modulo (no en critical.css) para que solo pese en las
   paginas que usan hero-campus-galeria y para que sus cambios NO toquen al hero.
   Prefijo propio: .hcg / .hcg-* / #herocampusgaleria
   ========================================================================== */

#herocampusgaleria {
  --carousel-gap: 12px;
  --carousel-btn-size: 40px;
  --carousel-transition: 300ms;
  --header-height: 80px;
}

#herocampusgaleria.hcg-wrap {
  position: relative;
  overflow: hidden;
  max-inline-size: 100%;
} 

#herocampusgaleria .hcg-slides {
  display: flex;
  gap: 0;
  inline-size: 100%;
  max-inline-size: 100%;
  padding: 0;
  margin: 0;
  list-style: none;
  will-change: transform;
}
#herocampusgaleria .hcg-slide {
  flex: 0 0 100%;
  max-inline-size: 100%;
}
#herocampusgaleria .hcg-media,
#herocampusgaleria .hcg-media picture {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
}
#herocampusgaleria .hcg-media img {
  display: block;
  inline-size: 100%;
  max-inline-size: 100%;
}

#herocampusgaleria .hcg-copy,
#herocampusgaleria .hcg-cta-block,
#herocampusgaleria .hcg-cta-main,
#herocampusgaleria .hcg-cta-row,
#herocampusgaleria .hcg-pill,
#herocampusgaleria .hcg-btn {
  max-inline-size: 100%;
}

.hcg .c-btn__label {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  overflow: hidden;
}

.hcg {
  overflow-x: clip;
  direction: ltr;
}
.hcg-wrap {
  overflow: hidden;
  direction: ltr;
}
.hcg-slides {
  align-items: stretch;
  display: flex;
  flex-direction: row;
  gap: var(--carousel-gap);
  overflow: visible;
  scroll-snap-type: none;
  transform: translateX(0);
  touch-action: pan-y;
  direction: ltr;
}
.hcg-slide {
  flex: 0 0 90%;
  overflow: hidden;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  z-index: 0;
}
.hcg-slide.is-active {
  z-index: 1;
}
#herocampusgaleria {
  text-align: center;
  font-size: 0;
  line-height: 0;
}

.hcg-media {
  position: relative;
  width: 100%;
  aspect-ratio: 16/9;
  min-height: 226px;
  overflow: clip;
  margin: 0;
}
.hcg-media img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hcg-media__video-embed {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: #000;
  isolation: isolate;
  overflow: hidden;
}
.hcg-media--video .video-js{
    object-fit: cover;
  }
  .hcg-media--video{
    height: calc(100vh - 170px)!important;
  }
@media (max-width: 820px) {
  .hcg-media__video-embed--hs::after,
  .hcg-media__video-embed:has(video)::after {
    content: "";
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    bottom: 0;
    height: 100%;
    background:
      linear-gradient(
        90deg,
        rgba(0, 48, 83, 0.45) 0%,
        rgba(0, 48, 83, 0) 18%,
        rgba(0, 48, 83, 0) 82%,
        rgba(0, 48, 83, 0.45) 100%
      ),
      linear-gradient(
        180deg,
        rgba(0, 48, 83, 0.08) 0%,
        rgba(0, 48, 83, 0.2) 18%,
        rgba(0, 48, 83, 0.5) 32%,
        rgba(0, 48, 83, 0.88) 60%,
        rgba(0, 48, 83, 1) 100%
      );
    opacity: 0;
    pointer-events: none;
    filter: blur(18px);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    z-index: 6;
  }
  .hcg-media__video-embed--hs.hcg-blur-active::after,
  .hcg-media__video-embed:has(video).hcg-blur-active::after {
    animation: hcg-video-shadow-rise 5000ms ease-out forwards;
  }
  .hcg-media--video{
    height: calc(100vh - 110px)!important;
  }
  .hcg-media--img-vertical{
    height: calc(70vh - 110px);
  }
}
.hcg-media__video-poster {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  background: transparent;
  background-color: transparent;
  opacity: 1;
  transition: opacity 0.35s ease;
  pointer-events: auto;
  z-index: 10;
}
.hcg-media__video-poster img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}
.hcg-media__video-embed .hs-video-wrapper,
.hcg-media__video-embed .hs-video-player,
.hcg-media__video-embed .hs-video-container,
.hcg-media__video-embed .hs-video-widget {
  position: absolute;
  inset: 0;
  width: 100% !important;
  height: 100% !important;
  z-index: 1;
}
.hcg-media__video-embed .hs-video-wrapper,
.hcg-media__video-embed .hs-video-player,
.hcg-media__video-embed .hs-video-container,
.hcg-media__video-embed .hs-video-widget,
.hcg-media__video-embed iframe,
.hcg-media__video-embed video {
  pointer-events: none !important;
}
.hcg-media__video-embed .hs-video-widget {
  opacity: 1;
  transition: opacity 0.35s ease;
  z-index: 1;
}
.hcg-media__video-embed.is-playing .hcg-media__video-poster {
  opacity: 0;
}
@supports selector(:has(*)) {
  .hcg-media__video-embed:has(.hs-video-widget[data-hsv-status="playing"])
    .hcg-media__video-poster {
    opacity: 0;
  }
}
.hcg-media__video-embed iframe,
.hcg-media__video-embed video {
  width: 100%;
  height: 100%;
  border: 0;
}
.hcg-media__video-embed video {
  object-fit: cover;
}

.hcg-video--desktop {
  display: block;
}
.hcg-video--mobile {
  display: none;
}
@media (max-width: 820px) {
  .hcg-video--desktop {
    display: none;
  }
  .hcg-video--mobile {
    display: block;
  }
}

@keyframes hcg-video-shadow-rise {
  0% {
    opacity: 1;
    transform: translateY(12px);
  }
  15% {
    opacity: 1;
    transform: translateY(0);
  }
  80% {
    opacity: 1;
    transform: translateY(0);
  }
  100% {
    opacity: 0;
    transform: translateY(0);
  }
}
.hcg-media__video-embed .hs-video-overlay,
.hcg-media__video-embed .hs-video-loading,
.hcg-media__video-embed .hs-video-loader,
.hcg-media__video-embed .hs-video-spinner,
.hcg-media__video-embed .vjs-loading-spinner,
.hcg-media__video-embed .vjs-big-play-button,
.hcg-media__video-embed .vjs-poster {
  display: none !important;
  opacity: 0 !important;
  visibility: hidden !important;
}
.hcg-media__gpt {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.hcg-media__gpt-slot {
  display: block;
  width: 100%;
  height: 100%;
}

.hcg-copy {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 40px;
  padding: 48px 0;
  border: 0;
  border-radius: 14px 14px 0 0;
  background: #fff;
  position: relative;
  z-index: 2;
  margin-top: calc(min(56.25vw, 275px) * -0.1);
  margin-inline: 16px;
  text-align: left;
}
.hcg-media--video-copy {
  margin-top: -180px;
}
.hcg-media--img-vertical-copy {
  margin-top: -180px;
}
.hcg-title {
  display: block;
  box-sizing: border-box;
  font-size: var(--font-size-2xl, 24px);
  font-weight: var(--font-weight-bold, 700);
  line-height: var(--line-height-2xl, 26px);
  letter-spacing: var(--letter-spacing-tight, -0.6px);
  align-self: stretch;
  color: var(--CTA-Primary-main);
  margin: 0 0 16px;
  padding: 0;
  border: 0;
  text-align: center;
}

.hcg-copy :where(p) {
  align-self: stretch;
  color: var(--Body-Text);
  font-size: var(--font-size-base, 16px);
  font-weight: var(--font-weight-medium, 500);
  line-height: var(--line-height-lg, 24px);
  /*letter-spacing: -0.1px;*/
  margin: 0 0 10px 0;
  text-align: center;
}

.hcg-copy :where(strong, b) {
  font-weight: var(--font-weight-bold, 700);
}

.hcg-main-title {
  max-width: 720px;
  margin: 0 auto;
  padding: 16px 0px 16px;
}

.hcg-main-title > p:nth-of-type(2) {
  align-self: stretch;
  color: var(--Body-Text);
  font-size: var(--font-size-base, 16px);
  font-weight: var(--font-weight-medium, 500);
  line-height: var(--line-height-lg, 24px);
  /*letter-spacing: -0.1px;*/
  display: -webkit-box;
  -webkit-line-clamp: 10;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.hcg-description {
  text-align: center;
}

.hcg-pill__label {
  color: var(--CTA-Primary-main);
}

.hcg-cta-main {
  width: 100%;
  display: flex;
  gap: 16px;
  margin-top: auto;
  justify-content: center;
}

.hcg-cta-main--split {
  align-items: stretch;
  justify-content: stretch;
}

.hcg-cta-main--split .hcg-btn--banner {
  flex: 1 1 0;
  inline-size: auto;
  min-inline-size: 0;
}

.hcg-btn--icon-only {
  flex: 0 0 48px;
  inline-size: 48px;
  min-inline-size: 48px;
  max-inline-size: 48px;
  padding: 0;
}

.hcg-btn--icon-only .hcg-btn__label {
  clip: rect(0 0 0 0);
  block-size: 1px;
  inline-size: 1px;
  margin: -1px;
  overflow: hidden;
  padding: 0;
  position: absolute;
  white-space: nowrap;
}

.hcg-cta-block {
  display: flex;
  flex-direction: column;
  row-gap: 16px;
  width: 100%;
}

.hcg-btn--banner {
  min-height: 48px;
  max-height: 48px;
  padding: 0 24px;
  border-radius: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: var(--font-size-base, 16px);
  font-weight: var(--font-weight-medium, 500);
  line-height: var(--line-height-base, 22px);
  letter-spacing: var(--letter-spacing-normal, -0.54px);
  /*background: var(--CTA-Primary-main);*/
  color: var(--c-primary-contrast);
  text-decoration: none;
  width: 100%;
  outline: none;
}
.hcg-btn--banner:hover {
  background: var(--CTA-Primary-Hover, #F68B1F);
}
.hcg-btn--banner:focus,
.hcg-btn--banner:active {
  background: var(--CTA-Primary-Pressed, #002641);
}
.hcg-btn--banner.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.hcg a {
  color: var(--text-color-on-primary, #fff);
}

.hcg-cta-row {
  display: flex;
  gap: 16px;
  justify-items: center;
  align-items: flex-start;
  align-self: stretch;
  flex-wrap: wrap;
}

.hcg-pill {
  align-items: center;
  background: var(--Complementario-FONDO);
  border-radius: 14px;
  color: var(--CTA-Primary-main);
  display: inline-flex;
  flex: 1 1 0;
  flex-shrink: 0;
  font-size: var(--font-size-base, 16px);
  font-weight: var(--font-weight-medium, 500);
  height: 48px;
  justify-content: center;
  letter-spacing: var(--letter-spacing-normal, -0.54px);
  line-height: var(--line-height-base, 22px);
  text-align: center;
  text-decoration: none;
  width: 100%;
  gap: 8px;
  border: 1px solid var(--c-border);
  padding: 8px 12px;
}

.hcg-pill.is-disabled {
  opacity: 0.5;
  pointer-events: none;
}
.hcg-pill__icon {
  width: 20px;
  height: 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.hcg-pill__icon svg {
  width: 20px;
  height: 20px;
  flex-shrink: 0;
}

.hcg-pagination-content {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 1rem;
}
.hcg-pagination-content button {
  background: var(--c-primary-contrast);
  border: none;
  width: 48px;
  height: 48px;
  cursor: pointer;
  display: grid;
  place-items: center;
  border-radius: 48px;
}

.hcg-pagination-dots {
  position: relative;
  z-index: 9;
  pointer-events: auto;
  display: flex;
  justify-content: center;
  padding: 0;
  height: 2px;
  background: rgba(0, 0, 0, 0.05);
  width: 15%;
}

@media (max-width: 1199.98px) {
  #herocampusgaleria .hcg-pagination-dots {
    margin-bottom: 24px;
    margin-left: auto;
    margin-right: auto;
  }
}

.hcg-pagination-dots .Dots {
  display: none;
}
.hcg-pagination-dots::after {
  content: "";
  position: absolute;
  top: 0;
  left: var(--bar-left, 0%);
  width: var(--bar-width, 0%);
  height: 100%;
  background: var(--CTA-Primary-main);
  transition: left var(--carousel-transition, 300ms) ease;
}
.hcg-copy {
  z-index: 2;
}

.hcg-btn--banner:focus-visible,
.hcg-pagination-content button:focus-visible,
.hcg-pill:focus-visible {
  box-shadow: 0 0 0 3px
    color-mix(in srgb, var(--c-unitec-escudo-secondary), #fff 70%);
}

html[dir="rtl"] .hcg,
html[dir="rtl"] .hcg-wrap,
html[dir="rtl"] .hcg-slides {
  direction: ltr;
}

.hcg,
.hcg-wrap {
  overflow: hidden;
}
.hcg-slides {
  gap: 0;
  margin-inline: 0;
  padding-inline: 0;
}
.hcg-slide {
  flex: 0 0 100%;
  max-width: 100%;
  width: 100%;
  }
.hcg-slide + .hcg-slide {
  margin-left: 0;
}
.hcg {
  --peek: 0px;
}
#herocampusgaleria,
.hcg-wrap,
.hcg {
  padding-inline: 0;
  margin-inline: 0;
}

.hcg-title {
  word-break: break-word;
}

@media (max-width: 359.98px) {
  .hcg-title {
    font-size: var(--font-size-2xl, 24px);
    line-height: var(--line-height-3xl, 28px);
    letter-spacing: -0.4px;
  }
  .hcg-copy :where(p) {
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-md, 20px);
  }
  .hcg-btn--banner,
  .hcg-pill {
    min-height: 44px;
    font-size: var(--font-size-base, 16px);
    padding-inline: 16px;
  }
  .hcg-media {
    min-height: 200px;
  }
}

@media (min-width: 360px) and (max-width: 479.98px) {
  .hcg-copy {
    margin-inline: 16px;
    padding: 10px 16px;
    gap: 0px;
  }
  .hcg-title {
    font-size: var(--font-size-2xl, 24px);
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--line-height-2xl, 26px);
    letter-spacing: var(--letter-spacing-tight, -0.6px);
  }
  .hcg-copy :where(p) {
    font-size: var(--font-size-base, 16px);
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--line-height-lg, 24px);
    letter-spacing: -0.1px;
  }
  .hcg-btn--banner,
  .hcg-pill {
    min-height: 46px;
    padding-inline: 18px;
  }
}

@media (min-width: 480px) and (max-width: 767.98px) {
  .hcg-slide {
    flex-basis: 100%;
  }
  .hcg-copy {
    margin-inline: 24px;
    padding: 10px 16px;
    gap: 0px;
  }
  .hcg-title {
    font-size: var(--font-size-2xl, 24px);
    line-height: var(--line-height-2xl, 26px);
  }
  .hcg-copy :where(p) {
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-lg, 24px);
  }
  .hcg-cta-row {
    grid-template-columns: 1fr 1fr;
  }
}

@media (min-width: 768px) and (max-width: 1023.98px) {
  .hcg-media {
    min-height: 400px;
  }
  .hcg-copy {
    margin-inline: 32px;
    padding: 10px 28px ;
    gap: 0px;
    max-height: 70vh;
    overflow: auto;
  }
  .hcg-title {
    font-size: var(--font-size-2xl, 24px);
    line-height: var(--line-height-3xl, 28px);
  }
  .hcg-copy :where(p) {
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-lg, 24px);
    max-width: 64ch;
    margin-inline: auto;
  }
  .hcg-cta-row {
    grid-template-columns: 1fr 1fr;
  }
  .hcg-cta-block {
    min-height: auto;
  }
  #herocampusgaleria .hcg-pagination-dots {
    inset-block-end: clamp(28px, 4vw, 25px);
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  .hcg {
    overflow-x: clip;
  }
  .hcg-wrap {
    overflow: hidden;
    width: 100%;
    margin: 0 auto;
  }
  .hcg-slides {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    gap: 0;
    transform: translateX(0);
    justify-content: flex-start;
  }
  .hcg-slide {
    flex: 0 0 100%;
    width: 100%;
    max-width: 100%;
    margin: 0;
    border-radius: 0;
  }
  .hcg-media {
    aspect-ratio: 16/9;
    width: 100%;
    height: auto;
    min-height: 450px;
    max-height: 560px;
    border-radius: 0;
  }
  .hcg-copy {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 140px;
    padding: 32px 64px 24px;
    flex: 1 1 auto;
    align-self: stretch;
    text-align: left;
    background: #fff;
    border: 0;
    border-radius: 14px 14px 0 0;
    position: relative;
    z-index: 2;
    margin-top: calc(min(56.25vw, 375px) * -0.08);
    margin-inline: 64px;
    max-height: 60vh;
    overflow: auto;
  }
  .hcg-cta-block {
    width: 48%;
  }
  .hcg-title {
    color: var(--CTA-Primary-main, #003053);
    font-size: var(--font-size-2xl, 24px);
    font-weight: var(--font-weight-bold, 700);
    line-height: var(--line-height-3xl, 28px);
    letter-spacing: var(--letter-spacing-tight, -0.5px);
    margin-bottom: 16px;
    text-align: left;
  }
  .hcg-copy :where(p) {
    color: var(--Body-Text, #505050);
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-lg, 24px);
    text-align: left;
    margin: 0 auto;
  }
  .hcg-cta-row {
    justify-content: center;
    gap: 20px;
    margin-top: 12px;
  }
  .hcg-btn--banner,
  .hcg-pill {
    min-height: 52px;
    font-size: var(--font-size-h3, 20px);
  }
  .hcg-pagination-dots {
    width: 5%;
    transform: translateX(-50%);
    inset-block-end: clamp(36px, 4.5vw, 25px);
  }
}

@media (min-width: 1200px) {
  #herocampusgaleria {
    position: relative;
  }
  #herocampusgaleria .hcg-pagination-dots {
    position: absolute;
    left: 50%;
    transform: translateX(-50%);
  }
  #herocampusgaleria .hcg-slide {
    position: relative;
    inline-size: 100%;
    block-size: calc(100vh - 170px);
    overflow: hidden;
  }
  #herocampusgaleria .hcg-media {
    position: absolute;
    inset: 0;
    height: calc(100vh - 150px);
    min-height: 0;
    max-height: none;
    overflow: clip;
    border-radius: 0;
  }
  #herocampusgaleria .hcg-media img {
    object-fit: cover;
    object-position: center;
  }
  #herocampusgaleria .hcg-copy {
    align-items: flex-start;
    background: #fff;
    border-radius: 14px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 0px;
    left: 130px;
    margin: 0;
    padding: 18px;
    position: absolute;
    text-align: left;
    inline-size: clamp(400px, 30vw, 480px);
    min-height: 340px;
    z-index: 2;
    top: 5%;
  }
  .hcg-title {
    font-size: var(--font-size-2xl, 24px);
    line-height: var(--line-height-3xl, 28px);
    text-align: left;
  }
  .hcg-copy :where(p),
  .hcg-description {
    color: var(--Body-Text, #505050);
    font-size: var(--font-size-base, 16px);
    font-weight: var(--font-weight-medium, 500);
    line-height: var(--line-height-lg, 24px);
    /*letter-spacing: var(--letter-spacing-tight, -0.5px);*/
    text-align: left;
  }
  .hcg-cta-main {
    width: 100%;
    display: flex;
    justify-content: stretch;
  }
  .hcg-btn--banner {
    width: 100%;
    min-height: 48px;
    max-height: 48px;
    padding-inline: 24px;
    border-radius: 14px;
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-base, 22px);
  }
  .hcg-cta-row {
    display: flex;
    gap: 16px;
    justify-content: start;
    align-items: center;
    margin-top: 0;
    align-self: stretch;
  }
  .hcg-pill {
    height: 48px;
    border-radius: 14px;
    border: 1px solid var(--UNITEC-Secondary-Border, #c3c6d4);
    color: var(--CTA-Primary-main);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    font-size: var(--font-size-base, 16px);
    letter-spacing: var(--letter-spacing-normal, -0.54px);
  }
  #herocampusgaleria .hcg-nav {
    position: absolute;
    inset: 0;
    z-index: 4;
    pointer-events: none;
  }
  #herocampusgaleria .Carousel__btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: grid;
    place-items: center;
    pointer-events: auto;
  }
  #herocampusgaleria .Carousel__btn.prev {
    left: 32px;
  }
  #herocampusgaleria .Carousel__btn.next {
    right: 32px;
  }
  #herocampusgaleria .hcg-slide > .hcg-pagination-dots {
    position: absolute;
    left: 120px;
    top: calc(155px + 420px + 16px);
    width: 445px;
    margin: 0;
    transform: none;
  }
  #herocampusgaleria .hcg-copy > .hcg-pagination-dots {
    position: absolute;
    inset: auto 0 -28px 0;
    margin: 0;
    display: flex;
    justify-content: center;
  }
  .hcg-pagination-dots {
    width: 5%;
  }
}

@media (min-width: 1200px) and (max-width: 1439.98px) {
  #herocampusgaleria .hcg-pagination-dots {
    inset-block-end: clamp(40px, 3.8vw, 20px);
  }
}

@media (min-width: 1440px) and (max-width: 1679.98px) {
  #herocampusgaleria .hcg-copy {
    left: 140px;
  }
  #herocampusgaleria .hcg-slide > .hcg-pagination-dots {
    left: 140px;
  }
  #herocampusgaleria .hcg-pagination-dots {
    inset-block-end: clamp(44px, 3.2vw, 25px);
  }
}

@media (min-width: 1680px) and (max-width: 1919.98px) {
  #herocampusgaleria .hcg-pagination-dots {
    inset-block-end: clamp(44px, 3vw, 25px);
  }
}

@media (min-width: 1920px) {
  #herocampusgaleria .hcg-pagination-dots {
    inset-block-end: clamp(48px, 2.5vw, 25px);
  }
}

@media (max-width: 1199.98px) {
  #herocampusgaleria .hcg-nav {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .hcg-slide,
  .hcg-copy,
  .hcg-media img,
  .hcg-slides {
    transition: none !important;
    transform: none !important;
  }
  .hcg-pagination-dots::after,
  .hcg-btn--banner,
  .hcg-pill {
    transition: none !important;
  }
}

@media (max-width: 479.98px) {
  .hcg-cta-main {
    flex-direction: column;
    align-items: stretch;
  }
  .hcg-cta-block {
    width: 100%;
  }
  .hcg-cta-row {
    flex-direction: column;
    align-items: stretch;
  }
  .hcg-btn--banner,
  .hcg-pill {
    inline-size: 100%;
    max-inline-size: 100%;
    height: auto;
    max-height: none;
    padding-block: 10px;
    white-space: normal;
    line-height: 1.3;
    text-align: center;
    align-items: center;
  }
}

@media (max-width: 767.98px) {
  .hcg-cta-main--split {
    flex-direction: column;
    align-items: stretch;
  }

  .hcg-cta-main--split .hcg-btn--banner {
    inline-size: 100%;
  }

  .hcg-cta-main--side-icon {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
    align-items: stretch;
  }

  .hcg-cta-main--side-icon .hcg-btn--banner {
    inline-size: 100%;
    width: 100%;
  }

  .hcg-cta-main--side-icon .hcg-btn--icon-only {
    inline-size: 48px;
    width: 48px;
    min-inline-size: 48px;
    max-inline-size: 48px;
  }
}

@media (min-width: 1024px) {
  .hcg-cta-block {
    display: flex;
    flex-direction: column;
    row-gap: 12px;
    min-height: auto;
  }
  .hcg-cta-main {
    order: 0;
    width: 100%;
    display: flex;
    justify-content: stretch;
  }
  .hcg-cta-main--split,
  .hcg-cta-row {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px;
    align-items: stretch;
  }
  .hcg-cta-main--side-icon {
    grid-template-columns: minmax(0, 1fr) 48px;
    gap: 8px;
  }
  .hcg-cta-main--split .hcg-btn--banner {
    inline-size: 100%;
    width: 100%;
  }
  .hcg-cta-main--side-icon .hcg-btn--icon-only {
    inline-size: 48px;
    width: 48px;
    min-inline-size: 48px;
    max-inline-size: 48px;
  }
  .hcg-cta-main--split .hcg-btn--banner:first-child {
    font-size: var(--font-size-base, 16px);
    line-height: var(--line-height-base, 22px);
    padding-inline: 12px;
    white-space: nowrap;
  }
  .hcg-cta-main--split .hcg-btn--banner:first-child .c-btn__label {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .hcg-cta-row {
    order: 1;
    flex-wrap: nowrap;
    align-items: stretch;
    justify-content: center;
    margin-top: 0;
  }
  .hcg-cta-row .hcg-pill {
    inline-size: 100%;
    width: 100%;
    min-inline-size: 0;
    max-inline-size: none;
  }
}

.hcg-cta-disclaimer-content {
  display: flex;
  align-self: center;
}

.hcg-cta-disclaimer-content :where(p) {
  color: var(--Text-Secondary-700, #676879);
  text-align: center;
  font-feature-settings: "liga" off, "clig" off;
  font-size: var(--UNITEC-Font-Size-Disclaimer, var(--font-size-disclaimer, 10px));
  font-style: normal;
  font-weight: var(--font-weight-regular, 400);
  line-height: var(--line-height-sm, 16px);
  letter-spacing: -0.06px;
  margin: 0;
}

@media (min-width: 1024px) {
  #herocampusgaleria .hcg-slide:has(.hcg-media--fade-left) {
    max-height: 100%;
  }

  #herocampusgaleria .hcg-media.hcg-media--fade-left {
    background: #fff;
    position: absolute;
    inset: 0;
    height: 100%;
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  #herocampusgaleria .hcg-slide:has(.hcg-media--fade-left) {
    min-height: 500px;
    position: relative;
  }
}

@media (min-width: 1024px) and (max-width: 1399.98px) {

  #herocampusgaleria .hcg-media.hcg-media--fade-left img {
    width: 55%;
    height: 100%;
    inset: 0 0 0 auto;
    object-fit: cover;
    object-position: top right;

    --blend: 8%;

    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 var(--blend),
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 var(--blend),
      #000 100%
    );

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

@media (min-width: 1400px) {
  #herocampusgaleria .hcg-media.hcg-media--fade-left img {
    width: 50%;
    height: 100%;
    inset: 0 0 0 auto;
    object-fit: cover;
    object-position: top right;

    --blend: 8%;

    -webkit-mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 var(--blend),
      #000 100%
    );
    mask-image: linear-gradient(
      to right,
      transparent 0%,
      #000 var(--blend),
      #000 100%
    );

    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
  }
}

/* ============================================================================
   REDISENO: galeria de campus  (hero-campus-galeria)
   ----------------------------------------------------------------------------
   La galeria muestra las imagenes de TODOS los slides; el <ul class="hcg-slides">
   solo aporta el copy y los CTAs del primer slide (su media va oculta).
   Objetivo: exponer las fotos de campus sin alargar el modulo.
   Tokens: se referencian los de css/tokens/* con fallback literal (3bis).
   ========================================================================== */

.hcg {
  /* 0% = la foto ocupa el ancho completo. La señal de "hay mas fotos" queda en
     el contador numerico y, en desktop, en las flechas. */
  --hcg-peek: 0%;
  --hcg-scrim: rgba(50, 51, 56, 0.72);
}

/* El markup ya no usa <ul class="hcg-slides"> ni <li class="hcg-slide">:
   la galeria trae las fotos y el contenido vive en un unico .hcg-copy. */

/* El wrap trae font-size/line-height 0 (heredado del carrusel): se restaura. */
.hcg .hcg-gallery {
  position: relative;
  font-size: var(--font-size-base, 16px);
  line-height: normal;
  text-align: left;
}

.hcg .hcg-gallery__track {
  display: flex;
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
  overflow-x: auto;
  overscroll-behavior-x: contain;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;    /* la suavidad vive aqui, no en el JS */
  scrollbar-width: none;
  -ms-overflow-style: none;
}
@media (prefers-reduced-motion: reduce) {
  .hcg .hcg-gallery__track { scroll-behavior: auto; }
}
.hcg .hcg-gallery__track::-webkit-scrollbar { display: none; }
.hcg .hcg-gallery__track:focus-visible {
  outline: var(--border-width-2, 2px) solid var(--color-primary, #006FBA);
  outline-offset: -2px;
}

.hcg .hcg-gallery__item {
  flex: 0 0 calc(100% - var(--hcg-peek));
  scroll-snap-align: start;
  /* 3:2 en mobile (~268px a 402px de ancho). Al quitar el peek la foto se
     ensancha, asi que se baja la proporcion para NO ganar alto y dejar mas
     sitio a los CTA. Sigue por encima de los 226px del hero original. */
  aspect-ratio: 3 / 2;
  overflow: hidden;
  position: relative;
  margin: 0;
}
.hcg .hcg-gallery__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

/* Contador numerico: sin indicador, las fotos quedan sin descubrir (Baymard).
   Se ancla a la foto ACTIVA, no al contenedor, o cae sobre el peek. */
.hcg .hcg-gallery__counter {
  position: absolute;
  right: calc(var(--hcg-peek) + var(--space-16, 16px));
  bottom: var(--space-10, 40px);
  background: var(--hcg-scrim);
  color: var(--color-text-inverse, #fff);
  font-family: var(--font-family-base, "Work Sans", Arial, sans-serif);
  font-size: var(--font-size-sm, 14px);
  font-weight: var(--font-weight-semibold, 600);
  line-height: 1;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  border-radius: var(--radius-full, 9999px);
  font-variant-numeric: tabular-nums;
  pointer-events: none;
  z-index: 3;
}

/* Flechas: solo desktop. Sin tactil la galeria seria inoperable con mouse. */
.hcg .hcg-gallery__nav {
  display: none;
  position: absolute;
  top: calc(50% - 22px);
  width: 44px;
  height: 44px;
  padding: 0;
  border-radius: var(--radius-full, 9999px);
  background: var(--color-bg-white, #fff);
  border: var(--border-width, 1px) solid var(--color-border, #C3C6D4);
  box-shadow: var(--shadow-md, 0 4px 6px rgba(0, 0, 0, 0.1));
  color: var(--color-primary-dark, #003053);
  cursor: pointer;
  align-items: center;
  justify-content: center;
  z-index: 3;
}
.hcg .hcg-gallery__nav:focus-visible {
  outline: none;
  box-shadow: var(--shadow-focus, 0 0 0 3px rgba(0, 111, 186, 0.25));
}
.hcg .hcg-gallery__nav--prev { left: var(--space-6, 24px); }
.hcg .hcg-gallery__nav--next { right: calc(var(--hcg-peek) + var(--space-6, 24px)); }

/* Copy y CTAs debajo de la galeria SOLO hasta 1199px. En 1200+ se conserva el
   overlay original (card a la izquierda, encima de la foto): con la card debajo
   el hero crecia a 1267px y los dos CTA quedaban FUERA del pliegue. */
@media (max-width: 1199.98px) {
  #herocampusgaleria .hcg-copy,
  .hcg .hcg-copy {
    position: relative;
    inset: auto;
    width: auto;
    max-width: none;
    margin-top: calc(var(--space-6, 24px) * -1);   /* monta sobre la foto */
    margin-inline: var(--space-16, 16px);
    transform: none;
    /* Aire recortado (antes 24/24/20): sube los CTA ~40px sin tocar la foto. */
    gap: var(--space-16, 16px);
    padding: var(--space-5, 20px) var(--space-16, 16px) var(--space-16, 16px);
  }
  #herocampusgaleria .hcg-main-title { gap: var(--space-2, 8px); }
}

@media (min-width: 1024px) {
  .hcg .hcg-gallery__item { aspect-ratio: 21 / 9; }
  .hcg .hcg-gallery__nav { display: flex; }
  /* Va entre las dos flechas:  <  1/3  >  */
  .hcg .hcg-gallery__counter {
    right: auto;
    left: 50%;
    transform: translateX(-50%);
    bottom: 37px;             /* centrado con las flechas (36px altas, bottom 33) */
  }
}

@media (min-width: 1024px) and (max-width: 1199.98px) {
  #herocampusgaleria .hcg-copy,
  .hcg .hcg-copy {
    max-width: var(--section-content-width, 1200px);
    margin-inline: auto;
    padding: var(--space-6, 24px) var(--section-padding-x, 24px) var(--space-32, 32px);
  }
}

/* 1200+: la card vuelve a flotar a la izquierda sobre la galeria (como estaba).
   Solo hace falta soltar la altura del slide: ya no contiene media, pero seguia
   con block-size: calc(100vh - 170px) y sumaba 730px vacios al hero. */
/* Los pills traen height:48px FIJO: un texto de dos lineas ("Oferta Educativa"
   a media fila) necesita ~60px y se cortaba. Con min-height el boton crece. */
#herocampusgaleria .hcg-pill {
  height: auto;
  min-height: 48px;
}

/* Mobile: se aprieta el bloque de texto para que los CTA no queden al filo. */
@media (max-width: 767.98px) {
  #herocampusgaleria .hcg-main-title { padding: 0; }
  #herocampusgaleria .hcg-title { margin-bottom: var(--space-2, 8px); }
  #herocampusgaleria .hcg-cta-block { row-gap: var(--space-3, 12px); }
  #herocampusgaleria .hcg-cta-row,
  #herocampusgaleria .hcg-cta-main { gap: var(--space-2, 8px); }
  #herocampusgaleria .hcg-copy {
    gap: var(--space-3, 12px);
    padding: var(--space-16, 16px) var(--space-16, 16px) var(--space-3, 12px);
  }
  /* Los dos secundarios en UNA fila: apilados gastaban ~56px de alto de mas.
     Los apilaba flex-direction:column del media de 479.98px, no el wrap. */
  #herocampusgaleria .hcg-cta-row {
    flex-direction: row;
    flex-wrap: nowrap;
  }
  #herocampusgaleria .hcg-pill {
    width: auto;
    flex: 1 1 0;
    min-width: 0;
    /* 14px para que "Oferta Educativa" quepa en una linea a media fila */
    font-size: var(--font-size-sm, 14px);
    padding: 8px 10px;
  }
}

/* 1200+: la card conserva su overlay original (absolute, left:130px, top:5%),
   anclado ya directamente a .hcg-wrap, que es relative y tiene la altura de la
   galeria. Solo se cuida que el clic siga llegando a las flechas de la galeria. */
@media (min-width: 1200px) {
  #herocampusgaleria {
    /* Alto del header + breadcrumb que van encima del hero (medido: 168px). */
    --hcg-offset-superior: 172px;
    /* La card overlay mide 340px y arranca al 5%: por debajo de esto se saldria. */
    --hcg-alto-min: 420px;
    /* Techo para que en pantallas muy altas la foto no se vuelva desmesurada
       (el hero original no tenia tope: usaba 100vh - 150px a secas). */
    --hcg-alto-max: 820px;
  }
  #herocampusgaleria .hcg-gallery { position: relative; z-index: 1; }
  #herocampusgaleria .hcg-copy { z-index: 2; }

  /* Controles agrupados y CENTRADOS abajo, en el orden  <  1/3  >.
     A los lados no funcionaban: la flecha "siguiente" quedaba debajo de
     .StickyBar (la columna flotante de iconos) y no se podia clicar. En el
     centro no estorba nada: la card termina mas arriba y la StickyBar va a la
     derecha. Las flechas se anclan a distancias fijas del centro y el contador
     se centra sobre esa misma linea. */
  #herocampusgaleria .hcg-gallery__nav {
    top: auto;
    bottom: 33px;
    width: 36px;
    height: 36px;
  }
  #herocampusgaleria .hcg-gallery__nav svg { width: 16px; height: 16px; }
  #herocampusgaleria .hcg-gallery__nav--prev { left: calc(50% - 78px); right: auto; }
  #herocampusgaleria .hcg-gallery__nav--next { left: calc(50% + 42px); right: auto; }

  /* El alto lo mandaba aspect-ratio 21/9, que depende del ANCHO: a 1440px daba
     611px fijos y en un portatil el modulo quedaba cortado. Se ata al viewport
     para que quepa entero sin scroll. */
  #herocampusgaleria .hcg-gallery__item {
    aspect-ratio: auto;
    height: clamp(
      var(--hcg-alto-min),
      calc(100vh - var(--hcg-offset-superior)),
      var(--hcg-alto-max)
    );
  }
}
