/* Teacher CLI — landing brutalist 0.6.0
   Contraste duro, bordes gruesos, sin suavizados de marketing. */

:root {
  --ink: #0a0a0a;
  --paper: #f4f1ea;
  --paper-2: #e8e2d6;
  --accent: #ff3b00;
  --accent-2: #ffd400;
  --ok: #0b6b3a;
  --line: 3px solid var(--ink);
  --shadow: 6px 6px 0 var(--ink);
  --font-display: "Arial Black", "Helvetica Neue", Helvetica, Arial, sans-serif;
  --font-body: "IBM Plex Mono", "SFMono-Regular", ui-monospace, Menlo, Consolas, monospace;
  --max: 1120px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 15px;
  line-height: 1.55;
  min-height: 100vh;
}

img {
  max-width: 100%;
  display: block;
}

a {
  color: var(--ink);
  text-underline-offset: 3px;
}

a:hover {
  background: var(--accent-2);
}

.skip {
  position: absolute;
  left: -9999px;
}

.skip:focus {
  left: 8px;
  top: 8px;
  z-index: 100;
  background: var(--accent-2);
  border: var(--line);
  padding: 8px 12px;
}

/* ----- Layout ----- */

.wrap {
  width: min(100% - 32px, var(--max));
  margin-inline: auto;
  min-width: 0;
  max-width: 100%;
}

.site-header {
  border-bottom: var(--line);
  background: var(--paper);
  position: sticky;
  top: 0;
  z-index: 40;
}

.site-header__inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 0;
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
  text-transform: uppercase;
}

.brand:hover {
  background: transparent;
}

.brand__mark {
  width: 36px;
  height: 36px;
  border: var(--line);
  background: var(--accent);
  box-shadow: 3px 3px 0 var(--ink);
  display: grid;
  place-items: center;
  font-size: 12px;
  color: var(--ink);
  font-weight: 700;
}

.brand__text {
  line-height: 1.1;
}

.brand__text small {
  display: block;
  font-family: var(--font-body);
  font-weight: 400;
  font-size: 11px;
  letter-spacing: 0.04em;
  opacity: 0.75;
}

