/* Guías (/guias/*). Solo se carga en esas páginas. Colores desde los --page-* de
   styles.css o tokens de tokens.css (Color.kt); misma forma que /unirse:
   tarjetas a 24px, lo que se toca en pill. */

:root {
  --gd-max: 1120px;
  --gd-text: 68ch;
  --gd-gutter: clamp(16px, 4.5vw, 64px);
  --gd-section: clamp(56px, 8vw, 104px);
}

:where(.guide) p,
:where(.guide) ol,
:where(.guide) ul {
  margin: 0;
}

:where(.guide) ol,
:where(.guide) ul {
  list-style: none;
  padding: 0;
}

:where(.guide) li {
  margin: 0;
}

.guide h1,
.guide h2,
.guide h3 {
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  margin: 0;
  text-wrap: balance;
}

.guide p {
  text-wrap: pretty;
}

.gd-wrap {
  margin-inline: auto;
  max-width: calc(var(--gd-max) + 2 * var(--gd-gutter));
  padding-inline: var(--gd-gutter);
  width: 100%;
}

.gd-wrap--text {
  max-width: calc(var(--gd-text) + 2 * var(--gd-gutter));
}

.gd-section-title {
  color: var(--page-primary-deep);
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
}

/* Entrada ------------------------------------------------------------------ */

.gd-intro {
  background: var(--page-hero-bg);
  color: var(--page-on-deep);
  padding-block: clamp(32px, 5vw, 64px) clamp(48px, 7vw, 88px);
  position: relative;
}

.gd-intro::after {
  background: url("/images/grain.svg") 0 0 / 220px 220px;
  content: "";
  inset: 0;
  mix-blend-mode: soft-light;
  opacity: 0.5;
  pointer-events: none;
  position: absolute;
}

.gd-intro .gd-wrap {
  display: flex;
  flex-direction: column;
  gap: 18px;
  position: relative;
  z-index: 1;
}

.gd-crumbs ol {
  display: flex;
  flex-wrap: wrap;
  font-size: 14px;
  gap: 8px;
}

.gd-crumbs li {
  align-items: center;
  color: var(--page-on-deep-muted);
  display: inline-flex;
  gap: 8px;
}

.gd-crumbs li + li::before {
  content: "/";
  opacity: 0.6;
}

.gd-crumbs a {
  align-items: center;
  color: var(--page-on-deep);
  display: inline-flex;
  min-height: 44px;
}

.gd-crumbs a:hover {
  color: var(--mint-bright);
}

.gd-eyebrow {
  color: var(--page-on-deep-muted);
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  line-height: 1.4;
  text-transform: uppercase;
}

.gd-title {
  font-size: clamp(2.2rem, 1.3rem + 3.4vw, 3.8rem);
  font-weight: 800;
  letter-spacing: -0.035em;
  line-height: 1.04;
  max-width: 16ch;
}

.gd-lead {
  color: var(--page-on-deep-muted);
  font-size: clamp(1.05rem, 0.95rem + 0.4vw, 1.25rem);
  line-height: 1.55;
  max-width: 44ch;
}

.gd-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 8px;
}

.gd-btn {
  align-items: center;
  background: var(--mint-bright);
  border: 2px solid var(--mint-bright);
  border-radius: 999px;
  color: var(--art-ink);
  cursor: pointer;
  display: inline-flex;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 16px;
  font-weight: 700;
  justify-content: center;
  line-height: 1.25;
  min-height: 52px;
  padding: 12px 26px;
  text-align: center;
  text-decoration: none;
  transition: transform 200ms var(--page-ease);
}

.gd-btn[hidden] {
  display: none;
}

.gd-btn--ghost {
  background: transparent;
  border-color: color-mix(in srgb, var(--page-on-deep) 45%, transparent);
  color: var(--page-on-deep);
}

@media (hover: hover) {
  .gd-btn:hover {
    color: var(--art-ink);
    transform: translateY(-2px);
  }

  .gd-btn--ghost:hover {
    border-color: var(--mint-bright);
    color: var(--mint-bright);
  }
}

.gd-btn:focus-visible,
.gd-crumbs a:focus-visible,
.gd-item input:focus-visible {
  outline: 3px solid var(--page-accent);
  outline-offset: 3px;
}

/* La lista ------------------------------------------------------------------- */

.gd-list {
  padding-block: var(--gd-section);
}

.gd-list__note {
  color: var(--page-muted);
  margin-top: 10px;
}

.gd-grid {
  align-items: start;
  display: grid;
  gap: 16px;
  margin-top: 32px;
}

