/* demo.vipersitoh.com — portal y visor. Misma identidad que vipersitoh.com (terminal elegante). */
@font-face { font-family: "Space Grotesk"; src: url("fonts/SpaceGrotesk-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
@font-face { font-family: "Inter"; src: url("fonts/Inter-normal-300-800.woff2") format("woff2"); font-weight: 300 800; font-display: swap; }
@font-face { font-family: "JetBrains Mono"; src: url("fonts/JetBrainsMono-normal-400-700.woff2") format("woff2"); font-weight: 400 700; font-display: swap; }
:root {
  --bg: #05070b; --bg-2: #0a0f17; --panel: #0d131d; --line: rgba(140, 255, 210, .12); --line-2: rgba(255, 255, 255, .08);
  --text: #e7eef6; --muted: #8d9bad; --acc: #4dffb5; --acc-2: #7c6cff; --acc-3: #ffb547;
  --head: "Space Grotesk", system-ui, sans-serif; --body: "Inter", system-ui, sans-serif; --mono: "JetBrains Mono", ui-monospace, monospace;
  --ease: cubic-bezier(.2, .8, .2, 1); color-scheme: dark;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font: 400 16.5px/1.6 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; }
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
button { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--acc); outline-offset: 3px; border-radius: 6px; }
.wrap { width: min(1240px, 100% - 32px); margin-inline: auto; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
h1, h2, h3 { font-family: var(--head); font-weight: 600; letter-spacing: -.03em; line-height: 1.05; margin: 0 0 .5em; }
h1 { font-size: clamp(2.6rem, 6.4vw, 5.4rem); max-width: 14ch; }
h2 { font-size: clamp(1.9rem, 3.8vw, 3rem); }
.grad { background: linear-gradient(100deg, var(--acc), #7cf0ff 50%, var(--acc-2)); -webkit-background-clip: text; background-clip: text; color: transparent; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: .5em; padding: .9em 1.5em; border-radius: 12px; background: var(--acc); color: #001a0e; font: 650 .95rem var(--body); border: 1px solid var(--acc); cursor: pointer; transition: transform .2s var(--ease), box-shadow .2s; }
.btn:hover { transform: translateY(-2px); box-shadow: 0 12px 30px -12px rgb(77 255 181 / .6); }
.btn--ghost { background: transparent; color: var(--text); border-color: var(--line-2); }
.btn--ghost:hover { border-color: var(--acc); box-shadow: none; }
.btn--sm { padding: .6em 1em; font-size: .86rem; border-radius: 10px; }

.top { position: sticky; top: 0; z-index: 20; background: rgb(5 7 11 / .75); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line-2); }
.top .wrap { display: flex; justify-content: space-between; align-items: center; height: 64px; }
.brand { font: 600 1.05rem var(--mono); }
.prompt { color: var(--acc); }
.cur { color: var(--acc); animation: blink 1.1s steps(1) infinite; }
@keyframes blink { 50% { opacity: 0; } }
.top nav { display: flex; align-items: center; gap: 24px; font-size: .92rem; color: var(--muted); }
.top nav a:not(.btn):hover { color: var(--text); }

.hero { position: relative; padding: clamp(60px, 10vw, 130px) 0 70px; overflow: hidden; }
.hero::before { content: ""; position: absolute; inset: -20% -10% auto; height: 120%; background: radial-gradient(600px 400px at 80% 20%, rgb(124 108 255 / .18), transparent 70%), radial-gradient(500px 360px at 10% 60%, rgb(77 255 181 / .12), transparent 70%); pointer-events: none; }
.hero::after { content: ""; position: absolute; inset: 0; background-image: linear-gradient(var(--line-2) 1px, transparent 1px), linear-gradient(90deg, var(--line-2) 1px, transparent 1px); background-size: 48px 48px; mask-image: radial-gradient(ellipse at 50% 30%, #000 20%, transparent 70%); opacity: .5; pointer-events: none; }
.hero .wrap { position: relative; z-index: 1; }
.term { font: 500 .9rem var(--mono); color: var(--muted); margin: 0 0 22px; }
.term span { color: var(--acc); }
.term em { font-style: normal; color: var(--acc-3); }
.lead { font-size: 1.18rem; color: #b5c1cf; max-width: 60ch; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 30px 0 44px; }
.hero__facts { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 12px; }
.hero__facts li { padding: 10px 16px; border: 1px solid var(--line); border-radius: 12px; background: rgb(13 19 29 / .6); color: var(--muted); font-size: .9rem; }
.hero__facts b { color: var(--text); font-family: var(--head); margin-right: 6px; }

.demos { padding: 40px 0 100px; }
.demos__head { display: flex; justify-content: space-between; align-items: end; flex-wrap: wrap; gap: 18px; margin-bottom: 30px; }
.demos__head h2 { margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: 6px; }
.filters button { padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: none; color: var(--muted); font: 500 .86rem var(--mono); cursor: pointer; transition: .2s; }
.filters button:hover { color: var(--text); }
.filters button.is-on { background: var(--acc); color: #001a0e; border-color: var(--acc); }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(360px, 1fr)); gap: 24px; }
.card { display: flex; flex-direction: column; border-radius: 20px; border: 1px solid var(--line-2); background: var(--panel); overflow: hidden; opacity: 0; transform: translateY(18px); transition: opacity .6s var(--ease) calc(var(--i) % 3 * 80ms), transform .6s var(--ease) calc(var(--i) % 3 * 80ms), border-color .3s, box-shadow .3s; }
.card.is-in { opacity: 1; transform: none; }
.card[hidden] { display: none; }
.card:hover { border-color: color-mix(in srgb, var(--c) 60%, transparent); box-shadow: 0 30px 60px -30px color-mix(in srgb, var(--c) 55%, transparent); }
.card__shot { position: relative; display: block; margin: 14px 14px 0; border-radius: 12px; overflow: hidden; background: #111; aspect-ratio: 16 / 10.6; }
.card__chrome { position: absolute; z-index: 2; inset: 0 0 auto; height: 26px; display: flex; align-items: center; gap: 5px; padding: 0 10px; background: rgb(20 24 32 / .92); }
.card__chrome i { width: 8px; height: 8px; border-radius: 50%; background: #3a4252; }
.card__chrome i:first-child { background: #ff6b81; } .card__chrome i:nth-child(2) { background: var(--acc-3); } .card__chrome i:nth-child(3) { background: var(--acc); }
.card__chrome em { margin-left: 8px; font: 400 .7rem var(--mono); color: var(--muted); font-style: normal; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.card__shot > img:not(.card__mob) { position: absolute; top: 26px; left: 0; width: 100%; height: calc(100% - 26px); object-fit: cover; object-position: top; transition: transform 1.2s var(--ease); }
.card:hover .card__shot > img:not(.card__mob) { transform: scale(1.04); }
.card__mob { position: absolute; z-index: 3; right: 12px; bottom: -18%; width: 22%; border-radius: 12px; border: 3px solid #1b1f27; box-shadow: 0 14px 30px -10px #000; transition: transform .6s var(--ease); }
.card:hover .card__mob { transform: translateY(-14%); }
.card__body { padding: 20px 22px 22px; display: flex; flex-direction: column; flex: 1; }
.card__cat { display: flex; align-items: center; gap: 8px; margin: 0 0 8px; font: 500 .76rem var(--mono); color: var(--muted); text-transform: uppercase; letter-spacing: .06em; }
.card__cat span { width: 10px; height: 10px; border-radius: 3px; background: var(--c); }
.card h3 { font-size: 1.5rem; margin-bottom: 8px; }
.card__body > p:not(.card__cat) { color: #a9b6c5; font-size: .93rem; margin: 0 0 14px; }
.card__feats { list-style: none; padding: 0; margin: 0 0 18px; display: flex; flex-wrap: wrap; gap: 6px; }
.card__feats li { padding: 3px 9px; border-radius: 6px; background: rgb(255 255 255 / .05); font: 500 .74rem var(--mono); color: #c6d1de; }
.card__act { margin-top: auto; display: flex; align-items: center; gap: 16px; flex-wrap: wrap; }
.lnk { font-size: .86rem; color: var(--muted); }
.lnk:hover { color: var(--acc); }

.incl { padding: 90px 0; border-top: 1px solid var(--line-2); background: linear-gradient(180deg, var(--bg-2), var(--bg)); }
.incl__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; margin-top: 30px; }
.incl__grid > div { padding: 24px; border: 1px solid var(--line); border-radius: 16px; background: rgb(13 19 29 / .6); }
.incl__grid b { font-family: var(--head); font-size: 1.12rem; }
.incl__grid p { color: var(--muted); margin: 8px 0 0; font-size: .94rem; }
.note { margin-top: 26px; color: var(--muted); font-size: .9rem; font-family: var(--mono); }
.cta { padding: 100px 0; text-align: center; }
.cta p { color: var(--muted); font-size: 1.1rem; }
.cta__btns { display: flex; justify-content: center; flex-wrap: wrap; gap: 12px; margin-top: 26px; }
.foot { border-top: 1px solid var(--line-2); padding: 26px 0; font-size: .84rem; color: var(--muted); }
.foot .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; }
.foot a { color: var(--acc); }

/* Visor */
.viewer { height: 100vh; height: 100dvh; display: flex; flex-direction: column; overflow: hidden; }
.vbar { flex: none; display: flex; align-items: center; gap: 12px; padding: 10px 14px; background: var(--panel); border-bottom: 1px solid var(--line-2); }
.vbar__back { font: 500 .88rem var(--mono); color: var(--muted); white-space: nowrap; }
.vbar__back:hover { color: var(--acc); }
.vbar__sel select { padding: 9px 12px; border-radius: 10px; border: 1px solid var(--line-2); background: var(--bg); color: var(--text); font: 500 .9rem var(--body); max-width: 300px; }
.seg { display: inline-flex; padding: 3px; border-radius: 10px; border: 1px solid var(--line-2); }
.seg button { padding: 7px 12px; border: 0; border-radius: 7px; background: none; color: var(--muted); font-size: .86rem; cursor: pointer; display: grid; place-items: center; }
.seg button.is-on { background: rgb(77 255 181 / .14); color: var(--acc); }
.seg svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; }
.seg--dev { margin-left: auto; }
.vbar__ext { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 10px; border: 1px solid var(--line-2); color: var(--muted); }
.vbar__ext:hover { color: var(--acc); border-color: var(--acc); }
.stage { position: relative; flex: 1; display: flex; justify-content: center; align-items: stretch; background: radial-gradient(circle at 50% 0, #111a28, var(--bg) 70%); overflow: auto; }
.frame { width: 100%; height: 100%; transition: width .45s var(--ease), height .45s var(--ease), margin .45s var(--ease); background: #fff; }
.frame iframe { width: 100%; height: 100%; border: 0; display: block; }
.stage[data-dev="tab"] .frame { width: 820px; height: calc(100% - 40px); margin: 20px 0; border-radius: 22px; border: 10px solid #1b1f27; overflow: hidden; box-shadow: 0 30px 80px -20px #000; }
.stage[data-dev="mob"] .frame { width: 390px; height: min(844px, calc(100% - 40px)); margin: 20px 0; border-radius: 40px; border: 12px solid #1b1f27; overflow: hidden; box-shadow: 0 30px 80px -20px #000; align-self: center; }
.loading { position: absolute; top: 16px; left: 50%; transform: translate(-50%, -20px); display: flex; align-items: center; gap: 10px; padding: 8px 14px; border-radius: 99px; background: var(--panel); border: 1px solid var(--line); font: 500 .82rem var(--mono); color: var(--muted); opacity: 0; transition: .3s; pointer-events: none; }
.loading.is-on { opacity: 1; transform: translate(-50%, 0); }
.loading span { width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--acc); border-right-color: transparent; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(1turn); } }

@media (max-width: 900px) {
  .incl__grid { grid-template-columns: 1fr 1fr; }
  .grid { grid-template-columns: 1fr; }
  .top nav a:not(.btn) { display: none; }
  .vbar { flex-wrap: wrap; }
  .seg--dev, .vbar__ext { display: none; }
  .vbar__cta { margin-left: auto; }
  .vbar__sel { order: 5; flex-basis: 100%; }
  .vbar__sel select { width: 100%; max-width: none; }
}
@media (max-width: 560px) {
  .incl__grid { grid-template-columns: 1fr; }
  .vbar__back span { display: none; }
  .card__mob { display: none; }
}
@media (prefers-reduced-motion: reduce) { .card { opacity: 1; transform: none; transition: none; } .cur { animation: none; } }

/* Selector de idioma */
.plang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; border: 1px solid rgb(255 255 255 / .12); margin-right: 6px; }
.plang a { padding: 6px 9px; border-radius: 999px; font: 600 11px/1 "Space Grotesk", system-ui, sans-serif; letter-spacing: .05em; color: inherit; opacity: .7; text-decoration: none; }
.plang a[aria-current] { background: #4dffb5; color: #05070b; opacity: 1; }
.vbar .plang { margin: 0 4px; }
.top nav .plang a:not(.btn) { display: inline-block; }
.card__lang { display: inline-block; margin: 0 0 8px; padding: 3px 8px; border-radius: 6px; font: 500 11px/1.3 "Space Grotesk", system-ui, sans-serif; color: #ffd27a; background: rgb(255 210 122 / .1); border: 1px solid rgb(255 210 122 / .25); }
