/* OSIP V2 preview page. Dark, single card, price always visible. */
.v2 {
  /* mismas familias y acentos que el resto del sitio */
  --bg:#0d1117; --surf:#161b22; --surf2:#1b2028; --bd:#21262d; --bd2:#2b323c; --txt:#e6edf3;
  --mut:#8b949e; --dim:#6e7681; --acc:#2f80ed; --acc-l:#56a3f5; --cyan:#00d4ff;
  --ok:#39d353; --warn:#f0883e; --bad:#f85149;
  --mono: 'JetBrains Mono', ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --head: 'Rajdhani', sans-serif;
  --sans: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  max-width: 1120px; margin: 0 auto 40px; color: var(--txt);
  font-family: var(--sans);
  font-size: 15px; line-height: 1.62; -webkit-font-smoothing: antialiased;
}
.v2 * { box-sizing: border-box; }
.v2 [hidden] { display: none !important; }
.v2-hero { padding: 2px 2px 22px; }
.v2-hero h1 { font-family: var(--head); margin: 0 0 2px; font-size: clamp(34px, 4.4vw, 54px);
  font-weight: 700; line-height: 1.08; letter-spacing: -1px;
  background: linear-gradient(135deg, #ffffff 0 35%, #a0c4ff 62%, var(--cyan) 100%);
  -webkit-background-clip: text; background-clip: text; -webkit-text-fill-color: transparent; }
.v2-hero p { margin: 8px 0 0; color: var(--mut); font-size: 15.5px; letter-spacing: .1px; }

.v2-card { display: grid; grid-template-columns: 1.55fr 1fr; border: 1px solid var(--bd);
  border-radius: 14px; background: var(--bg); overflow: hidden; }
.v2-left { padding: 26px 28px; min-width: 0; display: flex; flex-direction: column; }
.v2-right { border-left: 1px solid var(--bd); background: #0a0e14; display: flex; }
.v2-rail { position: sticky; top: 16px; padding: 26px 26px 24px; flex: 1 1 auto;
  display: flex; flex-direction: column; }
.v2-railfoot { margin-top: auto; padding-top: 18px; display: grid; gap: 5px; }
.v2-railfoot span { font-size: 13px; color: var(--dim); line-height: 1.5; }

.v2-block { padding-bottom: 20px; margin-bottom: 20px; border-bottom: 1px solid var(--bd); }
.v2-block-last { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }

.v2-lbl { display: block; font-family: var(--sans); font-size: 11.5px; letter-spacing: .09em;
  text-transform: uppercase; color: #8b949e; margin-bottom: 10px; font-weight: 600; }
.v2-lbl-sm { margin-top: 12px; }
.v2-hint { color: var(--dim); font-size: 13.5px; margin-top: 7px; line-height: 1.6; }

.v2-input { width: 100%; background: transparent; border: 0; border-bottom: 1px solid var(--bd2);
  color: var(--txt); padding: 9px 2px; font-size: 15px; outline: none; border-radius: 0; }
.v2-input:focus { border-bottom-color: var(--acc); }
.v2-input::placeholder { color: #4b535d; }
.v2-mono { font-family: var(--mono); font-size: 14px; }
textarea.v2-input { border: 1px solid var(--bd); border-radius: 8px; padding: 10px;
  resize: vertical; line-height: 1.4; background: #0a0e14; }
textarea.v2-input:focus { border-color: var(--acc); }
#v2-key-pass { margin-top: 10px; }

/* sistema */
.v2-os { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px; }
/* con muchos sistemas la rejilla se reparte sola; en movil nunca menos de 2 */
@media (max-width: 520px) {
  .v2-os { grid-template-columns: 1fr; }
  .v2-os-tile { padding: 11px 14px; }
  .v2-os-tile b { font-size: 17px; }
  .v2-badge { position: absolute; top: 10px; right: 10px; margin-top: 0; }
}
.v2-os-tile { position: relative; text-align: left; background: var(--surf); border: 1px solid var(--bd);
  border-radius: 10px; padding: 12px 14px; cursor: pointer; color: var(--txt); transition: .12s; }
.v2-os-tile b { display: flex; align-items: center; gap: 8px; font-family: var(--head); font-size: 18px;
  font-weight: 600; letter-spacing: .2px; line-height: 1.15; }
.v2-os-ico { display: inline-flex; color: #7fa6d9; flex: 0 0 auto; transition: color .12s; }
.v2-os-tile.is-on .v2-os-ico { color: #8fc0ff; }
.v2-os-tile:hover .v2-os-ico { color: #9cc4f0; }
.v2-os-tile span { display: block; font-size: 11.5px; color: var(--dim); margin-top: 4px; font-family: var(--mono); }
.v2-os-tile:hover { border-color: #46505c; }
.v2-os-tile.is-on { border-color: var(--acc); background: #101d31; box-shadow: 0 0 0 1px rgba(47,128,237,.35); }
.v2-badge { position: absolute; top: 9px; right: 9px; font-style: normal; font-family: var(--mono); font-size: 10px;
  color: var(--warn); border: 1px solid #4a3a12; background: #1e1808; border-radius: 4px; padding: 1px 5px; }

/* segmento */
/* boton de comprobacion: icono de servidor con lupa */
.v2-btn-test { display: inline-flex; align-items: center; justify-content: center; gap: 9px; }
.v2-btn-ico { display: inline-flex; color: currentColor; opacity: .85; }
.v2-btn-test:hover .v2-btn-ico { opacity: 1; }

.v2-seg { display: flex; border: 1px solid var(--bd); border-radius: 8px; overflow: hidden; }
.v2-seg button { flex: 1; background: transparent; border: 0; border-left: 1px solid var(--bd);
  color: var(--mut); padding: 11px 6px; font-size: 13.5px; cursor: pointer; font-family: inherit; }
.v2-seg button:first-child { border-left: 0; }
.v2-seg button.is-on { background: #101d31; color: var(--txt); font-weight: 600; box-shadow: inset 0 -2px 0 var(--acc); }
.v2-pane { margin-top: 12px; }
.v2-help-lead { margin: 0 0 8px; font-size: 13.5px; color: var(--mut); }
.v2-code { position: relative; background: #080b0f; border: 1px solid #1e242c; border-radius: 8px; padding: 10px 12px; }
.v2-code code { display: block; font-family: var(--mono); font-size: 12.5px; color: #7ee2a8; margin-bottom: 4px; word-break: break-all; }

.v2-adv { display: flex; align-items: center; gap: 10px; margin-top: 14px; flex-wrap: wrap; }
.v2-adv-sum { font-family: var(--mono); font-size: 12px; color: var(--dim); }
.v2-adv-fields { display: flex; gap: 14px; margin-top: 10px; width: 100%; }
.v2-mini { font-family: var(--mono); font-size: 12px; color: var(--dim); flex: 0 0 auto; }
.v2-mini .v2-input { width: 90px; margin-left: 6px; }

.v2-link { background: none; border: 0; padding: 0; color: var(--acc-l); font-size: 13.5px;
  cursor: pointer; font-family: inherit; }
.v2-link:hover { text-decoration: underline; }
.v2-chev { font-family: var(--mono); }

/* botones */
.v2-btn { width: 100%; background: linear-gradient(135deg, var(--acc) 0%, #1a5fc4 100%); color: #fff;
  border: 0; border-radius: 8px; padding: 14px 18px; font-size: 15.5px; font-weight: 600;
  letter-spacing: .3px; cursor: pointer; font-family: inherit; }
.v2-btn:hover { filter: brightness(1.06); }
.v2-btn[disabled] { opacity: .55; cursor: not-allowed; filter: none; }
.v2-btn-sm { width: auto; padding: 9px 16px; font-size: 13.5px; }
.v2-btn-ghost { background: transparent; color: var(--mut); border: 1px solid var(--bd); }
.v2-btn-test { background: transparent; color: var(--acc-l); border: 1px solid #2b4a6b;
  font-size: 15px; }
.v2-btn-test:hover { background: #0f1a2a; filter: none; }

/* purchase column */
.v2-per { color: var(--dim); font-size: 13.5px; margin: 12px 0 16px; }
.v2-plans { display: flex; flex-direction: column; gap: 6px; margin: 10px 0 0; }
.v2-plan { display: flex; justify-content: space-between; align-items: center; width: 100%;
  background: var(--surf); border: 1px solid var(--bd); border-radius: 8px;
  padding: 11px 14px; cursor: pointer; color: var(--txt); font-family: inherit; }
.v2-plan:hover { border-color: #46505c; }
.v2-plan.is-on { border-color: var(--acc); background: #101d31; box-shadow: inset 3px 0 0 var(--acc); }
.v2-plan-l { font-family: var(--head); font-size: 17px; font-weight: 600; letter-spacing: .2px; }
.v2-plan-p { font-family: var(--mono); font-size: 13.5px; font-weight: 400; color: #c9d4e0;
  font-variant-numeric: tabular-nums; }
.v2-assure { margin: 16px 0 0; padding-top: 13px; border-top: 1px solid var(--bd); }
.v2-assure-l { list-style: none; margin: 9px 0 0; padding: 0; display: grid; gap: 9px; }
.v2-assure-l li { display: flex; gap: 8px; align-items: flex-start;
  font-size: 12.5px; line-height: 1.5; color: var(--mut); }
.v2-assure-l b { color: #cfd8e3; font-weight: 600; }
.v2-assure-i { flex: 0 0 auto; color: #3fb950; margin-top: 2px; display: inline-flex; }
.v2-assure-one { display: none; margin: 9px 0 0; gap: 8px; font-size: 12.5px; line-height: 1.5; color: var(--mut); }
.v2-assure-one b { color: #cfd8e3; font-weight: 600; }
/* Servidor comprobado: el bloque de texto largo se cambia por esa linea */
.v2.is-verified .v2-assure-l, .v2.is-verified .v2-railhint,
.v2.is-verified .v2-railfoot { display: none; }
/* la nota de Stripe se queda: es justo lo que pasa al pulsar el boton */
.v2.is-verified .v2-assure-one { display: flex; }
/* y la linea de pago se queda sola, con menos aire */
.v2.is-verified .v2-payline { margin-top: 12px; }
@media (max-width: 820px) { .v2-assure-l li { font-size: 13px; } }
.v2-plan-old { margin-left: 7px; color: #6b7280; font-size: 12px; text-decoration-thickness: 1px;
  font-variant-numeric: tabular-nums; }
/* el precio tachado siempre en gris: en la fila elegida heredaba el azul del
   acento y parecia un segundo precio en vez de lo que se ahorra */
.v2-plan.is-on .v2-plan-old { color: #6b7280; }
.v2-plan.is-on .v2-plan-p { color: var(--acc); }
.v2-cta { width: 100%; background: linear-gradient(135deg, var(--acc) 0%, #1a5fc4 100%); color: #fff;
  border: 0; border-radius: 8px; padding: 15px 18px; font-size: 16px; font-weight: 600;
  letter-spacing: .3px; cursor: pointer; font-family: inherit;
  display: flex; align-items: center; justify-content: center; gap: 8px; }
.v2-cta:hover { filter: brightness(1.06); }
.v2-cta-p { font-family: var(--mono); font-size: 13px; opacity: .78; }
.v2-cta-p:not(:empty)::before { content: '· '; }

/* the amount rides inside the button; no separate total row */


.v2-micro { text-align: center; color: var(--mut); font-size: 13.5px; margin-top: 10px; line-height: 1.5; }
/* la cadena de flex tiene que llegar hasta la linea de pago, si no el
   margin-top:auto no tiene espacio que repartir */
.v2-rail-buy, #v2-pane-plan { display: flex; flex-direction: column; flex: 1 1 auto; }
/* el grupo de pago se apoya en el fondo de la columna, como en un checkout:
   asi el hueco queda entre el boton y esta linea, no suelto en el medio */
.v2-payline { display: flex; flex-wrap: wrap; justify-content: center; gap: 5px; align-items: center;
  color: var(--mut); font-family: var(--mono); font-size: 10.5px; letter-spacing: .04em;
  margin-top: auto; padding-top: 18px; border-top: 1px solid #1e242c; }
.v2-payline span { border: 1px solid var(--bd); background: var(--surf); border-radius: 4px;
  padding: 2px 6px; line-height: 1.45; }
.v2-have { display: block; margin: 20px auto 0; font-size: 13.5px; color: var(--mut); }
.v2-codebox { margin-top: 10px; display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; }
.v2-codemsg { grid-column: 1 / -1; font-size: 11.5px; color: var(--bad); }
.v2-codemsg.ok { color: var(--ok); }
.v2-unlocked { margin-top: 12px; background: #0c2415; border: 1px solid #1f5c34; border-radius: 8px;
  padding: 11px 13px; font-size: 13px; color: #8ee0a6; display: grid; gap: 4px; }
.v2-unlocked b { font-family: var(--head); font-size: 15px; font-weight: 600; color: #b6f0c6; }
.v2-unlocked .v2-link { justify-self: start; color: #8ee0a6; }

/* veredicto */
.v2-verdict { margin-top: 12px; border-radius: 9px; border: 1px solid #1f5c34; background: #0c2415; padding: 12px 14px; }
.v2-verdict.bad { border-color: #6b2b2b; background: #250f10; }
.v2-verdict-h { font-family: var(--head); font-size: 17px; font-weight: 600; color: #b6f0c6; margin-bottom: 8px; }
.v2-verdict.bad .v2-verdict-h { color: #ffb4ae; }
.v2-verdict-rows { display: grid; grid-template-columns: 1fr 1fr; gap: 5px 18px; font-family: var(--mono); font-size: 12.5px; }
.v2-verdict-rows span { color: var(--dim); }
.v2-verdict-rows b { color: var(--txt); font-weight: 400; }
.v2-verdict-msg { font-size: 13.5px; color: #ffb4ae; line-height: 1.55; }
.v2-verdict-note { font-size: 12.5px; color: var(--dim); margin-top: 9px; line-height: 1.5; }

/* ejecución */

/* inline field check */
.v2-field { position: relative; }
.v2-field .v2-input { padding-right: 34px; }
.v2-tick { position: absolute; right: 10px; top: 50%; transform: translateY(-50%);
  color: var(--ok); display: inline-flex; line-height: 1; }

/* live picture of the guest */
.v2-thumb { margin: 4px 0 14px; border: 1px solid #1e242c; border-radius: 9px;
  overflow: hidden; background: #080b0f; }
.v2-thumb img { display: block; width: 100%; height: auto; max-height: 400px;
  object-fit: contain; background: #080b0f; }
.v2-thumb-cap { display: flex; align-items: center; gap: 7px; padding: 7px 12px;
  font-size: 12px; color: var(--mut); border-top: 1px solid #1e242c; }
.v2-thumb-when { margin-left: auto; color: #6b7280; font-variant-numeric: tabular-nums; }
.v2-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--ok);
  box-shadow: 0 0 0 0 rgba(57,211,83,.7); animation: v2live 2.2s ease-out infinite; }
@keyframes v2live { 0% { box-shadow: 0 0 0 0 rgba(57,211,83,.55) } 70% { box-shadow: 0 0 0 7px rgba(57,211,83,0) } 100% { box-shadow: 0 0 0 0 rgba(57,211,83,0) } }

/* the log behaves like a terminal: new lines fade in, a cursor waits at the end */
.v2-ln { animation: v2fn .18s ease-out both; }
@keyframes v2fn { from { opacity: 0; transform: translateY(1px) } to { opacity: 1; transform: none } }
.v2-cursor { display: inline-block; width: 7px; height: 12px; margin-left: 3px;
  background: #7ee2a8; vertical-align: -2px; animation: v2blink 1.1s steps(2, start) infinite; }
@keyframes v2blink { 50% { opacity: 0 } }

@media (prefers-reduced-motion: reduce) {
  .v2-ln, .v2-dot, .v2-cursor { animation: none; }
}

.v2-mine { margin-top: 18px; border: 1px solid var(--bd); border-radius: 14px; background: var(--surf); padding: 18px 22px; }
.v2-mine-head h2 { margin: 0; font-family: var(--head); font-size: 20px; font-weight: 600; letter-spacing: .2px; }
.v2-mine-head span { display: block; color: var(--mut); font-size: 12.5px; margin-top: 3px; }
.v2-mine-list { list-style: none; margin: 12px 0 0; padding: 0; }
.v2-mine-row { display: flex; justify-content: space-between; align-items: baseline; gap: 14px;
  padding: 9px 0; border-top: 1px solid #1b2027; font-size: 13.5px; }
.v2-mine-row:first-child { border-top: 0; }
.v2-mine-row b { font-family: var(--mono); font-weight: 400; font-size: 13px; color: var(--txt); }
.v2-mine-row span { color: var(--mut); font-family: var(--mono); font-size: 12.5px; text-align: right; }
.v2-mine-row.is-ok span { color: var(--ok); }
.v2-mine-row.is-live span { color: var(--cyan); }
.v2-mine-row.is-bad span { color: #d8a25a; }
.v2-run { margin-top: 18px; border: 1px solid var(--bd); border-radius: 14px; background: var(--bg); padding: 22px 24px; }
.v2-run-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; }
.v2-run-head b { font-family: var(--head); font-size: 21px; font-weight: 600; letter-spacing: .2px; }
.v2-run-sub { display: block; color: var(--mut); font-size: 12.5px; margin-top: 4px; font-family: var(--mono); }
.v2-run-time { font-family: var(--head); font-size: 18px; font-weight: 600; color: var(--cyan); }
.v2-bar { height: 4px; background: #1e242c; border-radius: 3px; overflow: hidden; margin: 12px 0 10px; }
.v2-bar i { display: block; height: 100%; width: 8%; background: var(--acc); border-radius: 3px; transition: width .6s; }
.v2-bar.is-slow i { animation: v2pulse 1.8s ease-in-out infinite; }
@keyframes v2pulse { 0%,100% { opacity: .45 } 50% { opacity: 1 } }
.v2-steps { display: flex; gap: 16px; flex-wrap: wrap; font-family: var(--mono); font-size: 12px; color: #5a626c; margin-bottom: 14px; }
.v2-steps span.is-done { color: var(--ok); }
.v2-steps span.is-now { color: var(--acc); }
.v2-log { margin: 0; background: #080b0f; border: 1px solid #1e242c; border-radius: 8px; padding: 12px;
  font-family: var(--mono); font-size: 12px; line-height: 1.6; color: #b7c2cd;
  max-height: 260px; overflow: auto; white-space: pre-wrap; word-break: break-word; }
.v2-creds { margin-top: 12px; border: 1px solid #1f5c34; background: #0c2415; border-radius: 9px; padding: 12px 14px; }
.v2-creds-h { font-family: var(--head); color: #b6f0c6; font-size: 18px; font-weight: 600; margin-bottom: 8px; }
.v2-creds-row { display: grid; grid-template-columns: 76px 1fr auto; gap: 10px; align-items: center;
  font-family: var(--mono); font-size: 13px; padding: 4px 0; }
.v2-creds-row span { color: var(--dim); font-size: 11px; letter-spacing: .1em; text-transform: uppercase; }
.v2-creds-row code { color: #d6ffe2; }
.v2-copy { background: #12171d; border: 1px solid var(--bd); color: var(--mut); border-radius: 5px;
  font-size: 11.5px; padding: 4px 9px; cursor: pointer; font-family: inherit; }
.v2-code .v2-copy { position: absolute; top: 8px; right: 8px; }
.v2-vnc { display: flex; justify-content: space-between; align-items: center; gap: 12px;
  border: 1px solid #2b4a6b; background: #0f1d2b; border-radius: 9px; padding: 11px 14px; margin-bottom: 12px; }
.v2-vnc b { display: block; font-family: var(--head); font-size: 17px; font-weight: 600; }
.v2-vnc span { font-size: 13px; color: var(--mut); }
.v2-vnc a { text-decoration: none; display: inline-flex; align-items: center; }
.v2-run-foot { display: flex; gap: 12px; align-items: center; margin-top: 12px; flex-wrap: wrap; }
.v2-mobilebar { display: none; }

@media (max-width: 820px) {
  .v2 { margin-bottom: 90px; }
  .v2-hero h1 { font-size: 30px; letter-spacing: -.6px; }
  .v2-lbl { font-size: 11px; letter-spacing: .07em; }
  .v2-badge { position: static; display: inline-block; margin-top: 7px; }
  .v2-os-tile b { font-size: 16px; }
  .v2-card { grid-template-columns: 1fr; }
  .v2-right { border-left: 0; border-top: 1px solid var(--bd); }
  .v2-rail { position: static; padding: 18px; }
  .v2-left { padding: 18px; }
  .v2-per { display: none; }
  .v2-cta-p { display: none; }
  .v2-card { grid-auto-rows: auto; }
  /* oculta solo las etiquetas redundantes de los paneles ("Access time",
     "Unlock code"). Con :first-child se tragaba tambien la de Access and
     safety, que es un hijo primero de su propio bloque. */
  .v2-rail #v2-pane-plan > .v2-lbl, .v2-rail #v2-pane-code > .v2-lbl { display: none; }
  .v2-mobilebar.is-off { display: none; }
  .v2-verdict-rows { grid-template-columns: 1fr; }
  .v2-mine { padding: 16px 18px; }
  .v2-mine-row { flex-direction: column; gap: 3px; }
  .v2-mine-row span { text-align: left; }
  .v2-mobilebar { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 9999;
    background: #0a0e14; border-top: 1px solid var(--bd); padding: 10px 14px;
    align-items: center; justify-content: space-between; gap: 12px; }
  .v2-mobilebar b { font-family: var(--head); font-size: 20px; font-weight: 600; display: block; }
  .v2-mobilebar span { font-size: 11.5px; color: var(--mut); }
  .v2-mobilebar .v2-cta { width: auto; padding: 12px 18px; font-size: 15px; }
}

/* the preview page supplies its own heading */
.osipv2-page .entry-header, .osipv2-page .ast-single-entry-breadcrumbs { display: none; }
.osipv2-page .site-content, .osipv2-page .ast-container { padding-top: 24px; }

/* what it looks like: three real components, not screenshots */
.v2-proof { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px;
  grid-column: 1 / -1; border-top: 1px solid var(--bd); background: #0a0e14; padding: 20px 28px 22px; }
.v2-proof-col { min-width: 0; }
.v2-proof-h { display: flex; align-items: center; gap: 9px; font-family: var(--head); font-size: 16px;
  font-weight: 400; color: var(--mut);
  margin-bottom: 8px; }
.v2-proof-h b { color: var(--txt); font-weight: 600; }
.v2-proof-h .v2-proof-n + span, .v2-proof-h { letter-spacing: .2px; }
.v2-proof-n { width: 17px; height: 17px; flex: 0 0 17px; border-radius: 50%; background: #101d31;
  color: var(--cyan); font-family: var(--mono); font-size: 10px; display: flex;
  align-items: center; justify-content: center; }
.v2-pcard { border: 1px solid var(--bd); border-radius: 10px; background: #0d1117; padding: 13px 14px;
  height: 100%; display: flex; flex-direction: column; }
.v2-pcard .v2-pverd, .v2-pcard .v2-pterm-note { margin-top: 12px; }
.v2-prow { display: flex; justify-content: space-between; gap: 10px; font-size: 13.5px;
  padding: 4px 0; color: var(--mut); }
.v2-prow b { color: var(--txt); font-weight: 400; font-family: var(--mono); font-size: 12.5px; }
.v2-prow b.v2-ok { color: var(--ok); }
.v2-pverd { margin-top: 10px; padding-top: 9px; border-top: 1px solid #1e242c; font-size: 12.5px;
  color: var(--dim); }
.v2-pterm { font-family: var(--mono); font-size: 12px; line-height: 2; color: var(--mut); }
.v2-pterm i { font-style: normal; color: var(--ok); margin-right: 6px; }
.v2-pterm i.v2-wait { color: var(--warn); }
.v2-pterm-note { margin-top: 8px; padding-top: 8px; border-top: 1px solid #1e242c;
  color: var(--dim); font-size: 11.5px; line-height: 1.45; }
.v2-pmono { font-family: var(--mono); font-size: 12px; }

@media (max-width: 820px) {
  .v2-proof { grid-template-columns: 1fr; gap: 10px; padding: 14px 18px 18px; }
  .v2-railfoot { margin-top: 14px; }
}

/* ── la columna de compra cambia de estado: comprar → en marcha ─────────── */
.v2-rail-buy, .v2-rail-live { display: flex; flex-direction: column; flex: 1 1 auto; min-height: 0; }
.v2-live-top b { display: block; font-family: var(--head); font-size: 23px; font-weight: 600; letter-spacing: .1px; line-height: 1.15; }
.v2-live-top span { display: block; font-size: 13.5px; color: var(--mut); margin-top: 4px; }
.v2-live-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin: 18px 0 0; }
.v2-live-cell { border: 1px solid var(--bd); border-radius: 8px; padding: 10px 12px; background: #0d1117;
  min-width: 0; }
.v2-live-cell span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .07em;
  text-transform: uppercase; color: var(--mut); font-weight: 600; }
.v2-live-cell b { display: block; font-family: var(--head); font-size: 19px; font-weight: 600;
  margin-top: 2px; letter-spacing: .2px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.v2-live-last { margin: 10px 0 16px; border: 1px solid var(--bd); border-radius: 8px; padding: 10px 12px;
  background: #080b0f; }
.v2-live-last span { display: block; font-family: var(--sans); font-size: 11px; letter-spacing: .07em;
  font-weight: 600;
  text-transform: uppercase; color: var(--dim); margin-bottom: 5px; }
.v2-live-last code { display: block; font-family: var(--mono); font-size: 12px; color: #7ee2a8;
  line-height: 1.45; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.v2-live-link { display: block; margin: 12px auto 0; }
.v2-live-link:first-of-type { margin-top: 14px; }
.v2-rail-live .v2-cta { margin-top: 2px; }

/* mientras instala, el formulario deja de ser editable y la franja se va */
.v2-left-sum { display: none; flex-direction: column; justify-content: center; }
.v2.is-running #v2-form, .v2.is-ready #v2-form { display: none; }
.v2.is-running .v2-left-sum, .v2.is-ready .v2-left-sum { display: flex; flex: 1 1 auto; }
/* la tarjeta de "servidor comprobado" tambien lleva .v2-left-sum, asi que sin
   esta regla se pintaba ADEMAS del resumen durante la instalacion */
.v2.is-running #v2-checked, .v2.is-ready #v2-checked { display: none; }
.v2-left-sum .v2-sum-os { font-family: var(--head); font-size: 28px; font-weight: 600;
  letter-spacing: .2px; margin-bottom: 16px; line-height: 1.15; }
.v2-sum-row { display: flex; justify-content: space-between; gap: 12px; font-size: 14px;
  padding: 9px 0; border-bottom: 1px solid var(--bd); }
.v2-sum-row span { color: var(--dim); }
.v2-sum-row b { font-family: var(--mono); font-size: 13px; font-weight: 400; }
.v2-left-sum .v2-link { margin-top: 14px; display: inline-block; }
.v2.is-running .v2-proof { display: none; }
/* Con la instalacion terminada, el marco 3 del bloque de prueba (host y
   contrasena de mentira) sobra: las claves reales estan en la tarjeta verde. */
.v2.is-ready .v2-proof { display: none; }
.v2.is-ready .v2-rail-live .v2-live-top b { color: var(--ok); }

/* comprobado: el formulario se recoge para no alargar la pagina, y queda un
   resumen de lo elegido con el veredicto dentro */
.v2-left-checked { justify-content: flex-start; }
.v2.is-checked #v2-form { display: none; }
.v2.is-checked #v2-checked { display: flex; flex: 1 1 auto; }
.v2.is-checked .v2-proof { display: none; }
.v2-left-checked .v2-sum-os { font-size: 22px; margin-bottom: 10px; }
.v2-chk-verdict .v2-verdict { margin-top: 14px; }
.v2-chk-verdict .v2-verdict-h { font-size: 15px; }
.v2-left-checked .v2-link { color: var(--mut); }
/* el "como funciona" largo vivia aqui y repetia la franja de tres cuadros */
.v2-railhint { margin: 16px 0 0; border-top: 1px solid var(--bd); padding-top: 14px; }

/* ── pestañas de la columna de compra ───────────────────────────────────── */
.v2-tabs { display: flex; gap: 18px; border-bottom: 1px solid var(--bd); margin-bottom: 18px; }
.v2-tabs button { background: none; border: 0; padding: 0 0 10px; margin-bottom: -1px; color: var(--mut);
  font-family: inherit; font-size: 13.5px; cursor: pointer; border-bottom: 2px solid transparent; }
.v2-tabs button.is-on { color: var(--txt); border-bottom-color: var(--acc); font-weight: 600; }

/* ── el CTA de pago espera a la prueba gratuita ─────────────────────────── */
.v2-cta[disabled] { background: #171c23; color: var(--dim); border: 1px solid var(--bd); cursor: not-allowed; }
.v2-cta[disabled]:hover { filter: none; }
.v2-cta-state { text-align: center; font-size: 12.5px; color: var(--dim); margin-top: 9px; line-height: 1.45; }
.v2-cta-state.ok { color: #8ee0a6; }
.v2-skip { display: block; margin: 7px auto 0; background: none; border: 0; padding: 0;
  color: #6e7681; font-family: inherit; font-size: 12px; text-decoration: underline; cursor: pointer; }
.v2-stripe-note { text-align: center; font-size: 12px; color: var(--dim); margin-top: 9px; line-height: 1.45; }

/* ── pasos de la prueba (conexión → auth → lectura) ─────────────────────── */
.v2-test-steps { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 12px;
  font-family: var(--mono); font-size: 11.5px; color: #5a626c; }
.v2-test-steps span.is-done { color: var(--ok); }
.v2-test-steps span.is-now { color: var(--acc-l); }
.v2-test-steps span.is-now::after { content: '…'; }

/* ── log: color por tipo de línea + herramientas ───────────────────────── */
.v2-logbar { display: flex; align-items: center; gap: 10px; margin: 12px 0 6px; }
.v2-logbar .v2-lbl { margin: 0; }
.v2-logbar-r { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.v2-auto { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--dim); cursor: pointer; }
.v2-auto input { accent-color: var(--acc); }
.v2-log .v2-ln { white-space: pre-wrap; word-break: break-word; }
.v2-log .v2-ln.ok { color: #7ee2a8; }
.v2-log .v2-ln.warn { color: #e8c07a; }
.v2-log .v2-ln.err { color: #ff9a94; }
.v2-log .v2-ln.step { color: var(--txt); font-weight: 700; }
.v2-log .v2-ln.dim { color: #6e7681; }

/* ── credenciales: copiar todo y descargar .rdp ─────────────────────────── */
.v2-creds-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.v2-creds-actions .v2-btn-sm { width: auto; }
.v2-creds-actions .v2-btn-ghost { border-color: #2a5d3d; color: #b6f0c6; }

/* ── barra móvil: aparece solo al pasar el formulario ───────────────────── */
.v2-mobilebar { transform: translateY(110%); transition: transform .2s ease; pointer-events: none; }
.v2-mobilebar.is-show { transform: none; pointer-events: auto; }
.v2-mobilebar.is-off { display: none !important; }

/* ── prueba visual real, cuando exista la captura ───────────────────────── */
.v2-shot { margin: 0; min-width: 0; }
.v2-shot img { display: block; width: 100%; height: auto; border: 1px solid var(--bd); border-radius: 10px; }
.v2-shot figcaption { margin-top: 8px; font-size: 12px; color: var(--dim); line-height: 1.45; }
.v2-proof.has-shot { grid-template-columns: 1.5fr repeat(3, 1fr); }
@media (max-width: 1100px) { .v2-proof.has-shot { grid-template-columns: 1fr 1fr; } }
@media (max-width: 820px) { .v2-proof.has-shot { grid-template-columns: 1fr; } }

/* ── foco visible y movimiento reducido ─────────────────────────────────── */
.v2 :focus-visible { outline: 2px solid var(--acc-l); outline-offset: 2px; border-radius: 6px; }
.v2-os-tile:focus-visible, .v2-plan:focus-visible, .v2-seg button:focus-visible { outline-offset: 1px; }
@media (prefers-reduced-motion: reduce) {
  .v2 *, .v2 *::before, .v2 *::after { animation: none !important; transition: none !important; }
  .v2-mobilebar { transform: none; }
}

/* ── contadores del embudo (?stats=1) ──────────────────────────────────── */
.v2-stats { max-width: 1000px; margin: 8px auto 40px; border-collapse: collapse;
  font-family: var(--mono); font-size: 12px; color: var(--mut); }
.v2-stats caption { text-align: left; padding-bottom: 8px; font-family: var(--sans); font-size: 12px; color: var(--dim); }
.v2-stats th, .v2-stats td { border-bottom: 1px solid var(--bd); padding: 5px 18px 5px 0; text-align: left; }
.v2-stats th { color: var(--dim); font-weight: 400; }

/* el listado de ?demo=selftest se lee entero, sin recortes */
#v2-selftest { max-height: none; overflow: visible; }

.v2-creds-warn { margin: 2px 0 8px; color: #f0b429; }

/* Estado final: las claves son lo unico que el cliente se tiene que llevar de
   esta pagina, asi que la tarjeta sube arriba del panel y se hace evidente. */
.v2-creds.is-final {
  margin: 0 0 14px;
  border: 1px solid #2f9e5a;
  border-left: 4px solid #3fb950;
  background: #0b2a17;
  padding: 16px 18px;
}
.v2-creds.is-final .v2-creds-h { font-size: 22px; color: #c8ffd9; }
.v2-creds.is-final .v2-creds-row code { font-size: 14px; }
.v2-creds.is-final .v2-creds-actions .v2-btn-ghost { border-color: #2f9e5a; }
.v2-verdict-warn { color: #f0b429; }

/* Astra estira el contenido para pegar el footer abajo y en esta pagina, que
   es corta, dejaba ~700px de negro vacio entre el widget y el footer. */
body.osipv2-page #page { min-height: auto; }
body.osipv2-page .site-content,
body.osipv2-page #content.site-content { min-height: auto; flex: 0 1 auto; }
body.osipv2-page .site-footer { margin-top: 56px; }

/* ── UI polish pass (visual only) ─────────────────────────────────────── */

/* 1 · one clear primary action while the server is still unchecked */
#v2-test.v2-btn-test {
  background: #101d31;
  border-color: #2f80ed;
  color: #dbeafe;
  font-weight: 600;
  box-shadow: 0 0 0 1px rgba(47, 128, 237, .16), 0 8px 24px rgba(47, 128, 237, .10);
}
#v2-test.v2-btn-test:hover {
  background: #13243b;
  border-color: #56a3f5;
  filter: none;
}
#v2-cta[disabled] {
  background: transparent;
  border: 1px dashed #2b323c;
  color: #6e7681;
  font-size: 14px;
  font-weight: 500;
  padding-top: 12px;
  padding-bottom: 12px;
  box-shadow: none;
}
#v2-cta[disabled] .v2-cta-t {
  opacity: .92;
}

/* 2 · advanced settings read as a control row, not a stray link */
.v2-adv {
  width: 100%;
  padding: 9px 12px;
  border: 1px solid var(--bd);
  border-radius: 10px;
  background: #0a0e14;
  margin-top: 14px;
}
.v2-adv #v2-adv {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #cfd8e3;
  font-size: 13px;
  font-weight: 600;
}
.v2-adv #v2-adv:hover {
  color: var(--acc-l);
  text-decoration: none;
}
.v2-adv-sum {
  margin-left: auto;
  font-size: 11.5px;
}
.v2-chev {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border: 1px solid var(--bd2);
  border-radius: 6px;
  color: var(--acc-l);
  font-size: 12px;
  line-height: 1;
}
.v2-adv-fields {
  border-top: 1px solid var(--bd);
  padding-top: 10px;
  margin-top: 2px;
}

/* 3 · connect the three proof steps on desktop, bigger numbers on mobile */
.v2-proof-col {
  position: relative;
}
@media (min-width: 821px) {
  .v2-proof:not(.has-shot) {
    column-gap: 28px;
  }
  .v2-proof:not(.has-shot) .v2-proof-col + .v2-proof-col::before {
    content: "";
    position: absolute;
    left: -23px;
    top: calc(50% + 34px);
    transform: translateY(-50%);
    width: 18px;
    height: 18px;
    border: 1px solid #30363d;
    border-radius: 50%;
    background: #161b22;
  }
  .v2-proof:not(.has-shot) .v2-proof-col + .v2-proof-col::after {
    content: "";
    position: absolute;
    left: -17px;
    top: calc(50% + 34px);
    transform: translateY(-50%) rotate(45deg);
    width: 6px;
    height: 6px;
    border-top: 1.5px solid #8b949e;
    border-right: 1.5px solid #8b949e;
  }
}
@media (max-width: 820px) {
  .v2-proof-h {
    font-size: 17px;
  }
  .v2-proof-n {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
    font-size: 11px;
  }
  .v2-proof-col + .v2-proof-col::before {
    content: "";
    position: absolute;
    left: 10px;
    top: -12px;
    width: 1px;
    height: 12px;
    background: linear-gradient(#2b3642, #1a2028);
  }
}

/* 4 · private key field on narrow screens */
textarea.v2-input:focus {
  box-shadow: 0 0 0 3px rgba(47, 128, 237, .14);
}
#v2-key {
  word-break: break-all;
}
.v2-input::placeholder {
  color: #5f6b7a;
}
@media (max-width: 820px) {
  #v2-key {
    font-size: 13px;
    min-height: 86px;
  }
  .v2-adv-sum {
    margin-left: 0;
    width: 100%;
    padding-left: 27px;
  }
}

/* 5 · subtle grid + glow behind the hero, same language as the guides */
.v2-hero {
  position: relative;
}
.v2-hero::before {
  content: "";
  position: absolute;
  inset: -16px -14px 0;
  z-index: 0;
  background:
    radial-gradient(560px 180px at 16% -12%, rgba(47, 128, 237, .16), transparent 68%),
    linear-gradient(rgba(47, 128, 237, .045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(47, 128, 237, .045) 1px, transparent 1px);
  background-size: auto, 34px 34px, 34px 34px;
  -webkit-mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 92%);
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, .9), transparent 92%);
  pointer-events: none;
}
.v2-hero h1,
.v2-hero p {
  position: relative;
  z-index: 1;
}
@media (max-width: 820px) {
  .v2-hero::before {
    inset: -10px -10px 0;
    background-size: auto, 28px 28px, 28px 28px;
  }
}

/* Con un solo sistema por fila, la insignia de RAM vuelve a la esquina. */
@media (max-width: 520px) {
  .v2-badge { position: absolute; top: 10px; right: 10px; margin-top: 0; }
  .v2-payline { font-size: 9.5px; gap: 4px; }
  .v2-payline span { padding: 2px 4px; }
}
