/* Standalone entry: monochrome by design; do not import application themes. */
:root { color-scheme: dark; background: var(--page-bg, #000); color: var(--text-primary, #fff); font-family: Arial, Helvetica, sans-serif; }
* { box-sizing: border-box; }
body { margin: 0; min-width: 0; background: var(--page-bg, #000); }

@media (prefers-reduced-motion: no-preference) {
  .led-home, .led-home body { transition: background-color 420ms ease, color 420ms ease; }
  .led-home .led-symbol { transition: filter 420ms ease; }
  .led-home .led-action { transition: background-color 420ms ease, color 420ms ease, border-color 420ms ease, box-shadow 420ms ease; }
  .led-home .led-perimeter rect { transition: stroke 420ms ease, filter 420ms ease; }
}

.led-entry {
  /* En escritorio, toda la marca y sus CTA ocupan el 60 % de la escala anterior. */
  --scene-width: min(546px, 50.4vw, 50.4svh);
  min-height: 100vh;
  min-height: 100svh;
  display: grid;
  place-items: center;
  padding: max(28px, env(safe-area-inset-top)) max(24px, env(safe-area-inset-right)) max(28px, env(safe-area-inset-bottom)) max(24px, env(safe-area-inset-left));
}
.led-scene { width: var(--scene-width); text-align: center; }
.led-symbol { display: block; width: 30.4%; height: auto; margin: 0 auto .85%; overflow: visible; }
.led-name { font-size: calc(var(--scene-width) * .089); font-weight: 400; letter-spacing: .225em; line-height: 1.12; margin: 0; padding-left: .225em; }
.led-labs { font-size: calc(var(--scene-width) * .041); letter-spacing: .95em; font-weight: 400; line-height: 1.3; margin: .02em 0 0; padding-left: .95em; }
.led-actions { display: flex; gap: 5%; margin-top: 10.9%; }
.led-action {
  --button-radius: clamp(7.2px, .9vw, 14.4px);
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  min-width: 0;
  min-height: 28.8px;
  aspect-ratio: 4 / 1;
  padding: 6px 9.6px;
  border: 1px solid var(--accent-primary, #fff);
  border-radius: var(--button-radius);
  color: var(--action-primary-text, #000);
  background: var(--action-primary-bg, #fff);
  font-size: clamp(10.8px, calc(var(--scene-width) * .051), 27.6px);
  font-weight: 700;
  line-height: 1.15;
  text-decoration: none;
  box-shadow: 0 0 5px #fffc, 0 0 15px #fff5;
  transition: box-shadow 200ms ease;
  -webkit-tap-highlight-color: transparent;
}
.led-action--outline { color: var(--text-primary); background: var(--page-bg, #000); }
.led-action--login { flex-grow: 1.04; }
.led-action:hover { box-shadow: 0 0 7px #fffe, 0 0 20px #fff7; }
.led-action:focus-visible { outline: 2px solid var(--focus-ring, #fff); outline-offset: 8px; box-shadow: 0 0 9px #fff, 0 0 22px #fff8; }
.led-action:focus { opacity: 1; }
.led-perimeter { position: absolute; inset: -1px; width: calc(100% + 2px); height: calc(100% + 2px); overflow: visible; pointer-events: none; fill: none; }
.led-perimeter rect { x: 1px; y: 1px; width: calc(100% - 2px); height: calc(100% - 2px); rx: var(--button-radius); stroke: #fff; stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linecap: round; stroke-dasharray: 12 88; filter: drop-shadow(0 0 3px #fff); animation: led-travel 10s linear infinite; }
.led-action--outline .led-perimeter rect { animation-delay: -3.6s; animation-duration: 11s; }
.led-symbol-core { filter: none; }
.led-symbol-halo { opacity: 1; filter: url(#symbol-soft-halo); }
.led-symbol-trace { opacity: .8; animation: led-breathe 6s ease-in-out infinite alternate; filter: url(#symbol-trace-halo); }
.led-symbol-tip { opacity: .6; }
@keyframes led-travel { to { stroke-dashoffset: -100; } }
@keyframes led-breathe { from { opacity: .72; } to { opacity: .92; } }
/* Opacity only: links stay native and become usable during their own reveal. */
@media (prefers-reduced-motion: no-preference) {
  .led-symbol { animation: led-reveal 1.8s ease .25s both; }
  .led-name { animation: led-reveal 1.5s ease .95s both; }
  .led-labs { animation: led-reveal 1.35s ease 1.35s both; }
  .led-action--login { animation: led-reveal 1.4s ease 1.9s both; }
  .led-action--outline { animation: led-reveal 1.4s ease 2.07s both; }
  .led-action:focus { animation: none; }
}
@keyframes led-reveal { from { opacity: 0; } to { opacity: 1; } }
@media (max-width: 600px) {
  .led-entry { --scene-width: min(520px, 100%, 84svh); }
  .led-scene { width: 100%; max-width: 520px; }
  .led-symbol { width: 35%; margin-bottom: 6%; }
  .led-name { font-size: clamp(24px, 7.5vw, 46px); letter-spacing: .12em; padding-left: .12em; }
  .led-labs { font-size: clamp(15px, 3.6vw, 24px); }
  .led-actions { gap: 16px; margin-top: 20%; }
  .led-action { --button-radius: clamp(12px, 1.5vw, 24px); aspect-ratio: auto; min-height: 58px; font-size: clamp(17px, 3.8vw, 23px); padding: 14px 12px; }
}
@media (max-width: 420px) {
  .led-actions { flex-direction: column; gap: 18px; width: 86%; margin-right: auto; margin-left: auto; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none; transition: none; }
  .led-perimeter rect, .led-symbol-trace { animation: none; }
  .led-action { transition: none; }
  .led-logo-motion { display: none; }
}

/* La inversión se limita al símbolo de marca original; nunca a imágenes clínicas. */
html[data-theme="light"] .led-symbol { filter:invert(1); }
html[data-theme="light"] .led-action { box-shadow:0 0 5px rgb(0 0 0 / 20%),0 0 15px rgb(0 0 0 / 10%); }
html[data-theme="light"] .led-action:hover { box-shadow:0 0 7px rgb(0 0 0 / 28%),0 0 20px rgb(0 0 0 / 14%); }
html[data-theme="light"] .led-action--outline .led-perimeter rect { stroke:#111; filter:drop-shadow(0 0 3px rgb(0 0 0 / 30%)); }
