/* Guías de SERO: pasos con su dibujo mínimo de la pantalla, hecho con código (sin láminas). */
.gx { padding: 24px 0 96px; }
.gx-bloque { margin-top: 72px; }
.gx-bloque:first-child { margin-top: 24px; }
.gx-bloque > .kicker { margin: 0; }
.gx-bloque > h2 { margin: 10px 0 8px; font-family: var(--serif-display); font-weight: 500; font-size: clamp(32px, 3.2vw, 46px); line-height: 1.06; }
.gx-bloque > h2 em { font-style: italic; }
.gx-bloque > .gx-intro { margin: 0 0 8px; max-width: 40em; color: var(--ink-soft); font-size: 18px; }

.gx-pasos { list-style: none; margin: 28px 0 0; padding: 0; border-top: 1px solid var(--ink); }
.gx-paso { display: grid; grid-template-columns: 64px minmax(0, 1fr) minmax(0, 300px); gap: 28px; align-items: start; padding: 30px 0; border-bottom: 1px solid var(--rule); }
.gx-n { align-self: start; font-family: var(--serif-display); font-size: 44px; line-height: 1; color: var(--red); }
.gx-paso h3 { margin: 0 0 8px; font-family: var(--serif-display); font-weight: 500; font-size: 26px; line-height: 1.15; }
.gx-paso p { margin: 0; color: var(--ink-soft); font-size: 17px; line-height: 1.55; }
.gx-paso p + p { margin-top: 8px; }