.nav {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.nav a {
  text-decoration: none;
  border: 2px solid var(--ink);
  padding: 6px 10px;
  font-size: 12px;
  text-transform: uppercase;
  background: var(--paper);
}

.nav a[aria-current="page"],
.nav a:hover {
  background: var(--accent-2);
  box-shadow: 3px 3px 0 var(--ink);
}

.nav a.is-cta {
  background: var(--accent-2);
  color: var(--ink);
  font-weight: 700;
}

.nav a.is-cta:hover {
  background: var(--accent);
  color: var(--ink);
}

main {
  padding-bottom: 64px;
}

.site-footer {
  border-top: var(--line);
  background: var(--paper-2);
  color: var(--ink);
  padding: 28px 0 40px;
  margin-top: 48px;
}

.site-footer a {
  color: var(--ink);
  font-weight: 600;
}

.site-footer a:hover {
  background: var(--accent-2);
  color: var(--ink);
}

.footer-grid {
  display: grid;
  gap: 20px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.footer-grid h2 {
  margin: 0 0 8px;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--ink);
  font-family: var(--font-display);
  background: var(--accent-2);
  display: inline-block;
  padding: 2px 6px;
  border: 2px solid var(--ink);
}

.footer-grid ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.footer-grid li {
  margin: 4px 0;
  font-size: 13px;
}

.footer-credit {
  margin: 0;
  font-size: 13px;
  line-height: 1.55;
  max-width: 36ch;
}

.footer-credit a {
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.footer-credit__links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
  list-style: none;
  padding: 0;
}

.footer-credit__links a {
  border: 2px solid var(--ink);
  background: #fff;
  padding: 4px 10px;
  font-size: 12px;
  text-transform: uppercase;
  text-decoration: none;
  font-weight: 700;
}

.footer-credit__links a:hover {
  background: var(--accent-2);
}

.footer-version {
  margin: 0 0 10px;
}

.version-badge {
  font-family: var(--font-body);
  letter-spacing: 0.04em;
}

.footer-grid .version-badge {
  font-size: 12px;
}

/* ----- Primitives ----- */

.stamp {
  display: inline-block;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  background: var(--accent-2);
  font-weight: 700;
}

.stamp--danger {
  background: var(--accent);
  color: var(--ink);
}

.stamp--ok {
  background: #b8f0c8;
}

.stamp--muted {
  background: var(--paper-2);
}

h1,
h2,
h3 {
  font-family: var(--font-display);
  letter-spacing: -0.03em;
  line-height: 1.05;
  text-transform: uppercase;
  margin: 0 0 0.5em;
}

h1 {
  font-size: clamp(2rem, 6vw, 3.6rem);
}

h2 {
  font-size: clamp(1.35rem, 3vw, 1.9rem);
}

h3 {
  font-size: 1.05rem;
}

p {
  margin: 0 0 1em;
}

.lead {
  font-size: 1.05rem;
  max-width: 62ch;
}

.muted {
  opacity: 0.75;
}

.rule {
  border: 0;
  border-top: var(--line);
  margin: 28px 0;
}

.panel {
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.panel--accent {
  background: var(--accent);
  color: var(--ink);
}

.panel--yellow {
  background: var(--accent-2);
  color: var(--ink);
}

.panel--dark {
  background: var(--paper-2);
  color: var(--ink);
  border-width: 4px;
}

.panel--dark a {
  color: var(--ink);
  font-weight: 700;
}

.grid-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.grid-3 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.stack {
  display: grid;
  gap: 16px;
}

.btn-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

/* Bloque de descarga en el hero de inicio */
.hero-download {
  margin-top: 18px;
  max-width: 100%;
}

.hero-download pre {
  font-size: 12.5px;
}

.nav a.is-download {
  background: #fff;
  font-weight: 700;
}

.nav a.is-download:hover {
  background: var(--accent-2);
}

/* CTA final: texto + botones en franja, sin hueco vacío a la derecha */
.cta-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 16px 28px;
  align-items: center;
  padding: 18px 20px;
}

.cta-band__copy {
  min-width: 0;
}

.cta-band__copy h2 {
  margin: 0 0 6px;
  font-size: clamp(1.2rem, 2.5vw, 1.55rem);
  line-height: 1.15;
}

.cta-band__copy p {
  margin: 0;
  max-width: none;
  line-height: 1.45;
}

/* El padding lo define .cta-band; evita doble hueco del .panel genérico */
.panel.cta-band {
  padding: 18px 20px;
}

.cta-band .btn-row {
  margin-top: 0;
  justify-content: flex-end;
  flex-shrink: 0;
}

@media (max-width: 720px) {
  .cta-band {
    grid-template-columns: 1fr;
    gap: 14px;
    padding: 16px;
  }

  .cta-band .btn-row {
    justify-content: flex-start;
  }
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: var(--line);
  padding: 12px 16px;
  text-decoration: none;
  font-family: var(--font-display);
  text-transform: uppercase;
  font-size: 13px;
  letter-spacing: 0.02em;
  background: var(--paper);
  color: var(--ink);
  box-shadow: 4px 4px 0 var(--ink);
  cursor: pointer;
}

.btn:hover {
  transform: translate(-1px, -1px);
  box-shadow: 5px 5px 0 var(--ink);
  background: var(--accent-2);
}

.btn:active {
  transform: translate(2px, 2px);
  box-shadow: 2px 2px 0 var(--ink);
}

.btn--primary {
  background: var(--accent-2);
  color: var(--ink);
}

.btn--primary:hover {
  background: var(--accent);
  color: var(--ink);
}

.btn--ghost {
  box-shadow: none;
  background: #fff;
  color: var(--ink);
}

/* ----- Hero ----- */

.hero {
  padding: 36px 0 28px;
  border-bottom: var(--line);
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(10, 10, 10, 0.04) 23px,
      rgba(10, 10, 10, 0.04) 24px
    ),
    var(--paper);
}

.hero__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

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

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

.hero-card {
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
}

.hero-card ol {
  margin: 0;
  padding-left: 1.2em;
}

.hero-card li {
  margin: 8px 0;
}

/* ----- Tables ----- */

.table-wrap {
  overflow-x: auto;
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  /* Sombra 6px + aire: el texto o sección de debajo no se pisa */
  margin: 0 0 20px;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 560px;
}

th,
td {
  border-bottom: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
}

th:last-child,
td:last-child {
  border-right: 0;
}

tr:last-child td {
  border-bottom: 0;
}

