/* /instalar/ · guía paso a paso del aviso de seguridad (SmartScreen en Windows, Gatekeeper en Mac) + descarga por app. */
.inst [hidden] { display: none !important; }
.inst-hero { text-align: center; padding-block: clamp(36px, 6vw, 80px) clamp(8px, 2vw, 24px); }
.inst-hero h1 { font-size: clamp(1.45rem, 3.2vw, 2.4rem); line-height: 1.15; letter-spacing: .06em; margin: 12px auto 0; max-width: none; text-wrap: balance; }
.inst-hero h1 em { font-style: normal; color: var(--gold); display: inline; }
.inst-hero .lede { margin: 14px auto 0; max-width: 52ch; color: var(--muted); font-size: clamp(.95rem, 1.2vw, 1.08rem); }

/* Selector de app (el de sistema vive en os-choice.css) */
.inst-pick { display: grid; gap: 18px; justify-items: center; margin-top: clamp(26px, 4vw, 40px); }
.inst-apps { display: flex; flex-wrap: wrap; justify-content: center; gap: 10px; }
.inst-apps a { display: inline-flex; align-items: center; gap: 10px; padding: 8px 16px 8px 8px; border: 1px solid var(--line); border-radius: 999px; color: var(--text); text-decoration: none; font-family: var(--font-display); font-size: .7rem; letter-spacing: .12em; text-transform: uppercase; background: rgba(255,255,255,.02); transition: border-color .25s, background .25s, transform .25s; }
.inst-apps a:hover { border-color: var(--line-strong); transform: translateY(-2px); }
.inst-apps a[aria-current="true"] { border-color: var(--gold); background: rgba(210,180,140,.12); color: var(--gold-hi); }
.inst-apps img { width: 32px; height: 32px; border-radius: 9px; object-fit: cover; }

/* Panel de cada sistema */
.inst-panel { padding-block: clamp(34px, 5vw, 64px) 0; }
.inst-intro { display: grid; grid-template-columns: 1fr auto; gap: clamp(16px, 4vw, 48px); align-items: center; margin-bottom: clamp(20px, 3vw, 36px); }
.inst-intro h2 { font-size: clamp(1.35rem, 3vw, 2.1rem); letter-spacing: .12em; color: var(--gold); }
.inst-intro p { margin-top: 12px; color: var(--muted); }
.inst-intro .dl-michi { width: clamp(220px, 28vw, 320px); }
.inst-note { margin-top: 14px; padding: 12px 16px; border-left: 2px solid var(--gold); background: rgba(210,180,140,.07); border-radius: 0 8px 8px 0; color: var(--muted); font-size: .92rem; max-width: 70ch; }
.inst-note b { color: var(--gold-hi); font-weight: 500; }

.inst-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: clamp(14px, 2.2vw, 22px); counter-reset: inst; }
.inst-step { counter-increment: inst; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: clamp(16px, 3vw, 36px); align-items: center; padding: clamp(14px, 2vw, 22px); border: 1px solid var(--line); border-radius: 16px; background: linear-gradient(180deg, rgba(255,255,255,.03), rgba(255,255,255,.01)); }
.inst-step figure { margin: 0; border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: #070612; aspect-ratio: 16 / 9; }
.inst-step figure img { display: block; width: 100%; height: 100%; object-fit: cover; }
.inst-step .n { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line-strong); color: var(--gold); font-family: var(--font-display); font-size: 1rem; margin-bottom: 14px; }
.inst-step .n::before { content: counter(inst); }
.inst-step h3 { font-size: clamp(1rem, 1.6vw, 1.25rem); letter-spacing: .1em; color: var(--gold-hi); }
.inst-step p { margin-top: 10px; color: var(--muted); font-size: .98rem; }
.inst-step p b { color: var(--text); font-weight: 500; }
.inst-adv { margin-top: 18px; }
.inst-adv summary { cursor: pointer; color: var(--gold-hi); font-size: .92rem; }
.inst-adv p { margin-top: 10px; color: var(--muted); font-size: .92rem; }
.inst-adv code { display: block; margin-top: 10px; padding: 12px 14px; border-radius: 8px; background: rgba(210,180,140,.08); font-family: ui-monospace, Consolas, monospace; font-size: .84rem; color: var(--gold-hi); overflow-x: auto; white-space: nowrap; }

/* Descarga */
.inst-dl { margin-top: clamp(44px, 7vw, 90px); text-align: center; }
.inst-dl h2 { font-size: clamp(1.4rem, 3.2vw, 2.2rem); letter-spacing: .12em; color: var(--gold); }
.inst-dl > p { margin: 12px auto 0; color: var(--muted); max-width: 56ch; }
.inst-dl .cta-row { margin-top: 26px; }
.inst-dl .micro { text-align: center; margin-inline: auto; max-width: 60ch; }
.inst-help { text-align: center; margin-top: clamp(30px, 5vw, 56px); padding-bottom: clamp(60px, 9vw, 110px); }

