/* Static, indexable pages (simuladores, UCOLAB, mapas de calor, mapa del sitio) built by tools/seo/build.mjs.
   Same visual line as the root landing: Unbounded uppercase titles, Manrope text, the pixel type only in the
   brand, ink greens with yellow for the main action, soft glow, film grain, quiet reveals (seo.js). */
@font-face { font-family: "Unbounded"; src: url("/fonts/unbounded.woff2") format("woff2"); font-weight: 200 900; font-display: swap; }
@font-face { font-family: "Manrope"; src: url("/fonts/manrope.woff2") format("woff2"); font-weight: 200 800; font-display: swap; }
@font-face { font-family: "Pixelify Sans"; src: url("/fonts/pixelify.woff2") format("woff2"); font-weight: 400; font-display: swap; }
:root { --ink: #05120b; --ink-2: #0a1f14; --ink-3: #10291c; --line: #24452f; --green: #00843d; --green-2: #1fae5b; --lime: #7ed957;
  --yellow: #ffd000; --yellow-2: #ffe766; --white: #f4f7f0; --muted: #98b0a1; --soft: #cfdcd3; --night: #0a1430;
  --display: "Unbounded", system-ui, sans-serif; --body: "Manrope", system-ui, sans-serif;
  --g: clamp(16px, 4vw, 56px); --ease: cubic-bezier(0.22, 1, 0.36, 1); color-scheme: dark; }
*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; background: var(--ink); color: var(--white); font: 400 17px/1.65 var(--body); -webkit-font-smoothing: antialiased; overflow-x: hidden; overflow-x: clip;
  background-image: radial-gradient(60% 50% at 80% -10%, rgba(0, 132, 61, .22), transparent 70%), radial-gradient(40% 40% at 0% 30%, rgba(255, 208, 0, .06), transparent 70%); background-repeat: no-repeat; }
img { display: block; max-width: 100%; height: auto; }
a { color: var(--yellow); }
h1, h2, h3 { font-family: var(--display); text-transform: uppercase; line-height: 1.04; letter-spacing: -0.02em; font-weight: 800; }
h1 { font-size: clamp(34px, 6.4vw, 76px); margin: 0; }
h2 { font-size: clamp(24px, 3.4vw, 40px); margin: 1.6em 0 .6em; }
h3 { font-size: 16px; margin: 1.4em 0 .5em; color: var(--lime); }
h2 em, h1 em { font-style: normal; color: var(--yellow); }
code, pre { font-family: ui-monospace, "SF Mono", Menlo, monospace; font-size: .92em; }
pre { background: var(--ink-2); border: 1px solid var(--line); border-radius: 14px; padding: 18px; overflow-x: auto; }
:focus-visible { outline: 3px solid var(--yellow); outline-offset: 3px; border-radius: 6px; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 8px; top: 8px; background: var(--yellow); color: var(--ink); padding: 8px; z-index: 99; }
.grain { position: fixed; inset: -50%; width: 200%; height: 200%; z-index: 90; pointer-events: none; opacity: .05;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='220' height='220'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}
@keyframes grain { 0%, 100% { transform: translate(0, 0); } 25% { transform: translate(-5%, 4%); } 50% { transform: translate(4%, -6%); } 75% { transform: translate(-3%, 6%); } }

/* Bar (same as the landing) */
.top { display: flex; align-items: center; gap: 16px; height: 68px; padding: 0 var(--g); position: sticky; top: 0; z-index: 50;
  background: rgba(5, 18, 11, .72); backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); border-bottom: 1px solid rgba(36, 69, 47, .6); }
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; color: var(--white); font: 400 20px "Pixelify Sans", monospace; text-transform: uppercase; }
.brand b { color: var(--yellow); font-weight: 400; margin-left: 4px; }
.brand em { font: 400 11px "Pixelify Sans", monospace; font-style: normal; color: var(--ink); background: var(--lime); padding: 1px 6px; }
.brand img { transition: transform .8s var(--ease); } .brand:hover img { transform: rotate(90deg); }
.top nav { margin-left: auto; display: flex; align-items: center; gap: 24px; }
.top nav a:not(.btn) { color: var(--soft); text-decoration: none; font: 800 12px var(--body); letter-spacing: .12em; text-transform: uppercase; position: relative; }
.top nav a:not(.btn)::after { content: ""; position: absolute; left: 0; right: 0; bottom: -5px; height: 2px; background: var(--yellow); transform: scaleX(0); transform-origin: right; transition: transform .5s var(--ease); }
.top nav a:not(.btn):hover::after, .top nav a[aria-current]::after { transform: scaleX(1); transform-origin: left; }
.top nav a[aria-current] { color: var(--white); }