th {
  background: var(--accent-2);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

tr:nth-child(even) td {
  background: var(--paper-2);
}

/* ----- Code -----
   Siempre tinta oscura sobre chip claro. Nunca heredar blanco del padre
   (paneles naranja, CTAs, etc.): --require-llm y flags deben leerse. */

pre,
code {
  font-family: var(--font-body);
}

code {
  background: #fff;
  border: 2px solid var(--ink);
  color: var(--ink) !important;
  padding: 1px 6px;
  font-size: 0.92em;
  font-weight: 600;
}

.panel--accent code,
.panel--yellow code,
.panel--dark code,
.stamp code,
.btn code,
.nav code {
  background: #fff;
  color: var(--ink) !important;
}

/* Bloque de comando: barra + código legible.
   No usar overflow:hidden en el contenedor: recorta texto y sombra.
   Dentro de .step / .panel / .card / .install-path no lleva sombra extra. */
.pre-block {
  position: relative;
  display: flex;
  flex-direction: column;
  border: var(--line);
  background: #fff;
  color: var(--ink);
  box-shadow: var(--shadow);
  overflow: visible;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  margin: 0;
}

.step .pre-block,
.panel .pre-block,
.card .pre-block,
.hero-card .pre-block,
.install-path .pre-block {
  box-shadow: none;
}

.pre-block__bar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  column-gap: 12px;
  row-gap: 8px;
  border-bottom: var(--line);
  background: var(--accent-2);
  padding: 10px 12px;
  min-height: 44px;
}

.pre-block__label {
  margin: 0;
  min-width: 0;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink);
  font-weight: 700;
  line-height: 1.35;
  /* Multi-línea: no ellipsis que «se coma» el título del bloque */
  white-space: normal;
  overflow: visible;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.pre-block__body {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  border: 0;
  max-width: 100%;
}

.pre-block pre,
.pre-block__body {
  font-family: var(--font-body);
  font-size: 13px;
  line-height: 1.65;
  color: var(--ink);
  /* pre-wrap: URLs y flags largos no salen del cuadro ni se recortan */
  white-space: pre-wrap;
  word-break: break-word;
  overflow-wrap: anywhere;
  tab-size: 2;
}

.pre-block pre {
  margin: 0;
  padding: 14px 16px;
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  background: #fff;
  max-width: 100%;
  min-width: 0;
}

.copy-btn {
  border: 2px solid var(--ink);
  background: #fff;
  color: var(--ink);
  font-family: var(--font-body);
  font-size: 11px;
  text-transform: uppercase;
  padding: 6px 12px;
  cursor: pointer;
  font-weight: 700;
  flex-shrink: 0;
  white-space: nowrap;
  line-height: 1;
  align-self: start;
}

.copy-btn:hover,
.copy-btn[data-copied="1"] {
  background: var(--ink);
  color: var(--accent-2);
}

/* ----- Cards / steps ----- */

.section {
  padding: 28px 0 4px;
}

.section__head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.section__head p {
  margin: 0;
  max-width: 48ch;
}

.card {
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
}

.card h3 {
  margin: 0;
}

.card p {
  margin: 0;
  flex: 1;
}

