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; }
}

/* Botones flotantes de redes (interfaz/footer.php · pr_social_float) */
.pr-float { position: fixed; right: 16px; bottom: 96px; z-index: 40; display: flex; flex-direction: column; gap: 10px; }
.pr-float a {
    position: relative; width: 50px; height: 50px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 26px;
    box-shadow: 0 10px 25px rgba(0, 0, 0, .45); transition: transform .3s ease;
}
.pr-float a:hover { transform: scale(1.08); color: #fff; }
.pr-float a::before {
    content: attr(data-label); position: absolute; right: calc(100% + 10px); top: 50%; transform: translateY(-50%);
    padding: 5px 10px; border-radius: 6px; background: rgba(0, 0, 0, .85); color: #fff; font-size: 12px; font-weight: 600; white-space: nowrap;
    opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.pr-float a:hover::before, .pr-float a:focus-visible::before { opacity: 1; }
.pr-float__ig { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285aeb 90%); }
.pr-float__yt { background: #ff0000; }
.pr-float__wa { background: #25d366; }
@media (max-width: 767px) {
    .pr-float { right: 12px; bottom: 84px; gap: 8px; }
    .pr-float a { width: 44px; height: 44px; font-size: 22px; }
}

/* Menús desplegables: tarjeta con ícono, título, descripción y cantidad */
#navbar .navbar-nav .nav-drop {
    display: flex;
    flex-direction: column;
    gap: 8px;
    border-radius: 16px;
    border: 1px solid rgba(255, 255, 255, .08);
    box-shadow: 0 18px 40px rgba(0, 0, 0, .45);
    z-index: 40;
}
.nav-drop > .nav-item { margin: 0; }
.nav-drop__link {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, .1);
    background: #161616;
    color: #fff;
    text-decoration: none;
}
.nav-drop__link:hover,
.nav-drop > .nav-item:hover > .nav-drop__link,
.nav-drop__link.active {
    background: #1c1c1c;
    border-color: color-mix(in srgb, var(--pr-cat-hover, #e10600) 55%, transparent);
    color: #fff;
}
.nav-drop__icon {
    flex: none;
    width: 40px;
    height: 40px;
    border-radius: 10px;
    display: grid;
    place-items: center;
    background: color-mix(in srgb, var(--pr-cat-hover, #e10600) 16%, transparent);
    color: var(--pr-cat-hover, #e10600);
    font-size: 20px;
}
.nav-drop__text { min-width: 0; display: grid; gap: 2px; flex: 1; }
.nav-drop__text strong { font-size: 15px; line-height: 1.2; font-weight: 700; color: #fff; white-space: nowrap; }

/* Catálogo: especializaciones con grupo abierto */
.edu-badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    max-width: calc(100% - 24px);
    padding: 8px 12px 8px 10px;
    border-radius: 10px;
    background: var(--pr-group-badge, #ffc107);
    color: var(--pr-group-badge-text, #111);
    box-shadow: 0 8px 18px rgba(0, 0, 0, .35);
    text-align: left;
}
.edu-badge > i { flex: none; font-size: 18px; line-height: 1; }
.edu-badge span { display: grid; min-width: 0; }
.edu-badge strong {
    font-size: 10px;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: .06em;
    text-transform: uppercase;
}
.edu-badge small { font-size: 13px; line-height: 1.2; font-weight: 700; }
@media (max-width: 639px) {
    .edu-badge { top: 8px; left: 8px; gap: 6px; padding: 6px 8px; }
    .edu-badge > i { font-size: 15px; }
    .edu-badge strong { font-size: 9px; }
    .edu-badge small { font-size: 11px; }
}
.nav-drop__text small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .55); line-height: 1.3; }
.nav-drop__count {
    flex: none;
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
    border-radius: 8px;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, .06);
    color: rgba(255, 255, 255, .82);
    font-size: 13px;
    font-weight: 700;
}
.nav-drop__chev { flex: none; color: rgba(255, 255, 255, .45); font-size: 20px; line-height: 1; }
.edu-pop[hidden] { display: none !important; }
.edu-pop {
    position: fixed; inset: 0; z-index: 1200;
    display: flex; align-items: center; justify-content: center;
    padding: 16px;
}
.edu-pop__backdrop { position: absolute; inset: 0; background: rgba(0, 0, 0, .78); }
.edu-pop__panel {
    position: relative; z-index: 1; width: min(920px, 100%);
    max-height: calc(100vh - 32px); overflow: auto;
    border-radius: 16px; background: #161616;
    border: 1px solid var(--color-secondary, #ffea00);
    box-shadow: 0 30px 80px rgba(0, 0, 0, .55);
}
.edu-pop__close {
    position: absolute; top: 12px; right: 12px; z-index: 2;
    width: 36px; height: 36px; border: 0; border-radius: 50%;
    background: rgba(0, 0, 0, .55); color: #fff; font-size: 22px;
    cursor: pointer; display: grid; place-items: center;
}
.edu-pop__close:hover { background: var(--color-primary, #f41b3b); color: #fff; }
.edu-pop__card { display: grid; grid-template-columns: 1fr; color: inherit; text-decoration: none; }
@media (min-width: 768px) { .edu-pop__card { grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); } }
.edu-pop__card { align-items: center; }
.edu-pop__media { position: relative; width: 100%; aspect-ratio: 4 / 3; min-height: 0; background: #000; }
@media (min-width: 768px) { .edu-pop__media { min-height: 0; height: auto; } }
.edu-pop__media img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.edu-pop__body { padding: 24px 24px 28px; display: flex; flex-direction: column; align-items: flex-start; }
@media (min-width: 768px) { .edu-pop__body { padding: 28px 32px 32px; } }
.edu-pop__top { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 12px; }
.edu-pop__badge, .edu-pop__chip { display: inline-block; padding: 5px 12px; border-radius: 99px; font-size: 11px; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; }
.edu-pop__badge { background: var(--color-secondary, #ffea00); color: #000; }
.edu-pop__chip { border: 1px solid rgba(255, 255, 255, .2); color: #fff; }
.edu-pop__kicker { margin-bottom: 8px; color: var(--color-secondary, #ffea00); font-size: 12px; font-weight: 700; letter-spacing: .16em; text-transform: uppercase; }
.edu-pop__title { margin: 0 0 14px; padding-bottom: 14px; border-bottom: 1px solid rgba(255, 255, 255, .12); color: #fff; font-size: 28px; font-weight: 800; line-height: 1.12; }
.edu-pop__text { margin: 0 0 16px; color: rgba(255, 255, 255, .8); font-size: 15px; line-height: 1.6; }
.edu-pop__points { margin: 0 0 22px; padding: 0; list-style: none; display: grid; gap: 10px; }
.edu-pop__points li { position: relative; padding-left: 28px; color: rgba(255, 255, 255, .82); font-size: 15px; line-height: 1.45; }
.edu-pop__points li::before { content: ""; position: absolute; left: 0; top: .15em; width: 18px; height: 18px; border-radius: 50%; background: var(--color-primary, #22c55e) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='10' height='8' viewBox='0 0 10 8'%3E%3Cpath d='M1 4l3 3 5-6' fill='none' stroke='%23fff' stroke-width='1.8' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E") no-repeat center; }
.sidebar-modal .sidebar-navbar-nav .nav-item > .dropdown-menu { display: none !important; }
.sidebar-modal .sidebar-navbar-nav .nav-item.active > .dropdown-menu { display: block !important; }
.sidebar-modal .dropdown-toggle { cursor: pointer; }
.nav-mcard { display: flex; align-items: center; gap: 10px; }
.nav-mcard > i {
    flex: none; width: 34px; height: 34px; border-radius: 8px; display: grid; place-items: center;
    background: color-mix(in srgb, var(--pr-cat-hover, #e10600) 16%, transparent);
    color: var(--pr-cat-hover, #e10600); font-size: 18px;
}
.nav-mcard > span { display: grid; gap: 1px; min-width: 0; }
.nav-mcard strong { font-size: 14px; color: #fff; }
.nav-mcard small { font-size: 12px; font-weight: 500; color: rgba(255, 255, 255, .55); }
.nav-mcard em { margin-left: auto; font-style: normal; font-size: 13px; color: rgba(255, 255, 255, .75); }