/*
 * Seções exclusivas da home do Universo (RF-8): Conheça a Universo, Nossas Unidades e Medicina.
 *
 * Escopo por seção (prefixos novos, nada global):
 *   #meet-universidade.hs-prova   .hs-prova__*   Conheça a Universo (faixa de provas)
 *   #our-units.hs-uni             .hs-uni__*     Nossas Unidades (mapa, pinos e lista) + .hs-pino*
 *   #med-section-pc/-mobile.hs-med .hs-med__*    Medicina
 *
 * Os valores vêm dos tokens --ui-* (css/ui-tokens.css); o cabeçalho de cada seção é o componente
 * css/secao-cabecalho.css. O style.css pinta essas seções por ID ("#190c6d", padding), então os seletores raiz
 * levam ID + classe (1,1,0) para vencer sem !important.
 *
 * Comportamento (contagem, pinos, tooltip): js/home-secoes.js. Sem JS, tudo aparece no estado final.
 */

#meet-universidade.hs-prova,
#our-units.hs-uni,
.hs-med {
  font-family: var(--ui-font);
}

/* ================================================================== */
/* 1. CONHEÇA A UNIVERSO                                              */
/* ================================================================== */

#meet-universidade.hs-prova {
  padding: 36px 16px;
  background: #fff;
}

.hs-prova .secao-cabecalho {
  margin-bottom: 20px;
}

.hs-prova .hs-prova__grade {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0;
  list-style: none;
}

.hs-prova .hs-prova__grade > li {
  display: flex;
  margin: 0;
  padding: 0;
}

.hs-prova .hs-prova__card {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  width: 100%;
  min-height: 44px;
  aspect-ratio: 3 / 4;
  overflow: hidden;
  isolation: isolate;
  border-radius: var(--ui-radius-lg);
  background: var(--ui-indigo-900);
  box-shadow: var(--ui-shadow-card);
  color: #fff;
  text-decoration: none;
  transition: box-shadow 0.35s ease;
}

.hs-prova .hs-prova__card:hover,
.hs-prova .hs-prova__card:focus-visible {
  box-shadow: var(--ui-shadow-pop);
  color: #fff;
  text-decoration: none;
}

.hs-prova .hs-prova__card:focus-visible {
  outline: 3px solid var(--ui-yellow);
  outline-offset: 3px;
}

/* Mídia em tela cheia: foto WebP ou ilustração SVG de reserva */
.hs-prova .hs-prova__midia {
  position: absolute;
  inset: 0;
  z-index: 0;
  overflow: hidden;
}

.hs-prova .hs-prova__foto,
.hs-prova .hs-prova__arte {
  display: block;
  width: 100%;
  height: 100%;
  transition: transform 0.6s cubic-bezier(0.2, 0.7, 0.2, 1);
}

.hs-prova .hs-prova__foto {
  object-fit: cover;
  object-position: center 30%;
}

.hs-prova .hs-prova__arte {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding-top: 10%;
  background:
    radial-gradient(circle at 76% 24%, rgba(124, 115, 230, 0.3) 0%, transparent 60%),
    linear-gradient(160deg, var(--ui-indigo-800) 0%, var(--ui-navy) 100%);
}

.hs-prova .hs-prova__arte-svg {
  display: block;
  width: 88%;
  height: auto;
  max-height: 54%;
}

.hs-prova .hs-prova__arte-mapa {
  position: relative;
  display: block;
  width: 72%;
  max-height: 54%;
  aspect-ratio: 821 / 744;
}

.hs-prova .hs-prova__mapa-base {
  display: block;
  width: 100%;
  height: auto;
  opacity: 0.35;
}

.hs-prova .hs-prova__mapa-pontos {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hs-prova .hs-prova__card:hover .hs-prova__foto,
.hs-prova .hs-prova__card:focus-visible .hs-prova__foto,
.hs-prova .hs-prova__card:hover .hs-prova__arte,
.hs-prova .hs-prova__card:focus-visible .hs-prova__arte {
  transform: scale(1.06);
}

/* Véu para contraste AA do texto branco sobre qualquer imagem */
.hs-prova .hs-prova__veu {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(
    to top,
    rgba(28, 26, 74, 0.94) 0%,
    rgba(28, 26, 74, 0.72) 38%,
    rgba(28, 26, 74, 0.15) 72%,
    transparent 100%
  );
  pointer-events: none;
}

.hs-prova .hs-prova__veu::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(28, 26, 74, 0.2);
  opacity: 0;
  transition: opacity 0.35s ease;
}