.gd-cat {
  background: var(--page-surface);
  border: 1px solid var(--page-outline-variant);
  border-radius: 24px;
  padding: 20px 22px 14px;
}

.gd-cat h3 {
  align-items: baseline;
  color: var(--page-primary-deep);
  display: flex;
  font-size: 1.1rem;
  font-weight: 700;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 6px;
}

.gd-cat__count {
  color: var(--page-muted);
  font-family: "Inter", system-ui, sans-serif;
  font-size: 13px;
  font-weight: 600;
}

.gd-item + .gd-item {
  border-top: 1px solid var(--page-outline-variant);
}

.gd-item label {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 12px;
  min-height: 44px;
}

.gd-item input {
  accent-color: var(--page-primary);
  flex: none;
  height: 20px;
  margin: 0;
  width: 20px;
}

.gd-item input:checked + span {
  color: var(--page-muted);
  text-decoration: line-through;
}

/* Texto ------------------------------------------------------------------------ */

.gd-prose {
  padding-block: var(--gd-section);
}

.gd-prose--alt {
  background: var(--page-surface-alt);
}

.gd-prose p + p,
.gd-prose p + .gd-split,
.gd-split + p {
  margin-top: 1em;
}

.gd-section-title + p,
.gd-section-title + .gd-tips {
  margin-top: 20px;
}

.gd-tips {
  counter-reset: tip;
  display: grid;
  gap: 18px;
}

.gd-tips li {
  counter-increment: tip;
  padding-left: 44px;
  position: relative;
}

.gd-tips li::before {
  align-items: center;
  background: var(--page-primary-soft);
  border-radius: 50%;
  color: var(--page-primary-deep);
  content: counter(tip);
  display: flex;
  font-family: "Plus Jakarta Sans", system-ui, sans-serif;
  font-size: 14px;
  font-weight: 800;
  height: 30px;
  justify-content: center;
  left: 0;
  position: absolute;
  top: 0;
  width: 30px;
}

.gd-split {
  display: grid;
  gap: 16px;
}

.gd-split__card {
  background: var(--page-bg);
  border: 1px solid var(--page-outline-variant);
  border-radius: 24px;
  padding: 22px 24px;
}

.gd-split__card h3 {
  color: var(--page-primary-deep);
  font-size: 1.15rem;
  font-weight: 700;
  margin-bottom: 8px;
}

/* Cierre ---------------------------------------------------------------------- */

.gd-closing {
  background: var(--page-hero-bg);
  color: var(--page-on-deep);
  padding-block: var(--gd-section);
}

.gd-closing__inner {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 18px;
  text-align: center;
}

.gd-closing__icon {
  border-radius: 22px;
  height: 72px;
  width: 72px;
}

.gd-closing__title {
  font-size: clamp(1.6rem, 1.15rem + 1.6vw, 2.3rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.12;
  max-width: 20ch;
}

.gd-closing__lead {
  color: var(--page-on-deep-muted);
  max-width: 52ch;
}

@media (min-width: 640px) {
  .gd-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .gd-split {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1000px) {
  .gd-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* Impresión: solo título y lista, en tinta negra y a tres columnas por hoja. */
@media print {
  .site-nav,
  .skip-link,
  .gd-crumbs,
  .gd-eyebrow,
  .gd-lead,
  .gd-actions,
  .gd-list__note,
  .gd-prose,
  .gd-closing {
    display: none !important;
  }

  body {
    background: #fff;
    color: #000;
    font-size: 11pt;
  }

  .gd-intro {
    background: none;
    color: #000;
    padding: 0 0 8pt;
  }

  .gd-intro::after {
    display: none;
  }

  .gd-title {
    font-size: 20pt;
    max-width: none;
  }

  .gd-wrap {
    max-width: none;
    padding: 0;
  }

  .gd-list {
    padding: 0;
  }

  .gd-section-title {
    display: none;
  }

  .gd-grid {
    display: block;
    columns: 3;
    column-gap: 18pt;
    margin: 0;
  }

  .gd-cat {
    background: none;
    border: none;
    border-radius: 0;
    break-inside: avoid;
    padding: 0 0 8pt;
  }

  .gd-cat h3 {
    color: #000;
    font-size: 12pt;
    border-bottom: 1.5pt solid #000;
    margin-bottom: 2pt;
  }

  .gd-cat__count {
    display: none;
  }

  .gd-item + .gd-item {
    border-top: none;
  }

  .gd-item label {
    font-size: 10.5pt;
    line-height: 1.25;
    min-height: 0;
    padding: 1pt 0;
  }

  .gd-item input {
    height: 10pt;
    width: 10pt;
  }

  .gd-item input:checked + span {
    color: #000;
  }
}
