/* ============================================================
   Creditech Latam — Infrastructure Brief
   warm carbon · bone text · signal amber · mono-typographic
   ============================================================ */

:root {
  --bg:        #0D0E0D;
  --bg-soft:   #111312;
  --bg-mute:   #15171A;
  --surface:   #1A1D1F;
  --surface-2: #21241F;

  --bone:      #F2EBDB;
  --bone-soft: #D7D0BF;
  --mute:      #888A85;
  --mute-deep: #5A5C58;
  --line:      #232624;
  --line-soft: #1B1E1C;

  --signal:    #E5B547;          /* warm amber - acento principal */
  --signal-2:  #F4C964;
  --signal-deep:#A8801F;
  --hot:       #FF6B47;           /* coral - alertas */
  --live:      #7FB069;           /* verde - en vivo */
  --info:      #6EAFE0;

  --shadow:    0 1px 0 var(--line), 0 30px 60px -28px rgba(0,0,0,.6);

  --sans: "Geist", "Inter", system-ui, -apple-system, sans-serif;
  --mono: "Geist Mono", "JetBrains Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --serif: "Instrument Serif", "Iowan Old Style", Georgia, serif;

  --container: 1200px;
  --gutter: clamp(20px, 4vw, 44px);
  --topbar-h: 64px;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; -webkit-text-size-adjust: 100%; }

html, body {
  margin: 0;
  background: var(--bg);
  color: var(--bone);
  font-family: var(--sans);
  font-size: 15.5px;
  line-height: 1.55;
  font-variant-numeric: tabular-nums;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
  letter-spacing: -.005em;
  overflow-x: hidden;
}

@media (max-width: 720px) {
  :root { --topbar-h: 60px; --gutter: clamp(22px, 5.5vw, 28px); }
  html, body { font-size: 16px; }
  .block { padding: 56px 0; }
  .block__head { gap: 12px; margin-bottom: 30px; }
  .block__head h2 { line-height: 1.04; max-width: 18ch; letter-spacing: -.024em; }
  .block__sub { font-size: 15.5px; line-height: 1.55; }
  .tag { font-size: 10px; }
}

/* ============== Background — mesh + blueprint grid =============== */

.bgmesh {
  position: fixed;
  inset: 0;
  z-index: 0;
  overflow: hidden;
  pointer-events: none;
  background: var(--bg);
  contain: strict;
}

.bgmesh__blob {
  position: absolute;
  display: block;
  border-radius: 50%;
  filter: blur(110px);
  mix-blend-mode: screen;
  will-change: transform;
  transform: translateZ(0);
}

.bgmesh__blob--1 {
  width: 52vmax; height: 52vmax;
  background: radial-gradient(circle at center, #E5B547 0%, transparent 62%);
  top: -16vmax; left: -10vmax;
  opacity: .42;
  animation: drift-a 44s ease-in-out infinite alternate;
}

.bgmesh__blob--2 {
  width: 36vmax; height: 36vmax;
  background: radial-gradient(circle at center, #A8801F 0%, transparent 60%);
  top: 28vh; left: 32vw;
  opacity: .35;
  animation: drift-b 58s ease-in-out infinite alternate;
}

.bgmesh__blob--3 {
  width: 48vmax; height: 48vmax;
  background: radial-gradient(circle at center, #7FB069 0%, transparent 60%);
  bottom: -14vmax; right: -12vmax;
  opacity: .22;
  animation: drift-c 52s ease-in-out infinite alternate;
}

.bgmesh__blob--4 {
  width: 32vmax; height: 32vmax;
  background: radial-gradient(circle at center, #2A5A6E 0%, transparent 60%);
  top: 55vh; right: 18vw;
  opacity: .30;
  animation: drift-d 68s ease-in-out infinite alternate;
}

@keyframes drift-a {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(8vw, 6vh, 0) scale(1.12); }
  100% { transform: translate3d(-4vw, 12vh, 0) scale(.94); }
}
@keyframes drift-b {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-10vw, -8vh, 0) scale(1.18); }
  100% { transform: translate3d(6vw, 4vh, 0) scale(.92); }
}
@keyframes drift-c {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(-12vw, -6vh, 0) scale(.9); }
  100% { transform: translate3d(4vw, -12vh, 0) scale(1.08); }
}
@keyframes drift-d {
  0%   { transform: translate3d(0, 0, 0) scale(1); }
  50%  { transform: translate3d(6vw, -10vh, 0) scale(1.22); }
  100% { transform: translate3d(-8vw, 8vh, 0) scale(.86); }
}

/* Blueprint grid — faint amber lines */
.bgmesh__grid {
  position: absolute;
  inset: -1px;
  background-image:
    linear-gradient(rgba(229,181,71,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,181,71,.045) 1px, transparent 1px),
    linear-gradient(rgba(229,181,71,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(229,181,71,.018) 1px, transparent 1px);
  background-size: 128px 128px, 128px 128px, 32px 32px, 32px 32px;
  background-position: -1px -1px, -1px -1px, -1px -1px, -1px -1px;
  -webkit-mask-image: radial-gradient(ellipse 90% 80% at center, rgba(0,0,0,.85) 20%, transparent 95%);
          mask-image: radial-gradient(ellipse 90% 80% at center, rgba(0,0,0,.85) 20%, transparent 95%);
}
.bgmesh__grid::after {
  content: "";
  position: absolute;
  left: 0; right: 0; top: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,181,71,.4), transparent);
  opacity: .35;
}

/* Edge vignette to keep text readable */
.bgmesh__vignette {
  position: absolute; inset: 0;
  background:
    radial-gradient(ellipse 110% 80% at 50% 50%, transparent 40%, rgba(13,14,13,.55) 100%),
    linear-gradient(180deg, rgba(13,14,13,.35) 0%, transparent 22%, transparent 80%, rgba(13,14,13,.55) 100%);
}

@media (max-width: 720px) {
  .bgmesh__blob { filter: blur(70px); }
  .bgmesh__blob--3, .bgmesh__blob--4 { opacity: .15; }
  .bgmesh__grid { background-size: 80px 80px, 80px 80px, 20px 20px, 20px 20px; }
}

@media (prefers-reduced-motion: reduce) {
  .bgmesh__blob { animation: none !important; }
}

img, svg { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
button { font: inherit; }

::selection { background: var(--signal); color: var(--bg); }

.mono { font-family: var(--mono); }

/* ============== Grain texture =============== */

.grain {
  pointer-events: none;
  position: fixed; inset: 0;
  z-index: 9999;
  opacity: .035;
  mix-blend-mode: overlay;
  background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='160' height='160'><filter id='n'><feTurbulence type='fractalNoise' baseFrequency='0.92' numOctaves='2' stitchTiles='stitch'/><feColorMatrix values='0 0 0 0 1  0 0 0 0 1  0 0 0 0 1  0 0 0 0.8 0'/></filter><rect width='100%' height='100%' filter='url(%23n)'/></svg>");
}

/* ============== Tags & utilities =============== */

.tag {
  display: inline-block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--signal);
  font-weight: 500;
}