.hs-prova .hs-prova__card:hover .hs-prova__veu::after,
.hs-prova .hs-prova__card:focus-visible .hs-prova__veu::after {
  opacity: 1;
}

/* Selo de vidro no canto superior esquerdo */
.hs-prova .hs-prova__icone {
  position: absolute;
  top: 14px;
  left: 14px;
  z-index: 2;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.14);
  -webkit-backdrop-filter: blur(6px);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 15px;
}

/* Regra global do tema pinta os <i>: o ícone herda a cor do selo. */
.hs-prova .hs-prova__icone i {
  color: inherit;
}

.hs-prova .hs-prova__corpo {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 16px;
  color: #fff;
}

.hs-prova .hs-prova__destaque {
  display: block;
  color: #fff;
  font-weight: 700;
}

.hs-prova .hs-prova__numero {
  font-size: 40px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.hs-prova .hs-prova__sufixo {
  color: var(--ui-yellow);
}

.hs-prova .hs-prova__titulo {
  font-size: 19px;
  line-height: 1.15;
}

.hs-prova .hs-prova__legenda {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.38;
}

.hs-prova .hs-prova__acao {
  display: none;
  align-items: center;
  gap: 6px;
  margin-top: 4px;
  color: var(--ui-yellow);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.2;
}

.hs-prova .hs-prova__acao i {
  color: inherit;
  font-size: 12px;
}

@media (min-width: 576px) {
  #meet-universidade.hs-prova {
    padding: 56px 16px;
  }

  .hs-prova .secao-cabecalho {
    margin-bottom: 32px;
  }

  .hs-prova .hs-prova__grade {
    gap: 16px;
  }

  .hs-prova .hs-prova__card {
    aspect-ratio: 4 / 3.4;
  }

  .hs-prova .hs-prova__icone {
    top: 20px;
    left: 20px;
    width: 44px;
    height: 44px;
    font-size: 18px;
  }

  .hs-prova .hs-prova__corpo {
    gap: 8px;
    padding: 24px;
  }

  .hs-prova .hs-prova__numero {
    font-size: 56px;
  }

  .hs-prova .hs-prova__titulo {
    font-size: 26px;
  }

  .hs-prova .hs-prova__legenda {
    -webkit-line-clamp: 3;
    font-size: 15px;
    line-height: 1.42;
  }

  .hs-prova .hs-prova__acao {
    display: inline-flex;
  }
}

@media (min-width: 768px) {
  #meet-universidade.hs-prova {
    padding: 96px 16px;
  }

  .hs-prova .secao-cabecalho {
    margin-bottom: 40px;
  }
}

@media (min-width: 992px) {
  .hs-prova .hs-prova__grade {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 20px;
  }

  .hs-prova .hs-prova__card {
    aspect-ratio: 4 / 5;
  }
}

/* Desktop com ponteiro preciso: linha "Conheça a Universo →" aparece só no hover/foco. No toque fica sempre visível. */
@media (min-width: 992px) and (hover: hover) and (pointer: fine) {
  .hs-prova .hs-prova__acao {
    opacity: 0;
    transform: translateY(6px);
    transition:
      opacity 0.25s ease,
      transform 0.25s ease;
  }

  .hs-prova .hs-prova__card:hover .hs-prova__acao,
  .hs-prova .hs-prova__card:focus-visible .hs-prova__acao {
    opacity: 1;
    transform: translateY(0);
  }
}

/* ================================================================== */
/* 2. NOSSAS UNIDADES                                                 */
/* ================================================================== */

#our-units.hs-uni {
  padding: 36px 16px;
  background: var(--ui-bg-indigo);
  color: #fff;
}

.hs-uni .secao-cabecalho {
  margin-bottom: 18px;
}

.hs-uni .hs-uni__layout {
  max-width: 1240px;
  margin: 0 auto;
}

/* Abaixo de 992px não há mapa: só os filtros e a lista compacta. */
.hs-uni .hs-uni__mapa {
  display: none;
}

