/* Guías de El Colectivo. Mismo sistema que el sitio principal: tinta, papel, naranja, Raleway. */
:root {
  --ink: #0b0b0c;
  --paper: #eaeaea;
  --card: #f6f3ee;
  --accent: #ff7a1a;
  --link: #a8480a;
  --mute: #4a4a4d;
  --font: 'Raleway', system-ui, sans-serif;
  --ease: cubic-bezier(.16, 1, .3, 1);
  --pad: clamp(1.2rem, 5vw, 4rem);
}
* { margin: 0; padding: 0; box-sizing: border-box }
html { scroll-behavior: smooth; scroll-padding-top: 1.5rem; -webkit-text-size-adjust: 100% }
body { font-family: var(--font); background: var(--paper); color: var(--ink); line-height: 1.75; font-size: 1.125rem }
img { display: block; max-width: 100%; height: auto }
a { color: var(--link); font-weight: 600; text-underline-offset: .22em; text-decoration-thickness: 2px }
a:hover { color: var(--ink) }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 3px }
::selection { background: var(--accent); color: var(--ink) }
.skip { position: absolute; left: -999px; top: .5rem; background: var(--accent); color: var(--ink); padding: .6rem 1rem; z-index: 20; font-weight: 800 }
.skip:focus { left: .5rem }

/* progreso de lectura */
.progress { position: fixed; inset: 0 0 auto 0; height: 4px; z-index: 10; background: transparent }
.progress i { display: block; height: 100%; width: 100%; background: var(--accent); transform: scaleX(0); transform-origin: 0 50% }

