/* Lobby de The House of Routing (thehouseofrouting.com) */
html, body { height: 100%; }
body.lobby { margin: 0; min-height: 100vh; min-height: 100dvh; display: flex; flex-direction: column; background: radial-gradient(120% 90% at 50% 40%, #0B1F3A 0%, #06111F 62%, #040B15 100%); color: var(--ink); font-family: var(--font-sans); -webkit-font-smoothing: antialiased; overflow-x: hidden; }

/* Campo de hexágonos (canvas) y viñeta para que el centro respire */
.lb-field { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; display: block; }
.lb-vignette { position: fixed; inset: 0; z-index: 1; pointer-events: none; background: radial-gradient(42% 46% at 50% 47%, rgba(6, 17, 31, .82) 0%, rgba(6, 17, 31, .45) 55%, rgba(6, 17, 31, 0) 100%); }

.lb-main { position: relative; z-index: 2; flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 28px; padding: 64px 24px 32px; text-align: center; }
.lb-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.lb-brand { margin: 0; line-height: 0; animation: lb-rise 1s cubic-bezier(.2, .8, .2, 1) .1s both; }
.lb-brand svg { width: auto; height: clamp(108px, 18vh, 156px); filter: drop-shadow(0 0 28px rgba(240, 80, 58, .16)); }

.lb-eyebrow { margin: 0; display: inline-flex; align-items: center; gap: 10px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--marino-300, #8DAEDB); animation: lb-rise 1s cubic-bezier(.2, .8, .2, 1) .35s both; transition: opacity .35s ease; }
.lb-eyebrow.is-swap { opacity: 0; }
.lb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--route); box-shadow: 0 0 10px var(--route); animation: lb-led 2s ease-in-out infinite; }

/* Lema rotativo en cuatro idiomas */
.lb-motto { position: relative; display: grid; width: min(820px, 100%); min-height: 2.6em; font-family: var(--font-display); font-size: clamp(24px, 3.4vw, 40px); line-height: 1.22; font-weight: 600; letter-spacing: -.015em; animation: lb-rise 1s cubic-bezier(.2, .8, .2, 1) .55s both; }
.lb-line { grid-area: 1 / 1; margin: 0; align-self: center; color: var(--ink); opacity: 0; pointer-events: none; }
.lb-line .w { display: inline-block; opacity: 0; transform: translateY(.45em); filter: blur(6px); transition: opacity .55s ease, transform .7s cubic-bezier(.2, .8, .2, 1), filter .6s ease; transition-delay: calc(var(--i) * 55ms); }
.lb-line.is-on { opacity: 1; }
.lb-line.is-on .w { opacity: 1; transform: none; filter: none; }
.lb-line.is-out { opacity: 1; }
.lb-line.is-out .w { opacity: 0; transform: translateY(-.35em); filter: blur(6px); transition-duration: .4s, .45s, .4s; transition-delay: calc(var(--i) * 25ms); }
.lb-line .w.k { color: var(--route-text); }
.lb-sen { display: block; }

/* Selector de idioma del lobby */
.lb-langs { display: flex; flex-wrap: wrap; justify-content: center; gap: 12px; margin-top: 8px; animation: lb-rise 1s cubic-bezier(.2, .8, .2, 1) .8s both; }
.lb-lang { position: relative; display: inline-flex; align-items: center; gap: 12px; padding: 11px 16px 13px; border: 1px solid var(--line); border-radius: 8px; background: rgba(11, 31, 58, .55); -webkit-backdrop-filter: blur(8px); backdrop-filter: blur(8px); color: var(--ink); text-decoration: none; overflow: hidden; transition: border-color .35s ease, background-color .35s ease, translate .35s cubic-bezier(.2, .8, .2, 1), box-shadow .35s ease; }
.lb-lang::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 100%; background: var(--route); box-shadow: 0 0 10px var(--route); transform: scaleX(0); transform-origin: left; transition: transform .6s cubic-bezier(.65, 0, .35, 1); }
.lb-lang:hover, .lb-lang:focus-visible { translate: 0 -3px; border-color: var(--route); background: rgba(11, 31, 58, .8); box-shadow: 0 14px 30px -12px rgba(240, 80, 58, .45); outline: none; }
.lb-lang:hover::after, .lb-lang:focus-visible::after { transform: scaleX(1); }
.lb-lang.is-on { border-color: rgba(240, 80, 58, .55); }
.lb-lang.is-on::after { transform: scaleX(1); transition-duration: 4.6s; transition-timing-function: linear; }
.lb-langs:hover .lb-lang.is-on:not(:hover)::after { transform: scaleX(0); transition-duration: .3s; }
.lb-code { font-family: var(--font-mono); font-size: 13px; font-weight: 700; letter-spacing: .18em; color: var(--route-text); }
.lb-name { font-family: var(--font-display); font-size: 18px; font-weight: 600; }
.lb-go { display: inline-flex; align-items: center; gap: 6px; font-size: 13px; color: var(--ink-muted); transition: color .3s ease; }
.lb-go svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; transition: translate .3s ease; }
.lb-lang:hover .lb-go, .lb-lang:focus-visible .lb-go { color: var(--ink); }
.lb-lang:hover .lb-go svg, .lb-lang:focus-visible .lb-go svg { translate: 4px 0; }

.lb-pillars { margin: 38px 0 0; display: flex; flex-wrap: wrap; justify-content: center; gap: 10px 34px; font-family: var(--font-mono); font-size: 12px; font-weight: 600; letter-spacing: .22em; color: var(--marino-300, #8DAEDB); animation: lb-rise 1s cubic-bezier(.2, .8, .2, 1) 1s both; }
.lb-pil { display: inline-flex; align-items: center; gap: 10px; }
.lb-pil:nth-child(2) .lb-dot { animation-delay: .66s; }
.lb-pil:nth-child(3) .lb-dot { animation-delay: 1.33s; }
.lb-pil-t { transition: opacity .35s ease; }
.lb-pillars.is-swap .lb-pil-t { opacity: 0; }
.lb-foot { position: relative; z-index: 2; padding: 0 24px 22px; text-align: center; font-family: var(--font-mono); font-size: 11px; letter-spacing: .12em; color: var(--ink-muted); opacity: .7; animation: lb-rise 1s ease 1.1s both; }

@keyframes lb-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes lb-led { 0%, 100% { opacity: .45; } 50% { opacity: 1; } }

@media (max-width: 700px) {
  .lb-main { gap: 22px; padding-top: 48px; }
  .lb-langs { display: grid; grid-template-columns: repeat(2, auto); justify-content: center; }
  .lb-eyebrow { font-size: 11px; letter-spacing: .16em; }
  .lb-pillars { font-size: 11px; letter-spacing: .16em; gap: 10px 22px; }
}
@media (prefers-reduced-motion: reduce) {
  .lb-brand, .lb-eyebrow, .lb-motto, .lb-langs, .lb-pillars, .lb-foot { animation: none; }
  .lb-line .w { transition: none; filter: none; }
  .lb-lang.is-on::after { transition: none; }
  .lb-dot { animation: none; }
}