.hs-uni .hs-uni__grupos {
  min-width: 0;
}

/* ---- Filtros por estado ---- */
.hs-uni .hs-uni__filtros {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin: 0 0 8px;
  padding: 2px 32px 4px 2px;
  overflow-x: auto;
  scroll-snap-type: x proximity;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -webkit-mask-image: linear-gradient(to right, #000 84%, transparent 100%);
  mask-image: linear-gradient(to right, #000 84%, transparent 100%);
}

.hs-uni .hs-uni__filtros::-webkit-scrollbar {
  display: none;
}

.hs-uni .hs-uni__filtro {
  display: inline-flex;
  flex: none;
  align-items: center;
  gap: 8px;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.86);
  font-family: var(--ui-font);
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.05em;
  line-height: 1;
  text-transform: uppercase;
  scroll-snap-align: start;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease,
    color 0.2s ease,
    transform 0.2s ease;
}

.hs-uni .hs-uni__filtro:hover {
  border-color: rgba(255, 207, 0, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.hs-uni .hs-uni__filtro.is-ativo {
  border-color: var(--ui-yellow);
  background: var(--ui-yellow);
  color: var(--ui-navy);
  box-shadow: 0 10px 24px -14px rgba(255, 207, 0, 0.85);
}

.hs-uni .hs-uni__filtro:focus-visible {
  outline: 3px solid var(--ui-yellow);
  outline-offset: 2px;
}

.hs-uni .hs-uni__filtro-qtd {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: var(--ui-yellow);
  font-size: 11px;
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}

.hs-uni .hs-uni__filtro.is-ativo .hs-uni__filtro-qtd {
  background: rgba(18, 3, 99, 0.14);
  color: var(--ui-navy);
}

.hs-uni .hs-uni__resumo {
  margin: 0 0 8px;
  color: rgba(255, 255, 255, 0.68);
  font-size: 12.5px;
  line-height: 1.3;
}

/* ---- Grupos por UF e rótulo de estado ---- */
.hs-uni .hs-uni__grupo + .hs-uni__grupo {
  margin-top: 8px;
}

.hs-uni .hs-uni__grupo[hidden] {
  display: none;
}

.hs-uni .hs-uni__grupo-rotulo {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 4px;
  color: rgba(255, 255, 255, 0.6);
  font-size: 11.5px;
  font-weight: 700;
  letter-spacing: 0.12em;
  line-height: 1.25;
  text-transform: uppercase;
}

.hs-uni .hs-uni__grupo-rotulo[hidden] {
  display: none;
}

.hs-uni .hs-uni__grupo-uf {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 6px;
  border-radius: 4px;
  background: var(--ui-yellow);
  color: var(--ui-navy);
  font-size: 10.5px;
  font-weight: 700;
  letter-spacing: 0.06em;
  line-height: 1.1;
}

/* ---- Lista de unidades (celular < 576px: 1 coluna de linhas compactas) ---- */
.hs-uni .hs-uni__lista {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0;
  margin: 0;
  padding: 0;
  list-style: none;
}

.hs-uni .hs-uni__item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  margin: 0;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.hs-uni .hs-uni__item:last-child {
  border-bottom-color: rgba(255, 255, 255, 0.08);
}

.hs-uni .hs-uni__item[hidden] {
  display: none;
}

.hs-uni .hs-uni__midia {
  position: relative;
  display: block;
  flex: none;
  width: 76px;
  height: 76px;
  overflow: hidden;
  border-radius: var(--ui-radius-sm);
  background: var(--ui-indigo-900);
}

.hs-uni .hs-uni__foto {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s cubic-bezier(0.22, 1, 0.36, 1);
}

.hs-uni .hs-uni__item:hover .hs-uni__foto,
.hs-uni .hs-uni__item:focus-within .hs-uni__foto,
.hs-uni .hs-uni__item.is-ativo .hs-uni__foto {
  transform: scale(1.05);
}

.hs-uni .hs-uni__corpo {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.hs-uni .hs-uni__link {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  color: #fff;
  text-decoration: none;
}

/* Link estendido cobre o item inteiro (incluindo miniatura e "Ver campus"); o CTA fica acima com z-index: 2. */
.hs-uni .hs-uni__link::after {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 1;
}

.hs-uni .hs-uni__link:hover {
  color: #fff;
  text-decoration: none;
}

.hs-uni .hs-uni__link:focus-visible {
  outline: none;
}

.hs-uni .hs-uni__link:focus-visible::after {
  border-radius: var(--ui-radius);
  outline: 3px solid var(--ui-yellow);
  outline-offset: 2px;
}

.hs-uni .hs-uni__nome {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  line-height: 1.15;
}

.hs-uni .hs-uni__cidade {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: rgba(255, 255, 255, 0.7);
  font-size: 12.5px;
  line-height: 1.2;
}

/* Regra global do tema pinta <i>: define explicitamente a cor dos ícones do cartão. */
.hs-uni .hs-uni__cidade i {
  flex: none;
  color: var(--ui-yellow);
  font-size: 10.5px;
  opacity: 0.9;
}

.hs-uni .hs-uni__acoes {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hs-uni .hs-uni__detalhes {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: rgba(255, 255, 255, 0.8);
  font-size: 12.5px;
  font-weight: 600;
  line-height: 1;
  white-space: nowrap;
  transition: color 0.2s ease;
}

.hs-uni .hs-uni__detalhes i {
  color: inherit;
  font-size: 10.5px;
  transition: transform 0.2s ease;
}

.hs-uni .hs-uni__item:hover .hs-uni__detalhes,
.hs-uni .hs-uni__item:focus-within .hs-uni__detalhes,
.hs-uni .hs-uni__item.is-ativo .hs-uni__detalhes {
  color: #fff;
}

.hs-uni .hs-uni__item:hover .hs-uni__detalhes i,
.hs-uni .hs-uni__item.is-ativo .hs-uni__detalhes i {
  transform: translateX(3px);
}

/* Botão sólido amarelo com texto índigo sempre; 44px no celular e 36px visual + ::after (-4px) no tablet/desktop. */
.hs-uni .hs-uni__cta {
  position: relative;
  z-index: 2;
  display: inline-flex;
  flex: none;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 16px;
  border: 1px solid var(--ui-yellow);
  border-radius: 999px;
  background: var(--ui-yellow);
  color: var(--ui-navy);
  font-size: 13px;
  font-weight: 700;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  transition:
    background-color 0.2s ease,
    border-color 0.2s ease;
}

.hs-uni .hs-uni__cta:hover,
.hs-uni .hs-uni__cta:focus-visible {
  border-color: var(--ui-yellow-dark);
  background: var(--ui-yellow-dark);
  color: var(--ui-navy);
  text-decoration: none;
}

.hs-uni .hs-uni__cta:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}

/* ---- Pinos e elementos do mapa ---- */
.hs-uni .hs-uni__chamada {
  stroke: rgba(255, 207, 0, 0.65);
  stroke-width: 2.5;
  stroke-dasharray: 5 5;
  stroke-linecap: round;
  pointer-events: none;
}

.hs-uni .hs-uni__rj-circulo {
  fill: rgba(255, 207, 0, 0.06);
  stroke: rgba(255, 207, 0, 0.6);
  stroke-width: 2.5;
  stroke-dasharray: 6 5;
  pointer-events: none;
  transition:
    fill 0.25s ease,
    stroke 0.25s ease,
    stroke-width 0.25s ease;
}

.hs-uni .hs-uni__rj-circulo.is-destaque {
  fill: rgba(255, 207, 0, 0.14);
  stroke: var(--ui-yellow);
  stroke-width: 3.5;
}

.hs-uni .hs-pino {
  cursor: pointer;
  transition: opacity 0.25s ease;
}

.hs-uni .hs-pino.is-esmaecido {
  opacity: 0.24;
}

.hs-uni .hs-pino.is-esmaecido.is-ativo {
  opacity: 1;
}

.hs-uni .hs-pino__halo {
  fill: var(--ui-yellow);
  opacity: 0.16;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.hs-uni .hs-pino__ponto {
  fill: var(--ui-yellow);
  stroke: var(--ui-indigo-900);
  stroke-width: 3;
  transition:
    fill 0.2s ease,
    stroke 0.2s ease,
    r 0.2s ease;
}

.hs-uni .hs-pino__alvo {
  fill: transparent;
  stroke: none;
}

.hs-uni .hs-pino__rotulo {
  fill: #fff;
  font-family: var(--ui-font);
  font-size: 22px;
  font-weight: 700;
  paint-order: stroke;
  stroke: var(--ui-indigo-900);
  stroke-width: 6px;
  stroke-linejoin: round;
  pointer-events: none;
  user-select: none;
}

.hs-uni .hs-pino.is-ativo .hs-pino__halo {
  opacity: 0.42;
}

.hs-uni .hs-pino.is-ativo .hs-pino__ponto {
  fill: #fff;
  stroke: var(--ui-yellow);
  stroke-width: 4;
  r: 14px;
}

.hs-uni .hs-pino.is-ativo .hs-pino__rotulo {
  fill: var(--ui-yellow);
}

/* ---- Tablet (>= 576px): cartões horizontais compactos em 2 colunas ---- */
@media (min-width: 576px) {
  #our-units.hs-uni {
    padding: 56px 16px;
  }

  .hs-uni .secao-cabecalho {
    margin-bottom: 32px;
  }

  .hs-uni .hs-uni__grupos {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    column-gap: 14px;
    row-gap: 18px;
    align-content: start;
  }

  .hs-uni .hs-uni__filtros,
  .hs-uni .hs-uni__resumo,
  .hs-uni .hs-uni__grupo {
    grid-column: 1 / -1;
  }

  .hs-uni .hs-uni__grupo--unico {
    grid-column: auto;
  }

  .hs-uni .hs-uni__filtros {
    margin-bottom: 0;
  }

  .hs-uni .hs-uni__resumo {
    margin-bottom: 0;
    font-size: 13px;
  }

  .hs-uni .hs-uni__grupo + .hs-uni__grupo {
    margin-top: 0;
  }

  .hs-uni .hs-uni__grupo-rotulo {
    margin-bottom: 6px;
    font-size: 12px;
  }

  .hs-uni .hs-uni__lista {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
  }

  .hs-uni .hs-uni__grupo--unico .hs-uni__lista {
    grid-template-columns: minmax(0, 1fr);
  }

  .hs-uni .hs-uni__item {
    align-items: stretch;
    padding: 12px;
    border: 1px solid rgba(255, 255, 255, 0.12);
    border-radius: var(--ui-radius);
    background: rgba(255, 255, 255, 0.06);
  }

  .hs-uni .hs-uni__item:last-child {
    border-bottom-color: rgba(255, 255, 255, 0.12);
  }

  .hs-uni .hs-uni__item:hover,
  .hs-uni .hs-uni__item:focus-within,
  .hs-uni .hs-uni__item.is-ativo {
    border-color: rgba(255, 207, 0, 0.55);
    background: rgba(255, 255, 255, 0.11);
  }

  .hs-uni .hs-uni__midia {
    width: 104px;
    height: 88px;
    align-self: center;
  }

  .hs-uni .hs-uni__corpo {
    justify-content: space-between;
    gap: 6px;
  }

  .hs-uni .hs-uni__nome {
    font-size: 17px;
  }

  .hs-uni .hs-uni__cidade {
    font-size: 13px;
  }

  .hs-uni .hs-uni__cta {
    min-height: 36px;
    padding: 0 14px;
    font-size: 12.5px;
  }

  /* Área de toque de 44px para o CTA de 36px no desenho */
  .hs-uni .hs-uni__cta::after {
    content: "";
    position: absolute;
    inset: -4px;
  }
}

@media (min-width: 768px) {
  #our-units.hs-uni {
    padding: 96px 16px;
  }

  .hs-uni .secao-cabecalho {
    margin-bottom: 40px;
  }

  .hs-uni .hs-uni__filtros {
    flex-wrap: wrap;
    overflow-x: visible;
    padding: 2px;
    scroll-snap-type: none;
    -webkit-mask-image: none;
    mask-image: none;
  }
}

/* ---- Desktop (>= 992px): mapa sticky à esquerda com lupa do RJ, lista compacta à direita ---- */
@media (min-width: 992px) {
  .hs-uni .hs-uni__layout {
    display: grid;
    grid-template-columns: minmax(0, 5fr) minmax(0, 7fr);
    gap: 48px;
    align-items: start;
  }

  .hs-uni .hs-uni__mapa {
    position: sticky;
    top: 112px;
    display: block;
    width: 100%;
    margin: 0;
    padding-bottom: 124px;
  }

  .hs-uni .hs-uni__mapa::before {
    content: "";
    position: absolute;
    inset: -8% -8% 14% -8%;
    z-index: 0;
    background: radial-gradient(circle at 52% 48%, rgba(124, 115, 230, 0.28) 0%, transparent 66%);
    pointer-events: none;
  }

  .hs-uni .hs-uni__mapa-palco {
    position: relative;
    z-index: 1;
    width: 100%;
    aspect-ratio: 821 / 744;
  }

  .hs-uni .hs-uni__mapa-palco > img {
    display: block;
    width: 100%;
    height: auto;
  }

  .hs-uni .hs-uni__pinos {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    overflow: visible;
  }

  .hs-uni .hs-uni__tip {
    position: absolute;
    z-index: 4;
    padding: 6px 12px;
    border: 1px solid rgba(255, 255, 255, 0.24);
    border-radius: 10px;
    background: var(--ui-navy);
    box-shadow: var(--ui-shadow-pop);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    line-height: 1.3;
    pointer-events: none;
    transform: translate(-50%, -175%);
    white-space: nowrap;
  }

  /* Lupa circular de 200px no canto inferior direito do mapa */
  .hs-uni .hs-uni__lupa {
    position: absolute;
    right: 0;
    bottom: 0;
    z-index: 3;
    width: 200px;
    height: 200px;
    overflow: hidden;
    border: 2px solid var(--ui-yellow);
    border-radius: 50%;
    background: radial-gradient(circle at 50% 45%, #2b276b 0%, var(--ui-indigo-900) 100%);
    box-shadow: 0 18px 36px -14px rgba(8, 6, 28, 0.85);
    transition:
      transform 0.25s ease,
      box-shadow 0.25s ease,
      opacity 0.25s ease;
  }

  .hs-uni .hs-uni__lupa.is-destaque {
    box-shadow:
      0 0 0 4px rgba(255, 207, 0, 0.22),
      0 22px 42px -12px rgba(255, 207, 0, 0.38);
    transform: scale(1.04);
  }

  .hs-uni .hs-uni__lupa.is-esmaecido {
    opacity: 0.55;
  }

  .hs-uni .hs-uni__lupa-selo {
    position: absolute;
    top: 12px;
    left: 50%;
    z-index: 2;
    padding: 2px 9px;
    border-radius: 999px;
    background: rgba(18, 3, 99, 0.82);
    border: 1px solid rgba(255, 207, 0, 0.45);
    color: var(--ui-yellow);
    font-size: 10.5px;
    font-weight: 700;
    letter-spacing: 0.1em;
    line-height: 1.3;
    transform: translateX(-50%);
    pointer-events: none;
  }

  .hs-uni .hs-uni__lupa-svg {
    display: block;
    width: 100%;
    height: 100%;
  }

  .hs-uni .hs-pino--lupa .hs-pino__ponto {
    stroke-width: 0.8;
  }

  .hs-uni .hs-pino--lupa.is-ativo .hs-pino__ponto {
    stroke-width: 1.05;
    r: 3.1px;
  }

  .hs-uni .hs-pino--lupa .hs-pino__rotulo {
    font-size: 3.9px;
    stroke-width: 1.3px;
  }
}

/* Entrada dos pinos: só quando o JS liga .hs-uni--anim (sem reduced-motion). Sem a classe, os pinos já aparecem. */
.hs-uni.hs-uni--anim .hs-pino__corpo {
  transform: scale(0);
}

.hs-uni.hs-uni--anim.is-visivel .hs-pino__corpo {
  transform: scale(1);
  transition: transform 0.45s cubic-bezier(0.2, 0.9, 0.3, 1.3) calc(var(--hs-i, 0) * 90ms);
}

/* Pulso contínuo discreto no halo dos pinos (escalonado por --hs-i) e mais forte no ativo */
.hs-uni.hs-uni--anim.is-visivel .hs-pino__halo {
  animation: hs-pulso-suave 2.8s ease-in-out calc(var(--hs-i, 0) * 180ms) infinite;
}

.hs-uni.hs-uni--anim .hs-pino.is-ativo .hs-pino__halo {
  animation: hs-pulso 1.8s ease-in-out infinite;
}

@keyframes hs-pulso-suave {
  0%,
  100% {
    opacity: 0.2;
    transform: scale(0.95);
  }

  50% {
    opacity: 0.06;
    transform: scale(1.22);
  }
}

@keyframes hs-pulso {
  0%,
  100% {
    opacity: 0.42;
    transform: scale(1);
  }

  50% {
    opacity: 0.14;
    transform: scale(1.3);
  }
}

/* ================================================================== */
/* 3. MEDICINA                                                        */
/* ================================================================== */

#med-section-pc.hs-med,
#med-section-mobile.hs-med {
  margin: 0;
  padding: 40px 16px;
  background: var(--ui-bg-indigo);
}

/* Os dois blocos são alternados pelo module.js (jQuery .show()/.hide() inline, corte em 783px). Aqui só o estado
   inicial, para não piscar o bloco errado antes do JS. Sem !important: o display inline do jQuery precisa vencer. */
@media (max-width: 783px) {
  #med-section-pc.hs-med {
    display: none;
  }
}

@media (min-width: 784px) {
  #med-section-mobile.hs-med {
    display: none;
  }

  #med-section-pc.hs-med {
    padding-top: 64px;
    padding-bottom: 64px;
  }
}