@media (max-width: 820px) {
  .inst-intro { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .inst-intro .dl-michi { order: -1; width: min(220px, 60vw); }
  .inst-intro .inst-note { text-align: left; }
  .inst-step { grid-template-columns: 1fr; }
}

/* Arriba: qué bajás, el botón y un enlace al otro sistema. Los pasos del aviso van debajo; las otras apps, al final. */
#acceso { scroll-margin-top: 80px; }
.inst-hero .inst-os { display: block; color: var(--muted); font-size: .62em; letter-spacing: .14em; margin-top: 6px; }
.inst-get { margin-top: clamp(22px, 3.5vw, 34px); }
.inst-get .cta-row { justify-content: center; }
.inst-get .micro { text-align: center; margin: 14px auto 0; max-width: 52ch; }
.inst-desk { margin: 14px auto 0; max-width: 44ch; padding: 10px 14px; border: 1px solid var(--line); border-radius: 10px; color: var(--muted); font-size: .9rem; }
.inst-switch { margin-top: 18px; min-height: 44px; padding: 0 12px; border: 0; background: none; color: var(--gold-hi); font: inherit; font-size: .92rem; text-decoration: underline; text-underline-offset: 4px; cursor: pointer; }
.inst-switch:hover { color: var(--text); }
.inst-switch:focus-visible { outline: 2px solid var(--gold-hi); outline-offset: 2px; border-radius: 4px; }

/* Los pasos, más compactos: número y texto a la izquierda, la captura chica a la derecha. */
.inst-step { grid-template-columns: auto minmax(0, 1fr) minmax(0, 300px); column-gap: clamp(14px, 2vw, 24px); row-gap: 8px; align-items: start; padding: clamp(14px, 1.8vw, 20px); }
.inst-step h3 { align-self: center; min-height: 38px; display: flex; align-items: center; }
.inst-step p { margin-top: 0; }
.inst-step > div { display: contents; }
.inst-step .n { margin: 0; width: 38px; height: 38px; align-self: start; grid-column: 1; grid-row: 1 / span 3; }
.inst-step h3, .inst-step p { grid-column: 2; }
.inst-step figure { grid-column: 3; grid-row: 1 / span 3; align-self: center; }
.inst-step > div > :not(.n) { grid-column: 2; }

/* Otras apps, al final de la guía */
.inst-others { text-align: center; padding-block-start: clamp(34px, 6vw, 68px); }
.inst-others h2 {
  margin: 0 0 12px; color: var(--muted); font: 500 .9rem/1.4 var(--font-body); text-transform: none;
}
.inst-others .inst-apps a { font-size: .62rem; padding: 6px 14px 6px 6px; }
.inst-others .inst-apps img { width: 26px; height: 26px; }
@media (max-width: 960px) {
  .inst-others .inst-apps { flex-wrap: nowrap; gap: clamp(4px, 2vw, 12px); }
  .inst-others .inst-apps a {
    display: grid; place-items: center; width: 44px; height: 44px; flex: 0 0 44px;
    padding: 0; border: 1px solid transparent; border-radius: 11px; background: none;
  }
  .inst-others .inst-apps a[aria-current="true"] { border-color: var(--gold); background: rgba(210,180,140,.08); }
  .inst-others .inst-apps img { width: 32px; height: 32px; }
  .inst-app-name { display: none; }
}

@media (max-width: 820px) {
  /* En el celular no se instala nada: los pasos quedan en texto y sin el video ni las capturas. */
  .inst-step { grid-template-columns: auto minmax(0, 1fr); }
  .inst-step figure, .inst-intro .dl-michi { display: none; }
}

/* Comprobar el archivo: el SHA-256 publicado acá, aparte de GitHub. */
.inst-hash { margin: 22px 0 0; max-width: 70ch; text-align: left; font-size: .86rem; color: var(--muted); }
.inst-hash summary { cursor: pointer; text-align: left; color: var(--gold-hi); font-size: .86rem; min-height: 44px; display: flex; align-items: center; }
.inst-hash p { margin-top: 8px; }
.inst-hash code { font-family: ui-monospace, Consolas, monospace; font-size: .78rem; color: var(--gold-hi); background: rgba(210,180,140,.08); padding: 2px 6px; border-radius: 6px; overflow-wrap: anywhere; }
.inst-hash-row { display: grid; gap: 4px; }
.inst-hash-row span { font-size: .72rem; letter-spacing: .12em; text-transform: uppercase; color: var(--faint); }
.inst-hero .dl-terms { margin-top: 10px; }