.card .meta {
  font-size: 12px;
  letter-spacing: 0.02em;
  border-top: 2px solid var(--ink);
  padding-top: 10px;
  margin-top: auto;
  line-height: 1.45;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.card .meta code,
.card .meta .cmd-chip {
  font-size: 0.85em;
}

.meta__when {
  opacity: 0.85;
}

/* Chip del comando directo en el catálogo de materiales */
.cmd-chip {
  display: inline-block;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
  background: var(--accent-2) !important;
  border: 2px solid var(--ink) !important;
  color: var(--ink) !important;
  font-weight: 700;
  padding: 2px 8px;
  line-height: 1.35;
}

.table-wrap td code,
.table-wrap th code {
  white-space: normal;
  overflow-wrap: anywhere;
  word-break: break-word;
}

/* Lista de pasos del flujo */
.steps {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.steps > .section {
  padding: 12px 0;
}

/* Paso del flujo: número + cuerpo en columna con ritmo uniforme */
.step {
  display: grid;
  grid-template-columns: 56px minmax(0, 1fr);
  gap: 16px 18px;
  align-items: start;
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 18px 18px 20px;
  margin: 0;
}

.step__n {
  width: 56px;
  height: 56px;
  border: var(--line);
  background: var(--accent-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.35rem;
  flex-shrink: 0;
}

.step__body {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.step__body > h2 {
  margin: 0;
  font-size: clamp(1.15rem, 2.4vw, 1.55rem);
  line-height: 1.15;
}

.step__body > p,
.step__body > .step__lead {
  margin: 0;
  max-width: 70ch;
}

.step__body > .muted,
.step__hint {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  opacity: 0.85;
}

/* Texto justo debajo de una caja con sombra dura: no se pisa con el offset 6px */
.after-box,
.table-wrap + .step__hint,
.pre-block + .step__hint,
.panel + .step__hint,
.note + .step__hint {
  margin-top: 14px;
  margin-bottom: 0;
  display: block;
  position: relative;
  z-index: 0;
  clear: both;
}

.section > .table-wrap {
  margin-bottom: 8px;
}

.section > .pre-block {
  margin-bottom: 12px;
}

.step__body > .note,
.step__body > .checklist,
.step__body > .pre-block {
  margin: 0;
}

.step__body > .checklist {
  display: grid;
  gap: 8px;
}

@media (max-width: 560px) {
  .step {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .step__n {
    width: 44px;
    height: 44px;
    font-size: 1.1rem;
  }
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag {
  border: 2px solid var(--ink);
  padding: 2px 8px;
  font-size: 11px;
  text-transform: uppercase;
  background: var(--paper-2);
}

.tag--hot {
  background: var(--accent);
  color: var(--ink);
  font-weight: 700;
}

.page-title {
  padding: 28px 0 8px;
  border-bottom: var(--line);
  margin-bottom: 24px;
}

.page-title p {
  max-width: 64ch;
}

.kicker {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  margin-bottom: 8px;
  font-weight: 700;
}

.note {
  border-left: 6px solid var(--accent);
  background: var(--paper-2);
  border-top: 2px solid var(--ink);
  border-right: 2px solid var(--ink);
  border-bottom: 2px solid var(--ink);
  padding: 12px 14px;
  box-shadow: none;
  line-height: 1.45;
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.step .note {
  background: var(--paper-2);
}

.note strong {
  display: block;
  text-transform: uppercase;
  font-size: 12px;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
}

.checklist {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.checklist li {
  border: 2px solid var(--ink);
  background: #fff;
  margin: 0;
  padding: 12px 14px;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  min-width: 0;
  overflow: visible;
  line-height: 1.5;
}

.checklist li > span:last-child {
  min-width: 0;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.checklist .box {
  width: 22px;
  height: 22px;
  border: 2px solid var(--ink);
  background: var(--paper-2);
  flex-shrink: 0;
  margin-top: 2px;
}

.two-col-text {
  columns: 1;
}

@media (min-width: 760px) {
  .two-col-text {
    columns: 2;
    column-gap: 28px;
  }
  .two-col-text p {
    break-inside: avoid;
  }
}

.toc {
  border: var(--line);
  background: var(--paper-2);
  padding: 14px;
  box-shadow: var(--shadow);
  margin-bottom: 16px;
}

.toc ol {
  margin: 8px 0 0;
  padding-left: 1.2em;
}

.toc a {
  text-decoration: none;
  border-bottom: 2px solid transparent;
}

.toc a:hover {
  border-bottom-color: var(--ink);
  background: var(--accent-2);
}

/* Filter chips on artefactos */
.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 16px;
}

.filters button {
  border: 2px solid var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  padding: 6px 10px;
  cursor: pointer;
}

.filters button[aria-pressed="true"] {
  background: var(--accent-2);
  color: var(--ink);
  font-weight: 700;
  box-shadow: 3px 3px 0 var(--ink);
}

.artifact[hidden] {
  display: none !important;
}

/* ----- Personalidad / motion ----- */

.marquee {
  overflow: hidden;
  border-bottom: var(--line);
  border-top: var(--line);
  background: var(--ink);
  color: var(--accent-2);
}

.marquee__track {
  display: flex;
  width: max-content;
  gap: 0;
  animation: marquee 28s linear infinite;
  font-family: var(--font-display);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  padding: 10px 0;
}

.marquee__track span {
  padding: 0 1.5rem;
  white-space: nowrap;
  border-right: 2px solid var(--accent);
}

@keyframes marquee {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(-50%);
  }
}

@media (prefers-reduced-motion: reduce) {
  .marquee__track,
  .figure img,
  .hero-visual {
    animation: none !important;
  }
}

.figure {
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  overflow: hidden;
  min-width: 0;
}

.figure--pipeline {
  background: var(--paper);
  display: flex;
  flex-direction: column;
  /* sin sticky: no se solapa ni se “come” el marco y el pie */
  position: relative;
  top: auto;
}

.figure__frame {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border-bottom: var(--line);
  background: var(--accent-2);
  padding: 10px 14px;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
  flex-shrink: 0;
}

.figure__frame .live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--ink);
  background: #fff;
  border: 2px solid var(--ink);
  padding: 2px 8px;
  font-size: 10px;
  letter-spacing: 0.08em;
  animation: none;
}

.figure__frame .live::before {
  content: "";
  width: 8px;
  height: 8px;
  background: var(--accent);
  border: 1.5px solid var(--ink);
  animation: live-blink 1.2s steps(2, end) infinite;
}

@keyframes live-blink {
  50% {
    opacity: 0.2;
  }
}

.figure__stage {
  padding: 14px 12px 8px;
  background:
    repeating-linear-gradient(
      0deg,
      transparent,
      transparent 23px,
      rgba(10, 10, 10, 0.04) 23px,
      rgba(10, 10, 10, 0.04) 24px
    ),
    var(--paper);
  flex: 1 1 auto;
  min-height: 0;
}

.figure img,
.figure object,
.figure svg {
  width: 100%;
  height: auto;
  max-width: 100%;
  display: block;
  background: transparent;
  /* evita que el SVG se colapse o se recorte raro */
  aspect-ratio: 520 / 280;
  object-fit: contain;
}

.figure__cap {
  padding: 12px 14px;
  font-size: 12px;
  line-height: 1.45;
  border-top: 2px solid var(--ink);
  margin: 0;
  background: #fff;
  flex-shrink: 0;
}

.figure__cap strong {
  font-weight: 700;
  background: var(--accent-2);
  border: 1.5px solid var(--ink);
  padding: 0 5px;
  margin-right: 2px;
}

.hero-visual {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
}

.persona {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.persona .card {
  position: relative;
  overflow: hidden;
}

.persona .card::before {
  content: attr(data-n);
  position: absolute;
  top: -8px;
  right: 8px;
  font-family: var(--font-display);
  font-size: 3rem;
  opacity: 0.08;
  line-height: 1;
}

.promise-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1.1fr 1fr;
  align-items: stretch;
}

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

.install-path {
  display: grid;
  gap: 16px;
  margin: 20px 0;
  min-width: 0;
  max-width: 100%;
}

.install-path__item {
  display: grid;
  /* minmax(0, 1fr) evita que el pre largo expanda y recorte el cuadro */
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 14px;
  border: var(--line);
  background: #fff;
  box-shadow: var(--shadow);
  padding: 16px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.install-path__n {
  width: 48px;
  height: 48px;
  border: var(--line);
  background: var(--accent-2);
  display: grid;
  place-items: center;
  font-family: var(--font-display);
  font-size: 1.2rem;
  flex-shrink: 0;
}

.install-path__body {
  min-width: 0;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  gap: 10px;
  overflow: visible;
}

.install-path__item h3 {
  margin: 0;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.install-path__item p {
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 560px) {
  .install-path__item {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .install-path__n {
    width: 40px;
    height: 40px;
    font-size: 1.05rem;
  }
}

.os-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 12px 0 16px;
}

.os-tabs button {
  border: 2px solid var(--ink);
  background: #fff;
  font-family: var(--font-body);
  font-size: 12px;
  text-transform: uppercase;
  padding: 8px 12px;
  cursor: pointer;
  font-weight: 700;
}

.os-tabs button[aria-selected="true"] {
  background: var(--accent);
  color: var(--ink);
  box-shadow: 3px 3px 0 var(--ink);
}

.os-panel[hidden] {
  display: none !important;
}

.callout-row {
  display: grid;
  gap: 14px;
  /* Columnas más anchas: en pantallas medias no se aplastan a 200px */
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
  margin: 16px 0;
  min-width: 0;
}

.callout {
  border: var(--line);
  padding: 14px 16px;
  background: #fff;
  box-shadow: 4px 4px 0 var(--ink);
  min-width: 0;
  max-width: 100%;
  overflow: visible;
  line-height: 1.5;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.callout strong {
  display: block;
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
  line-height: 1.3;
}

.callout code {
  font-size: 0.88em;
}

.callout--mac {
  background: var(--paper-2);
}

.callout--linux {
  background: #fff;
  border-left: 6px solid var(--accent);
}

.brand__mark {
  background-image: none;
}

.brand__mark svg {
  width: 100%;
  height: 100%;
  display: block;
}

.hero h1 {
  max-width: 14ch;
}

.tagline-punch {
  display: inline-block;
  background: var(--accent);
  color: var(--ink);
  border: 2px solid var(--ink);
  padding: 2px 8px;
  font-weight: 700;
  transform: rotate(-1deg);
}
