/* =====================================================================
   Login 3D — rediseño de /login (4 idiomas)
   Todo con CSS (transform/opacity); sin imágenes ni librerías.
   Va después de login-form.css para ganarle.
   ===================================================================== */
:root {
  --lg-ink: #070a12;
  --lg-ink-2: #0d1322;
  --lg-mint: #7ed6a5;
  --lg-mint-hi: #3fe8a7;
  --lg-amber: #ffb547;
  --lg-sky: #7cb8ff;
  --lg-text: #12151d;
  --lg-muted: #5d6472;
  --lg-line: #e3e6ec;
  --lg-display: -apple-system, BlinkMacSystemFont, 'SF Pro Display', 'Segoe UI Variable Display', 'Segoe UI', system-ui, sans-serif;
  --lg-body: -apple-system, BlinkMacSystemFont, 'Segoe UI Variable Text', 'Segoe UI', 'Montserrat', system-ui, sans-serif;
  --lg-ease: cubic-bezier(0.22, 1, 0.36, 1);
}

body.lg3d { background: var(--lg-ink); color: #fff; }
body.lg3d .hero-section { display: none !important; }

/* ---------- Escenario ---------- */
.lg-main {
  position: relative; isolation: isolate; overflow: hidden;
  min-height: 100vh; min-height: 100svh; box-sizing: border-box;
  padding: 96px 24px 64px; display: grid; place-items: center;
  background:
    radial-gradient(55% 60% at 18% 30%, rgba(63, 232, 167, 0.16), transparent 60%),
    radial-gradient(45% 55% at 90% 85%, rgba(255, 181, 71, 0.10), transparent 65%),
    radial-gradient(40% 50% at 85% 5%, rgba(124, 184, 255, 0.12), transparent 60%),
    linear-gradient(180deg, #05070d 0%, var(--lg-ink) 55%, var(--lg-ink-2) 100%);
}
/* Rejilla en perspectiva */
.lg-main::before {
  content: ""; position: absolute; left: -20%; right: -20%; bottom: -10%; height: 50%; z-index: -1; pointer-events: none;
  background-image: linear-gradient(rgba(126, 214, 165, 0.14) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 214, 165, 0.14) 1px, transparent 1px);
  background-size: 64px 64px; transform: perspective(520px) rotateX(62deg); transform-origin: 50% 0;
  -webkit-mask-image: linear-gradient(180deg, transparent, #000 35%, #000 60%, transparent);
  mask-image: linear-gradient(180deg, transparent, #000 35%, #000 60%, transparent);
  animation: lg-grid 6s linear infinite;
}
/* Grano */
.lg-main::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0.06; mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.85' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

.lg-wrap { width: 100%; max-width: 1180px; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr); gap: 56px; align-items: center; }

/* ---------- Columna de arte ---------- */
.lg-art { position: relative; }
.lg-eyebrow {
  display: inline-flex; align-items: center; gap: 10px; padding: 9px 16px 9px 12px; border-radius: 999px;
  font: 700 0.76rem/1 var(--lg-body); letter-spacing: 0.16em; text-transform: uppercase; color: var(--lg-mint);
  border: 1px solid rgba(126, 214, 165, 0.28); background: rgba(126, 214, 165, 0.08);
  animation: lg-up 0.9s var(--lg-ease) both;
}
.lg-eyebrow::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; animation: lg-ping 2.4s ease-out infinite; }
.lg-title {
  font: 800 clamp(2.4rem, 5vw, 4.2rem)/1 var(--lg-display); letter-spacing: -0.045em; color: #fff; margin: 22px 0 18px;
}
.lg-title .lg-line { display: block; overflow: hidden; padding-bottom: 0.06em; }
.lg-title .lg-line > span { display: inline-block; animation: lg-rise 1s var(--lg-ease) both; }
.lg-title .lg-line:nth-child(2) > span { animation-delay: 0.08s; }
.lg-title .lg-mark { color: var(--lg-mint); }
.lg-sub { font: 500 clamp(1rem, 1.4vw, 1.12rem)/1.6 var(--lg-body); color: #b4bccb; max-width: 460px; margin: 0; animation: lg-up 1s 0.2s var(--lg-ease) both; }

/* Órbita 3D de categorías */
.lg-scene { position: relative; height: 300px; margin-top: 34px; perspective: 1000px; animation: lg-fade 1.2s 0.3s ease both; }
.lg-orb {
  position: absolute; left: 50%; top: 50%; width: 120px; height: 120px; margin: -60px 0 0 -60px; border-radius: 50%;
  background: radial-gradient(circle at 35% 30%, #d6ffe9 0%, var(--lg-mint-hi) 28%, #138a5c 62%, #06281a 100%);
  box-shadow: 0 0 60px rgba(63, 232, 167, 0.45), 0 0 140px rgba(63, 232, 167, 0.25), inset -12px -16px 30px rgba(0, 0, 0, 0.45);
  animation: lg-pulse 4s ease-in-out infinite;
}
.lg-orb::after { /* PublikaYA rocket glyph hecho con CSS: anillo */
  content: ""; position: absolute; inset: -18px; border-radius: 50%; border: 1px solid rgba(126, 214, 165, 0.35);
  animation: lg-halo 3s ease-out infinite;
}
.lg-ring { position: absolute; left: 50%; top: 50%; width: 0; height: 0; transform-style: preserve-3d; transform: rotateX(-14deg); }
.lg-ring-inner { position: absolute; transform-style: preserve-3d; animation: lg-spin 22s linear infinite; }
.lg-tile {
  position: absolute; left: -32px; top: -32px; width: 64px; height: 64px; border-radius: 18px;
  display: grid; place-items: center; font-size: 1.35rem; color: #fff;
  background: linear-gradient(160deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.04));
  border: 1px solid rgba(255, 255, 255, 0.18); box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.8);
  -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px);
  transform: rotateY(var(--a)) translateZ(190px);
}
.lg-tile:nth-child(1) { --a: 0deg; color: #ffb38a; }
.lg-tile:nth-child(2) { --a: 60deg; color: #ff9ec4; }
.lg-tile:nth-child(3) { --a: 120deg; color: var(--lg-mint); }
.lg-tile:nth-child(4) { --a: 180deg; color: var(--lg-sky); }
.lg-tile:nth-child(5) { --a: 240deg; color: #d7b4ff; }
.lg-tile:nth-child(6) { --a: 300deg; color: var(--lg-amber); }
.lg-orbit-line { position: absolute; left: 50%; top: 50%; width: 400px; height: 400px; margin: -200px 0 0 -200px; border-radius: 50%; border: 1px dashed rgba(126, 214, 165, 0.22); transform: rotateX(76deg); pointer-events: none; }

/* Chips flotantes */
.lg-chip {
  position: absolute; display: flex; align-items: center; gap: 10px; padding: 10px 14px 10px 10px; border-radius: 14px; white-space: nowrap;
  background: rgba(16, 22, 38, 0.8); border: 1px solid rgba(255, 255, 255, 0.12); color: #fff; font: 700 0.82rem/1.15 var(--lg-body);
  -webkit-backdrop-filter: blur(12px); backdrop-filter: blur(12px); box-shadow: 0 24px 44px -18px rgba(0, 0, 0, 0.8);
  animation: lg-bob 6s ease-in-out infinite; pointer-events: none;
}
.lg-chip small { display: block; font-weight: 500; color: #8f9ab0; font-size: 0.72rem; margin-top: 2px; }
.lg-chip .lg-ico { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: rgba(126, 214, 165, 0.15); color: var(--lg-mint); flex: none; }
.lg-chip.c1 { top: 4%; left: 0; }
.lg-chip.c2 { bottom: 2%; right: 4%; animation-delay: -3s; }
.lg-chip.c2 .lg-ico { background: rgba(255, 181, 71, 0.15); color: var(--lg-amber); }

/* ---------- Tarjeta del formulario ---------- */
body.lg3d .login-form {
  position: relative; max-width: 460px; width: 100%; margin: 0 0 0 auto; box-sizing: border-box;
  background: rgba(255, 255, 255, 0.97); color: var(--lg-text);
  border-radius: 26px; padding: 40px 36px 32px; border: 1px solid rgba(255, 255, 255, 0.6);
  box-shadow: 0 50px 100px -40px rgba(0, 0, 0, 0.9), 0 0 0 1px rgba(126, 214, 165, 0.08);
  transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg));
  transition: transform 0.6s var(--lg-ease);
  animation: lg-card 1s 0.15s var(--lg-ease) both;
}
/* Borde luminoso que gira alrededor de la tarjeta */
@property --lg-ang { syntax: '<angle>'; inherits: false; initial-value: 0deg; }
body.lg3d .login-form::before {
  content: ""; position: absolute; inset: -2px; border-radius: 28px; padding: 2px; pointer-events: none; z-index: -1;
  background: conic-gradient(from var(--lg-ang), transparent 0deg, transparent 240deg, var(--lg-mint-hi) 300deg, var(--lg-amber) 335deg, transparent 360deg);
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0); -webkit-mask-composite: xor;
  mask: linear-gradient(#000 0 0) content-box exclude, linear-gradient(#000 0 0);
  animation: lg-ang 5s linear infinite;
}
body.lg3d .login-form h1 { font: 800 1.9rem/1.1 var(--lg-display); letter-spacing: -0.03em; color: var(--lg-text); text-align: left; margin: 0 0 6px; }
.lg-card-sub { margin: 0 0 26px; color: var(--lg-muted); font: 500 0.95rem/1.5 var(--lg-body); }

/* Entrada escalonada de los elementos del formulario */
body.lg3d .login-form > * { animation: lg-up 0.7s var(--lg-ease) both; }
body.lg3d .login-form > *:nth-child(2) { animation-delay: 0.25s; }
body.lg3d .login-form > *:nth-child(3) { animation-delay: 0.3s; }
body.lg3d .login-form > *:nth-child(4) { animation-delay: 0.35s; }
body.lg3d .login-form > *:nth-child(5) { animation-delay: 0.4s; }
body.lg3d .login-form > *:nth-child(6) { animation-delay: 0.45s; }
body.lg3d .login-form > *:nth-child(n+7) { animation-delay: 0.5s; }

/* Campos con etiqueta flotante */
body.lg3d .lg-field { position: relative; margin: 0 0 16px; }
body.lg3d .lg-field input[type="email"], body.lg3d .lg-field input[type="password"], body.lg3d .lg-field input[type="text"] {
  width: 100%; height: 58px; box-sizing: border-box; padding: 22px 48px 6px 46px; margin: 0;
  font: 500 1rem/1.2 var(--lg-body); color: var(--lg-text); background: #f5f6f8;
  border: 1.5px solid transparent; border-radius: 14px; outline: none; box-shadow: none;
  transition: border-color 0.2s, background-color 0.2s, box-shadow 0.25s var(--lg-ease);
}
body.lg3d .lg-field input:hover { background: #eff1f4; }
body.lg3d .lg-field input:focus { background: #fff; border-color: #19a06a; box-shadow: 0 0 0 4px rgba(63, 232, 167, 0.18); }
body.lg3d .lg-field label {
  position: absolute; left: 46px; top: 19px; margin: 0; pointer-events: none; transform-origin: 0 0;
  font: 500 1rem/1.2 var(--lg-body); color: #6b7280; transition: transform 0.22s var(--lg-ease), color 0.2s;
}
body.lg3d .lg-field input:focus + label, body.lg3d .lg-field input:not(:placeholder-shown) + label {
  transform: translateY(-11px) scale(0.76); color: #187a4f; font-weight: 600;
}
body.lg3d .lg-field .lg-ficon { position: absolute; left: 16px; top: 20px; width: 18px; text-align: center; color: #9aa1ad; transition: color 0.2s, transform 0.3s var(--lg-ease); pointer-events: none; }
body.lg3d .lg-field:focus-within .lg-ficon { color: #19a06a; transform: scale(1.1); }
body.lg3d .password-input-container { position: relative; }
body.lg3d .password-toggle {
  position: absolute; right: 8px; top: 9px; width: 40px; height: 40px; border: 0; border-radius: 10px; background: transparent;
  color: #6b7280; cursor: pointer; display: grid; place-items: center; transition: background-color 0.2s, color 0.2s; transform: none;
}
body.lg3d .password-toggle:hover { background: rgba(0, 0, 0, 0.05); color: var(--lg-text); }
body.lg3d .password-toggle:focus-visible { outline: 3px solid rgba(63, 232, 167, 0.5); }

/* Recordarme + olvidé */
.lg-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 4px 0 22px; flex-wrap: wrap; }
body.lg3d .checkbox-group { display: flex; align-items: center; gap: 9px; margin: 0; }
body.lg3d .checkbox-group input[type="checkbox"] { width: 18px; height: 18px; margin: 0; accent-color: #19a06a; cursor: pointer; }
body.lg3d .checkbox-group label { margin: 0; font: 500 0.9rem/1 var(--lg-body); color: #374151; cursor: pointer; }
.lg-forgot { font: 600 0.88rem/1 var(--lg-body); color: #187a4f; text-decoration: none; }
.lg-forgot:hover { text-decoration: underline; }

/* Botón principal */
body.lg3d .login-form button[type="submit"] {
  position: relative; overflow: hidden; isolation: isolate; width: 100%; height: 54px; border: 0; border-radius: 14px; cursor: pointer;
  display: flex; align-items: center; justify-content: center; gap: 10px;
  font: 800 1rem/1 var(--lg-body); letter-spacing: 0.01em; color: #062114;
  background: linear-gradient(180deg, #8ee5b6 0%, var(--lg-mint) 55%, #5fc890 100%);
  box-shadow: 0 16px 34px -14px rgba(63, 232, 167, 0.75), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.1);
  transition: transform 0.2s var(--lg-ease), box-shadow 0.3s var(--lg-ease), filter 0.2s;
}
body.lg3d .login-form button[type="submit"]:hover { transform: translateY(-2px); box-shadow: 0 22px 40px -14px rgba(63, 232, 167, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.5), inset 0 -3px 0 rgba(0, 0, 0, 0.1); }
body.lg3d .login-form button[type="submit"]:active { transform: translateY(0) scale(0.985); }
body.lg3d .login-form button[type="submit"]:disabled { filter: saturate(0.6); cursor: progress; }
body.lg3d .login-form button[type="submit"]::after {
  content: ""; position: absolute; top: 0; bottom: 0; left: -60%; width: 45%; z-index: -1; pointer-events: none; opacity: 0;
  background: linear-gradient(100deg, transparent, rgba(255, 255, 255, 0.7), transparent); transform: skewX(-20deg);
}
body.lg3d .login-form button[type="submit"]:hover::after { animation: lg-shine 0.9s var(--lg-ease); }
body.lg3d .login-form button[type="submit"]:focus-visible { outline: 3px solid var(--lg-amber); outline-offset: 3px; }

/* Separador */
body.lg3d .oauth-divider { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: #9aa1ad; font: 600 0.78rem/1 var(--lg-body); text-transform: uppercase; letter-spacing: 0.12em; }
body.lg3d .oauth-divider::before, body.lg3d .oauth-divider::after { content: ""; flex: 1; height: 1px; background: var(--lg-line); }
body.lg3d .oauth-divider span { background: none; padding: 0; }

/* Google */
body.lg3d .btn-google {
  width: 100%; height: 52px; border-radius: 14px; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 12px;
  background: #fff; color: var(--lg-text); border: 1.5px solid var(--lg-line); font: 700 0.95rem/1 var(--lg-body);
  transition: border-color 0.2s, box-shadow 0.25s var(--lg-ease), transform 0.2s var(--lg-ease); box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}
body.lg3d .btn-google:hover { border-color: #c9ced8; box-shadow: 0 10px 24px -14px rgba(0, 0, 0, 0.35); transform: translateY(-1px); }
body.lg3d .btn-google i { font-size: 1.1rem; background: conic-gradient(from -45deg, #ea4335 0 25%, #4285f4 0 50%, #34a853 0 75%, #fbbc05 0); -webkit-background-clip: text; background-clip: text; color: transparent; }
body.lg3d .btn-google:focus-visible { outline: 3px solid rgba(66, 133, 244, 0.45); outline-offset: 2px; }

/* Error */
body.lg3d .error-message { min-height: 0; margin: 14px 0 0; color: #b42318; font: 600 0.9rem/1.4 var(--lg-body); text-align: center; }
body.lg3d .error-message:empty { display: none; }
body.lg3d .error-message:not(:empty) { background: #fef3f2; border: 1px solid #fecdca; border-radius: 12px; padding: 10px 12px; }
body.lg3d .login-form.lg-shake { animation: lg-shake 0.5s cubic-bezier(0.36, 0.07, 0.19, 0.97) both; }

/* Enlaces inferiores */
body.lg3d .login-links { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 18px; margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--lg-line); font: 500 0.88rem/1.4 var(--lg-body); color: var(--lg-muted); }
body.lg3d .login-links a { color: #187a4f; font-weight: 700; text-decoration: none; }
body.lg3d .login-links a:hover { text-decoration: underline; }

/* ---------- Animaciones ---------- */
@keyframes lg-grid { to { background-position: 0 64px; } }
@keyframes lg-rise { from { transform: translateY(105%); } to { transform: none; } }
@keyframes lg-up { from { opacity: 0; transform: translateY(18px); } to { opacity: 1; transform: none; } }
@keyframes lg-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes lg-card { from { opacity: 0; transform: perspective(1200px) translateY(40px) rotateX(10deg) scale(0.97); } to { opacity: 1; transform: perspective(1200px) rotateX(var(--rx, 0deg)) rotateY(var(--ry, 0deg)); } }
@keyframes lg-ping { 0% { box-shadow: 0 0 0 0 rgba(126, 214, 165, 0.5); } 80%, 100% { box-shadow: 0 0 0 10px rgba(126, 214, 165, 0); } }
@keyframes lg-spin { from { transform: rotateY(0deg); } to { transform: rotateY(360deg); } }
@keyframes lg-pulse { 0%, 100% { transform: scale(1); } 50% { transform: scale(1.06); } }
@keyframes lg-halo { from { transform: scale(0.85); opacity: 0.9; } to { transform: scale(1.5); opacity: 0; } }
@keyframes lg-bob { 0%, 100% { translate: 0 0; } 50% { translate: 0 -12px; } }
@keyframes lg-ang { to { --lg-ang: 360deg; } }
@keyframes lg-shine { 0% { opacity: 0; left: -60%; } 15% { opacity: 1; } 100% { opacity: 0; left: 130%; } }
@keyframes lg-shake { 10%, 90% { translate: -1px 0; } 20%, 80% { translate: 3px 0; } 30%, 50%, 70% { translate: -6px 0; } 40%, 60% { translate: 6px 0; } }

/* ---------- Responsive ---------- */
@media (max-width: 960px) {
  .lg-wrap { grid-template-columns: 1fr; gap: 28px; max-width: 520px; }
  .lg-art { text-align: center; }
  .lg-sub { margin: 0 auto; }
  .lg-scene { display: none; }
  body.lg3d .login-form { margin: 0 auto; }
}
@media (max-width: 520px) {
  .lg-main { padding: 84px 14px 40px; place-items: start center; }
  .lg-title { font-size: clamp(2rem, 9vw, 2.5rem); margin: 16px 0 12px; }
  body.lg3d .login-form { padding: 30px 20px 24px; border-radius: 22px; }
  body.lg3d .login-form::before { border-radius: 24px; }
  .lg-eyebrow { font-size: 0.68rem; letter-spacing: 0.12em; }
}


/* ---------- Órbita v2 (la mueve js/login-fx.js; sin JS queda la órbita CSS) ---------- */
.lg-scene.lg-orbit-js { height: 330px; perspective: none; }
.lg-orbit-js .lg-ring, .lg-orbit-js .lg-ring-inner { transform: none !important; transform-style: flat; animation: none !important; }
.lg-orbit-js .lg-orbit-line { display: none; }
.lg-orbit-js .lg-tile {
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(var(--s, 1)) perspective(600px) rotateY(var(--ry, 0deg));
  opacity: var(--o, 1); filter: blur(var(--b, 0px)); z-index: var(--z, 1); will-change: transform, opacity;
  box-shadow: 0 18px 40px -16px rgba(0, 0, 0, 0.85), inset 0 1px 0 rgba(255, 255, 255, 0.25);
}
.lg-orbit-js .lg-tile i { filter: drop-shadow(0 0 8px currentColor); }
.lg-orbit-js .lg-orb { z-index: 5; }
/* Elipse de la órbita dibujada en SVG por el script */
.lg-orbit-svg { position: absolute; left: 50%; top: 50%; overflow: visible; pointer-events: none; }
.lg-orbit-svg .back { stroke: rgba(126, 214, 165, 0.16); }
.lg-orbit-svg .front { stroke: url(#lgOrbitGrad); }
/* Estela de luz que recorre la órbita */
.lg-spark {
  position: absolute; left: 50%; top: 50%; width: 10px; height: 10px; margin: -5px 0 0 -5px; border-radius: 50%; pointer-events: none;
  background: #eafff4; box-shadow: 0 0 12px 3px rgba(63, 232, 167, 0.9), 0 0 30px 8px rgba(63, 232, 167, 0.35);
  transform: translate3d(var(--x, 0px), var(--y, 0px), 0) scale(var(--s, 1)); opacity: var(--o, 1); z-index: var(--z, 6);
}
/* Esfera: brillo especular que gira y núcleo con luz interna */
.lg-orbit-js .lg-orb { overflow: hidden; }
.lg-orbit-js .lg-orb::before {
  content: ""; position: absolute; inset: -30%; border-radius: 50%;
  background: conic-gradient(from 0deg, transparent 0 70%, rgba(255, 255, 255, 0.55) 80%, transparent 90%);
  mix-blend-mode: soft-light; animation: lg-sheen 6s linear infinite;
}
@keyframes lg-sheen { to { transform: rotate(360deg); } }
/* Ondas que salen de la esfera */
.lg-wave { position: absolute; left: 50%; top: 50%; width: 130px; height: 130px; margin: -65px 0 0 -65px; border-radius: 50%; border: 1px solid rgba(126, 214, 165, 0.45); pointer-events: none; z-index: 4; animation: lg-wave 4.5s cubic-bezier(0.2, 0.6, 0.3, 1) infinite; }
.lg-wave.w2 { animation-delay: 1.5s; }
.lg-wave.w3 { animation-delay: 3s; }
@keyframes lg-wave { from { transform: scale(0.9); opacity: 0.8; } to { transform: scale(2.6); opacity: 0; } }


/* ---------- Planeta (lo dibuja js/login-planet.js en un canvas) ---------- */
.lg-orb.lg-planet {
  width: 150px; height: 150px; margin: -75px 0 0 -75px; overflow: visible; animation: none;
  background: radial-gradient(circle at 35% 30%, #2a6fb0, #0b2a4a 70%);
  box-shadow: 0 0 34px rgba(110, 180, 255, 0.55), 0 0 90px rgba(80, 160, 255, 0.28), 0 0 160px rgba(63, 232, 167, 0.16);
}
.lg-orb.lg-planet::before { display: none; }
.lg-orb.lg-planet::after { inset: -14px; border-color: rgba(140, 200, 255, 0.35); }
.lg-orb.lg-planet canvas { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 50%; display: block; }


/* ---------- Registro (comparte el sistema visual del login) ---------- */
body.lg3d .lg-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
body.lg3d .lg-grid2 .lg-field { margin-bottom: 16px; }
body.lg3d .lg-field.no-icon input { padding-left: 16px !important; }
body.lg3d .lg-field.no-icon label { left: 16px; }
/* Medidor de seguridad de la contraseña */
.lg-meter { display: flex; align-items: center; gap: 10px; margin: -6px 0 10px; }
.lg-meter-bar { flex: 1; height: 6px; border-radius: 99px; background: #eceef2; overflow: hidden; position: relative; }
.lg-meter-bar::after { content: ""; position: absolute; inset: 0; width: 0; border-radius: inherit; background: #e5484d; transition: width 0.35s var(--lg-ease), background-color 0.35s; }
.lg-meter[data-level="1"] .lg-meter-bar::after { width: 25%; background: #e5484d; }
.lg-meter[data-level="2"] .lg-meter-bar::after { width: 50%; background: #f5a524; }
.lg-meter[data-level="3"] .lg-meter-bar::after { width: 75%; background: #46a758; }
.lg-meter[data-level="4"] .lg-meter-bar::after { width: 100%; background: #19a06a; }
.lg-meter-label { min-width: 64px; text-align: right; font: 700 0.78rem/1 var(--lg-body); color: var(--lg-muted); }
/* Requisitos */
.lg-rules { list-style: none; margin: 0 0 16px; padding: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 6px 12px; }
.lg-rules li { display: flex; align-items: center; gap: 8px; font: 500 0.8rem/1.3 var(--lg-body); color: #6b7280; transition: color 0.2s; }
.lg-rules li::before { content: ""; width: 16px; height: 16px; flex: none; border-radius: 50%; border: 1.5px solid #c9ced8; transition: background-color 0.25s, border-color 0.25s, transform 0.3s var(--lg-ease); }
.lg-rules li.ok { color: #187a4f; }
.lg-rules li.ok::before { border-color: #19a06a; transform: scale(1.05);
  background: #19a06a url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='4' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E") center/10px no-repeat; }
/* Términos */
body.lg3d .lg-terms { display: flex; align-items: flex-start; gap: 10px; margin: 2px 0 20px; font: 500 0.86rem/1.45 var(--lg-body); color: #374151; }
body.lg3d .lg-terms input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #19a06a; cursor: pointer; }
body.lg3d .lg-terms label { margin: 0; cursor: pointer; font-weight: 500; color: #374151; }
body.lg3d .lg-terms a { color: #187a4f; font-weight: 700; text-decoration: none; }
body.lg3d .lg-terms a:hover { text-decoration: underline; }
/* Mensaje de éxito */
body.lg3d .error-message.is-success { background: #ecfdf3; border-color: #abefc6; color: #067647; }
@media (max-width: 420px) {
  body.lg3d .lg-grid2 { grid-template-columns: 1fr; gap: 0; }
  .lg-rules { grid-template-columns: 1fr; }
}


/* ---------- Registro de negocio ---------- */
body.lg3d .lg-field.is-ok input { border-color: #19a06a !important; }
body.lg3d .lg-field.is-bad input { border-color: #e5484d !important; box-shadow: 0 0 0 4px rgba(229, 72, 77, 0.12) !important; }
.lg-notice { display: flex; gap: 12px; align-items: flex-start; margin: 0 0 22px; padding: 12px 14px; border-radius: 14px; background: #fff7e8; border: 1px solid #fde3b0; color: #7a4b00; font: 500 0.86rem/1.45 var(--lg-body); }
.lg-notice i { margin-top: 2px; color: #d18400; }
.lg-notice strong { color: #5c3800; }
.lg-privacy { margin: 14px 0 0; color: #6b7280; font: 500 0.78rem/1.5 var(--lg-body); text-align: center; }
body.lg3d .lg-check { display: flex; align-items: flex-start; gap: 10px; margin: 0 0 12px; font: 500 0.86rem/1.45 var(--lg-body); color: #374151; }
body.lg3d .lg-check input { width: 18px; height: 18px; margin: 2px 0 0; flex: none; accent-color: #19a06a; cursor: pointer; }
body.lg3d .lg-check label { margin: 0; cursor: pointer; font-weight: 500; color: #374151; }
body.lg3d .lg-check a { color: #187a4f; font-weight: 700; text-decoration: none; }
body.lg3d .register-business-form { max-width: 480px; }
/* registro-negocio.css fuerza #form-title en blanco con !important (diseño anterior) */
html body.lg3d #form-title { color: var(--lg-text) !important; -webkit-text-fill-color: var(--lg-text) !important; background: none !important; text-shadow: none !important; }

@media (prefers-reduced-motion: reduce) {
  body.lg3d *, body.lg3d *::before, body.lg3d *::after { animation-duration: 0.001ms !important; animation-iteration-count: 1 !important; transition-duration: 0.001ms !important; }
  body.lg3d .login-form::before { display: none; }
  .lg-wave { display: none; }
}