em {
  font-family: var(--serif);
  font-style: italic;
  font-weight: 400;
  color: var(--bone);
  letter-spacing: -.012em;
}

h1, h2, h3, h4 {
  margin: 0;
  font-family: var(--sans);
  font-weight: 600;
  letter-spacing: -.025em;
  line-height: 1.05;
  color: var(--bone);
}
h2 { font-size: clamp(34px, 6.2vw, 60px); }
h3 { font-size: 20px; letter-spacing: -.012em; line-height: 1.22; }
h4 { font-size: 16px; }
p  { margin: 0; }

/* ============== Buttons =============== */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 11px 16px;
  font-family: var(--mono);
  font-size: 12.5px;
  font-weight: 500;
  letter-spacing: .02em;
  border-radius: 6px;
  border: 1px solid var(--bone);
  background: var(--bone);
  color: var(--bg);
  cursor: pointer;
  transition: transform .15s ease, background .15s ease, color .15s ease, border-color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}
.btn svg { width: 14px; height: 14px; transition: transform .15s ease; }
.btn:hover svg { transform: translateX(3px); }

.btn--signal {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--bg);
  box-shadow: 0 0 0 0 rgba(229,181,71,0);
}
.btn--signal:hover {
  background: var(--signal-2);
  border-color: var(--signal-2);
  box-shadow: 0 14px 30px -16px rgba(229,181,71,.5);
}

.btn--ghost {
  background: transparent;
  color: var(--bone);
  border-color: var(--line);
}
.btn--ghost:hover { border-color: var(--bone); background: rgba(242,235,219,.04); }

.btn--lg { padding: 14px 20px; font-size: 13.5px; }
.btn--block { width: 100%; }

.link-mono {
  font-family: var(--mono);
  font-size: 12px;
  letter-spacing: .02em;
  color: var(--mute);
  transition: color .15s ease;
}
.link-mono:hover { color: var(--bone); }

/* ============== Topbar =============== */

.topbar {
  position: sticky; top: 0; z-index: 50;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: clamp(20px, 4vw, 56px);
  min-height: var(--topbar-h);
  padding: 0 var(--gutter);
  background: rgba(13,14,13,.74);
  backdrop-filter: blur(20px) saturate(160%);
  -webkit-backdrop-filter: blur(20px) saturate(160%);
  border-bottom: 1px solid var(--line);
}
.topbar::after {
  content: "";
  position: absolute; left: 0; right: 0; bottom: -1px;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(229,181,71,.35), transparent);
  opacity: .5;
  pointer-events: none;
}

.topbar__brand {
  display: flex;
  align-items: center;
  gap: 18px;
  height: var(--topbar-h);
}

.brand { display: inline-flex; align-items: center; gap: 10px; color: var(--bone); transition: opacity .15s ease; }
.brand:hover { opacity: .85; }
.brand__mark { color: var(--bone); display: inline-block; flex: none; }
.brand__mark svg { width: 26px; height: 26px; transition: transform .25s ease; }
.brand:hover .brand__mark svg { transform: rotate(-6deg); }
.brand__group { display: inline-flex; flex-direction: column; gap: 1px; line-height: 1; }
.brand__name { font-family: var(--sans); font-weight: 600; font-size: 16.5px; letter-spacing: -.022em; }
.brand__suffix { font-family: var(--mono); color: var(--mute); font-weight: 400; font-size: 12px; margin-left: 3px; letter-spacing: 0; }
.brand__tag { display: none; }
.brand--lg .brand__mark svg { width: 38px; height: 38px; }
.brand--lg .brand__name { font-size: 24px; }

.status {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 5px 10px 5px 9px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(127,176,105,.04);
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--bone-soft);
  white-space: nowrap;
  transition: border-color .2s ease, background .2s ease;
}
.status:hover { border-color: rgba(127,176,105,.4); background: rgba(127,176,105,.07); }
.status__dot {
  position: relative;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--live);
  box-shadow: 0 0 8px var(--live);
}
.status__dot::after {
  content: ""; position: absolute; inset: -3px;
  border-radius: 50%; border: 1px solid var(--live);
  opacity: .6; animation: ping 2s ease-out infinite;
}
@keyframes ping { 0% { transform: scale(.6); opacity: .8; } 100% { transform: scale(1.8); opacity: 0; } }
@keyframes pulse { 0%, 100% { opacity: 1; } 50% { opacity: .5; } }
.status__txt { color: var(--live); font-weight: 500; }
.status__sep { color: var(--mute-deep); margin: 0 2px; }
.status__ver { color: var(--mute); }

.topnav {
  display: flex;
  align-items: center;
  height: var(--topbar-h);
  justify-self: center;
}
.topnav a {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  height: 100%;
  padding: 0 14px;
  font-family: var(--sans);
  font-size: 13.5px;
  font-weight: 500;
  letter-spacing: -.005em;
  color: var(--mute);
  transition: color .15s ease;
}
.topnav a:hover { color: var(--bone); }
.topnav a:hover .topnav__n { color: var(--signal); }
.topnav__n {
  font-family: var(--mono);
  font-size: 9.5px;
  letter-spacing: .12em;
  color: var(--mute-deep);
  transition: color .15s ease;
}
.topnav a.is-on { color: var(--bone); }
.topnav a.is-on .topnav__n { color: var(--signal); }
.topnav a.is-on::before {
  content: "";
  position: absolute; left: 12px; right: 12px; bottom: 0;
  height: 1.5px;
  background: var(--signal);
  border-radius: 1.5px 1.5px 0 0;
}

.topbar__cta {
  display: inline-flex;
  align-items: center;
  gap: 16px;
  height: var(--topbar-h);
}

.topbar__login {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: var(--sans);
  font-size: 13px;
  font-weight: 500;
  color: var(--bone-soft);
  transition: color .15s ease;
}
.topbar__login svg { width: 11px; height: 11px; color: var(--mute); transition: transform .2s ease, color .15s ease; }
.topbar__login:hover { color: var(--bone); }
.topbar__login:hover svg { color: var(--signal); transform: translate(2px, -2px); }

.topbar__divider {
  width: 1px;
  height: 18px;
  background: var(--line);
}

.btn--sm { padding: 8px 13px; font-size: 12px; border-radius: 5px; }

.topbar__burger {
  display: none;
  position: relative;
  width: 36px; height: 32px;
  background: none; border: 1px solid var(--line);
  border-radius: 6px;
  cursor: pointer;
  padding: 0;
}
.topbar__burger span {
  position: absolute;
  left: 50%; transform: translateX(-50%);
  display: block; width: 14px; height: 1.2px;
  background: var(--bone);
  transition: transform .25s ease, top .25s ease, opacity .15s ease;
}
.topbar__burger span:nth-child(1) { top: 11px; }
.topbar__burger span:nth-child(2) { top: 17px; }
.topbar__burger[aria-expanded="true"] span:nth-child(1) { top: 14px; transform: translateX(-50%) rotate(45deg); }
.topbar__burger[aria-expanded="true"] span:nth-child(2) { top: 14px; transform: translateX(-50%) rotate(-45deg); }