.hs-med .hs-med__palco {
  max-width: 1200px;
  margin: 0 auto;
  overflow: hidden;
  border-radius: var(--ui-radius-lg);
  box-shadow: var(--ui-shadow-pop);
  line-height: 0;
}

.hs-med .hs-med__palco img {
  display: block;
  width: 100%;
  height: auto;
}

.hs-med .hs-med__acoes {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 12px;
  margin-top: 28px;
}

.hs-med .hs-med__btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 48px;
  padding: 0 28px;
  border: 2px solid transparent;
  border-radius: 999px;
  font-family: var(--ui-font);
  font-size: 16px;
  font-weight: 700;
  line-height: 1.2;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.2s ease,
    color 0.2s ease,
    border-color 0.2s ease;
}

.hs-med .hs-med__btn i {
  color: inherit;
}

.hs-med .hs-med__btn--primario {
  background: var(--ui-yellow);
  color: var(--ui-navy);
}

.hs-med .hs-med__btn--primario:hover,
.hs-med .hs-med__btn--primario:focus-visible {
  background: var(--ui-yellow-dark);
  color: var(--ui-navy);
  text-decoration: none;
}

.hs-med .hs-med__btn--contorno {
  border-color: #fff;
  background: transparent;
  color: #fff;
}

.hs-med .hs-med__btn--contorno:hover,
.hs-med .hs-med__btn--contorno:focus-visible {
  background: #fff;
  color: var(--ui-navy);
  text-decoration: none;
}