/* Buttons */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; background: var(--yellow); color: var(--ink) !important; text-decoration: none;
  font: 700 14px var(--display); text-transform: uppercase; padding: 14px 20px; border-radius: 14px; box-shadow: 0 4px 0 #b39200; transition: background .25s, transform .25s var(--ease), box-shadow .25s; }
.btn:hover { background: var(--yellow-2); transform: translateY(-2px); box-shadow: 0 6px 0 #b39200; }
.btn:active { transform: translateY(2px); box-shadow: 0 2px 0 #b39200; }
.btn--sm { padding: 10px 16px; font-size: 12.5px; border-radius: 12px; }
.btn--lg { padding: 18px 26px; font-size: 15px; }
.btn--ghost { background: rgba(10, 31, 20, .8); color: var(--white) !important; box-shadow: 0 0 0 2px var(--line); }
.btn--ghost:hover { background: var(--ink-3); box-shadow: 0 0 0 2px var(--yellow); }
.lnk { display: inline-flex; align-items: center; gap: 8px; color: var(--yellow); text-decoration: none; font: 800 12.5px var(--body); letter-spacing: .12em; text-transform: uppercase;
  border-bottom: 2px solid rgba(255, 208, 0, .35); padding-bottom: 3px; transition: border-color .3s, gap .3s var(--ease); }
.lnk::after { content: "→"; } .lnk:hover { border-color: var(--yellow); gap: 12px; }

/* Generic page parts (simulator, UCOLAB, heatmaps, sitemap) */
.crumbs { padding: 18px var(--g) 0; font-size: 14px; color: var(--muted); max-width: 1180px; margin: 0 auto; }
.crumbs a { color: var(--muted); } .crumbs b { color: var(--white); font-weight: 700; }
main { max-width: 1180px; margin: 0 auto; padding: 0 var(--g) 72px; }
.hero { padding: 36px 0 12px; }
.kicker { font: 800 12.5px var(--body); letter-spacing: .14em; color: var(--lime); text-transform: uppercase; margin: 0 0 14px; }
.lead { font-size: clamp(17px, 1.6vw, 20px); color: var(--soft); max-width: 62ch; }
.cta { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin: 22px 0 30px; }
.shot { margin: 0 0 12px; border-radius: 24px; overflow: hidden; box-shadow: 0 0 0 1px rgba(126, 217, 87, .25), 0 50px 100px -40px #000; }
.shot img { transition: transform 1.2s var(--ease); } .shot:hover img { transform: scale(1.03); }
.sec { margin-top: 18px; }
.facts dl { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; margin: 22px 0 0; }
.facts dl div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.facts dt { font: 800 11.5px var(--body); letter-spacing: .14em; color: var(--lime); text-transform: uppercase; }
.facts dd { margin: 6px 0 0; font-weight: 600; }
.theory { background: var(--ink-2); border: 1px solid var(--line); border-radius: 24px; padding: clamp(20px, 3.4vw, 40px); margin-top: 30px; }
.theory h2:first-of-type { margin-top: .2em; }
.theory svg { width: 1.1em; height: 1.1em; vertical-align: -0.15em; color: var(--yellow); }
.sx-formula, .sx-formula-box { background: var(--ink-3); border-left: 4px solid var(--yellow); border-radius: 12px; padding: 12px 16px; margin: 12px 0; }
.sx-activity { border: 1px solid var(--line); border-radius: 14px; padding: 12px 16px; margin: 12px 0; }
.sx-expected { color: var(--lime); }
.frac { display: inline-flex; flex-direction: column; vertical-align: middle; text-align: center; margin: 0 .2em; }
.frac > span:first-child { border-bottom: 1px solid currentColor; padding: 0 .2em; }
.sep { display: inline-block; width: 2em; }
.cards { list-style: none; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 14px; }
.cards a { display: flex; flex-direction: column; gap: 4px; height: 100%; text-decoration: none; color: var(--white); background: var(--ink-2); border: 1px solid var(--line); border-radius: 18px; padding: 18px;
  transition: border-color .3s, transform .4s var(--ease); }
.cards a:hover { border-color: var(--yellow); transform: translateY(-3px); }
.cards img { border-radius: 12px; margin-bottom: 8px; aspect-ratio: 16 / 9; object-fit: cover; }
.cards b { font: 700 15px var(--display); text-transform: uppercase; }
.cards span { color: var(--lime); font-size: 14px; font-weight: 700; }
.cards small { color: var(--muted); font-size: 14.5px; }
.cards--big { grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); }
.cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; }
.cols--list { list-style: none; padding: 0; }
.cols--list li, .cols > div { background: var(--ink-2); border: 1px solid var(--line); border-radius: 16px; padding: 16px 18px; }
.cols--list b { display: block; color: var(--white); }
.faq details { border-bottom: 1px solid var(--line); }
.faq summary { cursor: pointer; list-style: none; display: flex; justify-content: space-between; gap: 16px; padding: 20px 0; font-weight: 700; font-size: 18px; transition: color .3s; }
.faq summary:hover { color: var(--yellow); }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; flex: none; width: 11px; height: 11px; margin-top: 6px; border-right: 2px solid var(--yellow); border-bottom: 2px solid var(--yellow); transform: rotate(45deg); transition: transform .5s var(--ease); }
.faq details[open] summary::after { transform: rotate(225deg); }
.faq p { color: var(--soft); margin: 0 0 22px; max-width: 70ch; }
.tree, .tree ul { list-style: none; padding-left: 0; } .tree ul { padding-left: 22px; border-left: 2px solid var(--line); margin: 8px 0 8px 6px; }
.tree li { margin: 8px 0; } .tree a { font-weight: 700; } .tree small { color: var(--muted); display: block; }
.fine { color: var(--muted); font-size: 13.5px; margin-top: 28px; }