/* El dibujo: una pantalla mínima, con la letra del teléfono. Lo que se toca va en verde. */
.gx-mock { margin: 0; padding: 16px; border-radius: 22px; background: #eceef1; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif; color: #111; display: grid; gap: 10px; align-content: center; min-height: 170px; }
.gx-hoja { padding: 6px 0; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(15, 20, 30, .08); }
.gx-fila { display: flex; align-items: center; gap: 12px; padding: 10px 16px; font-size: 14.5px; font-weight: 600; }
.gx-fila + .gx-fila { border-top: 1px solid rgba(0, 0, 0, .06); }
.gx-fila svg, .gx-barra svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.gx-toca { color: #00864a; background: rgba(0, 191, 102, .1); box-shadow: inset 3px 0 0 #00bf66; }
.gx-barra { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 9px 12px; border-radius: 999px; background: #fff; box-shadow: 0 8px 22px rgba(15, 20, 30, .08); font-size: 13px; font-weight: 600; color: #555; }
.gx-barra .gx-dir { flex: 1; text-align: center; padding: 5px 10px; border-radius: 999px; background: #f1f2f4; }
.gx-boton { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 999px; color: #555; }
.gx-boton.gx-toca, .gx-dir.gx-toca { position: relative; box-shadow: none; }
.gx-boton.gx-toca::after, .gx-dir.gx-toca::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid #00bf66; animation: gxPulso 1.8s ease-out infinite; }
@keyframes gxPulso { from { opacity: .9; transform: scale(1); } to { opacity: 0; transform: scale(1.25); } }
.gx-pildora { justify-self: center; padding: 12px 20px; border-radius: 999px; background: #0e0e0f; color: #fff; font-size: 14px; font-weight: 700; text-align: center; }
.gx-pildora.gx-toca { background: #00bf66; color: #fff; box-shadow: 0 10px 24px rgba(0, 191, 102, .3); }
.gx-codigo { justify-self: center; padding: 12px 18px; border-radius: 14px; background: #fff; font-family: ui-monospace, "SF Mono", Menlo, Consolas, monospace; font-size: 15px; letter-spacing: .08em; box-shadow: 0 8px 22px rgba(15, 20, 30, .08); }
.gx-dos { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.gx-dos .gx-pildora { background: #fff; color: #111; box-shadow: 0 8px 22px rgba(15, 20, 30, .08); }
.gx-dos .gx-pildora.gx-toca { background: #00bf66; color: #fff; }
.gx-dialogo { border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(15, 20, 30, .08); overflow: hidden; font-size: 14px; }
.gx-dialogo-cabeza { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid rgba(0, 0, 0, .06); color: #777; font-weight: 600; }
.gx-dialogo-cabeza b { color: #111; }
.gx-dialogo-cabeza .gx-ok { padding: 4px 12px; border-radius: 999px; background: rgba(0, 191, 102, .14); color: #00864a; font-weight: 800; }
.gx-dialogo-app { display: flex; align-items: center; gap: 12px; padding: 14px 16px; font-weight: 700; }
.gx-dialogo-app img { width: 36px; height: 36px; border-radius: 9px; }
.gx-ajuste { display: flex; justify-content: space-between; align-items: center; padding: 10px 16px; border-top: 1px solid rgba(0, 0, 0, .06); color: #333; font-weight: 600; }
.gx-interruptor { width: 38px; height: 22px; border-radius: 999px; background: #34c759; position: relative; }
.gx-interruptor::after { content: ""; position: absolute; right: 2px; top: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; }
.gx-lineas { display: grid; gap: 7px; padding: 4px 8px; }
.gx-lineas i { display: block; height: 7px; border-radius: 4px; background: #dcdfe4; }
.gx-lineas i:nth-child(2) { width: 82%; }
.gx-lineas i:nth-child(3) { width: 64%; }

/* El selector: los botones de la web (cuadrados); el elegido, relleno. Se elige solo al abrir la guía. */
.gx-selector { display: flex; flex-wrap: wrap; gap: 10px; margin: 26px 0 0; }
.gx-selector .btn { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; line-height: normal; cursor: pointer; }
.gx-selector .btn[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--paper); }
.gx-selector-nota { margin: 14px 0 0; font-family: var(--mono); font-size: 12px; letter-spacing: .04em; color: var(--muted); }
.actions button.btn { font-family: var(--mono); font-size: 13px; letter-spacing: .08em; line-height: normal; justify-content: center; cursor: pointer; }
.gx-radio { width: 16px; height: 16px; border-radius: 50%; border: 1.6px solid #b9bdc4; flex: none; }
.gx-radio.is-on { border-color: #00bf66; box-shadow: inset 0 0 0 3.5px #fff; background: #00bf66; }
[data-plataforma][hidden] { display: none !important; }

/* Fichas: lo que conviene recordar, con el estilo de «Por qué SERO». */
.gx-fichas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; margin-top: 28px; }
.gx-ficha { padding: 24px; border: 1px solid var(--rule); border-top: 2px solid var(--ink); background: #fffdf8; }
.gx-ficha h3 { margin: 0 0 8px; font-family: var(--serif-display); font-weight: 500; font-size: 22px; line-height: 1.2; }
.gx-ficha p { margin: 0; color: var(--ink-soft); font-size: 16px; line-height: 1.55; }
.gx-listo { margin-top: 72px; padding: 32px; border: 1px solid var(--rule); border-top: 2px solid var(--ink); background: #fffdf8; text-align: center; }
.gx-listo h2 { margin: 0 0 10px; font-family: var(--serif-display); font-weight: 500; font-size: clamp(30px, 3vw, 42px); }
.gx-listo h2 em { font-style: italic; }
.gx-listo p { margin: 0 auto; max-width: 36em; color: var(--ink-soft); font-size: 17px; }
.gx-listo p + p { margin-top: 10px; color: var(--red); font-family: var(--mono); font-size: 12.5px; letter-spacing: .04em; }

@media (max-width: 860px) {
  .gx-paso { grid-template-columns: 40px minmax(0, 1fr); gap: 16px 18px; }
  .gx-paso .gx-mock { grid-column: 2; }
  .gx-n { font-size: 34px; }
  .gx-fichas { grid-template-columns: 1fr; }
}

/* Imprimir o guardar en PDF: hojas limpias, sin el menú ni lo que no es la guía. */
@media print {
  @page { size: A4; margin: 0; }
  header.nav, footer, .colophon, .ficha, details.ficha, #explorar, .sx-robot, [class*="explorar"], .crumbs, .subnav, .actions, .gx-selector, .gx-selector-nota, .faq, .pager, .skip { display: none !important; }
  html, body { background: #fff !important; }
  body { padding: 14mm 16mm; -webkit-box-decoration-break: clone; box-decoration-break: clone; -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .guide-top, .gx, .wrap { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .gx-paso { break-inside: avoid; grid-template-columns: 14mm minmax(0, 1fr) 62mm; gap: 6mm; padding: 5mm 0; }
  .gx-mock { min-height: 0; padding: 4mm; }
  .gx-bloque { margin-top: 10mm; break-inside: auto; }
  .gx-bloque > h2 { break-after: avoid; }
  .gx-fichas, .gx-listo { break-inside: avoid; }
  .gx-boton.gx-toca::after, .gx-dir.gx-toca::after { animation: none; opacity: .9; }
}
.gx-dialogo-cabeza { gap: 8px; font-size: 13px; white-space: nowrap; }
.gx-dialogo-cabeza b { display: none; }

/* Portadas de las guías (portada del archivo y /guias/): una caja animada, como dentro de cada guía. */
.guide-card .cover.gx-cover { aspect-ratio: 5 / 4; display: grid; gap: 10px; align-content: center; padding: 14% 16%; background: rgba(14, 14, 15, .035); border: 1px solid var(--rule); box-shadow: none; font-family: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Inter", "Segoe UI", system-ui, sans-serif; color: #111; }

.gx-cover .gx-hoja, .gx-cover .gx-barra, .gx-cover .gx-codigo { box-shadow: 0 6px 16px rgba(15, 20, 30, .05); }
.gx-cover .gx-fila { padding: 7px 12px; font-size: 12px; gap: 9px; }
.gx-cover .gx-fila svg { width: 14px; height: 14px; }
.gx-cover .gx-barra { padding: 6px 9px; font-size: 11px; }
.gx-cover .gx-dir { padding: 4px 8px; }
.gx-cover .gx-codigo { padding: 8px 12px; font-size: 12px; }
.gx-cover .gx-pildora { padding: 8px 16px; font-size: 12px; }
.gx-cover .gx-radio { width: 13px; height: 13px; }
.guide-card:hover .cover.gx-cover { transform: translateY(-4px); }
/* En el teléfono, el diálogo de «Agregar» no se parte. */
@media (max-width: 520px) { .gx-dialogo, .gx-hoja { font-size: 13px; } .gx-fila { padding: 9px 12px; } }

/* Guía 2: el pasaje con su palabra inicial (verde) y final (roja), como en la biblioteca. */
.gx-texto { margin: 0; padding: 16px 18px; border-radius: 16px; background: #fff; box-shadow: 0 10px 26px rgba(15, 20, 30, .08); font-family: var(--serif-text, Georgia, serif); font-size: 17px; line-height: 1.5; color: #222; }
.gx-ini, .gx-fin { font-weight: 600; padding: 1px 5px; border-radius: 6px; }
.gx-ini { background: rgba(0, 191, 102, .16); color: #00864a; }
.gx-fin { background: rgba(229, 50, 45, .14); color: #c2261f; }
.gx-bloque > .gx-fichas + .gx-fichas { margin-top: 18px; }

/* Botones dentro de los dibujos: como en la app, todos del mismo ancho y alto, en una línea, planos.
   El que se toca, verde, con el mismo pulso de las filas. */
.gx-mock .gx-pildora { width: 100%; max-width: 270px; height: 40px; padding: 0 14px; display: flex; align-items: center; justify-content: center; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-size: 13px; box-shadow: none; position: relative; }
.gx-mock .gx-pildora.gx-toca { background: #00bf66; box-shadow: none; }
.gx-mock .gx-pildora.gx-toca::after { content: ""; position: absolute; inset: -3px; border-radius: 999px; border: 2px solid #00bf66; animation: gxPulso 1.8s ease-out infinite; }
.gx-mock .gx-pildora:not(.gx-toca) { background: #fff; color: #111; border: 1px solid rgba(0, 0, 0, .1); }
.gx-mock .gx-codigo { width: 100%; max-width: 270px; justify-self: center; text-align: center; box-shadow: none; border: 1px solid rgba(0, 0, 0, .08); }
.gx-mock .gx-pildora { overflow: visible; }

/* Guía 1: el teléfono de cada paso. En pantalla no hace falta (el selector ya lo dice); en el PDF, que
   trae todos los teléfonos, sí. */
.gx-para { display: none; }
@media print {
  .gx-para { display: block; margin: 0 0 2mm; font-family: var(--mono); font-size: 10px; letter-spacing: .12em; text-transform: uppercase; color: var(--muted); }
  body.gx-pdf-todos [data-plataforma][hidden] { display: grid !important; }
}
/* PDF: la columna del dibujo es angosta; la barra y los botones se ajustan a ella sin salirse. */
@media print {
  .gx-paso { grid-template-columns: 14mm minmax(0, 1fr) 70mm; }
  .gx-mock .gx-barra, .gx-mock .gx-hoja { box-sizing: border-box; max-width: 100%; min-width: 0; }
  .gx-mock .gx-dir { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .gx-mock .gx-pildora { box-sizing: border-box; max-width: 100%; white-space: normal; text-align: center; }
}

/* Guía 2: la plantilla de respaldo en papel, para descargar según el nivel. */
.gx-plantillas { margin-top: 44px; padding-top: 32px; border-top: 1px solid var(--rule); }
.gx-plantillas h3 { margin: 0 0 10px; font-family: var(--serif-display); font-weight: 500; font-size: clamp(26px, 2.4vw, 34px); line-height: 1.15; }
.gx-plantillas .gx-intro { max-width: 46em; }
.gx-plantillas-etiqueta { margin: 22px 0 10px; font-family: var(--mono); font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.gx-plantillas [data-documentos][hidden] { display: none; }
.gx-plantillas .actions { margin-top: 22px; }
@media print { .gx-plantillas-etiqueta { display: none !important; } }