.hs-med .hs-med__btn:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

@media (max-width: 575.98px) {
  .hs-med .hs-med__acoes {
    flex-direction: column;
    align-items: stretch;
  }
}

/* ================================================================== */
/* Movimento reduzido: sem transições, sem pulso e sem entrada        */
/* ================================================================== */
@media (prefers-reduced-motion: reduce) {
  .hs-prova *,
  .hs-prova *::after,
  .hs-uni *,
  .hs-med * {
    animation: none;
    transition: none;
  }

  .hs-prova .hs-prova__card:hover .hs-prova__foto,
  .hs-prova .hs-prova__card:focus-visible .hs-prova__foto,
  .hs-prova .hs-prova__card:hover .hs-prova__arte,
  .hs-prova .hs-prova__card:focus-visible .hs-prova__arte,
  .hs-prova .hs-prova__acao,
  .hs-uni .hs-uni__item:hover .hs-uni__foto,
  .hs-uni .hs-uni__item:focus-within .hs-uni__foto,
  .hs-uni .hs-uni__item.is-ativo .hs-uni__foto,
  .hs-uni .hs-uni__item:hover .hs-uni__detalhes i,
  .hs-uni .hs-uni__item.is-ativo .hs-uni__detalhes i,
  .hs-uni .hs-uni__lupa.is-destaque {
    transform: none;
  }

  .hs-uni.hs-uni--anim .hs-pino__corpo {
    transform: none;
  }
}