@media (max-width: 1180px) {
  .status { display: none; }
}
@media (max-width: 1024px) {
  .topnav { display: none; }
  /* switch to flex so brand can actually shrink and the CTA never overflows */
  .topbar {
    display: flex;
    align-items: center;
    gap: 12px;
    grid-template-columns: none;
    padding: 0 var(--gutter);
  }
  .topbar__brand { flex: 1 1 auto; min-width: 0; gap: 0; }
  .topbar__cta   { flex: 0 0 auto; gap: 8px; }
  .topbar__burger { display: inline-flex; align-items: center; justify-content: center; flex: 0 0 auto; }
  .topbar__cta .topbar__login,
  .topbar__cta .topbar__divider { display: none; }

  /* Brand: 2-line, shrinkable */
  .brand { gap: 12px; min-width: 0; }
  .brand__mark svg { width: 32px; height: 32px; }
  .brand__group { min-width: 0; max-width: 100%; }
  .brand__name {
    font-size: 16.5px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .brand__tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-family: var(--mono);
    font-size: 10px;
    letter-spacing: .1em;
    color: var(--mute);
    margin-top: 2px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    max-width: 100%;
  }
  .brand__tag-dot {
    width: 5px; height: 5px;
    border-radius: 50%;
    background: var(--live);
    box-shadow: 0 0 6px var(--live);
    animation: pulse 1.6s ease-in-out infinite;
    flex: none;
  }
}

/* Phone: hide the tag, keep tight layout */
@media (max-width: 600px) {
  .brand__tag { display: none; }
  .brand__name { font-size: 16px; }
  .btn--sm { padding: 8px 12px; font-size: 12px; }
  .topbar__cta .btn--signal svg { width: 13px; height: 13px; }
  .topbar__burger { width: 36px; height: 32px; }
}

@media (max-width: 420px) {
  .brand__suffix { display: none; }
  .topbar__cta .btn--signal {
    padding: 7px 11px;
    font-size: 0;
    gap: 0;
  }
  .topbar__cta .btn--signal::before {
    content: "Acceso";
    font-family: var(--sans);
    font-size: 12px;
    font-weight: 500;
    color: currentColor;
  }
  .topbar__cta .btn--signal svg { width: 12px; height: 12px; }
}

/* Mobile drawer (open state) */
.topnav.is-open {
  display: flex;
  position: fixed;
  top: var(--topbar-h);
  left: 0; right: 0;
  flex-direction: column;
  align-items: stretch;
  height: auto;
  gap: 0;
  padding: 12px var(--gutter) 18px;
  background: rgba(13,14,13,.96);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid var(--line);
  z-index: 49;
  animation: slideDown .25s ease;
}
.topnav.is-open a {
  height: auto;
  padding: 14px 4px;
  border-bottom: 1px solid var(--line-soft);
  font-size: 16px;
  justify-content: flex-start;
}
.topnav.is-open a:last-child { border-bottom: none; }
.topnav.is-open a::before { display: none; }
@keyframes slideDown { from { transform: translateY(-8px); opacity: 0; } to { transform: none; opacity: 1; } }

/* ============== Shell =============== */

.shell {
  position: relative;
  z-index: 1;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 var(--gutter);
}

/* ============== Sections / Blocks =============== */

.main { position: relative; min-width: 0; }

.block {
  padding: clamp(60px, 8vw, 100px) 0;
  border-top: 1px solid var(--line);
}
.block:first-child { border-top: none; }
.block { position: relative; }
.block--alt { background: transparent; }
.block--alt::before {
  content: "";
  position: absolute;
  left: calc(50% - 50vw);
  width: 100vw;
  top: 0;
  height: 100%;
  background: var(--bg-soft);
  z-index: -1;
}

.block__head {
  display: flex;
  flex-direction: column;
  gap: 16px;
  max-width: 920px;
  margin-bottom: clamp(36px, 5vw, 56px);
}
.block__head h2 { max-width: 22ch; }
.block__sub { color: var(--bone-soft); max-width: 60ch; font-size: 16.5px; line-height: 1.55; }

/* ============== HERO =============== */

.hero {
  padding-top: clamp(40px, 6vw, 80px);
  padding-bottom: clamp(40px, 6vw, 70px);
  border-top: none;
}
.hero__head {
  display: flex; justify-content: space-between; align-items: center;
  margin-bottom: 24px;
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}
.hero__id { font-family: var(--mono); font-size: 11.5px; color: var(--mute); letter-spacing: .04em; }
.hero__id b { color: var(--bone); font-weight: 500; }

.hero__title {
  font-size: clamp(48px, 11vw, 96px);
  font-weight: 600;
  letter-spacing: -.038em;
  line-height: .94;
  margin-bottom: 26px;
}
.hero__title span { display: block; }
.hero__title em { font-size: 1.05em; padding: 0 2px; }

.hero__lede {
  max-width: 58ch;
  font-size: 18.5px;
  color: var(--bone-soft);
  line-height: 1.5;
  margin-bottom: 30px;
}
.hero__lede b { color: var(--bone); font-weight: 600; }

.hero__actions { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 50px; }

.hero__stats {
  list-style: none;
  padding: 24px 0;
  margin: 0 0 56px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}
.stat__k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 8px; }
.stat__v { display: block; font-size: 30px; font-weight: 500; letter-spacing: -.02em; color: var(--bone); }
.stat__d { display: block; font-family: var(--mono); font-size: 11px; color: var(--mute); margin-top: 4px; letter-spacing: .005em; }

@media (max-width: 760px) {
  .hero {
    padding-top: 30px;
    padding-bottom: 40px;
  }
  .hero__head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-bottom: 14px;
    margin-bottom: 18px;
  }
  .hero__id { font-size: 10.5px; }
  .hero__title { margin-bottom: 22px; letter-spacing: -.04em; }
  .hero__lede { font-size: 16.5px; margin-bottom: 24px; }
  .hero__actions { gap: 8px; margin-bottom: 36px; flex-direction: column; align-items: stretch; }
  .hero__actions .btn { justify-content: center; }
  .hero__stats {
    grid-template-columns: 1fr 1fr;
    gap: 18px 22px;
    padding: 20px 0;
    margin: 0 0 36px;
  }
  .stat__v { font-size: 28px; }
}
@media (max-width: 420px) {
  .hero__title { font-size: 46px; }
  .hero__stats { grid-template-columns: 1fr; gap: 16px; }
  .hero__stats > li { display: grid; grid-template-columns: auto 1fr; gap: 12px; align-items: baseline; }
  .stat__k { margin-bottom: 0; min-width: 110px; }
  .stat__v { font-size: 24px; grid-column: 2; }
  .stat__d { grid-column: 2; }
}

/* ────── Operator panel ────── */

