body {
  background-color: var(--color-navy-black, #0f0f0f) !important;
}

#navbar,
#navbar.navbar-sticky {
  background-color: var(--color-navy-black, #0f0f0f) !important;
  border-radius: 0 !important;
  margin-top: 0 !important;
  margin-left: 0 !important;
  margin-right: 0 !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  max-width: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  min-height: 72px;
}

#navbar > .container {
  width: 100%;
}

#navbar a.flex-none.inline-block,
#navbar a.max-w-\[180px\] {
  max-width: 210px !important;
  flex: 0 0 auto !important;
  line-height: 0;
}

#navbar .site-logo {
  max-height: 52px !important;
  max-width: 210px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center;
  display: block;
}

.sidebar-modal a.max-w-\[180px\] {
  max-width: 180px !important;
  flex: 0 1 auto !important;
  line-height: 0;
}

.sidebar-modal .site-logo {
  max-height: 42px !important;
  max-width: 180px !important;
  width: auto !important;
  height: auto !important;
  object-fit: contain !important;
  object-position: left center;
  display: block;
}

@media (min-width: 1024px) {
  #navbar,
  #navbar.navbar-sticky {
    min-height: 80px;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  #navbar a.flex-none.inline-block,
  #navbar a.max-w-\[180px\] {
    max-width: 280px !important;
  }

  #navbar .site-logo {
    max-height: 64px !important;
    max-width: 280px !important;
  }
}

/* Hero: imagen horizontal + vertical opcional para móviles */
.navbar-nav .nav-link { white-space: nowrap; }
.nav-link .nav-icon { display: inline-block; font-size: 22px; line-height: 1; font-weight: normal; vertical-align: middle; }
@media (min-width: 1024px) and (max-width: 1279px) {
    .navbar-nav { gap: 18px !important; }
    .navbar-nav .nav-link { font-size: 14px; }
}
.pr-hero-bg { background-image: var(--hero-bg); }
.pr-hero-media { background: #000 !important; background-image: none !important; overflow: hidden; }
.pr-hero-video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; z-index: 0; }
.pr-hero-video--m { display: none; }
.pr-hero-mask { position: absolute; inset: 0; z-index: 1; background: rgba(0,0,0,.55); pointer-events: none; }
@media (max-width: 767px) {
  .pr-hero-has-vm .pr-hero-video--d { display: none; }
  .pr-hero-has-vm .pr-hero-video--m { display: block; }
  .pr-hero-bg { background-image: var(--hero-bg-m, var(--hero-bg)); }
  .pr-hero-tall {
    min-height: 133.33vw;
    padding-top: 24px !important;
    display: flex; flex-direction: column; justify-content: flex-end;
  }
  .pr-hero-tall > .container { width: 100%; }
}

/* Catálogo de especializaciones / cursos: 2 por fila en celulares */
@media (max-width: 639px) {
  .cms-catalog-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
}

/* ¿Quién Soy?: las dos fotos lado a lado y escalonadas en celulares */
@media (max-width: 639px) {
  .about-duo { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; align-items: start; }
  .about-duo > div:first-child { margin-top: 36px; }
  .about-duo img { width: 100%; aspect-ratio: 3 / 4; object-fit: cover; }
}

/* ¿Quién Soy?: servicios en cuadrícula 2x2 compacta en celulares */
@media (max-width: 639px) {
  .about-feats { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
  .about-feats > div { padding: 16px 14px; display: flex; flex-direction: column; }
  .about-feats > div > div:first-child { margin-bottom: 14px; }
  .about-feats > div > div:first-child > div { font-size: 34px; }
  .about-feats > div > div:first-child > span { font-size: 30px; }
  .about-feats h3 { font-size: 15px; line-height: 1.2; margin-bottom: 8px; }
  .about-feats p { font-size: 13px; line-height: 1.5; }
  .about-feats > div > a { margin-top: auto; padding-top: 10px; font-size: 13px; }
}
