


.login-branding.o3d-panel {
  display: flex !important;
  background:
    radial-gradient(60% 50% at 50% 46%, rgba(0,194,255,.11) 0%, transparent 70%),
    radial-gradient(40% 35% at 15% 88%, rgba(167,139,250,.09) 0%, transparent 70%),
    radial-gradient(35% 30% at 88% 10%, rgba(56,189,248,.08) 0%, transparent 70%),
    linear-gradient(160deg, #060a13 0%, #0a1020 55%, #050811 100%);
}
.o3d-panel .login-brand-content { max-width: 720px; }


.o3d-sky {
  position: absolute; inset: 0; pointer-events: none; opacity: .55;
  background-image:
    radial-gradient(rgba(255,255,255,.55) .6px, transparent .8px),
    radial-gradient(rgba(0,194,255,.45) .7px, transparent .9px);
  background-size: 120px 120px, 190px 190px;
  background-position: 0 0, 60px 90px;
  -webkit-mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 85%);
          mask-image: radial-gradient(70% 60% at 50% 45%, #000 0%, transparent 85%);
}


.o3d-stage {
  position: relative;
  width: min(720px, 100%);
  aspect-ratio: 1 / .78;
  margin: 0 auto;
  perspective: 1200px;
  user-select: none; -webkit-user-select: none;
}
.o3d-scene {
  position: absolute; inset: 0;
  transform-style: preserve-3d;
  transition: transform .6s cubic-bezier(.2,.7,.2,1);
}


.o3d-tracks { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; pointer-events: none; }
.o3d-track { fill: none; stroke-width: 1; }
.o3d-track.r1 { stroke: rgba(255,255,255,.14); }
.o3d-track.r2 { stroke: rgba(0,194,255,.22); stroke-dasharray: 3 7; }
.o3d-track.r3 { stroke: rgba(167,139,250,.18); stroke-dasharray: 1 9; }
.o3d-track.tenso { stroke: rgba(0,194,255,.75); stroke-dasharray: none; stroke-width: 1.6; }
.o3d-comet { fill: none; stroke-width: 2.4; stroke-linecap: round; filter: url(#o3dBlur); }
.o3d-comet.r1 { stroke: #00c2ff; }
.o3d-comet.r2 { stroke: #38bdf8; opacity: .8; }
.o3d-comet.r3 { stroke: #a78bfa; opacity: .7; }
.o3d-comet-core { fill: none; stroke-width: 1.2; stroke-linecap: round; stroke: #fff; opacity: .85; }


.o3d-floor {
  position: absolute; left: 50%; top: 78%;
  width: 40%; height: 8%;
  transform: translateX(-50%);
  border-radius: 50%;
  background: radial-gradient(closest-side, rgba(0,194,255,.30), rgba(0,194,255,.06) 60%, transparent);
  filter: blur(6px);
  animation: o3dFloor 5s ease-in-out infinite;
  pointer-events: none;
}
@keyframes o3dFloor { 0%,100% { opacity: .75; transform: translateX(-50%) scaleX(1); } 50% { opacity: 1; transform: translateX(-50%) scaleX(1.08); } }


.o3d-core {
  position: absolute; left: 50%; top: 45%;
  width: 16%; aspect-ratio: 1;
  transform: translate(-50%, -50%);
  z-index: 50;
  padding: 0; border: 0; cursor: pointer;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  background:
    radial-gradient(circle at 32% 26%, rgba(255,255,255,.24) 0%, rgba(255,255,255,0) 26%),
    radial-gradient(circle at 70% 82%, rgba(0,194,255,.38) 0%, rgba(0,194,255,0) 45%),
    radial-gradient(circle at 50% 50%, #0f1a2c 0%, #070c16 72%);
  box-shadow:
    inset 0 0 0 1px rgba(0,194,255,.38),
    inset 0 -14px 34px rgba(0,194,255,.22),
    inset 0 10px 24px rgba(255,255,255,.05),
    0 0 0 10px rgba(0,194,255,.04),
    0 0 70px rgba(0,194,255,.30),
    0 30px 60px rgba(0,0,0,.6);
  transition: box-shadow .3s ease, filter .3s ease;   
}
.o3d-stage.mano, .o3d-stage.mano * { cursor: pointer !important; }
.o3d-core:hover, .o3d-core:focus-visible { filter: brightness(1.15); box-shadow: inset 0 0 0 1px rgba(0,194,255,.7), inset 0 -14px 34px rgba(0,194,255,.3), 0 0 0 10px rgba(0,194,255,.07), 0 0 100px rgba(0,194,255,.45), 0 30px 60px rgba(0,0,0,.6); outline: 0; }
.o3d-core::before { 
  content: ""; position: absolute; inset: -14%;
  border-radius: 50%;
  background: radial-gradient(circle, transparent 58%, rgba(0,194,255,.20) 66%, transparent 74%);
  animation: o3dBreath 4s ease-in-out infinite;
  pointer-events: none;
}
.o3d-core::after { 
  content: ""; position: absolute; inset: 0; border-radius: 50%;
  border: 2px solid rgba(0,194,255,.9); opacity: 0; pointer-events: none;
}
.o3d-core.boom::after { animation: o3dBoom .9s cubic-bezier(.2,.7,.2,1); }
.o3d-core img { width: 64%; height: auto; filter: drop-shadow(0 0 14px rgba(0,194,255,.5)); position: relative; pointer-events: none; }
@keyframes o3dFloat  { 0%,100% { transform: translate(-50%, -50%); } 50% { transform: translate(-50%, -54%); } }
@keyframes o3dBreath { 0%,100% { transform: scale(.96); opacity: .7; } 50% { transform: scale(1.06); opacity: 1; } }
@keyframes o3dBoom   { 0% { transform: scale(1); opacity: .95; } 100% { transform: scale(3.2); opacity: 0; } }


.o3d-item {
  position: absolute; left: 50%; top: 45%;
  width: 0; height: 0;
  will-change: transform, opacity, filter;
}
.o3d-orb {
  position: absolute; left: 0; top: 0;
  transform: translate(-50%, -50%);
  display: flex; flex-direction: column; align-items: center; gap: 7px;
}
.o3d-ico {
  position: relative;
  width: 58px; height: 58px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  padding: 0; border: 0; cursor: pointer; touch-action: none;
  background:
    radial-gradient(circle at 34% 28%, rgba(255,255,255,.30) 0%, rgba(255,255,255,0) 34%),
    radial-gradient(circle at 50% 120%, color-mix(in srgb, var(--c) 45%, transparent) 0%, transparent 60%),
    linear-gradient(160deg, #182235 0%, #0b111c 100%);
  box-shadow:
    inset 0 0 0 1px color-mix(in srgb, var(--c) 45%, transparent),
    inset 0 -8px 18px color-mix(in srgb, var(--c) 22%, transparent),
    0 0 26px color-mix(in srgb, var(--c) 35%, transparent),
    0 14px 26px rgba(0,0,0,.55);
  transition: transform .25s cubic-bezier(.2,.8,.2,1.4), box-shadow .25s ease;
}
.o3d-item.hover .o3d-ico, .o3d-ico:focus-visible { transform: scale(1.12); outline: 0; box-shadow: inset 0 0 0 1.5px var(--c), inset 0 -8px 18px color-mix(in srgb, var(--c) 30%, transparent), 0 0 40px color-mix(in srgb, var(--c) 60%, transparent), 0 14px 26px rgba(0,0,0,.55); }
.o3d-item.arrastrando .o3d-ico { transform: scale(1.22); box-shadow: inset 0 0 0 2px var(--c), 0 0 60px color-mix(in srgb, var(--c) 75%, transparent), 0 18px 34px rgba(0,0,0,.6); }
.o3d-item.activo .o3d-ico { box-shadow: inset 0 0 0 2px var(--c), 0 0 50px color-mix(in srgb, var(--c) 70%, transparent), 0 14px 26px rgba(0,0,0,.55); }
.o3d-ico i { font-size: 24px; color: var(--c); filter: drop-shadow(0 0 8px color-mix(in srgb, var(--c) 60%, transparent)); pointer-events: none; }
.o3d-item.r3 .o3d-ico { width: 48px; height: 48px; }
.o3d-item.r3 .o3d-ico i { font-size: 20px; }
.o3d-lbl {
  transition: opacity .35s ease;
  font-size: 12px; font-weight: 600; letter-spacing: .01em; white-space: nowrap;
  color: rgba(255,255,255,.9);
  padding: 3px 10px; border-radius: 50px;
  background: rgba(10,16,28,.72);
  border: 1px solid rgba(255,255,255,.10);
  backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px);
  pointer-events: none;
}
.o3d-item.atras .o3d-lbl { opacity: 0; }


.o3d-c-fact { --c: #00c2ff; } .o3d-c-inv { --c: #38bdf8; } .o3d-c-caja { --c: #34d399; }
.o3d-c-ia   { --c: #e879f9; } .o3d-c-guia { --c: #fb7185; } .o3d-c-rep { --c: #f59e0b; }
.o3d-c-sun  { --c: #22c55e; } .o3d-c-suc { --c: #a78bfa; } .o3d-c-cob { --c: #facc15; }
.o3d-c-mer  { --c: #f97316; } .o3d-c-app { --c: #60a5fa; } .o3d-c-con { --c: #2dd4bf; }


.o3d-card {
  position: absolute; z-index: 120;
  width: min(300px, calc(100% - 16px));
  padding: 14px 16px 15px;
  border-radius: 16px;
  color: #e6edf6;
  background: linear-gradient(160deg, rgba(20,30,48,.92), rgba(8,13,23,.94));
  border: 1px solid color-mix(in srgb, var(--c, #00c2ff) 45%, transparent);
  box-shadow: 0 0 40px color-mix(in srgb, var(--c, #00c2ff) 25%, transparent), 0 24px 50px rgba(0,0,0,.6);
  backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px);
  text-align: left;
  animation: o3dCardIn .32s cubic-bezier(.2,.8,.2,1.2);
}
.o3d-card.grande { width: min(400px, calc(100% - 16px)); }
@keyframes o3dCardIn { from { opacity: 0; transform: translateY(8px) scale(.94); } to { opacity: 1; transform: none; } }
.o3d-card-x {
  position: absolute; top: 8px; right: 8px;
  width: 28px; height: 28px; border-radius: 50%;
  border: 0; background: rgba(255,255,255,.06); color: rgba(255,255,255,.7);
  display: flex; align-items: center; justify-content: center; font-size: 12px;
}
.o3d-card-x:hover { background: rgba(255,255,255,.14); color: #fff; }
.o3d-card-head { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; padding-right: 26px; }
.o3d-card-ico {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: color-mix(in srgb, var(--c, #00c2ff) 16%, transparent);
  color: var(--c, #00c2ff); font-size: 16px;
}
.o3d-card-tit { font-size: 15px; color: #fff; }
.o3d-card-txt { font-size: 13.5px; line-height: 1.55; color: rgba(230,237,246,.82); margin: 0; }
.o3d-card-cta {
  display: inline-flex; align-items: center; gap: 6px; margin-top: 12px;
  padding: 8px 16px; border-radius: 50px; font-size: 13px; font-weight: 700;
  background: var(--safe-accent, #00c2ff); color: #000; text-decoration: none;
}
.o3d-card-cta:hover { filter: brightness(1.1); color: #000; }

.o3d-hint {
  position: absolute; left: 0; right: 0; bottom: 2%;
  margin: 0; text-align: center; font-size: 12px; color: rgba(255,255,255,.42);
  pointer-events: none;
}


.o3d-panel .brand-title h1 { font-size: clamp(1.55rem, 2.5vw, 2.3rem); }
.o3d-panel .brand-foot p { color: rgba(255,255,255,.62); }


@media (max-width: 991px) {
  .login-wrap.o3d-wrap { flex-direction: column; }
  .login-branding.o3d-panel { border-right: 0; border-bottom: 1px solid var(--safe-border); padding: 1.75rem 1rem 1.25rem; }
  .o3d-panel .login-brand-content { justify-content: flex-start; gap: .5rem; }
  .o3d-stage { width: min(640px, 100%); aspect-ratio: 1 / .66; }
  .o3d-panel .brand-foot p { display: none; }
  .o3d-panel .orbit-seals { display: none; }
}
@media (max-width: 575px) {
  
  .login-form-area { order: -1; }
  .login-branding.o3d-panel { border-bottom: 0; border-top: 1px solid var(--safe-border); }
  .o3d-comet { filter: none; }
  .o3d-floor { animation: none; }
  .o3d-panel .brand-title h1 { font-size: 1.3rem; }
  .login-branding.o3d-panel { padding: 1.25rem .5rem .5rem; }
  .o3d-stage { aspect-ratio: 1 / .78; }
  .o3d-ico { width: 40px; height: 40px; }
  .o3d-ico i { font-size: 17px; }
  .o3d-item.r3 .o3d-ico { width: 34px; height: 34px; }
  .o3d-item.r3 .o3d-ico i { font-size: 14px; }
  .o3d-lbl { font-size: 10px; padding: 2px 7px; }
  .o3d-orb { gap: 4px; }
  .o3d-hint { font-size: 11px; }
}
@media (prefers-reduced-motion: reduce) {
  .o3d-core, .o3d-core::before, .o3d-floor { animation: none; }
}
