/* Criterio Operativo — núcleo. Complementa el sistema de diseño .ag-site del CSS adicional;
   solo añade los componentes de la plataforma editorial y usa sus mismos tokens. */

.co-site main { display: block; }
.co-site .ag-hero .ag-h1 { max-width: 16ch; }
.co-site .ag-section.co-compacta { padding: 56px 0; }

/* Menú: cada enlace en una línea */
.ag-menu > a { white-space: nowrap; }

/* Pie con enlaces que pueden pasar a varias líneas */
.ag-footer .co-pie-enlaces { display: flex; flex-wrap: wrap; gap: 4px 0; }

/* Filtros por familia */
.co-filtros { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 28px; padding: 0; }
.co-filtros button {
  font: 500 14px/1 "IBM Plex Sans", system-ui, sans-serif; color: var(--ink); background: var(--paper-2);
  border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 10px 16px; cursor: pointer;
}
.co-filtros button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }

/* Tarjetas de herramienta */
.co-tarjetas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.co-tarjeta {
  display: flex; flex-direction: column; gap: 10px; min-width: 0; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px;
}
.co-tarjeta[hidden] { display: none; }
.co-tarjeta .co-num { font: 700 12px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; color: var(--green); }
.co-tarjeta h3 { font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 22px; line-height: 1.12; letter-spacing: -.015em; margin: 4px 0 0; }
.co-tarjeta .co-problema { color: var(--muted); margin: 0; font-size: 15px; }
.co-tarjeta .co-resultado { margin: 0; font-size: 15px; }
.co-tarjeta .co-resultado b { font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--green); display: block; margin-bottom: 6px; }
.co-tarjeta .ag-btn { margin-top: auto; align-self: flex-start; padding: 12px 18px; font-size: 15px; }
.co-tarjeta .co-duracion { font: 500 12px/1 "IBM Plex Mono", monospace; color: var(--faint); }

/* ------------------------------------------- Índice de herramientas (portada)
   Las seis familias como el índice de un libro: una regla verde por familia y, debajo,
   las herramientas con puntos guía y su número, que al señalarlo se vuelve flecha.
   Antes eran seis fichas con una lista de enlaces sin color propio: el tema no pinta
   los <a> del contenido y Astra los dejaba en su azul. Aquí ningún enlace es azul.
   Cambiado el 14-nov-2026 a petición de Alfonso. */
.co-indice-pie { max-width: 58ch; margin-top: -8px; }
.co-indice { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 40px; margin-top: 30px; }
.co-fam { min-width: 0; border-top: 2px solid var(--green); padding-top: 13px; }
.co-fam-t {
  display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin: 0 0 2px;
  font: 600 12px/1.35 "IBM Plex Mono", monospace; text-transform: uppercase; letter-spacing: .16em;
  color: var(--green);
}
.co-fam-n { flex: none; font-size: 10.5px; letter-spacing: .06em; color: var(--faint); text-transform: none; }
.co-fam-l { list-style: none; margin: 0; padding: 0; }
.co-fam-l li + li { border-top: 1px solid var(--line); }
.co-fam-l a {
  display: flex; align-items: flex-end; gap: 10px; min-width: 0; padding: 12px 0;
  color: var(--ink); text-decoration: none;
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 17px; line-height: 1.22;
  letter-spacing: -.012em;
}
.co-fam-l .t { min-width: 0; }
.co-fam-l .p { flex: 1 1 14px; min-width: 14px; margin-bottom: 5px; border-bottom: 1px dotted var(--line-2); }
.co-fam-l .n {
  display: grid; flex: none; justify-items: end; min-width: 2.6em;
  font: 500 12px/1 "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums;
}
.co-fam-l .n > span { grid-area: 1 / 1; transition: opacity .18s ease; }
.co-fam-l .ar { opacity: .32; color: var(--ink); font-size: 15px; line-height: 1; }
.co-fam-l a:hover .ar, .co-fam-l a:focus-visible .ar { opacity: 1; color: var(--green); }

/* El menú tiene seis destinos. Entre el punto en que deja de ser hamburguesa (940 px) y un
   escritorio ancho no cabían: se aprietan los enlaces y, en el tramo más estrecho, el botón de
   suscripción se retira (su destino, «El viernes», ya está en el menú). */
@media (min-width: 941px) and (max-width: 1140px) {
  .ag-nav .ag-menu a { padding-left: 8px; padding-right: 8px; font-size: 14px; }
}
@media (min-width: 941px) and (max-width: 1060px) {
  .ag-nav .ag-nav-cta .ag-btn { display: none; }
}

/* Las tres puertas de la portada: tres frases, una flecha. */
.co-puertas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.co-puerta { display: grid; gap: 8px; align-content: start; padding: 22px 24px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); color: var(--ink); text-decoration: none; transition: border-color .18s ease, transform .18s ease; }
.co-puerta .f { font: 600 21px/1.2 "Bricolage Grotesque", system-ui, sans-serif; letter-spacing: -.01em; }
.co-puerta .h { font-size: 14.5px; color: var(--muted); }
.co-puerta .ar { color: var(--green); font-size: 18px; line-height: 1; }
.co-puerta:hover, .co-puerta:focus-visible { border-color: var(--green); transform: translateY(-2px); color: var(--ink); }
.co-firma-portada { align-items: center; }
.co-firma-portada .co-firma-muestra img { max-width: 320px; }
.co-firma-portada .co-firma-muestra figcaption { max-width: 320px; }
@media (max-width: 820px) { .co-puertas { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .co-puerta { transition: none; } .co-puerta:hover { transform: none; } }
.co-fam-l a:hover, .co-fam-l a:focus-visible { color: var(--green); }
.co-fam-l a:hover .p, .co-fam-l a:focus-visible .p { border-bottom-style: solid; border-bottom-color: var(--green); }
.co-fam-l a:hover .ar, .co-fam-l a:focus-visible .ar { opacity: 1; }
.co-fam-l a:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }

/* Enlace de texto dentro del contenido propio: verde de la marca, nunca el azul del tema. */
a.co-e { color: var(--green); text-decoration-thickness: 1px; text-underline-offset: 3px; }
a.co-e:hover { text-decoration-thickness: 2px; }

@media (prefers-reduced-motion: reduce) { .co-fam-l .n > span { transition: none; } }
@media (max-width: 1000px) { .co-indice { grid-template-columns: 1fr 1fr; gap: 30px 34px; } }
@media (max-width: 640px) { .co-indice { grid-template-columns: 1fr; gap: 26px; } .co-fam-l a { font-size: 16px; } }

/* ------------------------------------------------- Lo opcional, plegado (encargo §3)
   La primera pantalla pide cuatro cosas; lo demás vive aquí dentro y el resumen dice
   qué pasa si no se abre. */
.co-mas { border: 1px solid var(--line); border-radius: var(--r); padding: 0 18px; background: var(--paper-2); }
.co-mas + .co-mas { margin-top: -4px; }
.co-mas > summary {
  cursor: pointer; padding: 16px 0; font: 600 15.5px/1.3 "IBM Plex Sans", system-ui, sans-serif;
  color: var(--green); list-style: none; display: flex; align-items: center; gap: 10px;
}
.co-mas > summary::-webkit-details-marker { display: none; }
.co-mas > summary::before {
  content: "+"; flex: none; width: 20px; height: 20px; border: 1px solid var(--green); border-radius: 50%;
  font: 600 14px/18px "IBM Plex Mono", monospace; text-align: center;
}
.co-mas[open] > summary::before { content: "−"; }
.co-mas > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.co-mas .co-mas-que { margin: 0 0 18px; color: var(--muted); font-size: 14.5px; max-width: 70ch; }
.co-mas > *:last-child { margin-bottom: 18px; }

/* Pasos numerados del resultado */
.co-pasos { margin: 0; padding-left: 1.3em; display: grid; gap: 10px; }
.co-pasos li { padding-left: 4px; }

/* ------------------------------------------------- Las piezas de un kit
   Página a la que lleva el enlace firmado: una tarjeta por archivo. */
.co-piezas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-bottom: 28px; }
.co-pieza {
  display: flex; flex-direction: column; gap: 8px; min-width: 0; background: var(--paper-2);
  border: 1px solid var(--line); border-radius: var(--r-lg); padding: 24px;
}
.co-pieza .co-pieza-ext {
  font: 700 11px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; color: var(--green); margin: 0;
}
.co-pieza h3 { margin: 2px 0 0; font-size: 19px; }
.co-pieza p { margin: 0; font-size: 15px; color: var(--muted); }
.co-pieza p:last-child { margin-top: auto; padding-top: 8px; }
@media (max-width: 960px) { .co-piezas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .co-piezas { grid-template-columns: 1fr; } }

/* La galería del kit, antes de pedir el correo */
.co-kit-previo { margin: 20px 0 4px; }
.co-kit-piezas { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 14px; margin-bottom: 12px; }
.co-kit-pieza { background: #fff; border: 1px solid var(--line); border-radius: var(--r); padding: 16px; min-width: 0; }
.co-kit-ext { font: 700 10.5px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; color: var(--green); margin: 0 0 6px; }
.co-kit-nombre { font-weight: 600; font-size: 15.5px; margin: 0 0 4px; line-height: 1.2; }
.co-kit-que { font-size: 13.5px; color: var(--muted); margin: 0; line-height: 1.35; }

/* ------------------------------------------------- Las cinco experiencias (encargo §2)
   Tarjeta grande: el texto a la izquierda y la muestra del kit a la derecha. La muestra no es
   una captura: son las piezas que el servidor compone de verdad. */
.co-grandes { display: grid; gap: 22px; margin-top: 30px; }
.co-grande {
  display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 32px; align-items: start;
  background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 32px;
}
.co-grande .co-num { font: 700 11.5px/1 "IBM Plex Mono", monospace; letter-spacing: .14em; color: var(--green); margin: 0 0 12px; }
.co-grande-h {
  font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: 27px; line-height: 1.12;
  letter-spacing: -.02em; margin: 0 0 8px; text-wrap: balance;
}
.co-grande-perfil { color: var(--muted); margin: 0 0 20px; font-size: 16px; }
.co-grande-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 28px; margin-bottom: 18px; }
.co-grande-cols .ag-eyebrow { margin-bottom: 10px; }
.co-grande-cols .ag-list { margin-top: 0; }
.co-grande-cols .ag-list li { font-size: 14.5px; padding-top: 7px; padding-bottom: 7px; }
.co-grande-demo { font-size: 14.5px; color: var(--muted); margin: 0 0 18px; font-style: italic; }
.co-grande .ag-actions { margin: 0; }

