/* Blacklight Spectrum Tools — sitio */
:root {
  --bg: #0E0618;
  --bg-deep: #0B0414;
  --panel: #170B26;
  --line: #2A1640;
  --line-strong: #3B2155;
  --lilac: #DDBBFE;
  --lilac-hi: #F3E6FF;
  --cyan: #67E8F9;
  --text: #EDE6F5;
  --text-2: #CFC3DD;
  --text-3: #A898BB;
  --text-4: #8F7FA6;
  --warn: #FACC15;
  --ok: #86EFAC;
  --sans: 'Space Grotesk', system-ui, -apple-system, 'Segoe UI', sans-serif;
  --mono: 'Space Mono', ui-monospace, 'Cascadia Mono', Consolas, monospace;
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--sans); -webkit-font-smoothing: antialiased; }
img, video { display: block; max-width: 100%; height: auto; }
a { color: var(--lilac); text-decoration: none; }
a:hover { color: var(--lilac-hi); }
:focus-visible { outline: 2px solid var(--cyan); outline-offset: 3px; border-radius: 4px; }
.skip { position: absolute; left: -9999px; top: 8px; background: var(--lilac); color: #1A0B2C; padding: 10px 14px; border-radius: 8px; z-index: 10; }
.skip:focus { left: 8px; }

.wrap { max-width: 1200px; margin: 0 auto; padding: 0 32px; }
.section { padding-top: 120px; }
.eyebrow { margin: 0 0 14px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.24em; color: var(--cyan); text-transform: uppercase; }
.h1 { margin: 0; font-size: clamp(42px, 7vw, 92px); line-height: 0.98; font-weight: 700; letter-spacing: -0.02em; }
.h2 { margin: 0; font-size: clamp(30px, 4.2vw, 50px); line-height: 1.06; font-weight: 700; }
.lead { margin: 28px 0 0; max-width: 680px; font-size: clamp(18px, 2vw, 21px); line-height: 1.5; color: var(--text-2); }
.muted { color: var(--text-3); }
.accent { color: var(--lilac); }

/* Cabecera */
.header { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 18px; padding-top: 26px; padding-bottom: 26px; }
.brand { display: flex; align-items: center; gap: 14px; color: var(--text); }
.brand:hover { color: var(--text); }
.mark { display: flex; align-items: stretch; gap: 3px; height: 26px; }
.mark span { background: var(--lilac); }
.brand-name { display: flex; flex-direction: column; line-height: 1; }
.brand-name b { font-size: 16px; letter-spacing: 0.14em; }
.brand-name small { font-family: var(--mono); font-size: 9px; letter-spacing: 0.32em; color: var(--text-3); margin-top: 4px; }
.nav { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 26px; font-size: 15px; }
.nav a { color: var(--text-2); padding: 6px 0; }
.nav a:hover { color: var(--text); }
.lang { display: flex; border: 1px solid var(--line-strong); border-radius: 999px; overflow: hidden; font-family: var(--mono); font-size: 12px; }
.lang a { padding: 8px 12px; color: var(--text-3); }
.lang a[aria-current] { background: #2A1640; color: var(--lilac); }

/* Botones */
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px 20px; margin-top: 38px; }
.btn { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 26px; border-radius: 10px; font-weight: 600; font-size: 16px; }
.btn-primary { background: var(--lilac); color: #1A0B2C; font-weight: 700; }
.btn-primary:hover { background: var(--lilac-hi); color: #1A0B2C; }
.btn-ghost { border: 1px solid #4A2D69; color: var(--text); }
.btn-ghost:hover { border-color: var(--lilac); color: var(--text); }
.btn-outline { border: 1px solid var(--lilac); color: var(--lilac); }
.meta { font-family: var(--mono); font-size: 13px; color: var(--text-3); }

/* Espectrógrafo */
.spectro { position: relative; height: 300px; margin-top: 40px; border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); background: var(--bg-deep); overflow: hidden; }
.spectro-title { position: absolute; left: 24px; top: 12px; margin: 0; font-family: var(--mono); font-size: 11px; letter-spacing: 0.2em; color: var(--text-4); }
.spectro-lines { position: absolute; left: 6%; right: 6%; top: 34px; bottom: 64px; }
.spectro-lines span { position: absolute; top: 0; bottom: 0; background: var(--lilac); }
.spectro-lines .alpha { box-shadow: 0 0 22px rgba(221,187,254,0.65), 0 0 80px rgba(221,187,254,0.30); animation: glow 4s ease-in-out infinite; }
.spectro-lines .limit { top: -14px; bottom: -14px; width: 0; background: none; border-left: 1px dashed var(--cyan); opacity: 0.8; }
.spectro-labels { position: absolute; left: 6%; right: 6%; bottom: 14px; height: 38px; font-family: var(--mono); font-size: 12px; color: var(--text-3); }
.spectro-labels span { position: absolute; top: 0; line-height: 1.4; }
@keyframes glow { 50% { box-shadow: 0 0 30px rgba(221,187,254,0.85), 0 0 110px rgba(221,187,254,0.40); } }
@media (prefers-reduced-motion: reduce) { .spectro-lines .alpha { animation: none; } html { scroll-behavior: auto; } }
@media (max-width: 640px) { .spectro { height: 220px; } .spectro-labels .hide-sm { display: none; } }

/* Tarjetas */
.cards3 { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; margin-top: 48px; }
.card { padding: 30px; border-radius: 16px; background: var(--panel); border: 1px solid var(--line); }
.card .num { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--lilac); }
.card h3 { margin: 14px 0 10px; font-size: 22px; font-weight: 600; }
.card p { margin: 0; font-size: 16px; line-height: 1.55; color: var(--text-2); }

/* Catálogo: el espectro */
.catalog-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 20px; }
.catalog-head p { margin: 0; max-width: 380px; font-size: 16px; line-height: 1.55; color: var(--text-3); }
.catalog { margin-top: 44px; border-top: 1px solid var(--line); }
.row { display: flex; flex-wrap: wrap; align-items: center; gap: 18px 28px; padding: 26px 8px; border-bottom: 1px solid var(--line); color: var(--text); }
a.row:hover { background: rgba(221,187,254,0.04); color: var(--text); }
.row-mark { display: flex; align-items: center; gap: 16px; width: 92px; }
.row-mark i { display: block; background: var(--lilac); }
.row-mark b { font-family: var(--mono); font-weight: 400; font-size: 20px; color: var(--text-4); }
.row-body { flex: 999 1 420px; min-width: 0; }
.row-body strong { display: block; font-size: 22px; font-weight: 600; color: var(--text-2); }
.row-body span { display: block; margin-top: 6px; font-size: 15px; line-height: 1.5; color: var(--text-3); }
.row.on .row-mark b { color: var(--lilac); font-size: 22px; }
.row.on .row-body strong { font-size: 28px; font-weight: 700; color: var(--text); }
.row.on .row-body span { font-size: 16px; color: var(--text-2); }
.chip { padding: 7px 12px; border-radius: 999px; border: 1px solid var(--line-strong); color: var(--text-3); font-family: var(--mono); font-size: 12px; white-space: nowrap; }
.chip.ok { border-color: transparent; background: rgba(74,222,128,0.14); color: var(--ok); }
.row-end { display: flex; align-items: center; gap: 18px; }

/* Media + texto */
.split { display: flex; flex-wrap: wrap; align-items: center; gap: 48px; }
.split > div { flex: 1 1 340px; min-width: 0; }
.split > figure { flex: 2 1 560px; min-width: 0; margin: 0; }
.shot { width: 100%; border-radius: 14px; border: 1px solid var(--line-strong); box-shadow: 0 30px 80px rgba(0,0,0,0.5), 0 0 60px rgba(221,187,254,0.10); }
.split p { margin: 20px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }

/* Apoyo */
.support { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 28px; padding: 48px; border-radius: 20px; background: var(--panel); border: 1px solid var(--line-strong); }
.support > div { flex: 1 1 420px; min-width: 0; }
.support h2 { margin: 0; font-size: 34px; line-height: 1.1; }
.support p { margin: 14px 0 0; font-size: 17px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 640px) { .support { padding: 30px 24px; } }

/* Pie */
.footer { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; padding-top: 100px; padding-bottom: 60px; font-size: 14px; color: var(--text-3); }
.footer nav { display: flex; flex-wrap: wrap; gap: 22px; }

/* Página de Lyman */
.hero-tag { display: flex; align-items: center; gap: 16px; font-family: var(--mono); font-size: 13px; letter-spacing: 0.2em; color: var(--cyan); }
.hero-tag i { width: 8px; height: 26px; background: var(--lilac); box-shadow: 0 0 16px rgba(221,187,254,0.6); }
.hero-shot { margin: 56px 0 0; }
.hero-shot img { width: 100%; border-radius: 16px; border: 1px solid var(--line-strong); box-shadow: 0 40px 100px rgba(0,0,0,0.55), 0 0 80px rgba(221,187,254,0.12); }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 1px; margin-top: 72px; background: var(--line); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.stats div { padding: 28px; background: var(--bg); }
.stats b { display: block; font-family: var(--mono); font-weight: 400; font-size: 34px; color: var(--lilac); }
.stats p { margin: 8px 0 0; font-size: 15px; line-height: 1.5; color: var(--text-2); }

.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 440px), 1fr)); gap: 24px; margin-top: 44px; }
.feature { display: flex; flex-direction: column; border-radius: 18px; background: var(--panel); border: 1px solid var(--line); overflow: hidden; }
.feature video, .feature img { width: 100%; aspect-ratio: 816 / 500; object-fit: cover; background: #1F0C33; }
.feature div { padding: 24px 28px 30px; }
.feature .tag { margin: 0; font-family: var(--mono); font-size: 12px; letter-spacing: 0.2em; color: var(--cyan); }
.feature h3 { margin: 12px 0 0; font-size: 23px; line-height: 1.2; }
.feature p:last-child { margin: 10px 0 0; font-size: 16px; line-height: 1.6; color: var(--text-2); }
.feature.extra { display: none; }
.features.open .feature.extra { display: flex; }
.no-js .feature.extra { display: flex; }
.more { display: flex; justify-content: center; margin-top: 32px; }
.more button { display: inline-flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 26px; border-radius: 999px; border: 1px solid #4A2D69; background: transparent; color: var(--text); font: 600 16px var(--sans); cursor: pointer; }
.more button:hover { border-color: var(--lilac); }
.more svg { transition: transform 0.2s; }
.more button[aria-expanded="true"] svg { transform: rotate(180deg); }
.no-js .more { display: none; }

.steps { list-style: none; margin: 40px 0 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); gap: 20px; }
.steps li { padding: 28px; border-radius: 16px; border: 1px solid var(--line); }
.steps b { display: block; font-family: var(--mono); font-weight: 400; font-size: 28px; color: var(--lilac); }
.steps strong { display: block; margin-top: 12px; font-size: 17px; }
.steps p { margin: 8px 0 0; font-size: 15px; line-height: 1.55; color: var(--text-3); }

.faq { margin-top: 36px; border-top: 1px solid var(--line); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 64px; padding: 20px 0; font-size: 19px; font-weight: 600; cursor: pointer; list-style: none; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary svg { flex: none; transition: transform 0.2s; }
.faq details[open] summary svg { transform: rotate(180deg); }
.faq details p { margin: 0; padding: 0 48px 26px 0; max-width: 820px; font-size: 16px; line-height: 1.6; color: var(--text-2); }
@media (max-width: 640px) {
  .spectro-title { font-size: 10px; letter-spacing: 0.12em; right: 16px; left: 16px; }
  .spectro-lines { top: 52px; }
}
