/* ============================================================
   COMPONENTE: Mapa "Ser Cuidada" — Cuidar de Quem Cuida
   Adaptado de componentes/mapa_ser_cuidada.html (Seção 5 do briefing).
   Paleta própria (prefixo --mapa-) para não colidir com os tokens
   globais do site (ex.: --ouro aqui é mais claro/vivo de propósito).
   ============================================================ */
:root {
  --mapa-petroleo: #14212b;
  --mapa-roxo-fundo: #1a0f2e;
  --mapa-ametista: #6e4a8e;
  --mapa-ametista-viva: #9b5de5;
  --mapa-lilas: #d2b4f0;
  --mapa-ouro: #e2b947;
  --mapa-ouro-claro: #f4dc8a;
  --mapa-ouro-escuro: #b8891c;
  --mapa-branco: #fff;
}

.mapa-secao {
  position: relative;
  overflow: hidden;
  padding: 72px 16px 80px;
  color: var(--mapa-branco);
  font-family: "Manrope", system-ui, sans-serif;
  background: radial-gradient(ellipse 60% 50% at 30% 40%, rgba(155, 93, 229, 0.25), transparent 70%),
    radial-gradient(ellipse 50% 50% at 90% 90%, rgba(110, 74, 142, 0.35), transparent 70%),
    linear-gradient(180deg, #1a0f2e 0%, #230f3d 50%, #170b28 100%);
}

.mapa-cabecalho {
  text-align: center;
  max-width: 760px;
  margin: 0 auto 40px;
}
.mapa-cabecalho h2 {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: clamp(30px, 4.6vw, 52px);
  line-height: 1.08;
}
.mapa-ouro-texto {
  background: linear-gradient(180deg, var(--mapa-ouro-claro), var(--mapa-ouro) 45%, var(--mapa-ouro-escuro));
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}
.mapa-cabecalho p {
  margin-top: 16px;
  color: var(--mapa-lilas);
  font-size: clamp(16px, 1.6vw, 18px);
  line-height: 1.6;
}

.mapa-grid {
  max-width: 1240px;
  margin: 0 auto;
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr);
  gap: 48px;
  align-items: center;
}