/* ── Simulators hub ──────────────────────────────────────────────────────── */
.hub main { max-width: none; padding: 0 0 40px; }
.sh { position: relative; min-height: calc(100vh - 68px); min-height: calc(100svh - 68px); display: flex; align-items: center; overflow: hidden;
  padding: clamp(40px, 8vh, 90px) var(--g) clamp(70px, 10vh, 110px); background: radial-gradient(70% 70% at 75% 40%, rgba(10, 20, 48, .9), transparent 75%); }
.sh__field { position: absolute; inset: 0; width: 100%; height: 100%; }
.sh__in { position: relative; z-index: 2; width: 100%; min-width: 0; max-width: 1180px; pointer-events: none; }
.sh__in .lead, .sh__in .cta { max-width: 640px; }
.sh__in a, .sh__in .stats { pointer-events: auto; }
.sh__t { font-size: clamp(28px, 8.2vw, 124px); line-height: .9; letter-spacing: -0.04em; margin-bottom: 26px; }
.sh__t .ln { display: block; overflow: hidden; padding-bottom: .04em; }
.sh__t .ln > span { display: inline-block; }
.sh__t .o { color: transparent; -webkit-text-stroke: max(1.5px, .22vw) var(--yellow); }
.sh .lead { margin: 0 0 6px; text-shadow: 0 2px 20px var(--ink); }
.stats { list-style: none; display: flex; flex-wrap: wrap; gap: 14px 40px; padding: 0; margin: 34px 0 0; }
.stats b { display: block; font: 800 clamp(34px, 4vw, 54px)/1 var(--display); color: var(--white); font-variant-numeric: tabular-nums; }
.stats span { font: 800 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sh__hint { position: absolute; right: var(--g); bottom: 24px; z-index: 2; margin: 0; font: 800 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.coarse-ptr { display: none; } @media (hover: none) { .fine-ptr { display: none; } .coarse-ptr { display: inline; } }

.block { max-width: 1240px; margin: 0 auto; padding: clamp(70px, 9vw, 130px) var(--g) 0; }
.block__head h2 { margin: 0 0 clamp(28px, 4vw, 48px); font-size: clamp(24px, 7.4vw, 68px); overflow-wrap: anywhere; }
.sims { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(2, 1fr); gap: clamp(18px, 2.6vw, 34px); }
.sim { position: relative; display: flex; flex-direction: column; border-radius: 26px; overflow: hidden; background: var(--ink-2); border: 1px solid var(--line);
  transition: border-color .4s, transform .6s var(--ease); --mx: 50%; --my: 50%; }
.sim::before { content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none; opacity: 0; transition: opacity .4s;
  background: radial-gradient(400px circle at var(--mx) var(--my), rgba(255, 208, 0, .12), transparent 60%); }
.sim:hover { border-color: rgba(255, 208, 0, .6); transform: translateY(-4px); }
.sim:hover::before { opacity: 1; }
.sim__img { display: block; aspect-ratio: 16 / 9; overflow: hidden; }
.sim__img img { width: 100%; height: 100%; object-fit: cover; object-position: center 30%; transition: transform 1.2s var(--ease); }
.sim:hover .sim__img img { transform: scale(1.05); }
.sim__body { position: relative; z-index: 2; padding: 22px 24px 26px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.sim__no { margin: 0; display: flex; align-items: center; gap: 12px; font: 800 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; color: var(--lime); }
.sim__no span { font: 800 13px var(--display); color: var(--ink); background: var(--yellow); padding: 3px 7px; border-radius: 6px; letter-spacing: 0; }
.sim h3 { margin: 6px 0 0; font-size: clamp(20px, 2vw, 28px); color: var(--white); }
.sim h3 a { color: inherit; text-decoration: none; }
.sim__body > p:not(.sim__no) { margin: 4px 0 0; color: var(--soft); font-size: 15.5px; }
.sim__cta { display: flex; flex-wrap: wrap; align-items: center; gap: 18px; margin-top: auto; padding-top: 18px; }

.feature { max-width: 1240px; margin: clamp(80px, 10vw, 140px) auto 0; padding: clamp(24px, 4vw, 56px); display: grid; grid-template-columns: .9fr 1.1fr; gap: clamp(24px, 4vw, 60px); align-items: center;
  border-radius: 32px; background: linear-gradient(135deg, rgba(255, 208, 0, .12), rgba(0, 132, 61, .16)); border: 1px solid rgba(255, 208, 0, .35); width: calc(100% - 2 * var(--g)); }
.feature h2 { margin: 0 0 16px; font-size: clamp(44px, 7vw, 104px); letter-spacing: -0.04em; }
.feature p { color: var(--soft); font-size: clamp(16px, 1.4vw, 19px); }
.feature__img { display: block; border-radius: 22px; overflow: hidden; box-shadow: 0 0 0 1px rgba(126, 217, 87, .3), 0 50px 100px -40px #000; transform: rotate(1.5deg); transition: transform .8s var(--ease); }
.feature__img:hover { transform: rotate(0deg) scale(1.02); }

.tools { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.tools a { display: flex; flex-direction: column; gap: 6px; height: 100%; padding: 26px; border-radius: 22px; text-decoration: none; color: var(--white); background: var(--ink-2); border: 1px solid var(--line); transition: border-color .4s, transform .5s var(--ease); }
.tools a:hover { border-color: var(--yellow); transform: translateY(-3px); }
.tools b { font: 800 clamp(18px, 1.8vw, 24px) var(--display); text-transform: uppercase; }
.tools span { color: var(--lime); font: 800 11.5px var(--body); letter-spacing: .14em; text-transform: uppercase; }
.tools small { color: var(--muted); font-size: 15px; }

.planned { display: grid; gap: 26px; }
.planned__row { display: grid; grid-template-columns: 240px 1fr; gap: 20px; padding-top: 24px; border-top: 1px solid var(--line); }
.planned__row h3 { margin: 0; color: var(--white); font-size: 18px; display: flex; align-items: center; gap: 10px; }
.planned__row h3 span { font: 800 12px var(--body); color: var(--ink); background: var(--lime); border-radius: 999px; padding: 2px 9px; letter-spacing: 0; }
.planned__row ul { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.planned__row li { padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); color: var(--soft); font-size: 14px; transition: border-color .3s, color .3s; }
.planned__row li:hover { border-color: var(--lime); color: var(--white); }
.hub .faq { max-width: 860px; margin: 0 auto; padding: clamp(70px, 9vw, 120px) var(--g) 0; }

/* Lab-notebook ambience: faint graph paper behind the hub, a formula on each card. */
.hub { background-image: linear-gradient(rgba(126, 217, 87, .035) 1px, transparent 1px), linear-gradient(90deg, rgba(126, 217, 87, .035) 1px, transparent 1px),
  radial-gradient(60% 50% at 80% -10%, rgba(0, 132, 61, .22), transparent 70%); background-size: 24px 24px, 24px 24px, auto; background-repeat: repeat, repeat, no-repeat; }
.sim__f { margin: 2px 0 0; font: 600 15px ui-monospace, "SF Mono", Menlo, monospace; color: var(--yellow); letter-spacing: .02em; }
.sh__hint { text-transform: none; letter-spacing: .04em; }

/* Reveals (seo.js adds .js and .in); without JS everything is simply visible. */
.js .rv { opacity: 0; transform: translateY(28px); transition: opacity 1s var(--ease), transform 1.1s var(--ease); }
.js .rv.in { opacity: 1; transform: none; }
.js .sh__t .ln > span { transform: translateY(110%); transition: transform 1.3s var(--ease); }
.js .sh__t .ln:nth-child(2) > span { transition-delay: .12s; }
.js .sh.in .sh__t .ln > span { transform: none; }

/* Footer */
.foot { border-top: 1px solid var(--line); padding: 44px var(--g) 36px; display: grid; grid-template-columns: 1.6fr 1fr 1fr 1fr; gap: 28px; font-size: 15px; margin-top: 60px; }
.foot p { color: var(--muted); max-width: 42ch; }
.foot nav { display: flex; flex-direction: column; gap: 9px; }
.foot nav b { font: 800 11.5px var(--body); letter-spacing: .14em; color: var(--lime); text-transform: uppercase; }
.foot nav a { color: var(--muted); text-decoration: none; } .foot nav a:hover { color: var(--white); }

@media (max-width: 900px) {
  .sims, .tools { grid-template-columns: 1fr; }
  .feature { grid-template-columns: 1fr; }
  .feature__img { transform: none; }
  .planned__row { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 760px) {
  .top nav a:not(.btn) { display: none; }
  .top nav a[href="/simuladores"] { display: inline; }
  .foot { grid-template-columns: 1fr 1fr; } .foot > div { grid-column: 1 / -1; }
  .btn--lg { width: 100%; }
  .sh { align-items: flex-end; }
  .sh__hint { display: none; }
  .sh__field { opacity: .75; }
  .sh { padding-top: 34vh; }
  .stats { gap: 14px 26px; }
}
@media (max-width: 420px) { .brand span, .brand em { display: none; } .top nav { gap: 14px; } }
@media (prefers-reduced-motion: reduce) {
  .js .rv, .js .sh__t .ln > span { opacity: 1; transform: none; transition: none; }
}

/* Norvik Tech credit: highlighted, links to norvik.tech */
.norvik { color: var(--yellow) !important; font-weight: 800; text-decoration: none; background: linear-gradient(var(--yellow), var(--yellow)) left bottom / 100% 2px no-repeat;
  padding-bottom: 2px; transition: background-size .4s cubic-bezier(.22,1,.36,1), color .3s; }
.norvik:hover { background-size: 100% 100%; color: #05120b !important; }
