/* Aguja Verde · portada técnica. Solo index.html (body.av-editorial).
   El plano sigue data-theme (claro u oscuro resuelto). El verde, el rojo y el ámbar son estados, no decoración. */

html:has(body.av-editorial){
  background-color:#F7F8F5;
  background-image:
    linear-gradient(rgba(17,24,21,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(17,24,21,.045) 1px, transparent 1px);
  background-size:40px 40px;
  background-attachment:fixed;
  --av-glass:rgba(251,252,249,.92);
  --av-glass-bar:rgba(247,248,245,.94);
  --av-glass-strong:rgba(251,252,249,.97);
  --av-glass-edge:rgba(216,224,217,.95);
  --av-glass-shadow:0 1px 0 rgba(17,24,21,.04);
}
html[data-theme="dark"]:has(body.av-editorial){
  background-color:#0E1411;
  background-image:
    linear-gradient(rgba(247,248,245,.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(247,248,245,.045) 1px, transparent 1px);
  --av-glass:rgba(17,24,21,.92);
  --av-glass-bar:rgba(14,20,17,.94);
  --av-glass-strong:rgba(22,32,27,.96);
  --av-glass-edge:rgba(216,224,217,.16);
  --av-glass-shadow:none;
}

body.av-editorial{
  --display:'Space Grotesk',Inter,-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --sans:'Inter',-apple-system,BlinkMacSystemFont,'Segoe UI',Arial,sans-serif;
  --mono:'JetBrains Mono',ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;
  --av-mono:var(--mono);
  --narrow:var(--mono);
  --av-green:#00A859;
  font-family:var(--sans);
  background:transparent;
}

body.av-editorial > .strip,
body.av-editorial > section,
body.av-editorial > nav.ladder,
body.av-editorial > footer,
body.av-editorial > span{position:relative;z-index:1}

body.av-editorial .strip{
  background:transparent;
  color:var(--ink-2);
  font-family:var(--mono);
  font-weight:500;
  font-size:.68rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  padding:14px 22px 0;
}

body.av-editorial > header.top{
  border-radius:2px !important;
  border-color:#D8E0D9 !important;
}
html[data-theme="dark"] body.av-editorial > header.top{border-color:#2A3830 !important}
body.av-editorial a.brandmark b{
  font-family:var(--display);
  font-weight:650;
  letter-spacing:-.03em;
  text-transform:none;
}
body.av-editorial a.brandmark b i{color:var(--av-green);font-style:normal}

body.av-editorial h1,
body.av-editorial h2{
  font-family:var(--display);
  font-weight:650;
  letter-spacing:-.045em;
  line-height:1.02;
}
body.av-editorial h3,
body.av-editorial .card h3,
body.av-editorial .panel h3,
body.av-editorial .faq-list summary{font-family:var(--sans);font-weight:640}
body.av-editorial .eyebrow span,
body.av-editorial .av-eyebrow,
body.av-editorial .tag,
body.av-editorial .trace,
body.av-editorial .usd,
body.av-editorial .post .k,
body.av-editorial .av-clause,
body.av-editorial .ladder .lbl,
body.av-editorial .av-calc-head span,
body.av-editorial .av-field > label,
body.av-editorial .av-field > .lbl,
body.av-editorial .note,
body.av-editorial footer .fname,
body.av-editorial footer .legal,
body.av-editorial .honest dt{
  font-family:var(--mono);
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
}
body.av-editorial .av-eyebrow,
body.av-editorial .tag,
body.av-editorial .trace,
body.av-editorial .eyebrow span,
body.av-editorial .av-clause{color:var(--brand)}

body.av-editorial section.band{padding:clamp(64px,8vw,104px) 0}
body.av-editorial h2{
  font-size:clamp(1.85rem,3.4vw,2.85rem);
  max-width:18ch;
  margin:0 0 14px;
}
body.av-editorial .lead{max-width:48ch}

body.av-editorial .av-hero{
  background:transparent !important;
  color:var(--ink);
  padding-top:clamp(12px,2.4vh,28px);
  padding-bottom:clamp(28px,4vh,48px);
}
body.av-editorial .av-hero > .wrap{
  max-width:1180px;
  width:100%;
  display:grid;
  grid-template-columns:minmax(0,1.08fr) minmax(280px,.92fr);
  grid-template-areas:"copy bay" "demo demo";
  gap:28px 40px;
  align-items:center;
}
body.av-editorial .av-hero-copy{grid-area:copy;max-width:40rem}
body.av-editorial .av-bay{grid-area:bay;align-self:stretch}
body.av-editorial .av-xdemo{grid-area:demo}

body.av-editorial .av-hero h1{
  color:var(--ink);
  font-size:clamp(2.05rem,3.7vw,3.45rem);
  font-weight:650;
  letter-spacing:-.048em;
  line-height:1.02;
  margin:14px 0 0;
  max-width:16ch;
}
body.av-editorial .av-hero h1::after{
  content:"";
  display:block;
  width:3.25rem;
  height:2px;
  margin-top:.85rem;
  background:var(--av-green);
}
body.av-editorial .av-hero .badge{
  background:transparent;
  color:var(--ink);
  border:1px solid #D8E0D9;
  box-shadow:none;
  border-radius:2px;
  font-family:var(--mono);
  font-size:.68rem;
  font-weight:500;
  letter-spacing:.14em;
  text-transform:uppercase;
  padding:7px 10px;
}
body.av-editorial .av-hero .av-hook{
  margin:14px 0 0;
  max-width:28ch;
  font-family:var(--display);
  font-style:normal;
  font-weight:600;
  font-size:clamp(1.15rem,1.6vw,1.4rem);
  letter-spacing:-.03em;
  line-height:1.25;
  color:var(--ink);
}
body.av-editorial .av-hero .av-lede{
  margin-top:12px;
  font-size:1.02rem;
  line-height:1.55;
  max-width:42ch;
}
body.av-editorial .av-proof{margin-top:14px}
body.av-editorial .av-proof-src{font-family:var(--mono);font-size:.72rem;letter-spacing:.02em}
body.av-editorial .av-hero-form{margin-top:16px}
body.av-editorial form.capture input[type=email]{
  min-height:44px;
  background:var(--card);
  color:var(--ink);
  border:1px solid #D8E0D9;
  border-radius:2px;
  font-family:var(--sans);
}
body.av-editorial form.capture input[type=email]::placeholder{color:var(--ink-3);opacity:1}
body.av-editorial form.capture.av-hero-form{
  align-items:center;
  padding:4px;
  gap:6px;
  box-shadow:0 1px 0 rgba(255,255,255,.8) inset, 0 14px 30px -20px rgba(17,24,21,.4);
}
body.av-editorial form.capture input[type=email]:focus{
  outline:2px solid #0D7A47;
  outline-offset:1px;
  border-color:#0D7A47;
}
body.av-editorial .eyebrow[data-idx]::before,
body.av-editorial .av-eyebrow[data-idx]::before{
  content:attr(data-idx);
  display:block;
  margin:0 0 8px;
  font-family:var(--mono);
  font-weight:500;
  font-size:.68rem;
  letter-spacing:.16em;
  color:var(--ink-3);
}
body.av-editorial .av-cols th{
  background:transparent !important;
  color:var(--ink-3) !important;
  font-family:var(--mono);
  font-size:.62rem;
  letter-spacing:.14em;
  font-weight:500;
  padding:4px 8px 0;
}
body.av-editorial tr.is-hot td{background:rgba(0,153,77,.14) !important}
body.av-editorial .av-pill.warn{color:#111815;background:#D97706}
body.av-editorial .card.pick{
  background:#111815 !important;
  color:#F7F8F5;
  border-color:#111815 !important;
}
body.av-editorial .card.pick h3,
body.av-editorial .card.pick li,
body.av-editorial .card.pick .usd,
body.av-editorial .card.pick .payhip-alt{color:#E7EEE9}
body.av-editorial .card.pick .amount .n{color:#00A859;font-size:2.7rem}
body.av-editorial .card.pick .tag,
body.av-editorial .card.pick .trace{color:#7DCEA0}
body.av-editorial #catalogo .card:first-child{border-top:2px solid #0D7A47 !important}
body.av-editorial #catalogo .card:first-child .amount .n{font-size:2.6rem;letter-spacing:-.05em}
body.av-editorial #catalogo .card:first-child a.cta.quiet{
  background:#0D7A47 !important;
  color:#FFFFFF !important;
  border-color:#0D7A47 !important;
}
body.av-editorial form.capture button,
body.av-editorial a.cta,
body.av-editorial a.av-btn.av-btn-brand,
body.av-editorial .av-sticky-main{
  border-radius:2px !important;
  min-height:44px;
  font-family:var(--sans);
  letter-spacing:-.01em;
}
body.av-editorial .lead-consent{font-family:var(--sans);letter-spacing:0;text-transform:none}
body.av-editorial .lead-consent input{width:18px;height:18px;accent-color:var(--brand)}

.av-bay-frame{
  position:relative;
  height:100%;
  min-height:520px;
  display:flex;
  flex-direction:column;
  background:linear-gradient(180deg,#1A221E 0%,#111815 42%,#0E1411 100%);
  color:#F7F8F5;
  border:1px solid #2A3830;
  box-shadow:0 1px 0 rgba(255,255,255,.06) inset, 0 28px 50px -28px rgba(17,24,21,.55);
  overflow:visible;
}
.av-bay-head{
  display:flex;
  align-items:center;
  gap:8px;
  margin:0;
  padding:12px 16px 0;
  font-family:var(--mono);
  font-size:.64rem;
  font-weight:500;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#9AA89F;
}
.av-led{width:8px;height:8px;border-radius:50%;background:#00994D;box-shadow:0 0 0 3px rgba(0,153,77,.25)}
.av-bay[data-zone="low"] .av-led,
.av-bay[data-zone="high"] .av-led{background:#C81E1E;box-shadow:0 0 0 3px rgba(200,30,30,.28)}
.av-bay[data-zone="warn"] .av-led{background:#D97706;box-shadow:0 0 0 3px rgba(217,119,6,.28)}
.av-reg{
  position:absolute;
  inset:10px;
  pointer-events:none;
  z-index:2;
  background:
    linear-gradient(#8FA397,#8FA397) left top / 14px 1px no-repeat,
    linear-gradient(#8FA397,#8FA397) left top / 1px 14px no-repeat,
    linear-gradient(#8FA397,#8FA397) right top / 14px 1px no-repeat,
    linear-gradient(#8FA397,#8FA397) right top / 1px 14px no-repeat,
    linear-gradient(#8FA397,#8FA397) left bottom / 14px 1px no-repeat,
    linear-gradient(#8FA397,#8FA397) left bottom / 1px 14px no-repeat,
    linear-gradient(#8FA397,#8FA397) right bottom / 14px 1px no-repeat,
    linear-gradient(#8FA397,#8FA397) right bottom / 1px 14px no-repeat;
}
.av-bay-stage{position:relative;flex:1;min-height:380px}
#av-gl{display:block;position:absolute;left:6%;right:6%;top:2%;bottom:2%;width:auto;height:auto}
.av-fallback-dial{display:none}
html.av-gl-off #av-gl{display:none}
html.av-gl-off .av-fallback-dial{
  display:block;
  width:min(78%,320px);
  aspect-ratio:1;
  margin:28px auto 0;
  border-radius:50%;
  border:10px solid #8E9892;
  background:
    conic-gradient(from 216deg,#D92D20 0 78deg,#00A859 78deg 168deg,#D92D20 168deg 246deg,#111815 246deg 360deg);
  box-shadow:inset 0 0 0 18px #F4F6F2;
}
.av-bay-readout{
  display:flex;
  justify-content:space-between;
  align-items:flex-end;
  gap:12px;
  padding:12px 16px 14px;
  border-top:1px solid #2A3830;
  font-family:var(--mono);
}
.av-bay-k{
  margin:0 0 4px;
  font-size:.62rem;
  letter-spacing:.16em;
  text-transform:uppercase;
  color:#9AA89F;
}
.av-bay-psi{margin:0;font-weight:650;letter-spacing:-.04em;line-height:1;color:#F7F8F5}
.av-bay-psi b{font-size:1.65rem;font-variant-numeric:tabular-nums}
.av-bay-psi span{margin-left:6px;font-size:.72rem;letter-spacing:.14em;color:#9AA89F}
#av-psi-state{
  margin:0;
  font-size:.68rem;
  letter-spacing:.14em;
  text-transform:uppercase;
  color:#00A859;
}
.av-states{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:6px;padding:0 12px 14px}
.av-states button{
  min-height:44px;
  border:1px solid #2A3830;
  background:transparent;
  color:#C5D0C8;
  font-family:var(--mono);
  font-size:.62rem;
  letter-spacing:.06em;
  text-transform:uppercase;
  cursor:pointer;
  padding:6px 4px;
}
.av-states button[aria-pressed="true"]{background:#0D7A47;color:#FFFFFF;border-color:#0D7A47}
.av-states button[data-zone="low"][aria-pressed="true"],
.av-states button[data-zone="high"][aria-pressed="true"]{background:#C81E1E;border-color:#C81E1E;color:#FFFFFF}
.av-bay[data-zone="low"] #av-psi-state,
.av-bay[data-zone="high"] #av-psi-state{color:#FFFFFF;background:#C81E1E;padding:4px 7px}
.av-bay[data-zone="warn"] #av-psi-state{color:#111815;background:#D97706;padding:4px 7px}
.av-bay[data-zone="low"] .av-bay-psi b,
.av-bay[data-zone="high"] .av-bay-psi b{color:#C81E1E}
.av-bay[data-zone="warn"] .av-bay-psi b{color:#D97706}
.av-due{color:#111815;background:#D97706;font-weight:650;padding:1px 4px}
.av-bay[data-zone="ok"] .av-bay-psi b{color:#00A859}

body.av-editorial .av-xdemo{
  background:#FBFCF9 !important;
  border:1px solid #D8E0D9 !important;
  border-radius:2px !important;
  box-shadow:none;
}
body.av-editorial .av-xdemo-sheet,
body.av-editorial .av-xdemo-tabs span{animation:none !important;opacity:0;pointer-events:none}
body.av-editorial .av-xdemo-sheet.is-on{pointer-events:auto}
body.av-editorial .av-xdemo-sheet.is-on{opacity:1;position:relative}
body.av-editorial .av-xdemo-stage{min-height:0}
body.av-editorial .av-xdemo-sheet{position:absolute;inset:0}
body.av-editorial .av-xdemo-sheet.is-on{position:relative}
body.av-editorial .av-xdemo-tabs span{
  cursor:pointer;
  font-family:var(--mono);
  letter-spacing:.08em;
  text-transform:uppercase;
}
body.av-editorial .av-xdemo-tabs span.is-on{
  color:var(--ink);
  background:var(--card);
  box-shadow:inset 0 -2px 0 var(--av-green);
}
body.av-editorial .av-xdemo tbody tr{cursor:pointer}
body.av-editorial .av-xdemo tbody tr:hover td{background:rgba(0,168,89,.08)}
body.av-editorial .av-xdemo-top b,
body.av-editorial .av-sheet .t{
  font-family:var(--mono) !important;
  font-weight:500;
  letter-spacing:.12em;
  text-transform:uppercase;
  font-size:.68rem;
  color:var(--ink) !important;
}
body.av-editorial .av-sheet th,
body.av-editorial .av-xdemo-sheet th{
  background:#111815;
  color:#F7F8F5;
  font-family:var(--mono);
  font-weight:500;
  letter-spacing:.06em;
  text-transform:uppercase;
}
body.av-editorial .av-pill.ok{color:#0D7A47;background:rgba(0,168,89,.14)}
body.av-editorial .av-pill.bad{color:#FFFFFF;background:#D92D20}

body.av-editorial .card,
body.av-editorial .panel,
body.av-editorial .post,
body.av-editorial .sig,
body.av-editorial .av-viewer,
body.av-editorial section.on-card .card,
body.av-editorial section.on-card .panel{
  background:#FBFCF9 !important;
  border:1px solid #D8E0D9 !important;
  border-radius:2px !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
  -webkit-backdrop-filter:none !important;
}
html[data-theme="dark"] body.av-editorial .card,
html[data-theme="dark"] body.av-editorial .panel,
html[data-theme="dark"] body.av-editorial .post,
html[data-theme="dark"] body.av-editorial .sig,
html[data-theme="dark"] body.av-editorial .av-viewer,
html[data-theme="dark"] body.av-editorial .av-xdemo{
  background:#16201B !important;
  border-color:#2A3830 !important;
}
body.av-editorial .card.pick{border-color:var(--brand) !important}
body.av-editorial .card.pick::before{height:2px;background:var(--av-green)}
body.av-editorial a.cta.quiet,
body.av-editorial .av-btn-ghost,
body.av-editorial .av-sticky-alt{border-radius:2px !important}

body.av-editorial .av-calc{
  background:#111815 !important;
  color:#F7F8F5;
  border:1px solid #2A3830 !important;
  border-radius:2px !important;
  box-shadow:none !important;
  backdrop-filter:none !important;
}
body.av-editorial .av-calc-head{
  background:#16201B !important;
  border-color:#2A3830;
  color:#F7F8F5;
}
body.av-editorial .av-calc-head span,
body.av-editorial .av-field > label,
body.av-editorial .av-field > .lbl,
body.av-editorial .av-out small,
body.av-editorial .av-calc-foot{color:#9AA89F}
body.av-editorial .av-calc-head .live,
body.av-editorial .av-calc-head .live i{color:#00A859}
body.av-editorial .av-calc-head .live i{background:#00A859}
body.av-editorial .av-area input[type=number]{
  background:#0E1411;
  color:#F7F8F5;
  border-color:#2A3830;
  font-family:var(--mono);
}
body.av-editorial .av-area .u{color:#C5D0C8}
body.av-editorial .av-area input[type=range]{accent-color:#00A859}
body.av-editorial .av-seg{background:#0E1411;border-color:#2A3830}
body.av-editorial .av-seg button{color:#C5D0C8;min-height:44px}
body.av-editorial .av-seg button[aria-pressed="true"]{background:#00A859;color:#111815}
body.av-editorial .av-out{border-color:#2A3830;background:#0E1411}
body.av-editorial .av-out > div{background:transparent}
body.av-editorial .av-out > div + div{border-color:#2A3830}
body.av-editorial .av-out b{color:#00A859;font-family:var(--mono)}
body.av-editorial .av-clause{
  color:#111815;
  background:#00A859;
  border-color:#00A859;
}
body.av-editorial .av-calc-foot a{color:#00A859}
body.av-editorial .ladder .amt,
body.av-editorial .amount .n{font-family:var(--mono)}
body.av-editorial .av-tabs button,
body.av-editorial .av-seg button{min-height:44px}

@media (max-width:900px){
  body.av-editorial .av-hero > .wrap{
    grid-template-columns:minmax(0,1fr);
    grid-template-areas:none;
    gap:0;
  }
  body.av-editorial .av-hero-copy,
  body.av-editorial .av-bay,
  body.av-editorial .av-xdemo{grid-area:auto}
  body.av-editorial .av-hero-copy{display:contents}
  body.av-editorial .av-hero .badge{order:1}
  body.av-editorial .av-hero h1{order:2;font-size:clamp(1.7rem,7.4vw,2.15rem)}
  body.av-editorial .av-hook,
  body.av-editorial .av-lede,
  body.av-editorial .av-proof,
  body.av-editorial .av-proof-src{order:3}
  body.av-editorial .av-hero-form,
  body.av-editorial .lead-consent{order:4}
  body.av-editorial .av-bay{order:5}
  body.av-editorial .av-hero-alt{order:6}
  body.av-editorial .av-xdemo{order:7}
  .av-bay-frame{min-height:0}
  .av-states{display:none}
  body.av-editorial .av-bay-stage{
    position:relative !important;
    display:flex !important;
    align-items:center;
    justify-content:center;
    min-height:0 !important;
    height:72px !important;
    max-height:72px !important;
    flex:none !important;
  }
  body.av-editorial #av-gl{
    position:relative !important;
    top:auto !important;
    right:auto !important;
    bottom:auto !important;
    left:auto !important;
    width:72px !important;
    height:72px !important;
    margin:0 auto;
    transform:none;
  }
  .av-bay-readout{padding:4px 18px 6px}
  .av-bay-k{display:none}
  .av-bay-psi b{font-size:1.05rem}
  body.av-editorial .av-hero{padding-top:2px;padding-bottom:4px}
  body.av-editorial .av-hero h1{margin-top:6px}
  body.av-editorial .av-hero h1::after{margin-top:.35rem}
  body.av-editorial .av-hero p{margin-bottom:0}
  body.av-editorial .av-hero .av-hook{margin-top:8px;font-size:1.02rem}
  body.av-editorial .av-hero .av-lede{margin-top:8px;font-size:.95rem;line-height:1.4}
  body.av-editorial .av-proof{margin-top:8px}
  body.av-editorial .av-proof-src{margin-top:2px}
  body.av-editorial .av-hero-form{margin-top:8px}
  body.av-editorial .av-hero .lead-consent{margin-top:4px}
  body.av-editorial > header.top{margin-top:4px}
  body.av-editorial .av-hero-alt{margin-top:.35rem}
  body.av-editorial .strip{padding-top:8px}
}
@media (max-width:520px){
  body.av-editorial > header.top nav{gap:0}
  body.av-editorial > header.top nav a{font-size:.68rem;padding:8px 4px;letter-spacing:-.015em}
}

@media (prefers-reduced-motion:no-preference){
  html.av-js body.av-editorial .av-ed{
    animation:av-mech .42s cubic-bezier(.2,.7,.2,1) both;
    animation-delay:calc(var(--i, 0) * 50ms);
  }
  html.av-js body.av-editorial .av-reveal{clip-path:inset(0 0 12% 0)}
  html.av-js body.av-editorial .av-reveal.is-in{
    clip-path:inset(0 0 0 0);
    transition:clip-path .55s cubic-bezier(.2,.7,.2,1);
  }
  body.av-editorial .av-bump{animation:av-roll .38s cubic-bezier(.2,.8,.2,1)}
}
@keyframes av-mech{
  from{opacity:0;transform:translateY(10px)}
  to{opacity:1;transform:none}
}
@keyframes av-roll{
  from{transform:translateY(-35%)}
  to{transform:none}
}
@media (prefers-reduced-motion:reduce){
  html.av-js body.av-editorial .av-ed,
  html.av-js body.av-editorial .av-reveal,
  body.av-editorial .av-bump{
    animation:none !important;
    opacity:1 !important;
    transform:none !important;
    clip-path:none !important;
    transition:none !important;
  }
}
@media print{
  #av-gl,.av-fallback-dial{display:none !important}
}