.op {
  margin: 0 0 36px;
  background: linear-gradient(180deg, #131613 0%, #0F1110 100%);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  box-shadow: var(--shadow);
}
.op__chrome {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 14px;
  padding: 11px 16px;
  border-bottom: 1px solid var(--line);
  background: rgba(255,255,255,.012);
}
.op__dots { display: flex; gap: 6px; }
.op__dots i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.op__dots i:nth-child(1) { background: var(--hot); }
.op__dots i:nth-child(2) { background: var(--signal); }
.op__dots i:nth-child(3) { background: var(--live); }
.op__path { font-family: var(--mono); font-size: 11.5px; color: var(--mute); text-align: center; }
.op__env { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .04em; }
.op__env b { color: var(--signal); margin-right: 6px; letter-spacing: .08em; }

.op__body {
  display: grid;
  grid-template-columns: 200px 1fr;
  min-height: 360px;
}
.op__side {
  padding: 18px 14px;
  border-right: 1px solid var(--line);
}
.op__side-k {
  display: block;
  font-family: var(--mono); font-size: 10px;
  letter-spacing: .14em; text-transform: uppercase;
  color: var(--mute-deep);
  margin: 14px 8px 8px;
}
.op__side-k:first-child { margin-top: 0; }
.op__side ul { list-style: none; padding: 0; margin: 0; }
.op__side li {
  padding: 7px 10px;
  border-radius: 6px;
  font-size: 13px;
  color: var(--mute);
  cursor: pointer;
  display: flex; justify-content: space-between; align-items: center;
}
.op__side li:hover { color: var(--bone-soft); background: rgba(255,255,255,.02); }
.op__side li.is-on { background: rgba(229,181,71,.08); color: var(--bone); }
.op__side li.is-on::after { content: "→"; color: var(--signal); }

.op__main { padding: 22px 24px; display: flex; flex-direction: column; gap: 18px; }
.op__bar { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; }
.op__crumbs { font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .02em; }
.op__crumbs b { color: var(--bone); }
.op__bar h3 { font-size: 22px; margin-top: 6px; }
.op__live { font-family: var(--mono); font-size: 10.5px; letter-spacing: .08em; text-transform: uppercase; color: var(--live); display: inline-flex; align-items: center; gap: 6px; white-space: nowrap; }
.op__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--live); animation: pulse 1.5s infinite; box-shadow: 0 0 10px var(--live); }

.op__cards { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; }
.opcard {
  padding: 14px 16px;
  background: rgba(255,255,255,.025);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.opcard--mute { background: transparent; }
.opcard__k { display: block; font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.opcard__v { display: block; font-size: 24px; font-weight: 500; letter-spacing: -.02em; color: var(--bone); margin: 4px 0 2px; font-variant-numeric: tabular-nums; }
.opcard__d { display: block; font-family: var(--mono); font-size: 10.5px; color: var(--mute); }

.op__feed { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line); }
.op__feed li {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 0;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--mute);
  border-bottom: 1px dashed var(--line);
}
.op__feed li b { color: var(--bone); font-weight: 500; margin-right: 4px; }
.op__t { color: var(--mute-deep); width: 48px; flex: none; }
.dot { width: 7px; height: 7px; border-radius: 50%; }
.dot--g { background: var(--live); }
.dot--y { background: var(--signal); }
.dot--r { background: var(--hot); }

.op__foot {
  display: flex; justify-content: space-between; align-items: center; gap: 12px;
  font-family: var(--mono); font-size: 11px; color: var(--mute);
  padding-top: 10px;
  border-top: 1px solid var(--line);
}
.op__signal { color: var(--signal); font-weight: 500; letter-spacing: .04em; text-transform: uppercase; }

@media (max-width: 760px) {
  /* Panel becomes a mobile-feel interface card:
     no sidebar (it crowds), bigger cards, mobile-style feed */
  .op {
    margin: 0 0 28px;
    border-radius: 18px;
    border-color: rgba(255,255,255,.06);
    box-shadow: 0 24px 60px -28px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.04);
  }
  .op__chrome { padding: 12px 16px; gap: 10px; border-bottom-color: rgba(255,255,255,.06); }
  .op__dots i { width: 8px; height: 8px; }
  .op__path {
    font-size: 11px;
    max-width: 48vw;
    overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
  }
  .op__env { font-size: 9.5px; }
  .op__body { grid-template-columns: 1fr; min-height: 0; }
  .op__side { display: none; }

  .op__main { padding: 22px 20px 18px; gap: 16px; }
  .op__bar { flex-direction: column; align-items: flex-start; gap: 8px; }
  .op__crumbs { font-size: 11px; }
  .op__bar h3 { font-size: 19px; letter-spacing: -.012em; line-height: 1.2; }
  .op__live {
    align-self: flex-start;
    padding: 4px 10px 4px 9px;
    border: 1px solid rgba(127,176,105,.3);
    background: rgba(127,176,105,.08);
    border-radius: 999px;
    font-size: 10px;
  }

  .op__cards { grid-template-columns: 1fr; gap: 8px; }
  .opcard {
    padding: 16px 18px;
    display: grid;
    grid-template-columns: 1fr auto;
    grid-template-areas:
      "k k"
      "v d";
    align-items: baseline;
    column-gap: 12px;
    row-gap: 4px;
  }
  .opcard__k { grid-area: k; font-size: 10px; }
  .opcard__v { grid-area: v; font-size: 26px; line-height: 1; }
  .opcard__d {
    grid-area: d;
    text-align: right;
    font-size: 10.5px;
    color: var(--mute);
    align-self: end;
  }

  .op__feed {
    margin-top: 2px;
    padding-top: 12px;
    border-top: 1px solid rgba(255,255,255,.06);
  }
  .op__feed li {
    gap: 10px;
    padding: 11px 0;
    font-size: 12px;
    border-bottom: 1px solid rgba(255,255,255,.04);
  }
  .op__feed li > .op__t {
    order: 3;
    width: auto;
    margin-left: auto;
    color: var(--mute-deep);
    font-size: 10.5px;
  }

  .op__foot {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    padding-top: 14px;
    font-size: 10.5px;
  }
  .op__signal { font-size: 10px; }
}

/* ────── Proofs strip ────── */

.proofs { display: flex; align-items: center; gap: 24px; flex-wrap: wrap; padding-top: 24px; border-top: 1px solid var(--line); }
.proofs__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.proofs__list { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 18px; font-family: var(--mono); font-size: 13px; color: var(--bone-soft); }
.proofs__list li { display: inline-flex; align-items: center; gap: 4px; }
.proofs__list li::before { content: "·"; color: var(--mute-deep); margin-right: 8px; }
.proofs__list li:first-child::before { display: none; }
.proofs__list li span { color: var(--signal); margin-left: 2px; }

/* ============== Capabilities (spotlight + ledger) =============== */

