/* Casa Solar 3D — seção interativa (energia-solar) */
.cs3d { background: var(--white); border-radius: var(--radius-xl); box-shadow: var(--shadow-xl); border: 1px solid var(--neutral-200); overflow: hidden; font-family: var(--font-sans); color: var(--blue-950); }
.cs3d__bar { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; justify-content: space-between; padding: 14px 16px; border-bottom: 1px solid var(--neutral-200); }
.cs3d__group { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; }
.cs3d__group-label { font-size: .7rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-500); margin-right: 6px; }
.cs3d__tab { border: 0; background: transparent; cursor: pointer; font: 600 .875rem/1 var(--font-sans); color: var(--neutral-600); padding: 10px 14px; border-radius: var(--radius-full); transition: background var(--transition-fast), color var(--transition-fast); }
.cs3d__tab:hover { background: var(--neutral-100); color: #133983; }
.cs3d__tab.is-active { background: #133983; color: var(--white); }
.cs3d__body { display: grid; grid-template-columns: minmax(0, 1fr) 360px; }
.cs3d__stage { position: relative; height: 620px; background: #dfe6ea; overflow: hidden; touch-action: pan-y; }
.cs3d__stage solar-scene { position: absolute; inset: 0; }
.cs3d__loading { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 600; color: #133983; background: #e9eef1; transition: opacity .4s; z-index: 2; }
.cs3d__hint { position: absolute; left: 12px; bottom: 12px; right: 12px; width: fit-content; max-width: calc(100% - 24px); font-size: .75rem; font-weight: 500; color: var(--neutral-700); background: rgba(255,255,255,.88); padding: 6px 10px; border-radius: var(--radius-sm); pointer-events: none; z-index: 1; }
.cs3d__zoom { position: absolute; right: 12px; top: 12px; z-index: 1; display: flex; flex-direction: column; background: rgba(255,255,255,.95); border-radius: var(--radius-md); box-shadow: var(--shadow-lg); overflow: hidden; }
.cs3d__zoom button { width: 44px; height: 44px; border: 0; background: transparent; cursor: pointer; display: grid; place-items: center; color: #133983; transition: background var(--transition-fast); }
.cs3d__zoom button + button { border-top: 1px solid var(--neutral-200); }
.cs3d__zoom button:hover { background: var(--green-50); }
.cs3d__zoom button:active { background: var(--green-100); }
.cs3d__zoom svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.cs3d__wheel { position: absolute; inset: 0; z-index: 1; display: grid; place-items: center; background: rgba(12,30,58,.45); opacity: 0; transition: opacity .25s; pointer-events: none; }
.cs3d__wheel span { color: #fff; font-weight: 600; font-size: 1.05rem; padding: 12px 18px; border-radius: var(--radius-full); background: rgba(12,30,58,.6); }
.cs3d__wheel.is-on { opacity: 1; }
.cs3d__stage:focus-visible { outline: 3px solid var(--green-400); outline-offset: -3px; }
.cs3d.is-fs, .cs3d.is-full { border-radius: 0; display: flex; flex-direction: column; }
.cs3d.is-full { position: fixed; inset: 0; z-index: 9999; }
.cs3d.is-fs .cs3d__body, .cs3d.is-full .cs3d__body { flex: 1; min-height: 0; }
.cs3d.is-fs .cs3d__stage, .cs3d.is-full .cs3d__stage { height: auto; min-height: 0; }
.cs3d.is-fs .cs3d__panel, .cs3d.is-full .cs3d__panel { max-height: none; }
.cs3d__panel { border-left: 1px solid var(--neutral-200); display: flex; flex-direction: column; min-height: 0; max-height: 620px; }
.cs3d__panel-head { padding: 24px 24px 18px; display: flex; flex-direction: column; gap: 10px; border-bottom: 1px solid var(--neutral-200); }
.cs3d__kicker { font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--green-600); }
.cs3d__title { font-size: 1.35rem; font-weight: 700; line-height: 1.25; color: #133983; margin: 0; text-wrap: pretty; }
.cs3d__text { font-size: .95rem; line-height: 1.6; color: var(--neutral-600); margin: 0; text-wrap: pretty; }
.cs3d__block { padding: 18px 24px; display: flex; flex-direction: column; gap: 12px; border-bottom: 1px solid var(--neutral-200); }
.cs3d__seg { display: grid; grid-template-columns: 1fr 1fr; gap: 4px; background: var(--neutral-100); padding: 4px; border-radius: var(--radius-full); }
.cs3d__seg button { border: 0; cursor: pointer; font: 600 .85rem/1 var(--font-sans); padding: 10px 8px; border-radius: var(--radius-full); background: transparent; color: var(--neutral-600); }
.cs3d__seg button.is-active { background: var(--white); color: #133983; box-shadow: var(--shadow-sm); }
.cs3d__switch { display: flex; align-items: center; gap: 10px; border: 0; background: none; padding: 0; cursor: pointer; font: 600 .9rem/1 var(--font-sans); color: var(--blue-950); }
.cs3d__switch i { width: 38px; height: 22px; border-radius: 11px; background: var(--neutral-300); position: relative; transition: background var(--transition-fast); flex: none; }
.cs3d__switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: left var(--transition-fast); }
.cs3d__switch.is-on i { background: var(--green-500); }
.cs3d__switch.is-on i::after { left: 19px; }
.cs3d__legend { display: grid; grid-template-columns: auto 1fr auto; gap: 10px 12px; align-items: center; font-size: .875rem; color: var(--neutral-700); }
.cs3d__legend b { width: 20px; height: 5px; border-radius: 3px; display: block; }
.cs3d__legend span:nth-child(3n) { font-weight: 700; color: var(--blue-950); white-space: nowrap; text-align: right; font-variant-numeric: tabular-nums; }
.cs3d__progress { display: flex; gap: 4px; }
.cs3d__progress button { flex: 1; height: 6px; border: 0; padding: 0; border-radius: 3px; background: var(--neutral-200); cursor: pointer; }
.cs3d__progress button.is-done { background: var(--green-500); }
.cs3d__nav { display: flex; justify-content: space-between; gap: 8px; margin-top: auto; padding: 18px 24px 24px; }
.cs3d__nav .btn { flex: 1; justify-content: center; }
.cs3d__btn-ghost { border: 1.5px solid var(--neutral-300); background: transparent; color: var(--blue-950); }
.cs3d__btn-ghost:disabled { opacity: .4; cursor: default; }
.cs3d__range { width: 100%; accent-color: #133983; }
.cs3d__range-row { display: flex; justify-content: space-between; font-size: .78rem; color: var(--neutral-500); }
.cs3d__parts { flex: 1; overflow: auto; padding: 8px 12px 16px; display: flex; flex-direction: column; gap: 2px; }
.cs3d__part { border: 0; background: transparent; text-align: left; cursor: pointer; font-family: var(--font-sans); padding: 11px 12px; border-radius: var(--radius-md); display: flex; flex-direction: column; gap: 6px; color: var(--blue-950); }
.cs3d__part:hover { background: var(--neutral-50); }
.cs3d__part.is-active { background: var(--green-50); }
.cs3d__part-name { display: flex; gap: 12px; align-items: baseline; font-size: .92rem; font-weight: 600; }
.cs3d__part-name em { font-style: normal; font-size: .72rem; font-weight: 700; color: var(--green-600); min-width: 18px; }
.cs3d__part p { margin: 0 0 0 30px; font-size: .86rem; line-height: 1.55; color: var(--neutral-600); }
.cs3d__row { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.cs3d__small-label { font-size: .72rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--neutral-500); }
@media (max-width: 960px) {
  .cs3d__body { grid-template-columns: minmax(0, 1fr); }
  .cs3d__stage { height: 440px; }
  .cs3d__panel { border-left: 0; border-top: 1px solid var(--neutral-200); max-height: none; }
  .cs3d__parts { max-height: 340px; }
}
@media (max-width: 560px) {
  .cs3d__bar { padding: 12px; }
  .cs3d__group { flex-wrap: nowrap; overflow-x: auto; width: 100%; scrollbar-width: none; }
  .cs3d__tab { white-space: nowrap; padding: 9px 12px; }
  .cs3d__stage { height: 380px; }
  .cs3d__zoom button { width: 40px; height: 40px; }
  .cs3d__panel-head, .cs3d__block, .cs3d__nav { padding-left: 18px; padding-right: 18px; }
}