/* ---------- RADIAL ---------- */
.radial {
  position: relative;
  width: 100%;
  aspect-ratio: 1;
  max-width: 760px;
  margin: 0 auto;
  container-type: inline-size;
}
.radial svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
}
.mapa-anel {
  fill: none;
  stroke-width: 0.25;
}
.mapa-anel-ext {
  stroke: url(#mapaGradOuro);
  stroke-width: 0.35;
  filter: url(#mapaBrilho);
}
.mapa-anel-meio {
  stroke: rgba(178, 120, 240, 0.75);
}
.mapa-anel-int {
  stroke: rgba(178, 120, 240, 0.6);
}
.mapa-anel-gira {
  fill: none;
  stroke: var(--mapa-ouro-claro);
  stroke-width: 0.35;
  stroke-dasharray: 2 10;
  opacity: 0.22;
  transform-origin: 50% 50%;
  animation: mapaGira 60s linear infinite;
}
@keyframes mapaGira {
  to {
    transform: rotate(360deg);
  }
}

.mapa-setor {
  fill: url(#mapaGradSetor);
  opacity: 0;
  transition: opacity 0.5s;
}
.mapa-setor.ativo {
  opacity: 1;
}

.mapa-centro {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 26%;
  aspect-ratio: 1;
  transform: translate(-50%, -50%);
  border-radius: 50%;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
  background: radial-gradient(circle at 50% 35%, #5b2f8f 0%, #2a1247 70%);
  box-shadow: 0 0 0 2px var(--mapa-ouro), 0 0 30px rgba(226, 185, 71, 0.55), inset 0 0 30px rgba(0, 0, 0, 0.4);
  animation: mapaPulsa 4s ease-in-out infinite;
}
@keyframes mapaPulsa {
  50% {
    box-shadow: 0 0 0 2px var(--mapa-ouro), 0 0 55px rgba(226, 185, 71, 0.8), inset 0 0 30px rgba(0, 0, 0, 0.4);
  }
}
.mapa-centro small {
  max-width: 80%;
  font-size: 1.3cqi;
  letter-spacing: 0.2em;
  color: var(--mapa-lilas);
  font-weight: 700;
  text-transform: uppercase;
}
.mapa-centro strong {
  font-family: "Fraunces", serif;
  font-weight: 800;
  font-size: 4.3cqi;
  line-height: 1;
  margin-top: 0.8cqi;
}

.mapa-pilar {
  position: absolute;
  transform: translate(-50%, -50%);
  cursor: pointer;
  z-index: 3;
  border: 2px solid var(--mapa-ouro);
  border-radius: 12px;
  padding: 0.9cqi 1.8cqi;
  text-align: center;
  min-width: 14cqi;
  background: linear-gradient(180deg, #6b35a8, #3d1a66);
  color: var(--mapa-branco);
  font-family: inherit;
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.35);
  transition: transform 0.3s, box-shadow 0.3s, background 0.3s;
}
.mapa-pilar b {
  display: block;
  font-size: 2.7cqi;
  font-weight: 800;
  letter-spacing: 0.04em;
}
.mapa-pilar span {
  display: block;
  font-size: 1.4cqi;
  font-weight: 700;
  color: var(--mapa-ouro-claro);
  margin-top: 0.2cqi;
  white-space: nowrap;
}
.mapa-pilar:hover,
.mapa-pilar.ativo {
  transform: translate(-50%, -50%) scale(1.04);
  background: linear-gradient(180deg, var(--mapa-ouro-claro), #c99a2e);
  color: var(--mapa-petroleo);
  box-shadow: 0 0 30px rgba(226, 185, 71, 0.7);
}
.mapa-pilar:hover span,
.mapa-pilar.ativo span {
  color: #3d1a66;
}
.mapa-pilar:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 3px;
}

.mapa-item {
  position: absolute;
  transform: translate(-50%, -50%);
  text-align: center;
  z-index: 2;
  font-weight: 700;
  line-height: 1.15;
  max-width: 14cqi;
  text-shadow: 0 0 4px #1a0f2e, 0 0 8px #1a0f2e, 0 0 12px #1a0f2e;
  transition: opacity 0.45s, transform 0.45s, color 0.45s;
  opacity: 0;
}
.mapa-item::before {
  content: "";
  display: block;
  width: 1cqi;
  height: 1cqi;
  min-width: 6px;
  min-height: 6px;
  border-radius: 50%;
  background: var(--mapa-ouro);
  margin: 0 auto 0.6cqi;
  box-shadow: 0 0 8px var(--mapa-ouro);
}
.mapa-item.pratica {
  font-size: 2.05cqi;
  color: #f1e6ff;
}
.mapa-item.transf {
  font-size: 2.2cqi;
  color: #ffffff;
}
.radial.visivel .mapa-item {
  opacity: 0.9;
}
.radial.focado .mapa-item {
  opacity: 0.28;
}
.radial.focado .mapa-item.ativo {
  opacity: 1;
  color: var(--mapa-ouro-claro);
  transform: translate(-50%, -50%) scale(1.12);
}

/* ---------- PAINEL ---------- */
.mapa-painel {
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(226, 185, 71, 0.35);
  border-radius: 22px;
  padding: 32px;
  backdrop-filter: blur(6px);
  min-height: 440px;
}
.mapa-abas {
  display: flex;
  gap: 8px;
  margin-bottom: 26px;
  flex-wrap: wrap;
}
.mapa-aba {
  flex: 1;
  min-width: 90px;
  border: 1px solid rgba(226, 185, 71, 0.5);
  background: transparent;
  color: var(--mapa-lilas);
  font: 800 14px "Manrope", sans-serif;
  letter-spacing: 0.12em;
  padding: 12px 8px;
  border-radius: 999px;
  cursor: pointer;
  transition: 0.25s;
}
.mapa-aba[aria-selected="true"] {
  background: linear-gradient(180deg, var(--mapa-ouro-claro), var(--mapa-ouro));
  color: var(--mapa-petroleo);
  border-color: transparent;
}
.mapa-aba:focus-visible {
  outline: 3px solid #fff;
  outline-offset: 2px;
}
.mapa-conteudo {
  animation: mapaEntra 0.45s ease;
}
@keyframes mapaEntra {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.mapa-conteudo h3 {
  font-family: "Fraunces", serif;
  font-size: clamp(28px, 3vw, 38px);
  font-weight: 800;
}
.mapa-conteudo .mapa-quem {
  color: var(--mapa-ouro-claro);
  font-weight: 700;
  font-size: 16px;
  margin-top: 4px;
}
.mapa-conteudo .mapa-desc {
  color: #e7daf5;
  font-size: 17px;
  line-height: 1.6;
  margin: 16px 0 22px;
}
.mapa-conteudo h4 {
  font-size: 12px;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--mapa-lilas);
  margin: 18px 0 10px;
}
.mapa-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  list-style: none;
}
.mapa-chips li {
  padding: 9px 14px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 700;
}
.mapa-chips.praticas li {
  background: rgba(155, 93, 229, 0.22);
  border: 1px solid rgba(178, 120, 240, 0.5);
}
.mapa-chips.transf li {
  background: rgba(226, 185, 71, 0.14);
  border: 1px solid rgba(226, 185, 71, 0.55);
  color: var(--mapa-ouro-claro);
}
.mapa-dica {
  margin-top: 22px;
  font-size: 13px;
  color: rgba(210, 180, 240, 0.75);
}

/* ---------- RESPONSIVO ---------- */
@media (max-width: 900px) {
  .mapa-grid {
    grid-template-columns: 1fr;
    gap: 28px;
  }
  .radial {
    max-width: 520px;
  }
  .mapa-item {
    display: none;
  }
  .mapa-pilar {
    min-width: 26cqi;
    padding: 2cqi 3cqi;
  }
  .mapa-pilar b {
    font-size: 4.6cqi;
  }
  .mapa-pilar span {
    font-size: 2.5cqi;
    white-space: normal;
  }
  .mapa-centro {
    width: 30%;
  }
  .mapa-centro small {
    font-size: 1.9cqi;
  }
  .mapa-centro strong {
    font-size: 4.6cqi;
  }
  .mapa-painel {
    padding: 24px 18px;
    min-height: 0;
  }
}

@media (prefers-reduced-motion: reduce) {
  .mapa-secao * {
    animation: none !important;
    transition: none !important;
  }
}