.caps {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* ───── Spotlight ───── */

.caps__spot {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  position: relative;
}
.caps__spot::before {
  content: "";
  position: absolute;
  inset: 0;
  background: radial-gradient(ellipse 60% 80% at 100% 0%, rgba(229,181,71,.10), transparent 60%);
  pointer-events: none;
}

.caps__spot-copy {
  position: relative;
  padding: 36px 36px 32px;
  display: flex; flex-direction: column; gap: 16px;
  border-right: 1px solid var(--line);
}
.caps__kicker { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; color: var(--signal); font-weight: 500; }
.caps__spot-copy h3 {
  font-size: clamp(26px, 3.2vw, 38px);
  letter-spacing: -.025em;
  font-weight: 600;
  line-height: 1.05;
  max-width: 16ch;
}
.caps__spot-copy > p {
  color: var(--bone-soft);
  font-size: 15.5px;
  line-height: 1.55;
  max-width: 46ch;
}
.caps__bullets {
  list-style: none;
  padding: 16px 0 0;
  margin: auto 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 8px;
  font-size: 13.5px;
  color: var(--bone-soft);
}
.caps__bullets li { display: flex; align-items: baseline; gap: 10px; }
.caps__bullets li::before {
  content: "▶";
  font-size: 9px;
  color: var(--signal);
  transform: translateY(-1px);
}
.caps__bullets b { color: var(--bone); font-weight: 600; font-family: var(--mono); font-size: 11.5px; letter-spacing: .04em; text-transform: uppercase; margin-right: 6px; }

/* ───── Config card (visual on the right) ───── */

.confcard {
  position: relative;
  margin: 28px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 18px;
  display: flex; flex-direction: column; gap: 14px;
  box-shadow: 0 28px 60px -20px rgba(0,0,0,.55);
  font-family: var(--mono);
  align-self: center;
  width: calc(100% - 56px);
  max-width: 420px;
}
.confcard header {
  display: flex; justify-content: space-between; align-items: center;
  padding-bottom: 12px;
  border-bottom: 1px dashed var(--line);
}
.confcard__k { font-size: 11px; color: var(--bone-soft); letter-spacing: .005em; }
.confcard__env {
  font-size: 9.5px; letter-spacing: .14em;
  padding: 2px 7px;
  background: rgba(229,181,71,.12); color: var(--signal);
  border-radius: 4px;
}
.confcard__rows { display: flex; flex-direction: column; gap: 12px; }
.confrow {
  display: grid;
  grid-template-columns: 60px 1fr 56px;
  gap: 12px;
  align-items: center;
  font-size: 11.5px;
}
.confrow__k { color: var(--mute); letter-spacing: .04em; text-transform: lowercase; }
.confrow__bar {
  position: relative;
  height: 4px;
  background: var(--line);
  border-radius: 2px;
}
.confrow__bar i {
  position: absolute;
  top: 50%;
  width: 12px; height: 12px;
  margin-top: -6px;
  background: var(--bg);
  border: 3px solid var(--signal);
  border-radius: 50%;
}
.confrow__v { color: var(--bone); text-align: right; font-weight: 500; }
.confrow--chips { grid-template-columns: 60px 1fr; }
.confrow__chips { display: inline-flex; gap: 4px; }
.confrow__chips i {
  font-style: normal;
  font-size: 10.5px;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mute);
}
.confrow__chips i.is-on {
  background: var(--signal);
  border-color: var(--signal);
  color: var(--bg);
}
.confcard__foot {
  display: flex; justify-content: space-between; align-items: center;
  padding-top: 12px;
  border-top: 1px dashed var(--line);
  font-size: 10.5px;
  color: var(--mute);
}
.confcard__foot .dot { display: inline-block; vertical-align: middle; margin-right: 6px; }
.confcard__save { color: var(--mute-deep); letter-spacing: .04em; }

/* ───── Ledger ───── */

.caps__ledger {
  list-style: none;
  margin: 0;
  padding: 0;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow: hidden;
  background: var(--bg-soft);
  counter-reset: caps;
}
.caps__ledger > li {
  display: grid;
  grid-template-columns: 64px 1fr 180px;
  align-items: start;
  gap: 24px;
  padding: 22px 28px;
  border-bottom: 1px solid var(--line);
  position: relative;
  transition: background .2s ease, padding-left .25s ease;
}
.caps__ledger > li:last-child { border-bottom: none; }
.caps__ledger > li::before {
  content: "";
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: var(--signal);
  transform: scaleY(0);
  transform-origin: top;
  transition: transform .25s ease;
}
.caps__ledger > li:hover {
  background: var(--surface);
  padding-left: 34px;
}
.caps__ledger > li:hover::before { transform: scaleY(1); }
.caps__ledger > li:hover h4 { color: var(--signal); }

.caps__n {
  font-family: var(--mono);
  font-size: 13px;
  font-weight: 500;
  color: var(--signal);
  letter-spacing: .04em;
  padding-top: 4px;
}
.caps__ledger li > div { display: flex; flex-direction: column; gap: 6px; max-width: 62ch; }
.caps__ledger h4 {
  font-size: 18px;
  font-weight: 600;
  letter-spacing: -.012em;
  color: var(--bone);
  transition: color .15s ease;
}
.caps__ledger p { color: var(--bone-soft); font-size: 14px; line-height: 1.55; }

.caps__tags {
  list-style: none;
  padding: 4px 0 0;
  margin: 0;
  display: flex; flex-wrap: wrap; gap: 5px;
  justify-content: flex-end;
}
.caps__tags li {
  display: inline-block;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  padding: 3px 8px;
  border: 1px solid var(--line);
  border-radius: 4px;
  color: var(--mute);
}

@media (max-width: 900px) {
  .caps__spot { grid-template-columns: 1fr; }
  .caps__spot-copy { border-right: none; border-bottom: 1px solid var(--line); padding: 28px 24px; }
  .caps__spot-copy h3 { font-size: 28px; }
  .confcard { margin: 22px auto; width: calc(100% - 44px); padding: 16px; }
  .caps__ledger > li {
    grid-template-columns: 50px 1fr;
    grid-template-areas:
      "n body"
      ".  tags";
    padding: 20px;
    gap: 14px;
  }
  .caps__ledger > li:hover { padding-left: 26px; }
  .caps__n { grid-area: n; }
  .caps__ledger > li > div { grid-area: body; }
  .caps__tags { grid-area: tags; justify-content: flex-start; }
}
@media (max-width: 480px) {
  .caps__spot-copy { padding: 24px 20px; }
  .caps__spot-copy h3 { font-size: 24px; }
  .confrow { grid-template-columns: 50px 1fr 50px; gap: 10px; font-size: 11px; }
  .confrow--chips { grid-template-columns: 50px 1fr; }
  .caps__ledger > li {
    grid-template-columns: 38px 1fr;
    padding: 18px;
  }
  .caps__ledger > li:hover { padding-left: 22px; }
  .caps__ledger h4 { font-size: 16px; }
  .caps__ledger p { font-size: 13.5px; }
}

/* ============== Timeline (5 days) =============== */

