/* donut3d.css — dona 3D compartida (donut3d.js). Portfolio, ETF, Superinvestors, Congress y Owners.
   El escenario se inclina (--tx/--ty siguen al mouse); logos, % y centro miran al frente.
   --afd-ink va en variable para que theme.js no lo pase a claro en modo oscuro (las rebanadas
   tampoco cambian: sus colores van en stop-color de gradientes). */
.afd { --afd-ink: #16242a; --afd-tilt: 14deg; width: var(--afd-size, 280px); max-width: 100%; flex-shrink: 0; perspective: 900px; }
.afd__stage { --tx: 0deg; --ty: 0deg; position: relative; aspect-ratio: 248 / 252; transform-style: preserve-3d; transform: rotateX(calc(var(--afd-tilt) + var(--tx))) rotateY(var(--ty)); transition: transform .45s cubic-bezier(.2, .8, .2, 1); }
.afd__svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.afd__seg { cursor: pointer; transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease, filter .25s ease; }
.afd__seg.is-on { transform: translate(var(--dx), calc(var(--dy) - 6px)); filter: saturate(1.1); }
.afd-focus .afd__seg:not(.is-on) { opacity: .55; filter: saturate(.55); }
.afd__tag { position: absolute; z-index: 1; cursor: pointer; transform: translate(-50%, -50%) translateZ(16px) rotateX(calc(-1 * var(--afd-tilt) - var(--tx))) rotateY(calc(-1 * var(--ty))); transition: transform .4s cubic-bezier(.34, 1.56, .64, 1), opacity .25s ease; }
.afd__tag.is-on { transform: translate(-50%, -50%) translate(var(--dx), calc(var(--dy) - 6px)) translateZ(26px) rotateX(calc(-1 * var(--afd-tilt) - var(--tx))) rotateY(calc(-1 * var(--ty))) scale(1.2); }
.afd-focus .afd__tag:not(.is-on) { opacity: .45; }
/* el logo de cada página trae su propia clase; aquí se fija el tamaño y la forma */
.afd__tag:not(.afd__tag--pct) > :first-child { display: inline-flex !important; width: calc(var(--afd-size, 280px) * .13) !important; height: calc(var(--afd-size, 280px) * .13) !important; min-width: 0 !important; border-radius: 50% !important; border: 2px solid #fff !important; background: #fff; box-shadow: 0 2px 6px rgba(22, 36, 42, 0.12) !important; overflow: hidden; margin: 0 !important; }
.afd__tag:not(.afd__tag--pct) > :first-child img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 4px; border-radius: 0 !important; }
.afd__tag--pct > b { display: block; font: 800 14px 'Inter', sans-serif; color: #fff; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.35); font-variant-numeric: tabular-nums; }
.afd__tag--pct > b.is-dark { color: var(--afd-ink); text-shadow: none; }
.afd__center { position: absolute; aspect-ratio: 1; border-radius: 50%; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 1px; text-align: center; font-family: 'Inter', sans-serif; transform: translate(-50%, -50%) translateZ(12px) rotateX(calc(-1 * var(--afd-tilt) - var(--tx))) rotateY(calc(-1 * var(--ty))); }
.afd__center.is-link { cursor: pointer; }
.afd__center.is-swap > * { animation: afd-in .32s cubic-bezier(.2, .8, .2, 1) both; }
.afd__logo { display: inline-flex; margin-bottom: 3px; }
.afd__logo > :first-child { display: inline-flex !important; width: 40px !important; height: 40px !important; border-radius: 10px !important; box-shadow: 0 3px 8px rgba(22, 36, 42, 0.14); overflow: hidden; margin: 0 !important; }
.afd__logo > :first-child img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 3px; }
.afd__k { font: 800 9.5px 'Inter', sans-serif; letter-spacing: .12em; text-transform: uppercase; color: #8a9aa0; }
.afd__v { font: 800 22px 'Inter', sans-serif; letter-spacing: -0.02em; color: #16242a; font-variant-numeric: tabular-nums; }
.afd__t { font: 800 14px 'Inter', sans-serif; color: #16242a; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afd__t--long { font-size: 11px; line-height: 1.2; white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; color: #2C3E50; }
.afd__p { font: 800 24px 'Inter', sans-serif; letter-spacing: -0.02em; color: #285260; font-variant-numeric: tabular-nums; line-height: 1.1; }
.afd__s { font: 600 11px 'Inter', sans-serif; color: #8a9aa0; font-variant-numeric: tabular-nums; max-width: 92%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.afd__stack { display: flex; align-items: center; margin-top: 4px; }
.afd__stack > span { display: inline-flex !important; width: 24px !important; height: 24px !important; border-radius: 50% !important; margin: 0 0 0 -5px !important; border: 1.5px solid #fff !important; background: #fff; overflow: hidden; box-shadow: none !important; }
.afd__stack > span:first-child { margin-left: 0 !important; }
.afd__stack > span img { width: 100% !important; height: 100% !important; object-fit: contain; padding: 2px; }
.afd__stack i { font: 800 9.5px 'Inter', sans-serif; font-style: normal; color: #6b7b80; margin-left: 3px; }
.afd.is-intro .afd__tag { animation: afd-pop .55s cubic-bezier(.34, 1.56, .64, 1) both; animation-delay: calc(520ms + var(--i) * 70ms); }
.afd.is-intro .afd__center > * { animation: afd-in .5s .35s cubic-bezier(.2, .8, .2, 1) both; }
@keyframes afd-pop { from { opacity: 0; scale: .2; } to { opacity: 1; scale: 1; } }
@keyframes afd-in { from { opacity: 0; translate: 0 5px; } to { opacity: 1; translate: 0 0; } }
@media (prefers-reduced-motion: reduce) { .afd__stage, .afd__seg, .afd__tag { transition: none; } .afd__center.is-swap > * { animation: none; } }
/* filas de la leyenda de cada página (con data-k): se marcan junto con su rebanada */
.afd-row { transition: opacity .2s ease, background-color .2s ease; border-radius: 10px; }
.afd-row.is-on { background: rgba(84, 140, 146, 0.1); }
.afd-focus .afd-row:not(.is-on) { opacity: .45; }