.co-grande-kit { align-self: stretch; display: flex; flex-direction: column; gap: 10px; }
.co-muestra { display: grid; gap: 8px; }
.co-muestra-hoja {
  display: grid; grid-template-columns: 42px minmax(0, 1fr); align-items: center; gap: 10px;
  background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 11px 12px;
}
.co-muestra-hoja b {
  font: 700 9.5px/1 "IBM Plex Mono", monospace; letter-spacing: .08em; color: #fff; background: var(--green);
  border-radius: 4px; padding: 5px 0; text-align: center;
}
.co-muestra-hoja[data-ext="xlsx"] b { background: #2E6B4F; }
.co-muestra-hoja[data-ext="docx"] b { background: #3A4A7A; }
.co-muestra-hoja span { font-size: 12.5px; line-height: 1.25; color: var(--ink); }
.co-muestra-pie { font: 500 11.5px/1.3 "IBM Plex Mono", monospace; color: var(--faint); margin: 0; }

/* Buscador de las utilidades rápidas */
.co-buscador { display: grid; gap: 6px; font-weight: 600; font-size: 15px; max-width: 420px; margin: 22px 0 14px; }
.co-buscador input {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: var(--r);
  border: 1px solid var(--line-2); background: #fff; color: var(--ink);
}
.co-buscador input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.co-sin-resultados { color: var(--muted); margin: 0 0 18px; }

@media (max-width: 900px) {
  .co-grande { grid-template-columns: 1fr; gap: 24px; padding: 26px; }
  .co-grande-h { font-size: 23px; }
  .co-grande-cols { grid-template-columns: 1fr; gap: 4px; }
  .co-muestra { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 560px) { .co-muestra { grid-template-columns: 1fr; } }

/* Tres pasos y preguntas frecuentes de las cinco experiencias */
.co-pasos-3 { list-style: none; margin: 28px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }
.co-paso { min-width: 0; border-top: 2px solid var(--green); padding-top: 16px; }
.co-paso-n { font: 700 12px/1 "IBM Plex Mono", monospace; color: var(--green); margin: 0 0 10px; letter-spacing: .1em; }
.co-paso h3 { margin: 0 0 6px; font-size: 19px; }
.co-paso p { margin: 0; color: var(--muted); font-size: 15px; }

.co-faqs { display: grid; gap: 0; margin-top: 24px; max-width: 76ch; }
.co-faq { border-bottom: 1px solid var(--line); }
.co-faq > summary {
  cursor: pointer; padding: 18px 0; font-weight: 600; font-size: 17px; list-style: none;
  display: flex; align-items: baseline; justify-content: space-between; gap: 16px;
}
.co-faq > summary::-webkit-details-marker { display: none; }
.co-faq > summary::after { content: "+"; flex: none; color: var(--green); font: 400 20px/1 "IBM Plex Mono", monospace; }
.co-faq[open] > summary::after { content: "−"; }
.co-faq > summary:hover { color: var(--green); }
.co-faq > summary:focus-visible { outline: 2px solid var(--green); outline-offset: 3px; border-radius: 4px; }
.co-faq p { margin: 0 0 20px; color: var(--muted); max-width: 70ch; }

@media (max-width: 860px) { .co-pasos-3 { grid-template-columns: 1fr; gap: 18px; } }

/* Estado vacío honesto */
.co-vacio { border: 1px dashed var(--line-2); border-radius: var(--r-lg); padding: 32px; max-width: 64ch; }
.co-vacio p { margin: 0 0 12px; }

/* Formularios de alta */
.co-alta { display: grid; gap: 14px; max-width: 560px; }
.co-alta label.co-campo { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.co-alta input[type="email"] {
  font: inherit; font-weight: 400; padding: 14px 16px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); min-width: 0;
}
.co-alta input[type="email"]:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.co-alta .co-casilla { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; font-size: 15px; line-height: 1.45; }
.co-alta .co-casilla input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--green); }
.co-alta .ag-btn { justify-self: start; }
.co-alta .co-legal { font-size: 13px; color: var(--muted); margin: 0; }
.co-alta-estado { min-height: 1.4em; margin: 0; font-weight: 600; }
.co-alta-estado[data-tipo="ok"] { color: var(--green); }
.co-alta-estado[data-tipo="error"] { color: var(--red, #9B3B2E); }
.news .co-alta { margin: 0 auto; text-align: left; }
.news .co-alta label.co-campo, .news .co-alta .co-casilla { color: var(--paper); }
.news .co-alta .co-legal { color: rgba(241, 240, 234, .7); }
.news .co-alta .co-legal a { color: var(--green-soft); }

/* Bloques de texto del autor y avisos internos */
.co-texto { max-width: 68ch; }
.co-texto p { font-size: 17px; }
.co-frontera { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.co-frontera > div { min-width: 0; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; }
.co-frontera h3 { margin-top: 0; }
.co-frontera ul { margin: 0; padding-left: 1.1em; }
.co-frontera li { margin: 6px 0; }
.co-caso { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 26px; max-width: 760px; }
.co-caso table { width: 100%; border-collapse: collapse; font-size: 15px; }
.co-caso td, .co-caso th { text-align: left; padding: 8px 6px; border-bottom: 1px solid var(--line); }
.co-caso td.n { text-align: right; font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-caso-env { overflow-x: auto; }

/* Archivo de artículos y de El viernes */
.co-lista { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; }
.co-lista li { display: grid; grid-template-columns: 9rem minmax(0, 1fr); gap: 16px; padding: 16px 0; border-bottom: 1px solid var(--line); }
.co-lista time { font: 500 13px/1.5 "IBM Plex Mono", monospace; color: var(--faint); }
.co-lista a { color: var(--ink); text-decoration: none; font-weight: 600; font-size: 17px; }
.co-lista a:hover { color: var(--green); }
.co-lista p { margin: 4px 0 0; color: var(--muted); font-size: 15px; }

@media (max-width: 960px) { .co-tarjetas { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) {
  .co-tarjetas, .co-frontera { grid-template-columns: 1fr; }
  .co-lista li { grid-template-columns: 1fr; gap: 4px; }
}

/* ---------------------------------------------------------------- herramientas */
.co-app { display: grid; gap: 28px; }
.co-form { display: grid; gap: 16px; max-width: 640px; }
.co-campo { display: grid; gap: 6px; font-weight: 600; font-size: 15px; }
.co-campo small { font-weight: 400; color: var(--muted); font-size: 13px; }
.co-campo input[type="text"], .co-campo textarea, .co-partida input {
  font: inherit; font-weight: 400; padding: 12px 14px; border-radius: var(--r); border: 1px solid var(--line-2);
  background: #fff; color: var(--ink); width: 100%; min-width: 0;
}
.co-campo textarea { resize: vertical; }
.co-campo input:focus, .co-campo textarea:focus, .co-partida input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.co-entrada { display: flex; align-items: center; gap: 8px; }
.co-entrada input { flex: 1; }
.co-sufijo { font: 500 14px/1 "IBM Plex Mono", monospace; color: var(--muted); white-space: nowrap; }
.co-opciones { border: 1px solid var(--line); border-radius: var(--r); padding: 12px 16px; margin: 0; display: grid; gap: 8px; }
.co-opciones legend { font-weight: 600; font-size: 15px; padding: 0 6px; }
.co-opciones label { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; }
.co-opciones input { accent-color: var(--green); margin-top: 3px; }
.co-leyenda { font-weight: 600; margin: 4px 0 -4px; }
.co-partidas { display: grid; gap: 10px; }
.co-partida { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 1fr) minmax(0, 1fr); gap: 8px; }
.co-partida label { display: grid; gap: 4px; font-size: 13px; color: var(--muted); min-width: 0; }

.co-resultado { border-top: 2px solid var(--ink); padding-top: 24px; display: grid; gap: 22px; outline: none; }
.co-bloque { display: grid; gap: 10px; }
.co-bloque .ag-h3 { margin: 0; }
.co-tabla-env { overflow-x: auto; }
.co-tabla { width: 100%; border-collapse: collapse; font-size: 15px; min-width: 480px; }
.co-tabla th, .co-tabla td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--line); font-weight: 400; vertical-align: top; }
.co-tabla td.n { text-align: right; font-family: "IBM Plex Mono", monospace; font-variant-numeric: tabular-nums; white-space: nowrap; }
.co-tabla tr.co-destacada th, .co-tabla tr.co-destacada td.n { font-weight: 700; color: var(--green); }
.co-origen { font: 500 11px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; color: var(--muted); border: 1px solid var(--line-2); border-radius: var(--r-pill); padding: 4px 8px; white-space: nowrap; }
.co-origen[data-origen="calculado"] { color: var(--green); border-color: var(--green-soft); }
.co-origen[data-origen="supuesto_editable"] { color: var(--amber, #A9772A); border-color: currentColor; }
.co-aviso { border-left: 4px solid var(--amber, #A9772A); background: var(--paper-2); padding: 12px 16px; margin: 0; font-size: 15px; color: var(--ink); }
.co-errores { border-left: 4px solid var(--red, #9B3B2E); background: var(--paper-2); padding: 12px 16px; color: var(--ink); }
.co-errores ul { margin: 6px 0 0; }
.co-copiable { display: grid; gap: 8px; }
.co-copiable textarea { font: 400 15px/1.55 "IBM Plex Sans", system-ui, sans-serif; padding: 14px; border: 1px solid var(--line-2); border-radius: var(--r); background: #fff; width: 100%; }
.co-copiable .ag-btn { justify-self: start; padding: 10px 16px; font-size: 14px; }
.co-acciones { display: flex; flex-wrap: wrap; gap: 10px; }
.co-acciones .ag-btn { padding: 11px 16px; font-size: 14px; }
.co-util { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--muted); }
.co-util button { font: inherit; border: 1px solid var(--line-2); background: var(--paper-2); border-radius: var(--r-pill); padding: 6px 14px; cursor: pointer; }
.co-cargando { font-family: "IBM Plex Mono", monospace; color: var(--muted); }
.co-semaforo { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 16px; align-items: center; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 20px; }
.co-semaforo .co-luz { width: 56px; height: 56px; border-radius: 50%; }
.co-semaforo[data-color="verde"] .co-luz { background: var(--green); }
.co-semaforo[data-color="ambar"] .co-luz { background: var(--amber, #A9772A); }
.co-semaforo[data-color="rojo"] .co-luz { background: var(--red, #9B3B2E); }
.co-semaforo h3 { margin: 0 0 4px; }
.co-semaforo p { margin: 0; }

@media (max-width: 640px) {
  .co-partida { grid-template-columns: 1fr 1fr; }
  .co-partida label:first-child { grid-column: 1 / -1; }
}

@media print {
  .ag-nav, .ag-footer, .co-form, .co-acciones, .co-util, .news, #criterio-cc, .co-chat, [class*="chatbot"] { display: none !important; }
  .co-resultado { border: 0; }
  .ag-hero { padding: 0 0 12px; background: none; }
  .co-site .ag-section { padding: 12px 0; }
}

/* Factura Invisible */
.co-cifra { margin: 0; font-size: 18px; color: var(--muted); }
.co-cifra span { display: block; font-family: "Bricolage Grotesque", sans-serif; font-weight: 600; font-size: clamp(40px, 7vw, 64px); line-height: 1; letter-spacing: -.03em; color: var(--ink); margin-bottom: 6px; }
.co-cifra-2 span { color: var(--green); font-size: clamp(30px, 5vw, 46px); }
.co-formulas { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.co-formulas summary { cursor: pointer; font-weight: 600; }
.co-formulas li { margin: 8px 0; }

/* Criterio de Firma */
.co-paso { border-top: 1px solid var(--line); padding-top: 22px; }
.co-clase { font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-pill); padding: 5px 9px; border: 1px solid currentColor; white-space: nowrap; }
.co-clase[data-clase="posible_extra"] { color: var(--red, #9B3B2E); }
.co-clase[data-clase="incluido"] { color: var(--green); }
.co-clase[data-clase="ambiguo"] { color: var(--amber, #A9772A); }
.co-formula { font-family: "IBM Plex Mono", monospace; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 12px 14px; }
.co-linea-base { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; margin-bottom: 16px; }
.co-linea-base p { margin: 6px 0; }

/* Antes de firmar */
.co-resumen-estados { display: flex; flex-wrap: wrap; gap: 8px; margin: 0; padding: 0; list-style: none; }
.co-estado { font: 600 11px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; text-transform: uppercase; border-radius: var(--r-pill); padding: 5px 9px; border: 1px solid currentColor; white-space: nowrap; color: var(--muted); }
.co-estado[data-estado="contradiccion_interna"], .co-estado[data-estado="contradicha_fuente"] { color: var(--red, #9B3B2E); }
.co-estado[data-estado="sin_respaldo"], .co-estado[data-estado="dato_privado"], .co-estado[data-estado="fuente_inaccesible"] { color: var(--amber, #A9772A); }
.co-estado[data-estado="respaldada_fuente"], .co-estado[data-estado="calculo_verificado"] { color: var(--green); }
.co-hallazgos { display: grid; gap: 14px; margin: 0; padding: 0; list-style: none; }
.co-hallazgo { border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--r); padding: 14px 16px; display: grid; gap: 8px; background: var(--paper, #fff); }
.co-hallazgo[data-estado="contradiccion_interna"], .co-hallazgo[data-estado="contradicha_fuente"] { border-left-color: var(--red, #9B3B2E); }
.co-hallazgo[data-estado="sin_respaldo"], .co-hallazgo[data-estado="dato_privado"], .co-hallazgo[data-estado="fuente_inaccesible"] { border-left-color: var(--amber, #A9772A); }
.co-hallazgo[data-estado="respaldada_fuente"], .co-hallazgo[data-estado="calculo_verificado"] { border-left-color: var(--green); }
.co-hallazgo h3 { margin: 0; font-size: 17px; }
.co-hallazgo p { margin: 0; font-size: 15px; }
.co-hallazgo .co-cabeza { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.co-hallazgo .co-donde { font: 500 12px/1.4 "IBM Plex Mono", monospace; color: var(--muted); }
.co-hallazgo blockquote { margin: 0; padding: 8px 12px; background: var(--paper-2); border-radius: var(--r); font-size: 15px; overflow-wrap: anywhere; }
.co-hallazgo mark { background: transparent; border-bottom: 2px solid currentColor; color: inherit; font-weight: 600; }
.co-evidencia { font-size: 14px; border: 1px dashed var(--line-2); border-radius: var(--r); padding: 10px 12px; overflow-wrap: anywhere; }
.co-propuesta { display: grid; gap: 8px; border-top: 1px solid var(--line); padding-top: 10px; }
.co-propuesta del { color: var(--red, #9B3B2E); }
.co-propuesta ins { color: var(--green); text-decoration: none; border-bottom: 1px solid currentColor; }
.co-propuesta .co-acciones .ag-btn[aria-pressed="true"] { outline: 2px solid var(--ink); outline-offset: 2px; }
.co-heredado { font: 500 11px/1 "IBM Plex Mono", monospace; color: var(--muted); border: 1px dashed var(--line-2); border-radius: var(--r-pill); padding: 4px 8px; }
.co-cobertura { display: grid; gap: 6px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px 18px; }
.co-cobertura p { margin: 0; }

/* /hojas/ y muestra del libro */
.co-hoja { display: grid; grid-template-columns: minmax(0, 1fr); gap: 10px; align-content: start; min-width: 0; }
.co-hoja p { margin: 0; }
.co-hoja-ver summary { cursor: pointer; font-size: 15px; }
.co-hoja-texto { font-family: ui-monospace, Menlo, Consolas, monospace; font-size: 12.5px; line-height: 1.55; overflow-x: auto; max-width: 100%; margin: 10px 0 0; padding: 12px; background: var(--paper-2); white-space: pre; }
.co-texto figure { margin: 24px 0; }
.co-texto figure img { display: block; width: 100%; height: auto; border: 1px solid var(--line-2); }
.co-texto figcaption { font-size: 14px; margin-top: 8px; color: var(--muted, #555); }
.co-texto .co-hoja-texto { font-size: 12.5px; }

/* #42 matriz de firma */
.co-matriz-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.co-cuadrante { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 14px; margin: 0; min-width: 0; }
.co-cuadrante legend { font-weight: 700; padding: 0 6px; }
.co-cuadrante .co-leyenda { font-size: 14px; margin: 0 0 10px; }
.co-cuadrante-campos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (max-width: 640px) { .co-matriz-form { grid-template-columns: minmax(0, 1fr); } }

/* #01 reto */
#co-reto { display: grid; gap: 18px; }
.co-reto-notas { background: var(--paper-2); padding: 16px 18px; border-radius: var(--r-lg); }
.co-reto-notas .ag-h3 { margin: 0 0 6px; }
.co-reto-notas p { margin: 0 0 8px; }
.co-reto-notas ul { margin: 0; padding-left: 20px; display: grid; gap: 6px; font-size: 15px; }
.co-reto-doc { border: 1px solid var(--line-2); border-radius: var(--r-lg); padding: 20px; display: grid; gap: 8px; scroll-margin-top: 90px; }
.co-reto-doc .ag-h3 { margin: 14px 0 2px; font-size: 17px; }
.co-reto-af { display: grid; grid-template-columns: 22px minmax(0, 1fr); gap: 10px; align-items: start; padding: 8px 10px; border-radius: 6px; cursor: pointer; }
.co-reto-af:hover { background: var(--paper-2); }
.co-reto-af input { margin-top: 5px; }
.co-reto-af[data-estado="encontrada"] { background: #E4F0E6; color: #123; }
.co-reto-af[data-estado="escapada"] { background: #F7E3DF; color: #311; }
.co-reto-af[data-estado="bien"] { outline: 1px dashed var(--line-2); }
.co-reto-exp { border-top: 1px solid var(--line-2); padding-top: 12px; display: grid; gap: 6px; }
.co-reto-exp h4 { margin: 0; font-size: 17px; }
.co-reto-exp p { margin: 0; }
.co-reto-tarjeta { border: 2px solid currentColor; border-radius: var(--r-lg); padding: 20px; display: grid; gap: 6px; max-width: 420px; }
.co-reto-tarjeta p { margin: 0; }
.co-reto-nota { font-size: 44px; font-weight: 700; line-height: 1.1; }

#co-reto-boton[hidden] { display: none; }

/* Portada del libro en el héroe (12-11-2026). La columna la da .ag-hero-grid del sitio. */
.co-portada-libro { margin: 0; justify-self: center; width: min(340px, 100%); }
.co-portada-libro picture, .co-portada-libro img { display: block; width: 100%; height: auto; }
.co-portada-libro img {
  border-radius: 3px;
  box-shadow: 0 1px 2px rgba(21, 24, 27, .14), 0 22px 44px -18px rgba(21, 24, 27, .42);
}
@media (max-width: 940px) { .co-portada-libro { width: min(220px, 64%); margin-top: 6px; } }
@media print { .co-portada-libro { display: none; } }
/* «Tú sí.» nunca se parte, como en la cubierta. */
.co-tu-si { white-space: nowrap; }

/* Estado del libro bajo la portada, y la línea para editores en /libro/ (12-11-2026). */
.co-portada-libro figcaption { margin-top: 14px; text-align: center; font-size: 14px; line-height: 1.4; color: var(--muted, rgba(21, 24, 27, .6)); }
.co-editores { margin: 0; padding: 18px 22px; border: 1px solid var(--line, rgba(21, 24, 27, .13)); border-radius: 12px; font-size: 17px; }
.co-editores a { font-weight: 600; }

/* Informe en PDF bajo el resultado (anexo web v9.1, B). */
.co-informe { margin-top: 28px; padding: 22px 24px; border: 1px solid var(--line, rgba(21, 24, 27, .13)); border-radius: 12px; display: grid; gap: 12px; }
.co-informe .ag-h3 { margin: 0; }
.co-informe p { margin: 0; }
.co-informe .co-legal { font-size: 14px; color: var(--muted, rgba(21, 24, 27, .6)); }
.co-informe-msg:empty { display: none; }
.co-informe-msg { font-weight: 600; }
.co-informe .co-casilla { display: flex; gap: 10px; align-items: flex-start; }
.co-informe .co-casilla input { margin-top: 4px; flex: none; }

/* Escenas del libro generadas con Higgsfield, si están (anexo web v9.1, C). Sin ellas no se pinta nada. */
.co-escenas { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.co-escena img { display: block; width: 100%; height: auto; border-radius: 8px; }

/* ---------------------------------------------- lead magnets 10/10 (LM-2 y LM-4) */

/* El «por qué», antes del formulario */
.co-porque .co-porque-texto { font-size: clamp(17px, 2.2vw, 20px); line-height: 1.55; max-width: 60ch; margin: 0 0 14px; }
.co-porque .co-microejemplo { max-width: 62ch; margin: 0; color: var(--ink); }

/* Jerarquía del resultado: titular, cifra con su sello, dos tarjetas como mucho */
.co-cabeza-resultado { margin: 0 0 24px; }
.co-titular { font-size: clamp(22px, 3vw, 30px); line-height: 1.18; margin: 0 0 16px; text-wrap: balance; }
.co-kpi { margin: 0 0 18px; }
.co-sello {
  display: inline-block; font: 600 11px/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .08em;
  text-transform: uppercase; color: var(--green); border: 1px solid var(--green);
  border-radius: var(--r-pill); padding: 5px 10px; margin: 0 0 10px;
}
.co-sello[data-sello="supuesto"], .co-sello[data-sello="estimacion"] { color: #A9772A; border-color: #A9772A; }
.co-kpi-cifra { font-size: clamp(38px, 7vw, 60px); line-height: 1.02; color: var(--green); margin: 0; font-variant-numeric: tabular-nums; }
.co-kpi-etiqueta { font-size: 17px; margin: 6px 0 0; max-width: 46ch; }
.co-tarjetas-kpi { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; margin: 0 0 20px; }
.co-tarjeta-kpi { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 16px 18px; }
.co-tarjeta-valor { font-size: 26px; line-height: 1.1; color: var(--green); margin: 0 0 4px; font-variant-numeric: tabular-nums; }
.co-tarjeta-titulo { font-weight: 600; margin: 0 0 2px; }
.co-explicacion { max-width: 62ch; margin: 0 0 16px; }
.co-decision { background: var(--paper-2); border-left: 3px solid var(--green); padding: 14px 18px; margin: 0 0 20px; }
.co-decision p:last-child { margin: 0; }

/* Gráficos */
.co-grafico { margin: 0 0 10px; overflow-x: auto; }
.co-grafico .co-svg { width: 100%; height: auto; max-width: 560px; font-family: "IBM Plex Sans", system-ui, sans-serif; }
.co-grafico figcaption { color: var(--muted); font-size: 14px; margin-top: 6px; }
.co-grafico-datos { margin: 0 0 18px; }
.co-grafico-datos summary { cursor: pointer; color: var(--green); font-size: 14px; }
.co-grafico-datos table { margin-top: 10px; }

/* Previsualización del informe */
.co-previo { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 20px; align-items: start; margin: 0 0 22px; }
.co-previo-hoja {
  background: #F1F0EA; border: 1px solid var(--line); border-radius: 3px; padding: 16px 14px;
  aspect-ratio: 1 / 1.414; display: flex; flex-direction: column; box-shadow: 0 2px 10px rgba(21, 24, 27, .08);
}
.co-previo-sello { font: 600 7px/1 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .14em; text-transform: uppercase; color: var(--green); border-top: 2px solid var(--green); padding-top: 5px; margin: 0 0 18px; }
.co-previo-titulo { font-size: 9px; color: var(--green); letter-spacing: .06em; text-transform: uppercase; margin: 0 0 6px; }
.co-previo-cifra { font-size: 21px; line-height: 1.05; color: var(--green); margin: 0; font-variant-numeric: tabular-nums; }
.co-previo-etiqueta { font-size: 8px; line-height: 1.3; margin: 4px 0 0; color: var(--ink); }
.co-previo-pie { font-size: 7px; color: var(--muted); margin: auto 0 0; }
.co-previo-indice ol { margin: 8px 0 0; padding-left: 20px; }
.co-previo-indice li { margin: 0 0 5px; }
.co-informe .co-aparte { margin: 16px 0 6px; font-weight: 600; }

@media (max-width: 560px) {
  .co-previo { grid-template-columns: 110px minmax(0, 1fr); gap: 14px; }
}

/* Las herramientas, agrupadas por segmento (LM-8) */
.co-segmento + .co-segmento { margin-top: 48px; }
.co-segmento > .ag-h2 { margin-bottom: 4px; }
.co-segmento .co-segmento-quien { margin: 0 0 24px; max-width: 58ch; color: var(--muted); }
.co-pide { color: var(--muted); font-size: 15px; margin: 0 0 14px; }
.co-pide b { color: var(--ink); display: block; font-size: 13px; letter-spacing: .04em; text-transform: uppercase; margin-bottom: 2px; }
.co-porque .co-pide { margin-top: 14px; }
.co-porque .co-pide b { display: inline; font-size: inherit; letter-spacing: 0; text-transform: none; }

/* ------------------------------------------------------------------------------------------
   Criterio de Firma · Método FIRMA: landing, demostración y área privada.
   La vista previa (.co-firma-doc) usa los mismos bloques que el PDF y el Word: estado, tablas,
   campos, correos. Aquí solo se les da el aspecto de la web.
   ------------------------------------------------------------------------------------------ */
.co-firma-muestra { margin: 0; }
.co-firma-muestra img { display: block; width: 100%; max-width: 440px; height: auto; margin: 0 auto; border: 1px solid var(--line-2); border-radius: 6px; box-shadow: 0 10px 30px rgba(21, 24, 27, .12); background: #fff; }
.co-firma-muestra figcaption { max-width: 440px; margin: 12px auto 0; font-size: 14px; color: var(--muted); }
.co-firma-muestra figcaption b { color: var(--ink); display: block; }
.co-firma-tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; margin-top: 22px; }
.co-firma-tres > div { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 20px 22px; }
.co-firma-tres h3 { margin: 0 0 8px; }
.co-firma-tres p { margin: 0; color: var(--muted); }
.co-firma-dinero { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; }
.co-firma-demo { max-width: none; }
.co-firma-salida[hidden], #co-firma-demo-despues[hidden] { display: none !important; }
#co-firma-demo-despues { margin-top: 18px; }
.co-firma-precio { font: 600 44px/1.05 "Bricolage Grotesque", system-ui, sans-serif; color: var(--green); margin: 0 0 6px; }
.co-firma-precio span { display: block; font: 400 15px/1.4 "IBM Plex Sans", system-ui, sans-serif; color: var(--muted); margin-top: 6px; }
.co-firma-metodo { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 14px; margin: 18px 0; }
.co-firma-metodo div { border-top: 3px solid var(--green); padding-top: 10px; }
.co-firma-metodo b { display: block; color: var(--green); }
.co-firma-metodo span { font-size: 14.5px; color: var(--muted); }

.co-firma-tabla-ancha { overflow-x: auto; }

.co-firma-pasos { position: sticky; top: 0; z-index: 5; background: var(--paper); border-bottom: 1px solid var(--line); padding: 10px 0; display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; }
.co-firma-pasos ol { display: flex; flex-wrap: wrap; gap: 6px 16px; list-style: none; margin: 0; padding: 0; counter-reset: paso; }
.co-firma-pasos li { counter-increment: paso; font-size: 14.5px; }
.co-firma-pasos li a { color: var(--ink); text-decoration: none; border-bottom: 1px solid transparent; }
.co-firma-pasos li a::before { content: counter(paso) " · "; color: var(--faint); }
.co-firma-pasos li a:hover, .co-firma-pasos li a:focus-visible { border-bottom-color: var(--green); color: var(--green); }
.co-firma-guardado { margin: 0; font-size: 13.5px; color: var(--muted); }
.co-firma-form { display: grid; gap: 28px; }
.co-firma-paso { display: grid; gap: 18px; scroll-margin-top: 70px; min-width: 0; }
.co-firma-paso > .ag-eyebrow, .co-firma-paso > .ag-h3 { margin: 0; }
.co-firma-ayuda { color: var(--muted); font-size: 15px; margin: 0; }
.co-firma-hecho { display: grid; gap: 8px; max-width: 760px; min-width: 0; }
.co-firma-hecho select, .co-firma-evidencia input[type="text"], .co-firma-tabla input, .co-firma-dinero input {
  font: inherit; font-weight: 400; padding: 9px 11px; border: 1px solid var(--line-2); border-radius: 8px; background: #fff; color: var(--ink); width: 100%; box-sizing: border-box;
}
.co-firma-hecho select:focus, .co-firma-evidencia input:focus, .co-firma-tabla input:focus, .co-firma-dinero input:focus { outline: 2px solid var(--green); outline-offset: 2px; }
.co-firma-evidencia { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 10px 14px; padding: 12px 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); font-size: 14px; }
.co-firma-evidencia label { display: grid; gap: 4px; font-weight: 600; }
.co-firma-evidencia .co-casilla { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 8px; align-items: center; font-weight: 600; }
.co-firma-evidencia .co-casilla small { font-weight: 400; color: var(--muted); }
.co-firma-puerta { display: inline-block; font: 600 11.5px/1 "IBM Plex Mono", monospace; letter-spacing: .04em; padding: 4px 7px; border-radius: 999px; border: 1px solid #A9772A; color: #7A5417; vertical-align: 2px; margin-left: 6px; }
.co-firma-puerta::after { content: " abierta"; }
.co-firma-puerta.cerrada { border-color: var(--green); color: var(--green); background: #E4E9E1; }
.co-firma-puerta.cerrada::after { content: " cerrada"; }
/* position: relative para que la etiqueta oculta de la última columna (posición absoluta) quede
   recortada por este contenedor y no ensanche la página en móvil. */
.co-firma-tabla { overflow-x: auto; position: relative; }
.co-firma-tabla table { width: 100%; min-width: 520px; border-collapse: collapse; }
.co-firma-tabla th { text-align: left; font-size: 13.5px; padding: 0 6px 6px 0; }
.co-firma-tabla td { padding: 0 6px 8px 0; }
.co-firma-tabla td:first-child { width: 46%; }
.co-firma-quitar { font: inherit; line-height: 1; display: inline-flex; align-items: center; justify-content: center; padding: 0; width: 38px; height: 38px; border: 1px solid var(--line-2); border-radius: 8px; background: transparent; cursor: pointer; color: var(--muted); }
.co-firma-quitar:hover, .co-firma-quitar:focus-visible { border-color: #9B3B2E; color: #9B3B2E; }
.co-firma-modo { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 8px 22px; }
.co-firma-modo legend { font-weight: 600; font-size: 15px; padding: 0; margin-bottom: 6px; }
.co-firma-mal { border-color: #9B3B2E !important; background: #FBEDEA !important; }
.co-firma-archivos { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.co-firma-archivos li { display: flex; flex-wrap: wrap; gap: 6px 14px; align-items: center; }
.co-firma-archivos span { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }

@media (max-width: 820px) {
  .co-firma-tres, .co-firma-metodo { grid-template-columns: 1fr; }
  .co-firma-evidencia { grid-template-columns: 1fr; }
  .co-firma-pasos { position: static; }
  .co-firma-precio { font-size: 36px; }
}
@media print {
  .co-firma-pasos, .co-firma-form, #paso-descarga, .co-firma-demo { display: none !important; }
}

/* ==========================================================================
   Criterio de Firma · dictamen ejecutivo (orden V2, 16-nov-2026)
   Dos espacios: la web pública sigue en hueso y verde; el visor del expediente es una mesa
   oscura con el folio de papel encima. El folio (.co-folio) lleva el mismo marcado que el PDF:
   cajetín, sello doble, cifras con su origen, puente de contribución, puertas y siguiente acción.
   Tipos ya servidos por la web: Newsreader (títulos), IBM Plex Sans (texto), IBM Plex Mono (cifras).
   ========================================================================== */
.ag-wrap.co-ancho { max-width: min(1480px, 100% - 32px); width: 100%; }
.co-mesa {
  --mesa: #0B0F17; --panel: #151C28; --borde: #2B3543; --papel: #FAF8F5; --filete: #D8D4CC; --tinta: #111827; --gris: #4B5563;
  position: relative; min-width: 0; color: #CBD4DF; background-color: var(--mesa);
  background-image: linear-gradient(rgba(124, 144, 166, .075) 1px, transparent 1px), linear-gradient(90deg, rgba(124, 144, 166, .075) 1px, transparent 1px);
  background-size: 32px 32px; border: 1px solid var(--borde); border-radius: 12px; padding: 16px clamp(10px, 2.2vw, 26px) 22px;
}
.co-mesa-cab { display: flex; flex-wrap: wrap; gap: 8px 18px; align-items: center; justify-content: space-between; margin: 0 0 14px; font: 500 12px/1.35 "IBM Plex Mono", monospace; letter-spacing: .09em; text-transform: uppercase; color: #AEB9C6; }
.co-mesa-cab b { color: #EEF3F8; font-weight: 600; }
.co-mesa-sello { border: 1px solid #5A6A80; background: #232C3A; color: #F3E3BD; padding: 5px 10px; border-radius: 3px; letter-spacing: .08em; }
.co-mesa-sello[hidden] { display: none; }
.co-mesa-pie { margin: 14px 0 0; font-size: 13.5px; color: #AEB9C6; }
.co-mesa a { color: #EEF3F8; }
.co-mesa-aviso { margin: 0 auto 12px; max-width: 820px; font-size: 14px; line-height: 1.45; color: #D5DDE6; }
.co-mesa-aviso b { color: #F3E3BD; }
.co-mesa .co-errores { max-width: 820px; margin: 0 auto 12px; }

.co-folio {
  --tinta: #111827; --gris: #4B5563; --filete: #D8D4CC;
  box-sizing: border-box; max-width: 820px; margin: 0 auto; aspect-ratio: 210 / 297; background: #FAF8F5; color: var(--tinta); text-align: left;
  border: 1px solid var(--filete); box-shadow: 0 16px 36px rgba(0, 0, 0, .5); padding: clamp(16px, 4.6%, 40px) clamp(14px, 5.4%, 46px) clamp(12px, 3%, 24px);
  font: 400 15px/1.5 "IBM Plex Sans", system-ui, sans-serif; display: flex; flex-direction: column;
}
.co-folio > .folio-pie { margin-top: auto; }
.co-folio .folio-pie { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 4px 14px; border-top: 1px solid var(--filete); padding-top: 9px; font: 500 11px/1.4 "IBM Plex Mono", monospace; letter-spacing: .05em; color: var(--gris); }
.co-folio .folio-pie b { color: var(--green); font-weight: 600; }
.co-folio .folio-pie span:first-child { padding-top: 18px; margin-top: -9px; }
.co-folio .seccion { font: 600 11.5px/1.35 "IBM Plex Mono", monospace; letter-spacing: .16em; text-transform: uppercase; color: var(--green); border-bottom: 1px solid var(--filete); padding-bottom: 7px; margin: 0 0 8px; }
.co-folio .titular { font: 400 clamp(30px, 5vw, 44px)/1.04 "Newsreader", Georgia, serif; letter-spacing: -.02em; color: var(--tinta); margin: 4px 0 4px; text-wrap: balance; }
.co-folio h2:not(.titular) { font: 400 clamp(24px, 3.6vw, 32px)/1.1 "Newsreader", Georgia, serif; letter-spacing: -.015em; color: var(--tinta); margin: 4px 0 4px; text-wrap: balance; }
.co-folio .sub { font-size: 16px; color: var(--gris); margin: 0 0 14px; }
.co-folio .entradilla, .co-folio .ref { font-size: 14px; color: var(--gris); margin: 0 0 14px; }
.co-folio-extracto { aspect-ratio: auto; }
.co-folio-extracto .folio-pie { margin-top: 6px; }
.co-folio .folio-pie a { color: var(--green); }
.co-folio-vacio { justify-content: center; border-style: dashed; box-shadow: none; background: #F3F1EC; }
.co-folio-vacio .seccion { border: 0; }
.co-folio-vacio .t { font: 400 28px/1.15 "Newsreader", Georgia, serif; margin: 0 0 10px; }
.co-folio-vacio p { max-width: 46ch; color: var(--gris); }

/* Los bloques del documento, en el folio y en cualquier fragmento suelto. */
.co-firma-doc { font-size: 15px; --tinta: #111827; --gris: #4B5563; --filete: #D8D4CC; }
.co-firma-doc h3 { font: 500 19px/1.25 "Newsreader", Georgia, serif; color: var(--tinta); margin: 18px 0 8px; }
.co-firma-doc p { margin: 0 0 10px; }
.co-firma-doc ul { margin: 0 0 12px; padding-left: 20px; }
.co-firma-doc .nota { color: var(--gris); font-size: 13.5px; line-height: 1.45; }
.co-firma-doc .aviso { background: #E4E9E1; padding: 9px 13px; font-size: 13px; line-height: 1.45; margin: 0 0 12px; }
.co-firma-doc table { width: 100%; border-collapse: collapse; margin: 0 0 12px; font-variant-numeric: tabular-nums; border: 0; }
.co-firma-doc th, .co-firma-doc td { border: 0; background: none; }
.co-firma-doc .cajetin { border: 1.5px solid var(--tinta); table-layout: fixed; margin: 0 0 16px; }
.co-firma-doc .cajetin td { padding: 7px 10px 6px; border-right: 1px solid var(--tinta); vertical-align: top; }
.co-firma-doc .cajetin td:last-child { border-right: 0; }
.co-firma-doc .cajetin .c1 { display: block; font: 600 12.5px/1.3 "IBM Plex Mono", monospace; overflow-wrap: anywhere; }
.co-firma-doc .cajetin .c2 { display: block; font: 400 11px/1.35 "IBM Plex Mono", monospace; letter-spacing: .04em; color: var(--gris); margin-top: 2px; overflow-wrap: anywhere; }
.co-firma-doc .estado { border: 3px double #B7791F; background: #FFFBEB; padding: 12px 16px 6px; margin: 0 0 14px; }
.co-firma-doc .estado .sello { display: block; font: 600 clamp(16px, 2.4vw, 20px)/1.2 "IBM Plex Mono", monospace; letter-spacing: .06em; color: #92400E; }
.co-firma-doc .estado .motivo { display: block; font: 500 11.5px/1.35 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: #92400E; margin-top: 3px; }
.co-firma-doc .estado p { margin: 7px 0 6px; color: #5B3A0B; }
.co-firma-doc .estado.t-aprobado { border-color: #065F46; background: #ECFDF5; }
.co-firma-doc .estado.t-aprobado .sello, .co-firma-doc .estado.t-aprobado .motivo { color: #065F46; }
.co-firma-doc .estado.t-aprobado p { color: #064E3B; }
.co-firma-doc .estado.t-bloqueado { border-color: #991B1B; background: #FEF2F2; }
.co-firma-doc .estado.t-bloqueado .sello, .co-firma-doc .estado.t-bloqueado .motivo { color: #991B1B; }
.co-firma-doc .estado.t-bloqueado p { color: #7F1D1D; }
.co-firma-doc .estado.t-pendiente { border-color: var(--tinta); background: #F3F1EC; }
.co-firma-doc .estado.t-pendiente .sello, .co-firma-doc .estado.t-pendiente .motivo, .co-firma-doc .estado.t-pendiente p { color: var(--tinta); }
.co-firma-doc .cifras { border: 1px solid var(--filete); table-layout: fixed; }
.co-firma-doc .cifras td { padding: 10px 14px 9px; border-right: 1px solid var(--filete); vertical-align: top; background: #fff; }
.co-firma-doc .cifras td:last-child { border-right: 0; }
.co-firma-doc .cifras .k { display: block; font: 600 11px/1.3 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .06em; text-transform: uppercase; color: var(--gris); }
.co-firma-doc .cifras .v { display: block; font: 600 clamp(20px, 3.2vw, 27px)/1.15 "IBM Plex Mono", monospace; letter-spacing: -.02em; white-space: nowrap; margin: 4px 0 2px; }
.co-firma-doc .cifras .o { display: block; font: 500 11px/1.3 "IBM Plex Mono", monospace; letter-spacing: .05em; color: var(--green); }
.co-firma-doc .cifras .n { display: block; font-size: 13px; line-height: 1.35; color: var(--gris); margin-top: 3px; }
.co-firma-doc .cifras td.pos .v { color: #065F46; }
.co-firma-doc .cifras td.neg .v { color: #991B1B; }
.co-firma-doc .puente { border: 1px solid var(--filete); background: #fff; padding: 9px 14px 2px; margin: 0 0 12px; }
.co-firma-doc .puente table { margin: 0 0 6px; }
.co-firma-doc .puente th { text-align: left; font: 600 11.5px/1.3 "IBM Plex Mono", monospace; letter-spacing: .03em; text-transform: uppercase; padding: 6px 10px 6px 0; vertical-align: middle; }
.co-firma-doc .puente td { padding: 6px 0; vertical-align: middle; }
.co-firma-doc .puente .carril { background: #E9E7E1; height: 14px; border-left: 1px solid var(--tinta); }
.co-firma-doc .puente .barra { height: 14px; background: #5F7468; transition: width .2s ease; }
.co-firma-doc .puente .barra.t-erosion { background: #A54B45; }
.co-firma-doc .puente .barra.t-protegida { background: #065F46; }
.co-firma-doc .puente .barra.t-coste { background: #77827B; }
.co-firma-doc .puente td.v { font: 600 15px/1.2 "IBM Plex Mono", monospace; text-align: right; white-space: nowrap; padding-left: 10px; }
.co-firma-doc .puente td.v.neg { color: #991B1B; }
.co-firma-doc .puente td.v.pos { color: #065F46; }
.co-firma-doc .puente td.d { font-size: 13px; line-height: 1.3; color: var(--gris); padding-left: 14px; }
.co-firma-doc .puertas { table-layout: fixed; border-collapse: separate; border-spacing: 0; }
.co-firma-doc .puertas td { padding: 9px 11px; border: 1px solid #E3C98F; background: #FFFBEB; vertical-align: top; }
.co-firma-doc .puertas td + td { border-left: 0; }
.co-firma-doc .puertas td.cerrada { border-color: #A7D7C5; background: #ECFDF5; }
.co-firma-doc .puertas .g { display: block; font: 600 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .05em; color: #92400E; }
.co-firma-doc .puertas td.cerrada .g { color: #065F46; }
.co-firma-doc .puertas .gn { display: block; font-weight: 600; font-size: 13.5px; line-height: 1.25; margin-top: 3px; }
.co-firma-doc .puertas .gr { display: block; font-size: 12.5px; line-height: 1.35; color: var(--gris); margin-top: 3px; }
.co-firma-doc .accion { border-left: 4px solid var(--green); background: #EEF1EC; padding: 10px 16px 4px; margin: 0 0 12px; }
.co-firma-doc .accion .k { display: block; font: 600 11px/1.3 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--green); }
.co-firma-doc .accion .t { display: block; font-weight: 600; font-size: 17px; line-height: 1.3; margin: 4px 0 5px; }
.co-firma-doc .accion p { font-size: 14px; color: #374151; margin: 0 0 7px; }
.co-firma-doc .rango .eje { position: relative; height: 18px; margin: 6px 24px 8px; }
.co-firma-doc .rango .tramo { position: absolute; left: 0; right: 0; top: 8px; height: 2px; background: var(--tinta); }
.co-firma-doc .rango .marca { position: absolute; top: 1px; width: 3px; height: 16px; margin-left: -1px; background: var(--tinta); }
.co-firma-doc .rango .marca.m-pert { background: #B7791F; }
.co-firma-doc .rango .cifras .v { font-size: 19px; }
.co-firma-doc .rango td.m-pert .k { color: #92400E; }
.co-firma-doc .datos th { font: 600 11px/1.3 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: .05em; text-transform: uppercase; text-align: left; color: var(--tinta); background: none; padding: 7px 8px; border-top: 1.5px solid var(--tinta); border-bottom: 1px solid var(--tinta); }
.co-firma-doc .datos td { padding: 7px 8px; border-bottom: 1px solid var(--filete); vertical-align: top; font-size: 14px; }
.co-firma-doc .datos .n { text-align: right; white-space: nowrap; }
.co-firma-doc .datos td.n { font-family: "IBM Plex Mono", monospace; font-size: 13.5px; }
.co-firma-doc .datos tr.total td { font-weight: 600; background: #E4E9E1; border-top: 1px solid var(--tinta); }
.co-firma-doc .campos th { text-align: left; width: 30%; color: var(--green); font-size: 13.5px; font-weight: 600; padding: 7px 12px 7px 0; border-bottom: 1px solid var(--filete); vertical-align: top; }
.co-firma-doc .campos td { padding: 7px 0; border-bottom: 1px solid var(--filete); font-size: 14px; }
.co-firma-doc .correo { border: 1px solid var(--filete); border-left: 3px solid #A9772A; background: #fff; padding: 11px 15px 3px; margin: 0 0 12px; font-size: 14px; }
.co-firma-doc .correo .asunto, .co-firma-doc .correo .ctit { font-weight: 600; }
.co-firma-doc .correo .ctit { color: var(--green); }
.co-firma-doc .firmas td { width: 50%; padding: 48px 20px 0 0; font-size: 13.5px; color: var(--gris); }
.co-firma-doc .firmas .raya { border-top: 1px solid var(--tinta); margin-bottom: 6px; }

/* Landing: el documento en la cabecera, la consola y el muro. */
.co-firma-hero-g { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(24px, 3.4vw, 54px); align-items: start; }
.co-firma-hero-t { position: sticky; top: 96px; padding-top: clamp(0px, 3vw, 44px); }
.co-firma-hero .ag-h1 { font-size: clamp(34px, 3.9vw, 58px); line-height: 1.04; text-wrap: balance; }
.co-hilo { display: flex; flex-wrap: wrap; gap: 6px 0; list-style: none; margin: 26px 0 0; padding: 0; font: 600 11.5px/1.3 "IBM Plex Mono", monospace; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.co-hilo li { display: flex; align-items: center; }
.co-hilo li + li::before { content: ""; width: 26px; height: 1px; background: var(--line-2); margin: 0 9px; }
.co-hilo li::after { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--line-2); margin-left: 9px; }
.co-hilo li:last-child { color: var(--green); }
.co-hilo li:last-child::after { background: var(--green); }
.co-banco { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 7fr); gap: clamp(20px, 2.6vw, 40px); align-items: start; margin-top: 22px; }
.co-banco-muestra { align-items: center; }
@media (min-width: 981px) { .co-banco > .co-consola { position: sticky; top: 96px; } }
.co-consola { max-width: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px 22px 18px; display: grid; gap: 18px; }
.co-consola fieldset { border: 0; padding: 0; margin: 0; display: grid; gap: 14px; min-width: 0; }
.co-consola fieldset > legend { font: 600 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .12em; text-transform: uppercase; color: var(--green); padding: 0; margin-bottom: 4px; }
.co-consola .co-firma-ruta, .co-consola .co-firma-modo { display: flex; flex-wrap: wrap; gap: 8px 20px; }
.co-consola .co-firma-modo > legend, .co-consola .co-firma-ruta > legend { font: 600 15px/1.3 "IBM Plex Sans", system-ui, sans-serif; letter-spacing: 0; text-transform: none; color: var(--ink); }
.co-firma-horas { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; align-items: end; }
.co-consola textarea { width: 100%; box-sizing: border-box; }
.co-consola .co-firma-ayuda { margin: -6px 0 0; font-size: 14px; }
.co-firma-mas summary { cursor: pointer; font-weight: 600; font-size: 15px; padding: 6px 0; }
.co-firma-mas[open] summary { margin-bottom: 10px; }
.co-firma-demo[data-ruta="r1"] [data-solo="r2"], .co-firma-demo[data-ruta="r2"] [data-solo="r1"] { display: none; }
.co-firma-demo[data-modo="horas"] label[for="fd-precio"], .co-firma-demo[data-modo="fijo"][data-ruta="r2"] label[for="fd-tarifa"] { display: none; }
.co-firma-salida { margin: 0; padding: 0; background: none; border: 0; }
.co-muro { margin-top: 34px; padding-top: 30px; border-top: 1px solid var(--line-2); }
.co-muro[hidden] { display: none !important; }
.co-muro .co-indice { margin: 18px 0 14px; }
.co-muro .co-indice-folio { box-shadow: 0 6px 18px rgba(17, 24, 39, .1); }
ol.co-indice { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 14px; }
.co-indice-folio { background: #FAF8F5; color: #111827; border: 1px solid #D8D4CC; padding: 14px 15px 12px; display: grid; gap: 5px; align-content: start; box-shadow: 0 10px 22px rgba(0, 0, 0, .38); text-align: left; }
.co-indice-folio .n { font: 600 11.5px/1.3 "IBM Plex Mono", monospace; letter-spacing: .1em; color: var(--green); border-bottom: 1px solid #D8D4CC; padding-bottom: 6px; }
.co-indice-folio b { font: 500 20px/1.15 "Newsreader", Georgia, serif; }
.co-indice-folio .s { font: 500 11px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; color: #4B5563; }
.co-indice-folio p { margin: 2px 0 0; font-size: 13.5px; line-height: 1.4; color: #374151; }
.co-indice-folio ul { margin: 4px 0 0; padding: 6px 0 0; list-style: none; border-top: 1px solid #D8D4CC; font-size: 12.5px; line-height: 1.45; color: #4B5563; }
.co-indice-folio ul li::before { content: "· "; }

/* Área privada: consola a la izquierda, mesa con los folios a la derecha. */
/* El hueco de abajo deja pasar el último botón por encima del chat flotante. */
.co-firma-app { display: grid; gap: 22px; padding-bottom: 84px; }
.co-firma-vistas { display: none; }
.co-folios-tabs { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 14px; padding: 0; list-style: none; }
.co-folios-tabs button { font: 600 12px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; color: #CBD4DF; background: #151C28; border: 1px solid #2B3543; border-radius: 4px; padding: 0 12px; min-height: 38px; cursor: pointer; }
.co-folios-tabs button[aria-selected="true"] { background: #FAF8F5; color: #111827; border-color: #FAF8F5; }
.co-folios-tabs button:focus-visible, .co-mesa a:focus-visible { outline: 3px solid #8DBBFF; outline-offset: 2px; }
.co-mesa .co-aviso { max-width: 820px; margin: 0 auto 12px; }
.co-estante { max-width: 820px; margin: 18px auto 0; background: #151C28; border: 1px solid #2B3543; border-radius: 8px; padding: 16px 18px; color: #D5DDE6; }
.co-estante .ag-eyebrow { color: #AEB9C6; }
.co-estante .ag-h3 { color: #EEF3F8; }
.co-estante .ag-note, .co-estante .co-firma-archivos span { color: #AEB9C6; }
.co-estante .ag-btn.ghost { color: #EEF3F8; border-color: #5A6A80; }
.co-estante .co-aviso { color: #111827; }
@media (min-width: 1200px) {
  .co-firma-app { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); align-items: start; }
  /* La cabecera de la web es fija y mide unos 80 px: la mesa y los pasos se quedan debajo de ella. */
  .co-firma-app > .co-mesa { position: sticky; top: 92px; max-height: calc(100vh - 108px); overflow-y: auto; }
  .co-firma-app .co-firma-pasos { top: 80px; }
}
@media (max-width: 1199px) {
  .co-firma-vistas { display: flex; gap: 6px; position: sticky; top: 0; z-index: 6; background: var(--paper); padding: 8px 0; border-bottom: 1px solid var(--line); }
  .co-firma-vistas button { flex: 1 1 0; font: 600 14px/1 "IBM Plex Sans", system-ui, sans-serif; min-height: 44px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--paper-2); color: var(--ink); cursor: pointer; }
  .co-firma-vistas button[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: #fff; }
  .co-firma-app[data-vista="datos"] > .co-mesa, .co-firma-app[data-vista="resultado"] > .co-firma-consola, .co-firma-app[data-vista="documentos"] > .co-firma-consola { display: none; }
  .co-firma-app[data-vista="resultado"] .co-estante, .co-firma-app[data-vista="documentos"] .co-folios-tabs, .co-firma-app[data-vista="documentos"] #paso-resultado { display: none; }
  .co-firma-app .co-firma-pasos { position: static; }
}
@media (max-width: 980px) {
  .co-firma-hero-g, .co-banco { grid-template-columns: minmax(0, 1fr); }
  .co-firma-hero-t { position: static; padding-top: 0; }
}
@media (max-width: 640px) {
  .co-mesa { padding: 12px 8px 16px; border-radius: 8px; }
  .co-folio { aspect-ratio: auto; font-size: 15px; padding: 16px 14px 12px; }
  .co-firma-doc { overflow-x: auto; }
  .co-firma-doc .cajetin, .co-firma-doc .cajetin tbody, .co-firma-doc .cajetin tr, .co-firma-doc .cajetin td { display: block; }
  .co-firma-doc .cajetin td { border-right: 0; border-bottom: 1px solid var(--tinta); }
  .co-firma-doc .cajetin td:last-child { border-bottom: 0; }
  .co-firma-doc .cifras, .co-firma-doc .cifras tbody, .co-firma-doc .cifras tr, .co-firma-doc .cifras td { display: block; width: auto !important; }
  .co-firma-doc .cifras td { border-right: 0; border-bottom: 1px solid var(--filete); }
  .co-firma-doc .cifras td:last-child { border-bottom: 0; }
  .co-firma-doc .cifras .v { font-size: 26px; }
  .co-firma-doc .puente table, .co-firma-doc .puente tbody { display: block; }
  .co-firma-doc .puente tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 0; border-bottom: 1px solid var(--filete); }
  .co-firma-doc .puente tr:last-child { border-bottom: 0; }
  .co-firma-doc .puente th, .co-firma-doc .puente td { display: block; width: auto !important; padding: 0; }
  .co-firma-doc .puente td.v { grid-column: 2; grid-row: 1; }
  .co-firma-doc .puente td.b, .co-firma-doc .puente td.d { grid-column: 1 / -1; padding-left: 0; }
  .co-firma-doc .puertas, .co-firma-doc .puertas tbody { display: block; }
  .co-firma-doc .puertas tr { display: grid; grid-template-columns: 1fr 1fr; }
  .co-firma-doc .puertas td { display: block; width: auto !important; border: 1px solid #E3C98F; margin: 0 -1px -1px 0; }
  .co-firma-doc .rango .cifras tr { display: grid; grid-template-columns: 1fr 1fr; }
  .co-firma-doc .rango .cifras td { border-bottom: 1px solid var(--filete); }
  .co-firma-doc .datos th, .co-firma-doc .datos td { padding: 6px 7px; font-size: 13.5px; }
  .co-firma-doc .datos .n { white-space: normal; }
  .co-firma-doc .campos th { width: 38%; }
  .co-firma-horas { grid-template-columns: 1fr; }
  .co-consola { padding: 16px 14px; }
  .co-hilo li + li::before { width: 12px; margin: 0 6px; }
}
@media (max-width: 400px) {
  .co-firma-doc .puertas tr { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .co-firma-doc .puente .barra { transition: none; }
}
@media print {
  .co-mesa { background: none; border: 0; padding: 0; color: #111827; }
  .co-mesa-cab, .co-mesa-pie, .co-mesa-aviso, .co-folios-tabs, .co-estante, .co-firma-vistas, .co-consola, .co-muro { display: none !important; }
  .co-folio { box-shadow: none; border: 0; max-width: none; aspect-ratio: auto; break-after: page; }
  .co-firma-doc table, .co-firma-doc .estado, .co-firma-doc .puente, .co-firma-doc .accion { break-inside: avoid; }
}

/* ==========================================================================
   Encargo V10 (17-nov-2026): cuatro caminos en la portada, el recorrido de tres pruebas,
   el Pack Operativo de las hojas y la edición de muestra de «El viernes».
   ========================================================================== */
.co-puertas-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.co-puertas-pie { margin: 16px 0 0; }
.co-demo .co-firma-hero-t { position: static; padding-top: 0; align-self: center; }
.co-autor { max-width: 720px; }
.co-recorrido { background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: clamp(18px, 3vw, 30px); }
.co-recorrido > .ag-h2 { margin-top: 6px; }
.co-recorrido-estado { margin: 0 0 4px; font: 600 12.5px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--green); min-height: 1.3em; }
.co-recorrido-pasos { list-style: none; margin: 10px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.co-recorrido-paso { display: grid; gap: 6px; align-content: start; background: var(--paper); border: 1px solid var(--line); border-top: 3px solid var(--line-2); border-radius: var(--r); padding: 16px 18px 18px; min-width: 0; }
.co-recorrido-paso.actual { border-top-color: var(--green); }
.co-recorrido-paso.hecho { border-top-color: var(--green); background: #EEF1EC; }
.co-recorrido-paso .n { font: 600 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .1em; color: var(--green); }
.co-recorrido-paso b { font-size: 18px; line-height: 1.25; }
.co-recorrido-paso .t { font-size: 13.5px; color: var(--muted); }
.co-recorrido-paso p { margin: 0; font-size: 15px; color: var(--muted); }
.co-recorrido-paso .r { color: var(--ink); font-weight: 600; }
.co-recorrido-paso .ag-btn { justify-self: start; margin-top: 6px; }
.co-recorrido-paso .hecho { font: 600 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.co-recorrido-paso [hidden], .co-recorrido-fin[hidden] { display: none !important; }
.co-recorrido-fin { margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--line-2); }
.co-recorrido-hoja { margin: 12px 0 16px; padding-left: 22px; display: grid; gap: 12px; }
.co-recorrido-hoja li b { display: block; }
.co-recorrido-hoja li span { display: block; font-size: 15px; color: var(--muted); }
.co-recorrido-hoja li .r { color: var(--ink); }
.co-recorrido-pie { margin: 14px 0 0; min-height: 1px; }
.co-recorrido-pie button { background: none; border: 0; padding: 0; font: inherit; color: var(--green); text-decoration: underline; cursor: pointer; }
.co-recorrido-barra { display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; max-width: 1160px; margin: 14px auto 0; padding: 10px 16px; background: #EEF1EC; border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: var(--r); font-size: 15px; width: calc(100% - 32px); box-sizing: border-box; }
.co-recorrido-barra .n { font: 600 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--green); }
.co-recorrido-barra .co-e { margin-left: auto; font-size: 14px; color: var(--green); }
.co-pack { display: grid; grid-template-columns: minmax(0, 7fr) minmax(0, 5fr); gap: clamp(20px, 3vw, 44px); align-items: start; margin-top: 20px; }
.co-pack-lista { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 0; border-top: 1px solid var(--line-2); }
.co-pack-lista li { display: grid; grid-template-columns: 52px minmax(0, 1fr); gap: 2px 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.co-pack-lista .f { grid-row: span 3; align-self: start; font: 600 11.5px/1 "IBM Plex Mono", monospace; letter-spacing: .06em; color: var(--green); border: 1px solid var(--green); border-radius: 4px; padding: 6px 0; text-align: center; }
.co-pack-lista span:not(.f) { font-size: 14.5px; color: var(--muted); grid-column: 2; }
.co-pack-lista b, .co-pack-lista a { grid-column: 2; }
.co-pack-form { max-width: none; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; display: grid; gap: 14px; }
.co-pack-form .ag-h3 { margin: 0; }
.co-pack-form .co-casilla { display: flex; gap: 10px; align-items: flex-start; }
.co-pack-form.enviado .co-campo, .co-pack-form.enviado .co-casilla, .co-pack-form.enviado button, .co-pack-form.enviado .co-legal { display: none; }
.co-pack-estado { margin: 0; font-weight: 600; min-height: 1.4em; }
.co-edicion { max-width: 720px; background: var(--paper-2); border: 1px solid var(--line); border-left: 4px solid var(--green); border-radius: 0 var(--r) var(--r) 0; padding: 22px 26px 12px; margin-top: 16px; }
.co-edicion .ag-h3 { margin-top: 0; }
.co-seguir { border-left: 4px solid var(--green); background: #EEF1EC; padding: 16px 20px 8px; }
.co-seguir h3 { margin-top: 0; }
.co-seguir-acc { display: flex; flex-wrap: wrap; gap: 10px; }
@media (max-width: 980px) {
  .co-puertas-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .co-recorrido-pasos, .co-pack { grid-template-columns: minmax(0, 1fr); }
  .co-recorrido-barra .co-e { margin-left: 0; }
}
@media (max-width: 560px) {
  .co-puertas-4 { grid-template-columns: minmax(0, 1fr); }
}
@media print {
  html.co-imprime-recorrido body * { visibility: hidden; }
  html.co-imprime-recorrido #co-recorrido-fin, html.co-imprime-recorrido #co-recorrido-fin * { visibility: visible; }
  html.co-imprime-recorrido #co-recorrido-fin { position: absolute; left: 0; top: 0; width: 100%; border: 0; margin: 0; padding: 0; }
  html.co-imprime-recorrido #co-recorrido-fin .ag-actions { display: none; }
}

/* ==========================================================================
   Web 10 (17-11-2026): portada para quien firma, el sello como objeto de la web,
   autor con foto y cifras, y arreglos de móvil.
   ========================================================================== */

/* El sello del dictamen: doble filete, mono, ligeramente girado, como el del PDF. */
.co-sello-dictamen {
  display: inline-block; font: 600 clamp(13px, 1.5vw, 15px)/1.15 "IBM Plex Mono", monospace; letter-spacing: .08em;
  padding: 8px 12px; border: 2px solid currentColor; outline: 1px solid currentColor; outline-offset: 2px; border-radius: 3px;
  transform: rotate(-2deg); background: rgba(255, 255, 255, .55); text-transform: uppercase;
}
.co-sello-dictamen.t-ambar { color: #92400E; }
.co-sello-dictamen.t-verde { color: #065F46; }
.co-sello-dictamen.t-gris { color: #4B5563; }
.co-sello-nuevo { animation: co-sellar .32s cubic-bezier(.2, .9, .3, 1.25) both; }
@keyframes co-sellar { from { transform: rotate(-9deg) scale(1.35); opacity: 0; } to { transform: rotate(-2deg) scale(1); opacity: 1; } }
@media (prefers-reduced-motion: reduce) { .co-sello-nuevo { animation: none; } }

/* Primera pantalla: tesis a la izquierda, el caso a la derecha. */
.co-veredicto-g { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: clamp(28px, 5vw, 64px); align-items: start; }
.co-veredicto-t .ag-h1 { max-width: 13ch; }
.co-veredicto {
  display: grid; gap: 14px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r, 10px);
  padding: clamp(18px, 2.4vw, 26px); box-shadow: 0 18px 40px -26px rgba(21, 24, 27, .45);
}
.co-veredicto-cab { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; margin: 0; font: 500 12px/1.3 "IBM Plex Mono", monospace; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.co-veredicto-cab span:first-child { color: var(--green); font-weight: 600; }
.co-veredicto textarea { min-height: 84px; }
.co-veredicto-n { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.co-veredicto-n .co-campo { font-size: 14px; }
.co-veredicto .ag-btn { justify-content: center; width: 100%; }
.co-veredicto-alt { margin: -4px 0 0; text-align: center; font-size: 14px; }
.co-veredicto-alt .co-e { background: none; border: 0; padding: 0; cursor: pointer; font: inherit; color: var(--green); text-decoration: underline; text-underline-offset: 3px; }
.co-veredicto-out { border-top: 1px dashed var(--line); padding-top: 16px; display: grid; gap: 10px; justify-items: start; }
.co-veredicto-out[hidden], .co-veredicto-folio[hidden] { display: none; }
.co-veredicto-out p { margin: 0; font-size: 15px; }
.co-veredicto-folio .ag-actions { margin-top: 18px; }
@media (max-width: 940px) {
  .co-veredicto-g { grid-template-columns: 1fr; }
  .co-veredicto-t .ag-h1 { max-width: none; }
}
@media (max-width: 520px) { .co-veredicto-n { grid-template-columns: 1fr; } }

/* Los cuatro sellos posibles. */
.co-sellos { list-style: none; margin: 22px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.co-sellos li { display: grid; gap: 12px; align-content: start; padding: 20px 18px; background: var(--paper-2); border: 1px solid var(--line); border-radius: var(--r, 10px); }
.co-sellos li p { margin: 0; font-size: 15px; color: var(--muted); }
.co-sellos .co-sello-dictamen { justify-self: start; }
@media (max-width: 1000px) { .co-sellos { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .co-sellos { grid-template-columns: 1fr; } }

/* Autor: foto y cifras reales. */
.co-autor-g { display: grid; grid-template-columns: minmax(0, 300px) minmax(0, 1fr); gap: clamp(24px, 5vw, 60px); align-items: center; }
.co-foto-autor { margin: 0; }
.co-foto-autor img { display: block; width: 100%; height: auto; border-radius: 6px; filter: grayscale(.15); }
.co-foto-autor-hero { justify-self: center; width: min(320px, 100%); }
.co-cifras-autor { list-style: none; margin: 18px 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.co-cifras-autor li { display: grid; gap: 6px; border-top: 2px solid var(--green); padding-top: 10px; }
.co-cifras-autor b { font: 600 clamp(28px, 3.4vw, 38px)/1 "Bricolage Grotesque", system-ui, sans-serif; color: var(--green); letter-spacing: -.01em; }
.co-cifras-autor span { font-size: 14.5px; color: var(--muted); }
@media (max-width: 820px) {
  .co-autor-g { grid-template-columns: 1fr; }
  .co-autor-g .co-foto-autor { width: min(220px, 60%); }
  .co-cifras-autor { grid-template-columns: 1fr; }
}

/* Libro con su portada, y artículos en tres columnas. */
.co-libro-g { display: grid; grid-template-columns: minmax(0, 220px) minmax(0, 1fr) minmax(0, 1fr); gap: clamp(24px, 4vw, 52px); align-items: start; }
.co-libro-g .co-portada-libro { width: 100%; }
@media (max-width: 940px) { .co-libro-g { grid-template-columns: 1fr; } .co-libro-g .co-portada-libro { width: min(200px, 56%); justify-self: start; } }
.co-puertas-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.co-articulo .f { font-size: 19px; }
@media (max-width: 820px) { .co-puertas-3 { grid-template-columns: 1fr; } }
.co-cierre { text-align: left; }

/* Móvil: el botón del asistente pasa a ser un círculo y deja de tapar el texto (auditoría 17-11). */
@media (max-width: 640px) {
  .co-cb__launcher { width: 48px; height: 48px; padding: 0; justify-content: center; gap: 0; }
  .co-cb__launcher > span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
  .co-cb__launcher::after { content: "?"; font: 700 21px/1 "IBM Plex Sans", system-ui, sans-serif; }
  .ag-site { padding-bottom: 72px; }
}

/* ==========================================================================
   V12.2 · Petición y entrega de recursos, adelanto del libro, hojas, sellos
   ========================================================================== */

/* El formulario único. Es una ficha clara sobre cualquier fondo, también dentro de un bloque oscuro. */
.co-entrega-caja { display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: clamp(18px, 3vw, 40px); align-items: start; background: var(--paper, #F1F0EA); color: var(--ink, #15181B); border: 1px solid var(--line, rgba(21, 24, 27, .13)); border-radius: var(--r, 14px); padding: clamp(18px, 2.6vw, 30px); margin-top: 22px; text-align: left; }
.co-entrega-caja.una { grid-template-columns: minmax(0, 1fr); }
.co-entrega-caja .ag-eyebrow, .news .co-entrega-caja .ag-eyebrow { color: var(--green, #1F4D3A); margin: 0 0 8px; }
.news .co-entrega-caja .ag-eyebrow::before { background: var(--green, #1F4D3A); }
.co-entrega-promesa .ag-h3 { margin: 0 0 10px; color: var(--ink, #15181B); }
.co-entrega-promesa .ag-list { margin: 0; padding-left: 18px; display: grid; gap: 7px; font-size: 15.5px; color: var(--ink, #15181B); }
.co-entrega-promesa .ag-muted { margin: 12px 0 0; font-size: 14.5px; color: var(--muted, rgba(21, 24, 27, .62)); }
form.co-entrega { display: grid; gap: 14px; min-width: 0; }
.co-entrega-campos { display: grid; gap: 12px; }
.co-entrega .co-campo { color: var(--ink, #15181B); }
.co-entrega input[type="email"], .co-entrega input[type="text"], .co-entrega select {
  width: 100%; min-height: 46px; padding: 10px 12px; font: inherit; font-weight: 400; color: var(--ink, #15181B);
  background: #fff; border: 1px solid rgba(21, 24, 27, .32); border-radius: 8px; }
/* El foco se ve siempre, también al llegar con el teclado: el tema lo quitaba en los campos de correo. */
.co-entrega-caja form.co-entrega input:focus, .co-entrega-caja form.co-entrega select:focus,
.co-entrega-caja form.co-entrega button:focus-visible { outline: 3px solid var(--green, #1F4D3A) !important; outline-offset: 2px; }
.co-entrega input[aria-invalid="true"] { border-color: #9B3B2E; box-shadow: 0 0 0 1px #9B3B2E; }
.co-entrega .co-casilla { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; color: var(--ink, #15181B); }
.co-entrega .co-casilla input { margin-top: 4px; flex: none; width: 18px; height: 18px; }
.co-entrega-intencion { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 18px; font-size: 15px; }
.co-entrega-intencion legend { padding: 0; margin: 0 0 6px; font-weight: 600; width: 100%; }
.co-entrega-intencion label { display: inline-flex; gap: 7px; align-items: center; min-height: 32px; }
.co-entrega-sesion { background: #fff; border: 1px solid var(--line, rgba(21, 24, 27, .13)); border-radius: 8px; padding: 12px 14px; }
.co-entrega-sesion p { margin: 0 0 4px; }
.co-entrega .ag-actions { margin: 0; }
.co-entrega .ag-actions .ag-btn { width: 100%; justify-content: center; text-align: center; white-space: normal; }
.co-entrega-sub { margin: -4px 0 0; font-size: 14px; color: var(--muted, rgba(21, 24, 27, .62)); }
.co-entrega-msg { margin: 0; font-weight: 600; }
.co-entrega-msg:empty { display: none; }
.co-entrega-msg.es-error { color: #9B3B2E; }
.co-entrega .co-legal { margin: 0; font-size: 13px; line-height: 1.5; color: var(--muted, rgba(21, 24, 27, .62)); }
.co-entrega .co-legal a { color: var(--green, #1F4D3A); }
.co-trampa { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }
.co-enlace { background: none; border: 0; padding: 0; font: inherit; color: var(--green, #1F4D3A); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 32px; }
.co-enlace:focus-visible { outline: 3px solid var(--green, #1F4D3A); outline-offset: 3px; border-radius: 4px; }
.co-entrega-hecho { display: grid; gap: 8px; align-content: start; }
.co-entrega-hecho[hidden], form.co-entrega[hidden], .co-entrega-sesion[hidden], .co-entrega-campos[hidden], .co-entrega .co-campo[hidden] { display: none; }
.co-entrega-hecho p { margin: 0; }
.co-entrega-hecho:focus { outline: none; }
.co-entrega-ok { font: 600 12px/1 "IBM Plex Mono", ui-monospace, monospace; letter-spacing: .14em; text-transform: uppercase; color: #065F46; border: 1.5px solid #065F46; border-radius: 4px; padding: 7px 10px; justify-self: start; }
.news .co-entrega-caja a.co-e { color: var(--green, #1F4D3A); }
@media (max-width: 860px) { .co-entrega-caja { grid-template-columns: minmax(0, 1fr); } }

/* /recibir/ */
.co-recibir-sigue { margin: 6px 0 0; display: flex; flex-wrap: wrap; gap: 6px 18px; align-items: baseline; }
.co-renovar { display: grid; gap: 10px; margin-top: 18px; max-width: 560px; }
.co-renovar p { margin: 0; }
.co-pieza h2 { margin: 2px 0 0; font-size: 19px; }

/* /libro/ · el adelanto */
.co-libro-gancho { max-width: 780px; }
.co-libro-cita { margin: 0; padding: 4px 0 4px 22px; border-left: 3px solid var(--green, #1F4D3A); font-family: "Newsreader", Georgia, serif; font-size: clamp(20px, 2.3vw, 27px); line-height: 1.38; color: var(--ink, #15181B); }
.co-libro-cita p { margin: 0 0 12px; }
.co-libro-cita p:last-child { margin-bottom: 0; }
.co-libro-nota { margin: 16px 0 0; font-size: 14.5px; color: var(--muted, rgba(21, 24, 27, .62)); max-width: 68ch; }
.co-libro-apartados { margin: 18px 0 0; padding: 0; list-style: none; counter-reset: ap; display: grid; gap: 0; border-top: 1px solid var(--line-2, rgba(21, 24, 27, .22)); max-width: 860px; }
.co-libro-apartados li { counter-increment: ap; display: block; padding: 14px 0 14px 46px; border-bottom: 1px solid var(--line, rgba(21, 24, 27, .13)); position: relative; font-size: 16.5px; line-height: 1.5; }
.co-libro-apartados li::before { content: counter(ap, decimal-leading-zero); position: absolute; left: 0; top: 16px; font: 600 12.5px/1 "IBM Plex Mono", ui-monospace, monospace; color: var(--green, #1F4D3A); letter-spacing: .06em; }
.co-libro-despues { display: block; margin-top: 4px; font-size: 14px; color: var(--muted, rgba(21, 24, 27, .62)); }
.co-libro-abierto { max-width: 68ch; }
.co-libro-abierto p { font-family: "Newsreader", Georgia, serif; font-size: 19px; line-height: 1.62; margin: 0 0 14px; }
.co-libro-abierto .ag-eyebrow { font-family: inherit; }
.co-libro-abierto p.ag-eyebrow { font: inherit; font-size: 12px; }
.co-libro-sigue { font-family: "IBM Plex Sans", sans-serif !important; font-size: 15.5px !important; color: var(--muted, rgba(21, 24, 27, .62)); border-top: 1px solid var(--line, rgba(21, 24, 27, .13)); padding-top: 14px; margin-top: 22px !important; }
.co-libro-pedir .ag-h2, .co-hojas-pedir .ag-h2 { max-width: 22ch; }

/* /hojas/ */
.co-hoja-mini { width: 96px; height: auto; border: 1px solid var(--line, rgba(21, 24, 27, .13)); border-radius: 4px; background: #fff; }

/* El veredicto: su primera página en PDF */
.co-veredicto-pdf { margin-top: 8px; }
.co-veredicto-pdf[hidden] { display: none; }

/* El sello, como cierre del resultado de una herramienta (V12.2 §8.1) */
.co-resultado-sello { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin: 18px 0 0; padding-top: 16px; border-top: 1px solid var(--line, rgba(21, 24, 27, .13)); }
.co-resultado-sello p { margin: 0; font-size: 15px; color: var(--muted, rgba(21, 24, 27, .62)); flex: 1 1 260px; }

/* Lo que sigue en el informe completo (resultado acotado, V12.2 §2.1) */
.co-resto { margin-top: 22px; padding: 18px 20px; border: 1px dashed var(--line-2, rgba(21, 24, 27, .28)); border-radius: 12px; background: var(--paper-2, #E9E7DE); }
.co-resto .ag-eyebrow { margin: 0 0 8px; }
.co-resto ul { margin: 0; padding-left: 18px; display: grid; gap: 5px; font-size: 15.5px; }
.co-resto p { margin: 10px 0 0; font-size: 15px; }

/* V12.2 §8.4 · Contraste AA. Los dos grises de texto del sistema se quedaban cortos sobre el papel
   (4,46:1 y 2,62:1; hacen falta 4,5). Se oscurecen lo justo; no cambia nada más de la paleta. */
html body .ag-site { --muted: rgba(21, 24, 27, .68); --faint: rgba(21, 24, 27, .64); }

/* Movimiento (17-nov-2026). Solo se mueve si la persona no ha pedido lo contrario. */
.co-por-sellar .co-sello-dictamen { opacity: 0; }
.co-por-sellar.co-sellados .co-sello-dictamen { animation: co-sellar .36s cubic-bezier(.2, .9, .3, 1.25) both; }
.co-por-sellar.co-sellados li:nth-child(2) .co-sello-dictamen { animation-delay: .18s; }
.co-por-sellar.co-sellados li:nth-child(3) .co-sello-dictamen { animation-delay: .36s; }
.co-por-sellar.co-sellados li:nth-child(4) .co-sello-dictamen { animation-delay: .54s; }
.co-cifras-autor b { font-variant-numeric: tabular-nums; }
/* «Tú sí.», subrayado como una firma: la raya se traza al cargar. */
.ag-h1 .co-tu-si { background: linear-gradient(currentColor, currentColor) no-repeat 0 97% / 100% 3px; padding-bottom: 4px; }
@media (prefers-reduced-motion: no-preference) {
  .ag-h1 .co-tu-si { background-size: 0 3px; animation: co-subraya .75s .45s cubic-bezier(.3, .7, .2, 1) forwards; }
  .co-sellos li { transition: transform .2s ease, border-color .2s ease; }
  .co-sellos li:hover { transform: translateY(-3px); border-color: var(--green, #1F4D3A); }
}
@keyframes co-subraya { to { background-size: 100% 3px; } }
.co-sellos-producto { margin: 14px 0 0; padding: 14px 18px; border-left: 3px solid var(--green, #1F4D3A); background: var(--paper-2, #FBFAF4); font-size: 16px; max-width: 78ch; }
/* Con siete entradas el menú necesita algo menos de aire, y la acción principal no se parte en dos
   líneas. Donde no cabe todo, cede lo que ya está en el pie o en la propia página. */
@media (min-width: 941px) { .ag-nav .ag-menu a { font-size: 14px; padding-left: 9px; padding-right: 9px; } .ag-nav-cta .ag-btn { white-space: nowrap; } }
@media (min-width: 941px) and (max-width: 1100px) { .ag-nav-cta .ag-btn { display: none; } }
@media (min-width: 941px) and (max-width: 1000px) { .ag-nav .ag-menu a { font-size: 13.5px; padding-left: 6px; padding-right: 6px; } }
@media (min-width: 1101px) and (max-width: 1240px) {
  .ag-nav .ag-menu a[href="/sobre-alfonso/"] { display: none; }
  .ag-nav-cta .ag-btn { padding: 12px 18px; font-size: 14px; }
  .ag-nav-cta .ag-btn .a { display: none; }
}

/* Páginas legales de Criterio de Firma (17-nov-2026): texto de lectura, a 800 px. */
.co-legal-cab .ag-wrap, .co-legal .ag-wrap { max-width: 800px; }
html body .ag-site .ag-hero.co-legal-cab { padding-bottom: 0; min-height: 0; }
html body .ag-site .ag-hero.co-legal-cab .ag-h2 { margin-bottom: 0; }
html body .ag-site .ag-section.co-legal { padding-top: 22px; }
.co-legal h2 { font: 700 22px/1.25 "Bricolage Grotesque", sans-serif; margin: 34px 0 10px; }
.co-legal p, .co-legal li { font-size: 16px; line-height: 1.65; max-width: none; }
.co-legal p { margin: 0 0 12px; }
.co-legal ul { margin: 0 0 12px; padding-left: 20px; }
.co-legal a { color: var(--green, #1F4D3A); }
.co-legal .co-tabla { min-width: 640px; font-size: 14px; line-height: 1.5; }
.co-legal .co-tabla th { font-weight: 700; }
.co-legal-caja { font-size: 14px; margin: 6px 0 14px; }

/* ==========================================================================================
   V13 (17-nov-2026) · el producto, con el peso del libro. Tras la compra de prueba de Alfonso:
   «en la web no hay acceso directo y es igual de importante que el libro».
   ========================================================================================== */

/* Cabecera: el producto es un botón, el último del menú, pegado a la acción del libro. */
.ag-nav .ag-menu a.co-menu-producto {
  margin-left: 6px; padding: 8px 15px; border: 1.5px solid var(--green, #1F4D3A); border-radius: 999px;
  color: var(--green, #1F4D3A); font-weight: 600; line-height: 1.2;
}
.ag-nav .ag-menu a.co-menu-producto::after { display: none; }
.ag-nav .ag-menu a.co-menu-producto:hover,
.ag-nav .ag-menu a.co-menu-producto:focus-visible,
.ag-nav .ag-menu a.co-menu-producto.active { background: var(--green, #1F4D3A); color: #fff; }
/* Con el botón del producto, la fila va justa: los enlaces ceden aire y la flecha del libro se retira. */
@media (min-width: 941px) {
  .ag-nav .ag-menu a { padding-left: 7px; padding-right: 7px; }
  .ag-nav .ag-menu a.co-menu-producto { padding-left: 14px; padding-right: 14px; }
  .ag-nav-cta .ag-btn { padding: 12px 18px; font-size: 14px; }
  .ag-nav-cta .ag-btn .a { display: none; }
}
@media (min-width: 941px) and (max-width: 1240px) { .ag-nav .ag-menu a[href="/sobre-alfonso/"] { display: none; } }
@media (max-width: 940px) {
  .ag-nav .ag-menu a.co-menu-producto { margin: 10px 0 0; align-self: flex-start; display: inline-block; padding: 11px 18px; }
}

/* Portada: el bloque del producto, hermano del bloque del libro. */
.co-producto { background: var(--paper-2, #FBFAF4); border-top: 1px solid var(--line, #E2DFD6); border-bottom: 1px solid var(--line, #E2DFD6); }
.co-producto-g { grid-template-columns: minmax(0, 250px) minmax(0, 1fr) minmax(0, 1fr); }
.co-folio-img { margin: 0; }
.co-folio-img a { display: block; }
.co-folio-img img {
  display: block; width: 100%; height: auto; background: #fff; border: 1px solid var(--line, #E2DFD6); border-radius: 4px;
  box-shadow: 0 22px 44px -26px rgba(21, 24, 27, .5); transform: rotate(-1.4deg); transition: transform .25s ease, box-shadow .25s ease;
}
.co-folio-img a:hover img, .co-folio-img a:focus-visible img { transform: rotate(0) translateY(-4px); box-shadow: 0 28px 50px -26px rgba(21, 24, 27, .55); }
.co-producto .co-firma-precio { margin-top: 6px; }
.co-producto-sellos { margin-top: clamp(34px, 5vw, 60px); padding-top: clamp(24px, 3vw, 36px); border-top: 1px solid var(--line, #E2DFD6); }
.co-producto-sellos .ag-h3 { margin: 0; }
.co-producto-sellos .co-sellos { margin-bottom: 0; }
.co-producto .co-sellos li { background: #fff; }
@media (max-width: 940px) {
  .co-producto-g { grid-template-columns: 1fr; }
  .co-folio-img { width: min(230px, 62%); }
}
@media (prefers-reduced-motion: reduce) { .co-folio-img img { transition: none; transform: none; } }
@media print { .co-folio-img { display: none; } }

/* Cierre: el producto y el libro, uno al lado del otro y del mismo tamaño. */
.co-cierre-prod { text-align: left; }
.co-cierre-doble { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: clamp(18px, 2.4vw, 28px); align-items: stretch; }
.co-cierre-doble > .news { margin: 0; display: flex; flex-direction: column; align-items: flex-start; max-width: none; }
.co-cierre-doble > .news .ag-h2 { font-size: clamp(24px, 2.4vw, 32px); line-height: 1.15; }
.co-cierre-doble > .news .ag-lead { font-size: 17px; }
.co-cierre-doble > .news .ag-actions { margin-top: auto; padding-top: 10px; }
.co-cierre-doble > .news .ag-note { margin: 12px 0 0; }
@media (max-width: 940px) { .co-cierre-doble { grid-template-columns: 1fr; } }

/* La caja, el carrito y la página de «gracias»: dentro del marco del sitio y con sus colores. */
.co-caja .woocommerce { max-width: 1080px; }
.co-caja .woocommerce-info, .co-caja .woocommerce-message, .co-caja .woocommerce-error {
  border-top: 0; border-left: 3px solid var(--green, #1F4D3A); background: var(--paper-2, #FBFAF4); border-radius: 0 8px 8px 0;
}
.co-caja .woocommerce-error { border-left-color: #A33A2B; }
.co-caja .woocommerce-info::before, .co-caja .woocommerce-message::before { color: var(--green, #1F4D3A); }
.co-caja .woocommerce a.button, .co-caja .woocommerce button.button, .co-caja .woocommerce input.button {
  background: var(--green, #1F4D3A); color: #fff; border: 0; border-radius: 999px; font-weight: 600;
}
.co-caja .woocommerce a.button:hover, .co-caja .woocommerce button.button:hover { background: #16382A; color: #fff; }
.co-caja .woocommerce-order > .woocommerce-notice { font-size: 19px; margin: 0 0 18px; }
.co-caja ul.woocommerce-order-overview { padding-left: 0; margin-left: 0; }
.co-caja .co-acceso-compra {
  margin: 28px 0 22px; padding: 24px 26px; background: var(--paper-2, #FBFAF4); border: 1px solid var(--line, #E2DFD6);
  border-left: 3px solid var(--green, #1F4D3A); border-radius: 0 10px 10px 0;
}
.co-caja .co-acceso-compra h2 { margin: 0 0 8px; font-size: 26px; }
.co-caja .co-acceso-compra p { max-width: 68ch; }
.co-caja .co-acceso-compra p:last-child { margin-bottom: 0; }
.co-caja .co-factura-enlace { margin: 0 0 28px; color: var(--muted, #5B6470); }
.co-caja .co-factura-enlace a { color: var(--green, #1F4D3A); text-decoration: underline; }

/* Acceso de clientes: el formulario de reenvío y, plegado, el código de invitación. */
.co-acceso > * { max-width: 560px; }
.co-acceso .co-form { margin-bottom: 22px; }
.co-acceso .co-acceso-codigo { padding-top: 22px; border-top: 1px solid var(--line, #E2DFD6); }

/* En las páginas de la caja hay una regla antigua (CSS adicional) que pinta de verde todos los
   enlaces con !important: los botones verdes se quedaban sin texto, también el de la cabecera. */
html body.woocommerce-checkout .ag-site a.ag-btn:not(.ghost),
html body.woocommerce-cart .ag-site a.ag-btn:not(.ghost),
html body.woocommerce-checkout .co-caja .woocommerce a.button,
html body.woocommerce-cart .co-caja .woocommerce a.button { color: #fff !important; }
html body.woocommerce-checkout .ag-site .ag-menu a.co-menu-producto:hover,
html body.woocommerce-checkout .ag-site .ag-menu a.co-menu-producto:focus-visible { color: #fff !important; }
html body.woocommerce-checkout .ag-site .ag-menu a:not(.co-menu-producto),
html body.woocommerce-checkout .ag-site .ag-footer a { color: inherit !important; }

/* La cabecera de la caja va alineada con su contenido, sin el alto de una portada. */
html body .ag-site .ag-hero.co-caja-cab { padding-bottom: 0; min-height: 0; }
html body .ag-site .ag-hero.co-caja-cab .ag-h2 { margin-bottom: 0; }
html body .ag-site .ag-section.co-caja { padding-top: 26px; }
.co-cierre-doble > .news .ag-note { color: rgba(241, 240, 234, .72); }
.co-producto .ag-h2 { font-size: clamp(30px, 3.1vw, 42px); }

/* «Mucho más a la vista» (17-nov-2026, noche). La franja de arriba, en toda la web. */
.co-franja { margin: 0; background: var(--ink, #15181B); text-align: center; font: 400 14px/1.4 "IBM Plex Sans", system-ui, sans-serif; }
.co-franja a { display: block; padding: 9px 16px; color: #F1F0EA; text-decoration: none; }
.co-franja a b { color: #fff; font-weight: 600; }
.co-franja a .a { display: inline-block; transition: transform .18s ease; }
.co-franja a:hover .a, .co-franja a:focus-visible .a { transform: translateX(3px); }
.co-franja a:focus-visible { outline: 2px solid #fff; outline-offset: -4px; }
html body .ag-site .co-franja a { color: #F1F0EA !important; }
@media (max-width: 560px) { .co-franja { font-size: 13px; } .co-franja a { padding: 8px 14px; } }
@media (prefers-reduced-motion: reduce) { .co-franja a .a { transition: none; } }

/* El botón del producto en la cabecera, relleno: es lo primero que se ve después de la marca. */
.ag-nav .ag-menu a.co-menu-producto { background: #15181B; border-color: #15181B; color: #fff; opacity: 1; }
.ag-nav .ag-menu a.co-menu-producto:hover,
.ag-nav .ag-menu a.co-menu-producto:focus-visible,
.ag-nav .ag-menu a.co-menu-producto.active { background: var(--green, #1F4D3A); border-color: var(--green, #1F4D3A); color: #fff; }
html body.woocommerce-checkout .ag-site .ag-menu a.co-menu-producto,
html body.woocommerce-cart .ag-site .ag-menu a.co-menu-producto { color: #fff !important; }

/* Página del producto con la venta abierta: el precio en la primera pantalla. */
.co-firma-precio-hero { margin: 18px 0 4px; }

/* V14 · Captación (especificación V2): el resultado calculado que llega por correo. */
.co-cerrado { padding: 22px 24px; border: 1px solid var(--line-2, rgba(21, 24, 27, .28)); border-radius: 14px; background: #FBFAF6; }
.co-cerrado .co-titular { margin: 4px 0 12px; }
.co-cerrado .co-resultado-sello { margin: 0 0 12px; }
.co-folio-cerrado { color: #15181B; padding: 28px 26px; border: 1px dashed var(--line-2, rgba(21, 24, 27, .28)); border-radius: 6px; background: #F3F1EC; }
.co-folio-cerrado p { max-width: 52ch; margin: 0 0 10px; color: #15181B; }
.co-folio-cerrado .co-sello-dictamen { display: inline-block; }
.co-dos-caminos { margin: 18px 0 10px; }
@media (max-width: 560px) { .co-dos-caminos .ag-btn { width: 100%; justify-content: center; } }

/* V14 · /editorial/, /contacto/, /in/ e /ig/ */
.co-editorial-hero { align-items: center; }
.co-editorial-portada { margin: 0; justify-self: center; }
.co-editorial-portada img { width: min(300px, 70vw); height: auto; box-shadow: 0 18px 40px rgba(21, 24, 27, .22); border-radius: 3px; }
.co-texto-ancho { max-width: 760px; }
.co-logline { font: 400 clamp(20px, 2.4vw, 26px)/1.4 "Newsreader", Georgia, serif; margin: 0 0 32px; padding-left: 18px; border-left: 3px solid #C9962B; }
.co-editorial-autor { align-items: start; }
.co-editorial-autor .co-foto-autor { max-width: 340px; }
.co-contacto { display: grid; gap: 12px; max-width: 560px; }
.co-contacto select, .co-contacto textarea, .co-contacto input { width: 100%; }
.co-contacto .co-trampa { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.co-contacto-msg { min-height: 1.4em; margin: 0; }
.co-contacto-msg.co-error { color: #A3361F; }
.co-enlaces-g { display: grid; grid-template-columns: 180px 1fr; gap: 32px; align-items: start; max-width: 760px; }
.co-foto-enlaces { margin: 0; }
.co-foto-enlaces img { width: 100%; height: auto; border-radius: 12px; }
.co-enlaces .ag-h1 { font-size: clamp(28px, 4vw, 40px); }
.co-enlaces-lista { display: grid; gap: 12px; margin: 22px 0; }
.co-enlace-red { display: grid; gap: 2px; padding: 16px 18px; border: 1px solid var(--line-2, rgba(21, 24, 27, .28)); border-radius: 12px; background: #FBFAF6; color: inherit; text-decoration: none; }
.co-enlace-red b { font-size: 17px; }
.co-enlace-red span { color: var(--gris, #5E6661); font-size: 15px; }
.co-enlace-red:hover, .co-enlace-red:focus-visible { border-color: #1F4D3A; }
.co-enlace-red.principal { background: #1F4D3A; border-color: #1F4D3A; color: #fff; }
.co-enlace-red.principal span { color: rgba(255, 255, 255, .85); }
.co-enlaces-pie { font-size: 14px; color: var(--gris, #5E6661); }
@media (max-width: 640px) { .co-enlaces-g { grid-template-columns: 1fr; } .co-foto-enlaces { max-width: 140px; } }

/* V14.4 · saltar al contenido: invisible hasta que recibe el foco del teclado. */
.co-saltar { position: absolute; left: 12px; top: -60px; z-index: 1000; padding: 10px 16px; background: #15181B; color: #fff !important; border-radius: 8px; text-decoration: none; transition: top .15s; }
.co-saltar:focus { top: 12px; outline: 3px solid #C9962B; }

/* Criterio de Firma · informe de calidad del 18-nov: modo rápido, pasos, progreso, duplicar, zip y aceptación. */
.co-firma-modos { display: inline-flex; gap: 4px; padding: 4px; border: 1px solid var(--line-2, rgba(21, 24, 27, .26)); border-radius: 999px; margin: 0 0 12px; background: #FBFAF6; flex-wrap: wrap; }
.co-firma-modos button { border: 0; background: none; padding: 8px 16px; border-radius: 999px; font: 600 14px/1 inherit; color: inherit; cursor: pointer; }
.co-firma-modos button[aria-pressed="true"] { background: #1F4D3A; color: #fff; }
.co-firma-modos button:focus-visible { outline: 3px solid #C9962B; outline-offset: 2px; }
.co-firma-modo-nota { font-size: 14px; color: var(--gris, #5E6661); margin: 0 0 12px; max-width: 60ch; }
.co-firma-app [data-solo-modo] { display: none; }
.co-firma-app[data-modo="rapido"] [data-solo-modo="rapido"], .co-firma-app[data-modo="completo"] [data-solo-modo="completo"] { display: block; }
.co-firma-app[data-modo="completo"] .co-firma-paso-nav[data-solo-modo="completo"] { display: flex; }
/* Lo esencial: solo los seis datos (y las horas probables). */
.co-firma-app[data-modo="rapido"] .co-firma-hecho:not([data-rapido]),
.co-firma-app[data-modo="rapido"] .co-firma-dinero label:not([data-rapido]),
.co-firma-app[data-modo="rapido"] .co-firma-modo,
.co-firma-app[data-modo="rapido"] .co-firma-paso:not([data-con-rapidos]) { display: none; }
.co-firma-app[data-modo="rapido"] #co-firma-tareas th:nth-child(2), .co-firma-app[data-modo="rapido"] #co-firma-tareas td:nth-child(2),
.co-firma-app[data-modo="rapido"] #co-firma-tareas th:nth-child(4), .co-firma-app[data-modo="rapido"] #co-firma-tareas td:nth-child(4) { display: none; }
/* Con tres columnas la tabla cabe en el formulario: sin ancho mínimo y el botón de quitar siempre a la vista. */
.co-firma-app[data-modo="rapido"] #co-firma-tareas { min-width: 0; }
.co-firma-app[data-modo="rapido"] #co-firma-tareas td:first-child { width: auto; }
#co-firma-tareas th:last-child, #co-firma-tareas td:last-child { width: 44px; padding-right: 0; }
/* Completo: un paso cada vez. */
.co-firma-app[data-modo="completo"] .co-firma-paso:not(.activo) { display: none; }
.co-firma-pasos ol { display: flex; flex-wrap: wrap; gap: 6px; list-style: none; padding: 0; margin: 0 0 8px; }
.co-firma-pasos button { border: 1px solid var(--line-2, rgba(21, 24, 27, .26)); background: #FBFAF6; border-radius: 999px; padding: 6px 12px; font: 500 13px/1.2 inherit; cursor: pointer; color: inherit; }
.co-firma-pasos button[aria-current="step"] { background: #15181B; color: #fff; border-color: #15181B; }
.co-firma-progreso { height: 6px; border-radius: 6px; background: rgba(21, 24, 27, .1); overflow: hidden; }
.co-firma-progreso span { display: block; height: 100%; width: 0; background: #1F4D3A; transition: width .25s ease; }
.co-firma-paso-n { font-size: 13px; color: var(--gris, #5E6661); margin: 6px 0 10px; }
.co-firma-paso-nav { justify-content: space-between; gap: 10px; flex-wrap: wrap; margin-top: 22px; padding-top: 16px; border-top: 1px solid rgba(21, 24, 27, .12); }
@media (prefers-reduced-motion: reduce) { .co-firma-progreso span { transition: none; } }
/* Generando. */
.co-generando { opacity: .85; cursor: progress; }
.co-girando { display: inline-block; width: 14px; height: 14px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; vertical-align: -2px; animation: co-gira .8s linear infinite; }
@keyframes co-gira { to { transform: rotate(360deg); } }
@media (prefers-reduced-motion: reduce) { .co-girando { animation: none; } }
/* Aceptación en línea. */
.co-firma-aceptacion { margin-top: 18px; padding: 16px 18px; border: 1px solid rgba(255, 255, 255, .18); border-radius: 12px; }
.co-firma-enlace { display: flex; gap: 8px; flex-wrap: wrap; }
.co-firma-enlace input { flex: 1 1 260px; min-width: 0; padding: 10px 12px; border-radius: 8px; border: 1px solid var(--line-2, rgba(21, 24, 27, .26)); font: 13px/1.3 "IBM Plex Mono", monospace; }
/* Cabecera del caso más baja en móvil: el formulario empieza antes. */
.co-app-cab { padding-bottom: 28px !important; min-height: 0 !important; }
/* El nombre del caso puede ser largo: titular contenido para que el formulario empiece a la vista. */
.co-site .co-app-cab .ag-h1 { font-size: clamp(30px, 3.4vw, 46px); line-height: 1.08; max-width: 28ch; text-wrap: balance; }
@media (max-width: 640px) { .co-app-cab { padding-top: 28px !important; padding-bottom: 12px !important; } .co-app-cab .ag-h1 { font-size: 30px; } }
.co-perfil-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 14px 22px; margin-bottom: 16px; }
.co-perfil-logo-vista img { max-height: 60px; max-width: 220px; display: block; margin-top: 8px; }
.co-perfil-msg { min-height: 1.4em; margin: 10px 0 0; } .co-perfil-msg.co-error { color: #A3361F; }

/* Revisión del 19-nov · peticiones de cambio del cliente en el caso */
.co-firma-cambios ul { list-style: none; margin: 8px 0; padding: 0; display: grid; gap: 10px; }
.co-firma-cambios li { border: 1px solid var(--line, #d9d9d4); border-radius: 8px; padding: 10px 12px; }
.co-firma-cambios li p { margin: 0; }
.co-firma-cambio-texto { white-space: pre-wrap; margin-top: 4px !important; }

/* V10 · acceso fundador, garantía y la cuenta del margen */
.co-firma-hero-b { margin: 14px 0 18px; }
.co-firma-plazas { background: var(--suave, #F2F1EC); border-left: 3px solid var(--verde, #17382F); padding: 10px 14px; border-radius: 0 8px 8px 0; }
.co-firma-garantia { border: 1px solid var(--line, #d9d9d4); border-radius: 10px; padding: 14px 16px; margin: 18px 0; }
.co-firma-garantia h3 { margin: 0 0 6px; }
.co-firma-garantia p { margin: 0; }
.co-firma-margen-t { width: 100%; border-collapse: collapse; margin: 16px 0 18px; }
.co-firma-margen-t th, .co-firma-margen-t td { text-align: left; padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line, #d9d9d4); vertical-align: baseline; }
.co-firma-margen-t th { font-weight: 600; width: 46%; }
.co-firma-margen-t td { font-variant-numeric: tabular-nums; }
.co-firma-margen-n { color: var(--gris, #5b5b55); font-size: 0.92em; }
.co-oculto { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
@media (max-width: 560px) {
  .co-firma-margen-t th { width: auto; }
  .co-firma-margen-t tr { display: grid; grid-template-columns: 1fr auto; }
  .co-firma-margen-t .co-firma-margen-n { grid-column: 1 / -1; padding-top: 0; border-bottom: 0; }
}

/* Encargo visual del 19-nov · las tres pruebas reales y el orden en el móvil */
.co-pruebas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: clamp(20px, 3vw, 38px); margin: 26px 0 18px; }
.co-prueba { margin: 0; display: flex; flex-direction: column; gap: 14px; }
.co-prueba-abrir { padding: 0; border: 0; background: none; cursor: zoom-in; position: relative; display: block; border-radius: 6px; }
.co-prueba-abrir img { width: 100%; height: auto; display: block; border-radius: 6px; border: 1px solid var(--line, #d9d9d4);
  box-shadow: 0 14px 34px rgba(10, 14, 12, .14), 0 2px 5px rgba(10, 14, 12, .08); background: #fff; }
.co-prueba-abrir:hover img, .co-prueba-abrir:focus-visible img { box-shadow: 0 20px 44px rgba(10, 14, 12, .22); }
.co-prueba-lupa { position: absolute; right: 12px; bottom: 12px; font: 600 12px/1 "IBM Plex Mono", monospace; letter-spacing: .08em;
  text-transform: uppercase; background: rgba(21, 24, 27, .82); color: #F5F1E6; padding: 7px 10px; border-radius: 999px; }
.co-prueba figcaption { display: grid; gap: 4px; }
.co-prueba figcaption b { font-size: 1.05rem; }
.co-prueba figcaption span { color: var(--gris, #5b5b55); font-size: .95rem; line-height: 1.45; }
/* Visor: se abre con teclado y se cierra con Escape. */
.co-visor { position: fixed; inset: 0; z-index: 9999; background: rgba(12, 16, 14, .9); display: grid; place-items: center; padding: 3vmin; }
.co-visor img { max-width: 96vw; max-height: 86vh; width: auto; height: auto; border-radius: 4px; background: #fff; }
.co-visor figcaption { color: #F5F1E6; font-size: .92rem; max-width: 70ch; margin-top: 12px; text-align: center; }
.co-visor .co-visor-x { position: absolute; top: 14px; right: 16px; font: 600 15px/1 inherit; background: #F5F1E6; color: #15181B;
  border: 0; border-radius: 999px; padding: 11px 16px; cursor: pointer; }
@media (max-width: 860px) {
  /* La prueba, entre la promesa y el precio: nadie decide sin haber visto el documento. */
  .co-firma-hero .co-firma-hero-t { display: contents; }
  .co-firma-hero .co-mesa-hero { order: 2; }
  .co-firma-hero .co-firma-hero-c { order: 3; }
}
@media (max-width: 860px) {
  /* El folio entero mide seis pantallas: se enseña lo bastante para reconocer el documento y se
     corta con un degradado, para que el precio no quede a tres pantallas de distancia. */
  .co-firma-hero .co-mesa-hero .co-folio { max-height: 56vh; overflow: hidden; -webkit-mask-image: linear-gradient(#000 70%, transparent);
    mask-image: linear-gradient(#000 70%, transparent); }
  .co-firma-hero .co-mesa-hero .co-mesa-pie { margin-top: 10px; }
}

/* Encargo visual del 19-nov · el motivo de cada familia en la tarjeta de la herramienta */
.co-tarjeta .co-motivo { display: block; margin: 2px 0 10px; }
.co-tarjeta .co-motivo rect, .co-tarjeta .co-motivo path, .co-tarjeta .co-motivo circle { transition: opacity .18s ease; }
.co-tarjeta:hover .co-motivo { opacity: .95; }
@media (prefers-reduced-motion: reduce) { .co-tarjeta .co-motivo * { transition: none; } }
.co-grande .co-motivo { display: block; margin: 4px 0 12px; }

/* Encargo visual del 19-nov · el recorrido grabado del producto */
.co-video { margin: 0 0 30px; }
.co-video video { width: 100%; height: auto; display: block; border-radius: 8px; background: #15181B;
  border: 1px solid var(--line, #d9d9d4); box-shadow: 0 16px 40px rgba(10, 14, 12, .16); }
.co-video figcaption { margin-top: 10px; color: var(--gris, #5b5b55); font-size: .95rem; }
/* El anuncio: ancho completo, oscuro para que no compita con el verde de la pagina, y sin
   margenes laterales en movil, donde cada pixel de ancho cuenta. */
.co-anuncio-s { padding-top: 0; }
.co-video-anuncio { margin: 0 auto; max-width: 980px; }
.co-video-anuncio video { aspect-ratio: 16 / 9; }
.co-video-anuncio figcaption { text-align: center; max-width: 62ch; margin-left: auto; margin-right: auto; }
@media (max-width: 760px) {
  .co-video-anuncio { max-width: none; }
  .co-video-anuncio video { border-radius: 6px; }
}

/* Encargo visual del 19-nov · las cuatro hojas del libro, en el libro */
.co-hojas-g { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: clamp(18px, 2.6vw, 32px); margin: 26px 0 22px; }
.co-hoja-cara { margin: 0; display: flex; flex-direction: column; gap: 12px; }
.co-hoja-cara img { width: 100%; height: auto; display: block; background: #fff; border-radius: 4px;
  border: 1px solid var(--line, #d9d9d4); box-shadow: 0 12px 28px rgba(10, 14, 12, .13), 0 2px 4px rgba(10, 14, 12, .08); }
.co-hoja-cara figcaption { display: grid; gap: 3px; }
.co-hoja-cara figcaption b { font-size: 1rem; }
.co-hoja-cara figcaption span { color: var(--gris, #5b5b55); font-size: .92rem; line-height: 1.4; }

/* Encargo visual del 19-nov · la lámina de cada artículo (A10) */
.co-lamina-head { max-width: 760px; margin: 0 auto 6px; padding: 0 22px; }
.co-lamina-head .ag-arthead-fig { margin: 0; }
.co-lamina-head img { width: 100%; height: auto; display: block; border-radius: 14px;
  border: 1px solid rgba(21, 24, 27, .12); }
.co-lista li.co-con-sello { grid-template-columns: 9rem 90px minmax(0, 1fr);
  grid-template-areas: "fecha sello texto"; align-items: center; }
.co-lista li.co-con-sello > time { grid-area: fecha; }
.co-lista li.co-con-sello > .co-sello { grid-area: sello; }
.co-lista li.co-con-sello > div { grid-area: texto; }
.co-sello { display: block; width: 90px; height: 60px; background: #FBFAF4;
  border: 1px solid rgba(21, 24, 27, .12); border-radius: 4px; padding: 5px; }
@media (max-width: 760px) {
  .co-lista li.co-con-sello { grid-template-columns: 72px minmax(0, 1fr);
    grid-template-areas: "fecha fecha" "sello texto"; gap: 6px 12px; }
  .co-sello { width: 72px; height: 48px; padding: 4px; }
}

/* ------------------------------------------------------------------------------------------
   Hecho y Revisado (orden v8.3, 23-nov-2026)
   ------------------------------------------------------------------------------------------ */
.co-hyr-micro { font-weight: 600; margin: 4px 0 14px; }
.co-hyr-autor-c { display: flex; gap: 18px; align-items: flex-start; max-width: 860px; }
.co-hyr-autor-c img { width: 96px; height: 96px; border-radius: 50%; object-fit: cover; flex: none; }
.co-hyr-autor-c p { margin: 4px 0; }
.co-hyr-tray { color: #4B5563; font-size: 15px; }
.co-hyr-tres { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin-top: 14px; }
.co-hyr-tres > a, .co-hyr-tres > div { display: flex; flex-direction: column; gap: 6px; border: 1px solid #D8D4CC; border-radius: 10px; padding: 18px; background: #fff; color: inherit; text-decoration: none; }
.co-hyr-tres > a:hover { border-color: #111827; }
.co-hyr-tres span { color: #4B5563; }
.co-hyr-antes { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 16px; margin: 16px 0; }
.co-hyr-antes > div { border-left: 4px solid #D8D4CC; padding: 4px 14px; }
.co-hyr-antes > div + div { border-left-color: #1F4D3A; }
.co-hyr-grupo { margin-top: 22px; }
.co-hyr-apps { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 12px; }
.co-hyr-app { display: flex; flex-direction: column; gap: 4px; border: 1px solid #D8D4CC; border-radius: 10px; padding: 16px; background: #fff; color: inherit; text-decoration: none; min-height: 44px; }
.co-hyr-app:hover { border-color: #111827; }
.co-hyr-app .n { font-family: "IBM Plex Mono", monospace; color: #8A6413; font-weight: 600; font-size: 13px; }
.co-hyr-app span:last-child { color: #4B5563; font-size: 15px; }
.co-hyr-capturas { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; margin-top: 22px; }
.co-hyr-capturas figure { margin: 0; }
.co-hyr-capturas img, .co-hyr-portada-img img { width: 100%; height: auto; border: 1px solid #D8D4CC; border-radius: 8px; display: block; }
.co-hyr-capturas figcaption { font-size: 14px; color: #4B5563; margin-top: 6px; }
.co-hyr-oferta .co-hyr-precio { display: flex; align-items: baseline; gap: 14px; flex-wrap: wrap; margin: 6px 0 12px; }
.co-hyr-cifra { font-family: "Bricolage Grotesque", sans-serif; font-size: 56px; font-weight: 700; line-height: 1; margin: 0; letter-spacing: -.02em; }
.co-hyr-lineas { margin-top: 20px; border-top: 1px solid #D8D4CC; padding-top: 12px; }
.co-hyr-lineas p { margin: 8px 0; }
.co-hyr-base { color: #4B5563; font-family: "IBM Plex Mono", monospace; font-size: 14px; white-space: nowrap; }
.co-hyr-fundador { margin-top: 18px; padding: 14px 18px; border: 1px dashed #1F4D3A; border-radius: 10px; }
.co-hyr-calc { margin-top: 22px; padding: 16px 18px; background: #F3F1EC; border-radius: 10px; }
.co-hyr-calc-f { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.co-hyr-calc label, .co-hyr-campos label { display: flex; flex-direction: column; gap: 4px; font-size: 15px; font-weight: 600; }
.co-hyr-calc input, .co-hyr-campos input, .co-hyr-campos textarea, .co-hyr-campos select { font: inherit; font-weight: 400; padding: 10px 12px; border: 1px solid #D8D4CC; border-radius: 6px; background: #fff; min-height: 44px; }
.co-hyr-calc-r { margin: 10px 0 0; }
.co-hyr-form { margin: 14px 0 24px; max-width: 760px; }
.co-hyr-campos { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 12px 16px; margin-bottom: 12px; }
.co-hyr-ancho { grid-column: 1 / -1; }
.co-hyr-trampa { position: absolute !important; left: -10000px !important; width: 1px; height: 1px; overflow: hidden; }
.co-hyr-msg { min-height: 1.4em; margin-top: 10px; font-weight: 600; }
.co-hyr-aviso { border-left: 4px solid #8A6413; padding: 6px 12px; background: #fff; }
.co-hyr-faq details { border-bottom: 1px solid #D8D4CC; padding: 10px 0; }
.co-hyr-faq summary { cursor: pointer; font-weight: 600; min-height: 32px; }
.co-hyr-formula { font-family: "IBM Plex Mono", monospace; font-size: 15px; background: #F3F1EC; padding: 10px 12px; border-radius: 6px; }
.co-hyr-bloque-g { display: grid; grid-template-columns: 1.1fr 1fr; gap: 32px; align-items: center; }
.co-cruce { margin-top: 14px; }
.co-bump { border: 1px dashed #1F4D3A; border-radius: 8px; padding: 6px 12px; margin: 10px 0; }
@media (max-width: 760px) { .co-hyr-bloque-g { grid-template-columns: 1fr; } .co-hyr-cifra { font-size: 44px; } .co-hyr-autor-c { flex-direction: column; } }
/* Con Hecho y Revisado el menú tiene ocho entradas (23-nov-2026): cede antes lo que ya está en el pie. */
@media (min-width: 1101px) and (max-width: 1440px) {
  .ag-nav .ag-menu a[href="/sobre-alfonso/"] { display: none; }
  .ag-nav .ag-menu a { padding-left: 7px; padding-right: 7px; }
  .ag-nav-cta .ag-btn { padding: 12px 16px; font-size: 14px; }
  .ag-nav-cta .ag-btn .a { display: none; }
}
@media (min-width: 941px) and (max-width: 1300px) { .ag-nav .ag-menu a[href="/articulos/"] { display: none; } }
@media (min-width: 941px) and (max-width: 1060px) { .ag-nav .ag-menu a[href="/el-viernes/"] { display: none; } }
/* /hecho-y-revisado/pruebas/: las huellas y los valores esperados no caben en una línea (23-nov-2026). */
.co-hyr .co-tabla-c { overflow-x: auto; max-width: 100%; }
.co-hyr .co-tabla td.n { white-space: normal; overflow-wrap: anywhere; }
.co-hyr code { overflow-wrap: anywhere; word-break: break-all; }

/* Hecho y Revisado · vídeos de la suite y captura propia de cada página de caso (orden v8.3, A14). */
.co-hyr-video { margin: 30px 0 18px; }
.co-hyr-video video { aspect-ratio: 16 / 9; background: #1F4D3A; }
.co-hyr-video-principal, .co-hyr-recorrido { max-width: 980px; }
.co-hyr-recorrido { margin: 0 0 28px; }
.co-hyr-recorrido summary { cursor: pointer; font-weight: 600; color: #1F4D3A; padding: 6px 0; }
.co-hyr-recorrido summary:focus-visible { outline: 2px solid #E0A526; outline-offset: 3px; }
.co-hyr-recorrido .co-hyr-video { margin-top: 12px; }
.co-hyr-captura-caso { margin: 24px 0 8px; }
.co-hyr-captura-caso img { width: 100%; height: auto; display: block; border: 1px solid #D9DDD5; border-radius: 8px; }
.co-hyr-captura-caso figcaption, .co-hyr-video-caso figcaption { margin-top: 8px; color: #5E6661; font-size: .92rem; }