.timeline {
  list-style: none;
  padding: 0; margin: 0;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
  position: relative;
}
.timeline::before {
  content: "";
  position: absolute;
  left: 24px; right: 24px; top: 50%;
  height: 1px;
  background: repeating-linear-gradient(90deg, var(--mute-deep) 0 4px, transparent 4px 10px);
  z-index: 0;
  pointer-events: none;
  opacity: .3;
}
.step {
  position: relative;
  background: var(--bg-soft);
  padding: 26px 22px 22px;
  display: flex; flex-direction: column; gap: 10px;
  min-height: 220px;
}
.step__d { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; color: var(--mute); }
.step h4 { font-size: 18px; letter-spacing: -.012em; }
.step p { color: var(--bone-soft); font-size: 13.5px; line-height: 1.5; }
.step__chip {
  margin-top: auto;
  align-self: flex-start;
  padding: 4px 9px;
  border: 1px solid var(--line);
  border-radius: 4px;
  font-family: var(--mono);
  font-size: 10.5px;
  letter-spacing: .04em;
  color: var(--mute);
}
.step--go { background: linear-gradient(180deg, rgba(229,181,71,.10) 0%, var(--bg-soft) 80%); }
.step--go .step__d, .step--go .step__chip { color: var(--signal); border-color: rgba(229,181,71,.4); }

@media (max-width: 980px) {
  .timeline { grid-template-columns: 1fr 1fr; }
  .timeline::before { display: none; }
}
@media (max-width: 600px) {
  .timeline {
    display: flex;
    flex-direction: column;
    gap: 0;
    border: none;
    background: transparent;
    border-radius: 0;
    padding-left: 18px;
    overflow: visible;
  }
  .step {
    position: relative;
    background: transparent;
    border-left: 1px solid var(--line);
    padding: 0 0 30px 24px;
    margin-left: 6px;
    min-height: 0;
  }
  .step:last-child { padding-bottom: 0; }
  .step::before {
    content: "";
    position: absolute;
    left: -6px; top: 4px;
    width: 11px; height: 11px;
    background: var(--bg);
    border: 2px solid var(--signal);
    border-radius: 50%;
    z-index: 1;
  }
  .step--go {
    border-left-color: var(--signal);
    background: transparent;
  }
  .step--go::before {
    background: var(--signal);
    box-shadow: 0 0 12px var(--signal);
  }
  .step__d { font-size: 10.5px; }
  .step h4 { font-size: 16px; margin-top: 4px; }
  .step p { font-size: 13.5px; }
  .step__chip { margin-top: 8px; }
}

/* ============== API + code =============== */

.api {
  display: grid;
  grid-template-columns: 1fr 1.05fr;
  gap: 24px;
  align-items: start;
}

.api__list {
  list-style: none;
  padding: 0; margin: 0;
  border-top: 1px solid var(--line);
}
.api__list li {
  display: grid;
  grid-template-columns: 40px 1fr;
  grid-column-gap: 14px;
  grid-template-areas:
    "n title"
    "n desc";
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
  transition: padding .2s ease;
  cursor: default;
}
.api__list li:hover { padding-left: 10px; }
.api__list li:hover b { color: var(--signal); }
.api__n { grid-area: n; font-family: var(--mono); font-size: 11px; color: var(--mute); letter-spacing: .06em; padding-top: 4px; }
.api__list b { grid-area: title; font-size: 17px; font-weight: 600; color: var(--bone); transition: color .15s ease; }
.api__d { grid-area: desc; font-family: var(--mono); font-size: 12px; color: var(--mute); letter-spacing: .005em; }