/* barra superior y portada */
.top { background: var(--ink); display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem max(var(--pad), calc((100% - 70rem) / 2 + var(--pad))) }
.top img { width: 9rem; height: auto; filter: invert(1) }
.top nav { display: flex; gap: 1.6rem }
.top nav a { color: #e6e6e6; text-decoration: none; font-size: .8rem; letter-spacing: .18em; text-transform: uppercase; font-weight: 600 }
.top nav a:hover { color: var(--accent) }
.hero { background: var(--ink); color: #fff; padding: clamp(2.5rem, 7vw, 5.5rem) 0 clamp(3rem, 7vw, 5.5rem) }
.hero .in { max-width: 70rem; margin: 0 auto; padding-inline: var(--pad) }
.hero h1 { font-weight: 800; font-size: clamp(2.1rem, 5.6vw, 4.4rem); line-height: 1.04; letter-spacing: -.025em; max-width: 20ch; text-wrap: balance }
.hero .lead { margin-top: 1.6rem; max-width: 40rem; font-size: clamp(1.1rem, 1.6vw, 1.3rem); line-height: 1.6; color: #dcdcdc }
.hero .meta { margin-top: 1.6rem; font-size: .9rem; font-weight: 600; color: var(--accent); letter-spacing: .04em }

/* cuerpo: índice + artículo */
.layout { max-width: 70rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--pad) 5rem; display: grid; grid-template-columns: 15rem minmax(0, 44rem); gap: clamp(2rem, 6vw, 5rem); align-items: start }
.toc { position: sticky; top: 1.5rem }
.toc h2 { font-size: 1rem; font-weight: 800; margin-bottom: .8rem }
.toc ul { list-style: none; display: grid; gap: .1rem }
.toc a { display: block; padding: .45rem .8rem; font-size: .95rem; line-height: 1.35; color: var(--mute); text-decoration: none; font-weight: 600; border-radius: .4rem; transition: background-color .3s var(--ease), color .3s var(--ease) }
.toc a:hover { background: #fff; color: var(--ink) }
.toc a[aria-current="true"] { background: var(--ink); color: #fff }
article h2 { font-weight: 800; font-size: clamp(1.45rem, 2.6vw, 1.85rem); line-height: 1.15; letter-spacing: -.01em; margin: 3.2rem 0 .8rem; text-wrap: balance }
article h3 { font-weight: 800; font-size: 1.15rem; margin: 1.8rem 0 .3rem }
article p + p { margin-top: 1rem }
article ul, article ol { padding-left: 1.4rem; margin: .9rem 0; display: grid; gap: .6rem }
article li::marker { color: var(--accent); font-weight: 800 }
article p, article li { max-width: 66ch }
.key { margin: 0 0 1rem; padding: 1.4rem 1.6rem; background: #fff; border-radius: .6rem; font-size: 1.15rem; line-height: 1.6 }
.key strong { color: var(--link) }
figure { margin: 2rem 0; padding: 1.2rem 1.2rem .9rem; background: #fff; border-radius: .6rem }
figure img { width: 100%; height: auto }
figcaption { margin-top: .8rem; font-size: .9rem; line-height: 1.5; color: var(--mute) }

/* cierre */
.cta { margin-top: 4rem; padding: clamp(1.6rem, 4vw, 2.6rem); background: var(--ink); color: #fff; border-radius: .6rem }
.cta h2 { font-size: 1.6rem; font-weight: 800; line-height: 1.15; margin: 0 0 .7rem }
.cta p { color: #dcdcdc; max-width: 52ch }
.cta .btn { display: inline-block; margin-top: 1.3rem; background: var(--accent); color: var(--ink); padding: .95rem 1.6rem; text-decoration: none; font-weight: 800; border-radius: .4rem; transition: background-color .3s var(--ease), transform .3s var(--ease) }
.cta .btn:hover { background: #fff; color: var(--ink) }
.cta .btn:active { transform: translateY(1px) }
.next { margin-top: 3.5rem }
.next h2 { font-size: 1rem; font-weight: 800; margin-bottom: .8rem }
.next .big { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1.4rem 1.6rem; background: #fff; border-radius: .6rem; font-size: clamp(1.15rem, 2.4vw, 1.5rem); font-weight: 800; line-height: 1.25; color: var(--ink); text-decoration: none; transition: background-color .3s var(--ease), color .3s var(--ease) }
.next .big span { font-size: 1.6rem; transition: transform .4s var(--ease) }
.next .big:hover { background: var(--ink); color: #fff }
.next .big:hover span { transform: translateX(6px); color: var(--accent) }
.next ul { list-style: none; margin-top: 1rem; display: grid; gap: .4rem }

/* índice de guías */
.hub { max-width: 70rem; margin: 0 auto; padding: clamp(2rem, 5vw, 4rem) var(--pad) 6rem }
.rows { list-style: none; display: grid; gap: .9rem }
.row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .4rem 2rem; align-items: center; padding: clamp(1.4rem, 3vw, 2.2rem); background: #fff; border-radius: .6rem; color: var(--ink); text-decoration: none; transition: background-color .35s var(--ease), color .35s var(--ease) }
.row .t { grid-column: 1; font-weight: 800; font-size: clamp(1.3rem, 2.8vw, 2rem); line-height: 1.15; letter-spacing: -.01em }
.row .d { grid-column: 1; font-weight: 400; font-size: 1rem; line-height: 1.55; color: var(--mute); max-width: 60ch }
.row .go { grid-column: 2; grid-row: 1 / span 2; font-size: 2rem; transition: transform .4s var(--ease) }
.row:hover { background: var(--ink); color: #fff }
.row:hover .d { color: #cfcfcf }
.row:hover .go { transform: translateX(8px); color: var(--accent) }

footer { background: var(--ink); color: #9a9a9d; text-align: center; padding: 1.8rem 1rem; font-size: .75rem; letter-spacing: .3em }
footer a { color: #c2c2c4; text-decoration: none; font-weight: 400 }
footer a:hover { color: var(--accent) }

@media (max-width: 640px) {
  figure { overflow-x: auto }
  figure img { min-width: 640px }
  figcaption { position: sticky; left: 0 }
}
@media (max-width: 900px) {
  .layout { grid-template-columns: minmax(0, 1fr) }
  .toc { position: static; background: #fff; padding: 1.1rem 1rem; border-radius: .6rem }
  .toc a { padding: .35rem .4rem }
  body { font-size: 1.0625rem }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto }
  * { transition-duration: .01ms !important }
}
.fuentes a { overflow-wrap: anywhere }