.code {
  background: linear-gradient(180deg, #0E100F 0%, #0B0D0C 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  font-family: var(--mono);
  position: sticky; top: 80px;
}
.code__bar {
  display: flex; justify-content: space-between; align-items: center;
  padding: 10px 14px;
  background: rgba(255,255,255,.02);
  border-bottom: 1px solid var(--line);
}
.code__file { font-size: 11.5px; color: var(--mute); }
.code__lang { font-size: 10.5px; color: var(--signal); letter-spacing: .12em; text-transform: uppercase; }
.code pre {
  margin: 0;
  padding: 20px 22px;
  font-size: 12.5px;
  line-height: 1.7;
  color: var(--bone-soft);
  overflow-x: auto;
  white-space: pre;
}
.code .c { color: var(--mute-deep); font-style: italic; }
.code .s { color: #C0E5A4; }
.code .k { color: var(--signal-2); }
.code .n { color: #FFB3A0; }

@media (max-width: 980px) {
  .api { grid-template-columns: 1fr; }
  .code { position: static; }
}
@media (max-width: 560px) {
  .api__list li { grid-template-columns: 32px 1fr; gap: 12px; padding: 14px 0; }
  .api__list b { font-size: 16px; }
  .api__d { font-size: 11.5px; }
  .code pre { padding: 16px; font-size: 11px; line-height: 1.65; }
  .code__bar { padding: 9px 12px; }
  .code__file { font-size: 11px; }
}

/* ============== Simulador =============== */

.sim {
  display: grid;
  grid-template-columns: 1fr 0.95fr;
  gap: 18px;
  align-items: stretch;
}
.sim__form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 24px;
}
.sim__field { display: grid; grid-template-columns: 1fr auto; align-items: baseline; gap: 4px 12px; }
.sim__k { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.sim__v { font-family: var(--mono); font-size: 22px; font-weight: 500; color: var(--bone); letter-spacing: -.012em; text-align: right; }

.sim__field input[type=range] {
  grid-column: 1 / -1;
  -webkit-appearance: none; appearance: none;
  width: 100%;
  background: transparent;
  margin: 12px 0 0;
}
.sim__field input[type=range]::-webkit-slider-runnable-track { height: 3px; background: var(--line); border-radius: 3px; }
.sim__field input[type=range]::-moz-range-track { height: 3px; background: var(--line); border-radius: 3px; }
.sim__field input[type=range]::-webkit-slider-thumb {
  -webkit-appearance: none; appearance: none;
  width: 18px; height: 18px;
  background: var(--bg);
  border: 4px solid var(--signal);
  border-radius: 50%;
  margin-top: -7px;
  cursor: pointer;
  transition: transform .12s ease, box-shadow .12s ease;
}
.sim__field input[type=range]::-webkit-slider-thumb:hover { transform: scale(1.15); box-shadow: 0 0 0 4px rgba(229,181,71,.18); }
.sim__field input[type=range]::-moz-range-thumb {
  width: 18px; height: 18px;
  background: var(--bg);
  border: 4px solid var(--signal);
  border-radius: 50%;
  cursor: pointer;
}
.sim__scale { grid-column: 1 / -1; display: flex; justify-content: space-between; font-family: var(--mono); font-size: 10px; color: var(--mute); margin-top: 6px; letter-spacing: .1em; }

.sim__chips { border: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.sim__chips legend { font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); margin-bottom: 12px; width: 100%; }
.sim__chips label { position: relative; }
.sim__chips input { position: absolute; opacity: 0; pointer-events: none; }
.sim__chips span {
  display: inline-block;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  font-family: var(--mono);
  font-size: 12px;
  color: var(--bone-soft);
  cursor: pointer;
  transition: all .15s ease;
}
.sim__chips input:checked + span { background: var(--signal); color: var(--bg); border-color: var(--signal); }
.sim__chips label:hover span { border-color: var(--bone); }

.sim__out {
  background: linear-gradient(180deg, var(--surface) 0%, var(--bg-soft) 100%);
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 26px;
  display: flex; flex-direction: column; gap: 18px;
  position: relative; overflow: hidden;
}
.sim__out::before {
  content: ""; position: absolute; inset: -1px;
  background: radial-gradient(ellipse 80% 60% at 100% 0%, rgba(229,181,71,.16), transparent 60%);
  pointer-events: none;
}
.sim__out > * { position: relative; }
.sim__out header { display: flex; justify-content: space-between; align-items: center; }
.sim__live { font-family: var(--mono); font-size: 10.5px; color: var(--signal); display: inline-flex; align-items: center; gap: 6px; letter-spacing: .04em; }
.sim__live i { width: 7px; height: 7px; border-radius: 50%; background: var(--signal); animation: pulse 1.5s infinite; box-shadow: 0 0 8px var(--signal); }

.sim__cuota {
  display: flex; flex-direction: column; gap: 4px;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}
.sim__cuota span { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.sim__cuota strong { font-family: var(--sans); font-size: clamp(36px, 9vw, 50px); font-weight: 500; letter-spacing: -.03em; color: var(--bone); line-height: 1; }
.sim__cuota small { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .005em; }

.sim__break { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; }
.sim__break li {
  display: flex; justify-content: space-between;
  font-family: var(--mono); font-size: 12px; color: var(--mute);
  letter-spacing: .005em;
}
.sim__break li b { color: var(--bone); font-weight: 500; }

.sim__nota { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .005em; }

@media (max-width: 900px) {
  .sim { grid-template-columns: 1fr; }
}

/* ============== Para quién =============== */

.who {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.who article {
  background: var(--bg-soft);
  padding: 32px 26px;
  display: flex; flex-direction: column; gap: 12px;
  position: relative;
  min-height: 230px;
  transition: background .2s ease;
}
.who article:hover { background: var(--surface); }
.who__tag {
  position: absolute;
  top: 26px; right: 28px;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--signal);
  padding: 3px 8px;
  border: 1px solid var(--signal);
  border-radius: 4px;
  letter-spacing: .08em;
}
.who h3 { font-size: 22px; margin-top: 4px; }
.who p { color: var(--bone-soft); font-size: 14px; line-height: 1.55; }

@media (max-width: 760px) {
  .who { grid-template-columns: 1fr; }
}

/* ============== Licencia =============== */

.licence {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 1px;
  background: var(--line);
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.licence__card {
  background: var(--bg-soft);
  padding: 28px 26px;
  display: flex; flex-direction: column; gap: 14px;
}
.licence__card--note { background: var(--bg-mute); }
.licence__k {
  align-self: flex-start;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--signal);
}
.licence__card h3 { font-size: 22px; max-width: 22ch; }
.licence__card p { color: var(--bone-soft); font-size: 14px; line-height: 1.55; }
.licence__card .btn { align-self: flex-start; margin-top: auto; }

@media (max-width: 900px) {
  .licence { grid-template-columns: 1fr; }
}

/* ============== Partners =============== */

.partners {
  display: grid;
  grid-template-columns: 1.4fr 1fr auto;
  gap: 40px;
  align-items: center;
}
.partners__head { display: flex; flex-direction: column; gap: 14px; }
.partners__head h2 { font-size: clamp(28px, 3.2vw, 44px); max-width: 18ch; }
.partners__head p { color: var(--bone-soft); max-width: 44ch; }
.partners__list { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 4px; }
.partners__list li {
  display: flex; align-items: baseline; gap: 12px;
  padding: 10px 0;
  border-top: 1px solid var(--line);
  font-family: var(--sans);
  font-size: 14.5px;
  color: var(--bone-soft);
}
.partners__list li:last-child { border-bottom: 1px solid var(--line); }
.partners__list span { font-family: var(--mono); font-size: 11px; color: var(--signal); letter-spacing: .08em; }

@media (max-width: 980px) {
  .partners { grid-template-columns: 1fr; }
}

/* ============== CTA / form =============== */

.block--cta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 56px;
  align-items: start;
}
.cta__copy { display: flex; flex-direction: column; gap: 18px; position: sticky; top: 80px; }
.cta__title { font-size: clamp(30px, 3.8vw, 52px); letter-spacing: -.028em; max-width: 18ch; }
.cta__copy p { color: var(--bone-soft); font-size: 16.5px; max-width: 46ch; }

.cta__meta {
  list-style: none;
  padding: 16px 0 0;
  margin: 12px 0 0;
  border-top: 1px solid var(--line);
  display: flex; flex-direction: column; gap: 10px;
}
.cta__meta > div { display: grid; grid-template-columns: 110px 1fr; gap: 12px; align-items: baseline; }
.cta__meta dt { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.cta__meta dd { margin: 0; font-family: var(--mono); font-size: 13px; color: var(--bone-soft); }
.cta__meta a { color: var(--bone); border-bottom: 1px solid var(--line); }
.cta__meta a:hover { border-bottom-color: var(--signal); }

.cta__form {
  background: var(--bg-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 28px;
  display: flex; flex-direction: column; gap: 16px;
}
.cta__form header { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.cta__form header h3 { font-size: 22px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-family: var(--mono); font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--mute); }
.field input, .field select, .field textarea {
  font: inherit;
  font-size: 16px;          /* prevents iOS zoom on focus */
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  color: var(--bone);
  transition: border-color .15s, box-shadow .15s;
  width: 100%;
}
.field select { font-family: var(--mono); font-size: 13px; }
.field textarea { resize: vertical; min-height: 86px; font-family: var(--sans); font-size: 14.5px; }
.field input:focus, .field select:focus, .field textarea:focus {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(229,181,71,.18);
}
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }

.form__status { font-family: var(--mono); font-size: 11.5px; color: var(--live); min-height: 16px; letter-spacing: .005em; }
.form__status.is-error { color: var(--hot); }
.form__note { font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .005em; }

@media (max-width: 900px) {
  .block--cta { grid-template-columns: 1fr; gap: 32px; }
  .cta__copy { position: static; }
}
@media (max-width: 520px) {
  .cta__form { padding: 22px 18px; }
  .field-row { grid-template-columns: 1fr; gap: 14px; }
  .cta__meta > div { grid-template-columns: 1fr; gap: 4px; }
  .cta__meta dt { font-size: 10px; }
}

/* ============== Footer =============== */

.foot {
  position: relative;
  background: var(--bg-soft);
  border-top: 1px solid var(--line);
  padding: clamp(50px, 6vw, 80px) var(--gutter) 22px;
  color: var(--bone-soft);
  margin-top: 60px;
  z-index: 1;
}
.foot > * { max-width: var(--container); margin: 0 auto; }
.foot a { color: var(--bone-soft); }
.foot a:hover { color: var(--signal); }

.foot__top {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 56px;
  align-items: end;
  padding-bottom: 30px;
  border-bottom: 1px solid var(--line);
}
.foot__claim { font-size: clamp(20px, 2.2vw, 28px); line-height: 1.3; max-width: 38ch; letter-spacing: -.015em; color: var(--bone); }
.foot__claim em { color: var(--signal); }

.foot__grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 28px;
  padding: 36px 0;
}
.foot__k { font-family: var(--mono); font-size: 10.5px; letter-spacing: .14em; text-transform: uppercase; color: var(--mute); }
.foot__grid ul { list-style: none; padding: 0; margin: 12px 0 0; display: flex; flex-direction: column; gap: 8px; font-size: 13.5px; }
.foot__markets { font-family: var(--mono); font-size: 12px; }
.foot__markets li span { color: var(--signal); }

.foot__bottom {
  display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 12px;
  padding-top: 18px; border-top: 1px solid var(--line);
  font-family: var(--mono); font-size: 10.5px; color: var(--mute); letter-spacing: .005em;
}
.foot__set em { color: var(--bone-soft); }

@media (max-width: 760px) {
  .foot { padding-top: 42px; }
  .foot__top { grid-template-columns: 1fr; align-items: start; gap: 22px; padding-bottom: 26px; }
  .foot__grid { grid-template-columns: 1fr 1fr; padding: 28px 0; gap: 22px; }
  .foot__bottom { font-size: 10px; }
}
@media (max-width: 460px) {
  .foot__grid { grid-template-columns: 1fr; gap: 20px; }
  .brand--lg .brand__mark svg { width: 32px; height: 32px; }
  .brand--lg .brand__name { font-size: 20px; }
}

/* ============== Custom select =============== */

.field__label {
  display: block;
  font-family: var(--mono);
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
  color: var(--mute);
  margin-bottom: 6px;
}

.csel { position: relative; }

.csel__btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 12px 14px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 6px;
  color: var(--bone);
  font-family: var(--mono);
  font-size: 14px;
  text-align: left;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.csel__btn:hover { border-color: var(--mute); background: var(--bg-soft); }
.csel__btn:focus-visible,
.csel.is-open .csel__btn {
  outline: none;
  border-color: var(--signal);
  box-shadow: 0 0 0 3px rgba(229,181,71,.18);
  background: var(--bg);
}

.csel__val {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: var(--bone);
}
.csel__hint {
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: .04em;
  white-space: nowrap;
  padding-left: 8px;
  border-left: 1px solid var(--line);
  margin-left: auto;
}
.csel.is-open .csel__hint { border-left-color: rgba(229,181,71,.3); }

.csel__caret {
  width: 12px; height: 12px;
  flex: none;
  color: var(--mute);
  transition: transform .25s ease, color .15s ease;
}
.csel.is-open .csel__caret { transform: rotate(180deg); color: var(--signal); }

/* ───── Panel ───── */

.csel__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0; right: 0;
  z-index: 30;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: var(--bg-mute);
  border: 1px solid var(--line);
  border-radius: 8px;
  max-height: 320px;
  overflow-y: auto;
  overscroll-behavior: contain;
  box-shadow: 0 20px 50px -16px rgba(0,0,0,.75), 0 0 0 1px rgba(229,181,71,.04);
  opacity: 0;
  transform: translateY(-6px) scale(.985);
  transform-origin: top center;
  pointer-events: none;
  visibility: hidden;
  transition: opacity .18s ease, transform .18s ease, visibility .18s;
}
.csel.is-open .csel__panel {
  opacity: 1;
  transform: none;
  pointer-events: auto;
  visibility: visible;
}

.csel__panel li {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 11px;
  border-radius: 5px;
  font-family: var(--sans);
  font-size: 13.5px;
  color: var(--bone-soft);
  cursor: pointer;
  transition: background .12s ease, color .12s ease, padding-left .15s ease;
  position: relative;
}
.csel__panel li::before {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--line);
  flex: none;
  transition: background .15s ease, box-shadow .15s ease;
}
.csel__panel li:hover,
.csel__panel li.is-active {
  background: rgba(229,181,71,.07);
  color: var(--bone);
  padding-left: 13px;
}
.csel__panel li.is-active::before { background: var(--mute); }
.csel__panel li[aria-selected="true"] { color: var(--bone); }
.csel__panel li[aria-selected="true"]::before {
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
}

/* Rich panel (with kicker number + body + hint) */
.csel__panel--rich li { padding: 10px 12px; gap: 14px; }
.csel__panel--rich li::before { display: none; }
.csel__opt-k {
  font-family: var(--mono);
  font-size: 10.5px;
  color: var(--mute);
  letter-spacing: .08em;
  padding-top: 1px;
  transition: color .15s ease;
}
.csel__opt-body {
  display: flex; flex-direction: column; gap: 2px;
  min-width: 0; flex: 1;
}
.csel__opt-body b {
  font-weight: 500;
  font-size: 14px;
  color: inherit;
  letter-spacing: -.005em;
}
.csel__opt-body i {
  font-style: normal;
  font-family: var(--mono);
  font-size: 11px;
  color: var(--mute);
  letter-spacing: .005em;
}
.csel__panel--rich li[aria-selected="true"] .csel__opt-k,
.csel__panel--rich li.is-active .csel__opt-k { color: var(--signal); }
.csel__panel--rich li[aria-selected="true"]::after {
  content: "";
  width: 6px; height: 6px;
  border-radius: 50%;
  background: var(--signal);
  box-shadow: 0 0 6px var(--signal);
  margin-left: auto; flex: none;
}

/* Custom scrollbar for the panel */
.csel__panel::-webkit-scrollbar { width: 8px; }
.csel__panel::-webkit-scrollbar-track { background: transparent; }
.csel__panel::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; border: 2px solid var(--bg-mute); }
.csel__panel::-webkit-scrollbar-thumb:hover { background: var(--mute-deep); }

/* Open upward when there is no room below */
.csel.is-up .csel__panel {
  top: auto;
  bottom: calc(100% + 6px);
  transform-origin: bottom center;
}

@media (max-width: 480px) {
  .csel__hint { font-size: 10px; padding-left: 6px; }
  .csel__panel li { padding: 11px 12px; }
  .csel__opt-body b { font-size: 13.5px; }
  .csel__opt-body i { font-size: 10.5px; }
}
@media (max-width: 380px) {
  .csel__hint { display: none; }
}

/* ============== Reveal animations =============== */

[data-reveal] { opacity: 0; transform: translateY(22px); transition: opacity .7s ease, transform .7s ease; }
[data-reveal].is-in { opacity: 1; transform: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  [data-reveal] { opacity: 1; transform: none; }
}
