/* ==========================================================================
   ARQSEO — Páginas públicas con la estética de la portada nueva (20-10-2026, bloque pub-b).
   Comparativa, blog (lista y artículos), páginas de función (enlaces, estratega, canibalizaciones,
   mapa de enlaces), API y MCP, rastreador, estado del servicio y legales.
   Se carga DESPUÉS de portada.css (de la que reutiliza tokens --pt-* y componentes pt-*) y solo en
   estas páginas (layouts/main.php). Prefijo pb- para no chocar con nada. Sin librerías ni fuentes nuevas.
   ========================================================================== */

.pb { --pb-lectura: 70ch; }
/* main.css pinta todos los <p> de gris secundario: aquí, el texto de la portada (sin especificidad, para que las
   reglas de la portada, como el blanco de la llamada final, sigan mandando) */
:where(.pb) p { color: var(--pt-texto); }
/* En oscuro, main.css pinta TODOS los enlaces de la web pública de #b4bcfd con mucha especificidad. Aquí, un punto
   más: cada enlace con clase propia dice su color con --pb-enlace; los de texto corrido siguen en #b4bcfd. */
[data-theme="dark"] .web-publica .main .pb a:not(.btn):not([class*="cta"]):not([class*="pt-boton"]) { color: var(--pb-enlace, #b4bcfd); }
[data-theme="dark"] .pb .pb-chip, [data-theme="dark"] .pb .pb-post__enlace { --pb-enlace: var(--pt-tinta); }
[data-theme="dark"] .pb .pb-chip[aria-current] { --pb-enlace: #fff; }
[data-theme="dark"] .pb .pb-art__cat, [data-theme="dark"] .pb .pb-post:hover .pb-post__enlace,
[data-theme="dark"] .pb .pb-indice a[aria-current="true"], [data-theme="dark"] .pb .pb-indice a:hover { --pb-enlace: var(--pt-violeta-texto); }
[data-theme="dark"] .pb .pb-indice a { --pb-enlace: var(--pt-texto); }

/* ── Cabecera de página (versión ligera del arranque de la portada) ─────── */
.pb-cabecera {
    position: relative;
    padding: 4rem 0 3.5rem;
    overflow: hidden;
    background: var(--pt-fondo);
    border-bottom: 1px solid var(--pt-borde);
}
.pb-cabecera::before {
    content: "";
    position: absolute;
    inset: 0;
    background:
        radial-gradient(55% 80% at 88% 10%, rgba(109, 77, 246, .14), transparent 70%),
        radial-gradient(40% 60% at 0% 0%, rgba(74, 58, 245, .06), transparent 70%);
    pointer-events: none;
}
[data-theme="dark"] .pb-cabecera::before {
    background:
        radial-gradient(55% 80% at 88% 10%, rgba(124, 108, 255, .22), transparent 70%),
        radial-gradient(40% 60% at 0% 0%, rgba(74, 58, 245, .12), transparent 70%);
}
.pb-cabecera > .pt-contenedor { position: relative; }
.pb-cabecera--centro { text-align: center; }
.pb-cabecera--centro .pb-cabecera__sub { margin-left: auto; margin-right: auto; }
.pb-cabecera--centro .pb-botones { justify-content: center; }
.pb-cabecera h1 {
    max-width: 18em;
    margin: 0 0 1.1rem;
    font-size: clamp(2.1rem, 4.6vw, 3.6rem);
    line-height: 1.05;
    letter-spacing: -.03em;
    font-weight: 800;
    color: var(--pt-tinta);
}
.pb-cabecera--centro h1 { margin-left: auto; margin-right: auto; }
.pb-cabecera__sub {
    max-width: 44rem;
    margin: 0;
    font-size: clamp(1.05rem, 1.5vw, 1.2rem);
    line-height: 1.6;
    color: var(--pt-texto);
}
.pb-cabecera__sub a { color: var(--pt-violeta-texto); }
.pb-cabecera__sub strong { color: var(--pt-tinta); }
.pb-cabecera__rejilla { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, .9fr); gap: 3rem; align-items: center; }

.pb-botones { display: flex; flex-wrap: wrap; gap: .75rem; margin-top: 1.9rem; }
.pb-nota { margin: .9rem 0 0; font-size: .875rem; color: var(--pt-tenue); }

/* ── Bloques comunes ────────────────────────────────────────────────────── */
.pb .pt-seccion { scroll-margin-top: calc(var(--header-height, 72px) + 1rem); }
.pb-rejilla { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1.25rem; margin: 0; padding: 0; list-style: none; }
.pb-rejilla--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.pb-rejilla--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.pb-tarjeta {
    display: flex;
    flex-direction: column;
    gap: .75rem;
    padding: 1.5rem;
    border: 1px solid var(--pt-borde);
    border-radius: var(--pt-radio);
    background: var(--pt-tarjeta);
    box-shadow: var(--pt-sombra);
}
.pb-tarjeta h3 { margin: 0; font-size: 1.05rem; font-weight: 700; line-height: 1.3; color: var(--pt-tinta); }
.pb-tarjeta p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--pt-texto); }

/* Pasos numerados en cuatro columnas */
.pb .pt-pasos.pb-pasos--4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* Fila de función: imagen en marco + texto (como el mapa de la portada, en claro) */
.pb-funcion { display: grid; grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr); gap: 3.5rem; align-items: center; }
.pb-funcion + .pb-funcion { margin-top: 5rem; }
.pb-funcion--rev .pb-funcion__img { order: 2; }
.pb-funcion__img { margin: 0; }
.pb-funcion__img .pt-panel__img img { display: block; width: 100%; height: auto; }
.pb-funcion__img figcaption { margin: .75rem .25rem 0; font-size: .8125rem; line-height: 1.5; color: var(--pt-tenue); }
.pb-funcion h2 { margin: 0 0 .8rem; font-size: clamp(1.5rem, 2.6vw, 2rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; color: var(--pt-tinta); }
.pb-funcion p { margin: 0; font-size: 1.0625rem; line-height: 1.65; color: var(--pt-texto); }
.pb-funcion .pb-lista { margin-top: 1.5rem; }
.pb-funcion .pt-antetitulo { font-size: .75rem; }

/* Lista con marcas de «sí» y «no» */
.pb-lista { display: grid; gap: .8rem; margin: 0; padding: 0; list-style: none; }
.pb-lista li { position: relative; padding-left: 2rem; font-size: .975rem; line-height: 1.55; color: var(--pt-texto); }
.pb-lista li::before {
    content: "";
    position: absolute;
    left: 0;
    top: .15rem;
    width: 1.3rem;
    height: 1.3rem;
    border-radius: 50%;
    background: #dcf7ea no-repeat center / .8rem url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23157a4f' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E");
}
.pb-lista--no li::before {
    background-color: #fde8e8;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23b42318' stroke-width='3.2' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E");
}
[data-theme="dark"] .pb-lista li::before { background-color: rgba(46, 204, 138, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%237ee2b4' stroke-width='3.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'/%3E%3C/svg%3E"); }
[data-theme="dark"] .pb-lista--no li::before { background-color: rgba(248, 113, 113, .16); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%23fca5a5' stroke-width='3.2' stroke-linecap='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'/%3E%3Cline x1='6' y1='6' x2='18' y2='18'/%3E%3C/svg%3E"); }
.pb-lista strong { color: var(--pt-tinta); }
.pb-lista a { color: var(--pt-violeta-texto); }

/* Lista de beneficios con título (enlaces, canibalizaciones…) */
.pb-beneficios { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 3rem; max-width: 1080px; margin: 0 auto; padding: 0; list-style: none; }
.pb-beneficios li { display: flex; gap: 1rem; padding: 1.4rem 0; border-top: 1px solid var(--pt-borde); }
.pb-beneficios h3 { margin: 0 0 .3rem; font-size: 1.05rem; font-weight: 700; color: var(--pt-tinta); }
.pb-beneficios p { margin: 0; font-size: .95rem; line-height: 1.6; color: var(--pt-texto); }

/* Preguntas frecuentes: el mismo acordeón de la portada; respuesta en un div (puede llevar HTML) */
.pb .pt-faq__item .pb-faq__resp { margin: 0 0 1.1rem; padding: 0 .25rem; font-size: .95rem; line-height: 1.65; color: var(--pt-texto); }
.pb .pt-faq__item .pb-faq__resp p { margin: 0 0 .6rem; }
.pb .pt-faq__item .pb-faq__resp p:last-child { margin-bottom: 0; }
.pb .pt-faq__item .pb-faq__resp a { color: var(--pt-violeta-texto); }
.pb-faq--una { grid-template-columns: minmax(0, 1fr) !important; max-width: none !important; }

/* Llamada final: botón de borde blanco al lado del blanco */
.pb .pt-final__accion .pb-botones { margin-top: 0; }
.pb-boton--borde-blanco { color: #fff; background: transparent; border-color: rgba(255, 255, 255, .7); }
.pb-boton--borde-blanco:hover { background: rgba(255, 255, 255, .12); border-color: #fff; }
.pb .pt-final a.pb-boton--borde-blanco, [data-theme="dark"] .pb .pt-final a.pb-boton--borde-blanco { color: #fff; }
.pb .pt-final a.pt-boton--blanco, [data-theme="dark"] .pb .pt-final a.pt-boton--blanco { color: #2a1ec2; }
.pb .pt-final .pt-etiqueta--beta { margin-left: .4rem; }
.pb-final--suelta { padding-top: 5.5rem; }

/* Enlaces en texto corrido: subrayados (axe: link-in-text-block) */
.pb p a:not([class]), .pb li a:not([class]), .pb td a:not([class]) { text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }

/* ── Comparativa ────────────────────────────────────────────────────────── */
.pb-dos { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.25rem; }
.pb-dos .pb-tarjeta { padding: 1.75rem; gap: 1.1rem; }
.pb-dos__cab { display: flex; align-items: center; gap: .75rem; }
.pb-dos__cab h3 { font-size: 1.2rem; }
.pb-icono--no { color: #b42318; background: #fde8e8; }
[data-theme="dark"] .pb-icono--no { color: #fca5a5; background: rgba(248, 113, 113, .16); }

.pb-tabla-caja {
    position: relative;
    overflow-x: auto;
    border: 1px solid var(--pt-borde);
    border-radius: var(--pt-radio);
    background: var(--pt-tarjeta);
    box-shadow: var(--pt-sombra);
}
.pb-tabla-caja:focus-visible { outline: 3px solid #8f84ff; outline-offset: 2px; }
.pb-tabla { width: 100%; min-width: 1060px; border-collapse: separate; border-spacing: 0; font-size: .95rem; line-height: 1.55; }
.pb-tabla caption { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.pb-tabla td:last-child, .pb-tabla thead th:last-child { width: 12.5rem; }
.pb-tabla td:last-child a { overflow-wrap: normal; white-space: nowrap; }
.pb-tabla th, .pb-tabla td { padding: 1.15rem 1.4rem; text-align: left; vertical-align: top; border-top: 1px solid var(--pt-borde); }
.pb-tabla thead th {
    border-top: 0;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--pt-violeta-texto);
    background: var(--pt-fondo-suave);
}
.pb-tabla tbody th { position: sticky; left: 0; z-index: 1; width: 15rem; background: var(--pt-tarjeta); box-shadow: 1px 0 0 var(--pt-borde); }
.pb-tabla thead th:first-child { position: sticky; left: 0; z-index: 2; box-shadow: 1px 0 0 var(--pt-borde); }
.pb-tabla tbody th strong { display: block; font-size: 1rem; color: var(--pt-tinta); }
.pb-tabla tbody th span { display: block; margin-top: .3rem; font-size: .8125rem; font-weight: 500; color: var(--pt-tenue); }
.pb-tabla td { color: var(--pt-texto); }
.pb-tabla .pb-tabla__arqseo { background: var(--pt-violeta-suave); color: var(--pt-tinta); }
.pb-tabla thead .pb-tabla__arqseo { color: var(--pt-violeta-texto); }
.pb-tabla td a { color: var(--pt-violeta-texto); overflow-wrap: anywhere; }
.pb-tabla__nota { margin: 1.25rem 0 0; font-size: .875rem; line-height: 1.6; color: var(--pt-tenue); }
.pb-tabla__nota a { color: var(--pt-violeta-texto); }

/* ── Blog: lista ────────────────────────────────────────────────────────── */
.pb-chips { display: flex; flex-wrap: wrap; gap: .5rem; margin: 1.75rem 0 0; padding: 0; list-style: none; }
.pb-cabecera--centro .pb-chips { justify-content: center; }
.pb .pb-chip {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    min-height: 40px;
    padding: .45rem .95rem;
    border: 1px solid var(--pt-borde);
    border-radius: 999px;
    background: var(--pt-tarjeta);
    color: var(--pt-tinta);
    font-size: .875rem;
    font-weight: 600;
    text-decoration: none;
    transition: border-color .2s, color .2s, background-color .2s;
}
.pb .pb-chip:hover { border-color: var(--pt-violeta); }
.pb .pb-chip[aria-current] { border-color: var(--pt-violeta); background: var(--pt-violeta); color: #fff; }
[data-theme="dark"] .pb .pb-chip[aria-current] { background: #5b4bff; }
.pb-chip__n { font-size: .75rem; font-weight: 700; color: var(--pt-tenue); }
.pb-chip[aria-current] .pb-chip__n { color: #e9e6ff; }

.pb-posts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2.5rem 1.75rem; margin: 0; padding: 0; list-style: none; }
.pb-post { position: relative; display: flex; flex-direction: column; min-width: 0; }
.pb-post__img {
    display: block;
    aspect-ratio: 1200 / 630;
    margin: 0 0 1.1rem;
    border: 1px solid var(--pt-borde);
    border-radius: var(--pt-radio);
    overflow: hidden;
    background: var(--pt-fondo-suave);
}
.pb-post__img picture, .pb-post__img img { display: block; width: 100%; height: 100%; object-fit: cover; transition: transform .4s cubic-bezier(.22, 1, .36, 1); }
.pb-post:hover .pb-post__img img { transform: scale(1.03); }
.pb-post__cat { margin: 0 0 .5rem; font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-violeta-texto); }
.pb-post__titulo { margin: 0 0 .55rem; font-size: 1.2rem; line-height: 1.3; letter-spacing: -.01em; font-weight: 750; }
.pb .pb-post__titulo a { color: var(--pt-tinta); text-decoration: none; }
/* Toda la tarjeta se pulsa (el enlace del título se estira), sin repetir enlaces */
.pb-post__titulo a::after { content: ""; position: absolute; inset: 0; z-index: 1; border-radius: var(--pt-radio); }
.pb-post__titulo a:focus-visible { outline: none; }
.pb-post__titulo a:focus-visible::after { outline: 3px solid #8f84ff; outline-offset: 4px; }
.pb .pb-post:hover .pb-post__titulo a { color: var(--pt-violeta-texto); }
.pb-post__extracto { margin: 0 0 .9rem; font-size: .95rem; line-height: 1.6; color: var(--pt-texto); }
.pb-post__meta { display: flex; flex-wrap: wrap; gap: .3rem 1rem; margin: auto 0 0; font-size: .8125rem; color: var(--pt-tenue); }
.pb-post__meta span { display: inline-flex; align-items: center; gap: .35rem; }
.pb-post__meta svg { width: 14px; height: 14px; }

/* El primero, destacado y a lo ancho */
.pb-post--destacado { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 2.75rem; align-items: center; }
.pb-post--destacado .pb-post__img { margin: 0; }
.pb-post--destacado .pb-post__titulo { font-size: clamp(1.5rem, 2.6vw, 2.1rem); line-height: 1.15; letter-spacing: -.02em; font-weight: 800; }
.pb-post--destacado .pb-post__extracto { font-size: 1.0625rem; }

.pb-vacio { padding: 2rem; border: 1px dashed var(--pt-borde); border-radius: var(--pt-radio); text-align: center; color: var(--pt-texto); }
.pb-vacio a { color: var(--pt-violeta-texto); }

/* Newsletter en una franja oscura */
.pb-boletin { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 3rem; align-items: center; }
.pb-boletin__form { padding: 1.75rem; border: 1px solid var(--pt-oscuro-borde); border-radius: var(--pt-radio); background: var(--pt-oscuro-2); }
.pb-boletin__form label[for] { display: block; margin: 0 0 .45rem; font-size: .875rem; font-weight: 600; color: #fff; }
.pb .pb-boletin__campo {
    width: 100%;
    height: 50px;
    padding: 0 1rem;
    border: 1.5px solid rgba(255, 255, 255, .18);
    border-radius: 12px;
    background: rgba(255, 255, 255, .06);
    color: #fff;
    font: inherit;
    font-size: 1rem;
}
.pb-boletin__campo::placeholder { color: #a6abc6; }
.pb-boletin__campo:focus { outline: none; border-color: #a99cff; box-shadow: 0 0 0 4px rgba(124, 108, 255, .25); }
.pb-boletin__ok { display: flex; gap: .6rem; align-items: flex-start; margin: 1rem 0 1.1rem; font-size: .875rem; line-height: 1.5; color: var(--pt-oscuro-texto); cursor: pointer; }
.pb-boletin__ok input { flex: 0 0 auto; width: 18px; height: 18px; margin-top: .1rem; accent-color: #7c6cff; }
.pb .pb-boletin__ok a { color: #c9c1ff; text-decoration: underline; }
.pb-boletin__form .pt-boton { width: 100%; margin-top: .75rem; }

/* Texto corrido (intro del blog, legales, rastreador) */
.pb-prosa { max-width: var(--pb-lectura); font-size: 1.0625rem; line-height: 1.75; color: var(--pt-texto); }
.pb-prosa > :first-child { margin-top: 0; }
.pb-prosa h2 { margin: 2.75rem 0 .9rem; font-size: clamp(1.35rem, 2.2vw, 1.65rem); line-height: 1.25; letter-spacing: -.015em; font-weight: 800; color: var(--pt-tinta); scroll-margin-top: calc(var(--header-height, 72px) + 1.5rem); }
.pb-prosa h3 { margin: 2rem 0 .6rem; font-size: 1.15rem; line-height: 1.35; font-weight: 750; color: var(--pt-tinta); scroll-margin-top: calc(var(--header-height, 72px) + 1.5rem); }
.pb-prosa p { margin: 0 0 1.15rem; }
.pb-prosa ul, .pb-prosa ol { margin: 0 0 1.3rem; padding-left: 1.35rem; }
.pb-prosa li { margin-bottom: .45rem; }
.pb-prosa li::marker { color: var(--pt-violeta); }
.pb-prosa strong { color: var(--pt-tinta); }
.pb-prosa a { color: var(--pt-violeta-texto); }
.pb-prosa code { padding: .1em .35em; border-radius: 6px; background: var(--pt-fondo-suave); border: 1px solid var(--pt-borde); font-size: .88em; color: var(--pt-tinta); overflow-wrap: anywhere; }
.pb-prosa pre { margin: 0 0 1.4rem; }
.pb-prosa table { width: 100%; border-collapse: collapse; font-size: .925rem; line-height: 1.5; }
.pb-prosa th, .pb-prosa td { padding: .75rem .9rem; border-bottom: 1px solid var(--pt-borde); text-align: left; vertical-align: top; }
.pb-prosa th { font-size: .75rem; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: var(--pt-violeta-texto); background: var(--pt-fondo-suave); }
.pb-prosa .table-responsive { margin: 0 0 1.5rem; overflow-x: auto; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio-sm); }
.pb-prosa .table-responsive table { min-width: 640px; }
.pb-prosa td code { overflow-wrap: normal; white-space: nowrap; }

/* Bloques de código (API, rastreador): siempre oscuros, como el panel */
.pb pre.pb-codigo, .pb-prosa pre {
    position: relative;
    max-width: 100%;
    margin: 0 0 1.4rem;
    padding: 1.1rem 1.25rem;
    overflow-x: auto;
    border: 1px solid #1f2747;
    border-radius: 12px;
    background: #0a0f22;
    color: #e3e6f5;
    font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
    font-size: .84rem;
    line-height: 1.65;
}
.pb pre.pb-codigo code, .pb-prosa pre code { padding: 0; border: 0; background: none; color: inherit; font-size: inherit; overflow-wrap: normal; white-space: pre; }
.pb pre:focus-visible { outline: 3px solid #8f84ff; outline-offset: 2px; }

/* Documento con índice lateral fijo (legales, rastreador, API) */
.pb-doc { display: grid; grid-template-columns: 15rem minmax(0, 1fr); gap: 4rem; align-items: start; }
.pb-doc__indice { position: sticky; top: calc(var(--header-height, 72px) + 1.5rem); max-height: calc(100vh - var(--header-height, 72px) - 3rem); overflow-y: auto; padding-right: .5rem; }
.pb-indice__titulo { margin: 0 0 .8rem; font-size: .72rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-violeta-texto); }
.pb-indice ol { margin: 0; padding: 0; list-style: none; border-left: 1px solid var(--pt-borde); }
.pb .pb-indice a { display: block; margin-left: -1px; padding: .4rem 0 .4rem 1rem; border-left: 2px solid transparent; font-size: .875rem; line-height: 1.4; color: var(--pt-texto); text-decoration: none; }
.pb .pb-indice a:hover { color: var(--pt-violeta-texto); border-left-color: var(--pt-borde); }
.pb .pb-indice a[aria-current="true"] { color: var(--pt-violeta-texto); border-left-color: var(--pt-violeta); font-weight: 600; }
.pb-indice--movil { display: none; }

.pb-legal__fecha { display: inline-flex; align-items: center; gap: .45rem; margin: 1.25rem 0 0; font-size: .875rem; color: var(--pt-tenue); }
.pb-legal__fecha svg { width: 15px; height: 15px; }

/* ── Artículo del blog ──────────────────────────────────────────────────── */
.pb-art__cab { padding: 3.25rem 0 0; }
.pb-art__cab .pt-contenedor { max-width: 1040px; }
.pb .pb-art__cat { display: inline-flex; padding: .3rem .75rem; border-radius: 999px; background: var(--pt-violeta-suave); color: var(--pt-violeta-texto); font-size: .72rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; text-decoration: none; }
.pb .pb-art__cat:hover { text-decoration: underline; }
.pb-art__cab h1 { margin: 1.1rem 0 1.1rem; font-size: clamp(2rem, 4.4vw, 3.3rem); line-height: 1.08; letter-spacing: -.03em; font-weight: 800; color: var(--pt-tinta); }
.pb-art__meta { display: flex; flex-wrap: wrap; gap: .4rem 1.25rem; margin: 0; padding: 0; list-style: none; font-size: .9rem; color: var(--pt-tenue); }
.pb-art__meta li { display: inline-flex; align-items: center; gap: .4rem; }
.pb-art__meta svg { width: 15px; height: 15px; }
.pb-art__portada { max-width: 1180px; margin: 2.25rem auto 0; padding: 0 24px; }
.pb-art__portada > div { aspect-ratio: 1200 / 630; border: 1px solid var(--pt-borde); border-radius: 20px; overflow: hidden; background: var(--pt-fondo-suave); box-shadow: 0 40px 90px -50px rgba(16, 24, 40, .45); }
.pb-art__portada img { display: block; width: 100%; height: 100%; object-fit: cover; }

.pb-art__rejilla { display: grid; grid-template-columns: minmax(0, 1fr) 16.5rem; gap: 4.5rem; align-items: start; max-width: 1080px; padding-top: 3rem; padding-bottom: 1rem; }
.pb-art__lateral { position: sticky; top: calc(var(--header-height, 72px) + 1.5rem); display: grid; gap: 1.5rem; max-height: calc(100vh - var(--header-height, 72px) - 3rem); overflow-y: auto; }
.pb-art__lateral .pb-doc__indice { position: static; max-height: none; overflow: visible; padding-right: 0; }
.pb-art__mini { padding: 1.25rem; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio); background: var(--pt-fondo-suave); }
.pb-art__mini p { margin: 0 0 .9rem; font-size: .875rem; line-height: 1.5; color: var(--pt-texto); }
.pb-art__mini strong { display: block; margin-bottom: .3rem; font-size: .95rem; color: var(--pt-tinta); }
.pb-art__mini .pt-boton { width: 100%; min-height: 42px; padding: .6rem 1rem; font-size: .875rem; }

.pb-art__resumen { margin: 0 0 2.25rem; padding: 1.4rem 1.6rem; border: 1px solid var(--pt-borde); border-left: 4px solid var(--pt-violeta); border-radius: 0 var(--pt-radio) var(--pt-radio) 0; background: var(--pt-fondo-suave); }
.pb-art__resumen-et { margin: 0 0 .5rem !important; font-size: .72rem !important; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--pt-violeta-texto) !important; }
.pb-art__resumen p { margin: 0; font-size: 1.0625rem; line-height: 1.7; color: var(--pt-tinta); }

.pb-art__cuerpo { max-width: var(--pb-lectura); font-size: 1.125rem; line-height: 1.8; }
.pb-art__cuerpo, .pb-art__cuerpo p, .pb-art__cuerpo li { color: var(--pt-texto); }
.pb-art__cuerpo h2 { margin: 3.25rem 0 1rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: var(--pt-tinta); scroll-margin-top: calc(var(--header-height, 72px) + 1.5rem); }
.pb-art__cuerpo h3 { margin: 2.25rem 0 .7rem; font-size: 1.25rem; line-height: 1.35; font-weight: 750; color: var(--pt-tinta); scroll-margin-top: calc(var(--header-height, 72px) + 1.5rem); }
.pb-art__cuerpo h4 { margin: 1.75rem 0 .5rem; font-size: 1.05rem; color: var(--pt-tinta); }
.pb-art__cuerpo p { margin: 0 0 1.3rem; }
.pb-art__cuerpo ul, .pb-art__cuerpo ol { margin: 0 0 1.4rem; padding-left: 1.4rem; }
.pb-art__cuerpo ul, .pb-prosa ul { list-style: disc; }
.pb-art__cuerpo ol, .pb-prosa ol { list-style: decimal; }
.pb-art__cuerpo li { margin-bottom: .5rem; }
.pb-art__cuerpo li::marker { color: var(--pt-violeta); font-weight: 700; }
.pb-art__cuerpo strong { color: var(--pt-tinta); }
.pb .pb-art__cuerpo a { color: var(--pt-violeta-texto); text-decoration: underline; text-underline-offset: 2px; text-decoration-thickness: 1px; }
.pb-art__cuerpo blockquote { margin: 1.75rem 0; padding: .25rem 0 .25rem 1.25rem; border-left: 3px solid var(--pt-violeta); font-size: 1.15rem; color: var(--pt-tinta); }
.pb-art__cuerpo figure { margin: 2.25rem 0; }
.pb-art__cuerpo figure img { display: block; width: 100%; height: auto; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio); }
.pb-art__cuerpo figcaption { padding: .65rem .25rem 0; font-size: .875rem; line-height: 1.5; color: var(--pt-tenue); }
.pb-art__cuerpo code { padding: .1em .35em; border-radius: 6px; background: var(--pt-fondo-suave); border: 1px solid var(--pt-borde); font-size: .88em; color: var(--pt-tinta); }
.pb-art__cuerpo pre { margin: 0 0 1.4rem; padding: 1rem 1.2rem; overflow-x: auto; border-radius: 12px; background: #0a0f22; color: #e3e6f5; font-size: .85rem; }
.pb-art__cuerpo pre code { padding: 0; border: 0; background: none; color: inherit; }
/* Tablas y notas de los artículos (clases de siempre: los textos no se tocan) */
.pb .articulo__tabla { margin: 0 0 1.75rem; overflow-x: auto; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio-sm); }
.pb .articulo__tabla table { display: table; width: 100%; border-collapse: collapse; font-size: .95rem; line-height: 1.5; }
.pb .articulo__tabla:focus-visible { outline: 3px solid #8f84ff; outline-offset: 2px; }
@media (max-width: 720px) { .pb .articulo__tabla table { min-width: 560px; } }
.pb .articulo__tabla th, .pb .articulo__tabla td { padding: .75rem .9rem; border: 0; border-bottom: 1px solid var(--pt-borde); text-align: left; vertical-align: top; color: var(--pt-texto); }
.pb .articulo__tabla tr:last-child td { border-bottom: 0; }
.pb .articulo__tabla th { font-size: .75rem; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: var(--pt-violeta-texto); background: var(--pt-fondo-suave); }
.pb .articulo__nota { margin: 0 0 1.5rem; padding: 1.1rem 1.3rem; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio-sm); background: var(--pt-fondo-suave); font-size: 1rem; }
.pb .articulo__nota p:last-child { margin-bottom: 0; }
/* Rejillas en línea de algunos artículos (auto-fit): tarjetas con el estilo nuevo */
.pb .pb-art__cuerpo [style*="auto-fit"] > * { border-color: var(--pt-borde) !important; border-radius: var(--pt-radio-sm) !important; }

.pb-art__faq { max-width: var(--pb-lectura); margin-top: 3.5rem; }
.pb-art__faq h2 { margin: 0 0 1.25rem; font-size: clamp(1.5rem, 2.6vw, 1.9rem); letter-spacing: -.02em; font-weight: 800; color: var(--pt-tinta); scroll-margin-top: calc(var(--header-height, 72px) + 1.5rem); }
.pb-art__faq .pt-faq__item:first-of-type { border-top: 1px solid var(--pt-borde); }

.pb-art__cta {
    max-width: var(--pb-lectura);
    margin: 3.5rem 0 0;
    padding: 2rem;
    border-radius: 20px;
    background: #3b2be0;
    color: #fff;
}
[data-theme="dark"] .pb-art__cta { background: #2d22b0; }
.pb-art__cta h2 { margin: 0 0 .5rem; font-size: 1.5rem; line-height: 1.2; letter-spacing: -.02em; font-weight: 800; color: #fff; }
.pb-art__cta p { margin: 0 0 1.4rem; font-size: 1.05rem; line-height: 1.6; color: #fff; }
.pb-art__cta .pb-botones { margin-top: 0; }
.pb .pb-art__cta a.pt-boton--blanco { color: #2a1ec2; }
.pb .pb-art__cta a.pb-boton--borde-blanco { color: #fff; }

.pb-rel { padding: 4.5rem 0 5.5rem; border-top: 1px solid var(--pt-borde); background: var(--pt-fondo-suave); margin-top: 4rem; }
.pb-rel .pb-posts { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.pb-rel .pb-post__img { background: var(--pt-tarjeta); }

/* ── API y MCP ──────────────────────────────────────────────────────────── */
.pb-api h2 { display: flex; align-items: center; gap: .6rem; }
.pb-api__rutas { margin: 0 0 1.75rem; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio-sm); overflow: hidden; background: var(--pt-tarjeta); }
.pb-api__ruta { padding: .95rem 1.1rem; border-top: 1px solid var(--pt-borde); }
.pb-api__ruta:first-child { border-top: 0; }
.pb-api__linea { display: flex; flex-wrap: wrap; gap: .6rem; align-items: baseline; }
.pb-api__linea code { font-size: .875rem; }
.pb-verbo { display: inline-block; min-width: 3.8rem; padding: .15rem .45rem; border-radius: 6px; font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .72rem; font-weight: 700; text-align: center; color: #fff; background: #4a3af5; }
.pb-verbo--post { background: #b45309; }
.pb-verbo--patch { background: #0f766e; }
.pb-verbo--delete { background: #b42318; }
.pb-api__ruta p { margin: .4rem 0 0; font-size: .925rem; line-height: 1.6; }
.pb-api__ruta .pb-api__desc, .pb-api__ruta .pb-api__param { font-size: .85rem; color: var(--pt-tenue); }
.pb-api__tres { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 1rem; margin: 0 0 1.5rem; }
.pb-api__tres .pb-tarjeta { padding: 1.2rem; gap: .5rem; }
.pb-api__tres h3 { margin: 0; font-size: 1rem; }
.pb-api__tres p { margin: 0; font-size: .9rem; line-height: 1.6; }
.pb-api .pb-prosa p.pb-api__pie, .pb-api__pie { font-size: .95rem; color: var(--pt-texto); }
.pb-api__tools { columns: 1; }
.pb-etiqueta-beta { margin-left: .25rem; }

/* ── Estado del servicio ────────────────────────────────────────────────── */
.pb-estado { max-width: 880px; margin: 0 auto; }
.estado--funciona { --estado: #15803d; --estado-fondo: #dcf7ea; }
.estado--lento { --estado: #a15c07; --estado-fondo: #fff1d6; }
.estado--problemas { --estado: #b42318; --estado-fondo: #fde8e8; }
.estado--sin_datos { --estado: #4b5565; --estado-fondo: #eef0f5; }
[data-theme="dark"] .estado--funciona { --estado: #4ade80; --estado-fondo: rgba(46, 204, 138, .14); }
[data-theme="dark"] .estado--lento { --estado: #fbbf24; --estado-fondo: rgba(251, 191, 36, .14); }
[data-theme="dark"] .estado--problemas { --estado: #fca5a5; --estado-fondo: rgba(248, 113, 113, .14); }
[data-theme="dark"] .estado--sin_datos { --estado: #a3aec2; --estado-fondo: rgba(163, 174, 194, .12); }
.pb-estado__global { display: flex; gap: 1.1rem; align-items: center; margin: 0 0 2rem; padding: 1.5rem 1.6rem; border: 1px solid var(--estado); border-radius: var(--pt-radio); background: var(--estado-fondo); }
.pb-estado__global .pt-icono { width: 52px; height: 52px; border-radius: 50%; color: #fff; background: var(--estado); }
[data-theme="dark"] .pb-estado__global .pt-icono { color: #0b1022; }
.pb-estado__global .pt-icono svg { width: 26px; height: 26px; }
.pb-estado__global strong { display: block; font-size: 1.25rem; line-height: 1.3; letter-spacing: -.01em; color: var(--pt-tinta); }
.pb-estado__global div > span { display: block; margin-top: .25rem; font-size: .925rem; line-height: 1.5; color: var(--pt-texto); }
.pb-estado__lista { margin: 0 0 3rem; padding: 0; list-style: none; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio); background: var(--pt-tarjeta); box-shadow: var(--pt-sombra); overflow: hidden; }
.pb-estado__lista li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .3rem 1rem; padding: 1.15rem 1.4rem; border-top: 1px solid var(--pt-borde); }
.pb-estado__lista li:first-child { border-top: 0; }
.pb-estado__nombre { font-weight: 700; color: var(--pt-tinta); }
.pb-estado__texto { grid-column: 1 / -1; margin: 0; font-size: .9rem; line-height: 1.55; color: var(--pt-texto); }
.pb-estado__chip { align-self: start; display: inline-flex; align-items: center; gap: .4rem; padding: .25rem .7rem; border-radius: 999px; font-size: .8rem; font-weight: 700; color: var(--estado); background: var(--estado-fondo); white-space: nowrap; }
.pb-estado__chip::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--estado); }
.pb-estado h2 { margin: 0 0 1rem; font-size: 1.3rem; letter-spacing: -.01em; font-weight: 800; color: var(--pt-tinta); }
.pb-estado__incidencias { display: grid; gap: .75rem; margin: 0 0 2.5rem; padding: 0; list-style: none; }
.pb-estado__incidencias li { padding: 1rem 1.2rem; border: 1px solid var(--pt-borde); border-left: 4px solid var(--estado); border-radius: var(--pt-radio-sm); background: var(--pt-tarjeta); }
.pb-estado__incidencias small { font-size: .8125rem; color: var(--pt-tenue); }
.pb-estado__incidencias p { margin: .3rem 0 0; font-size: .95rem; line-height: 1.55; color: var(--pt-texto); }
.pb-estado__vacio { display: flex; gap: .6rem; align-items: center; margin: 0 0 2.5rem; padding: 1.1rem 1.25rem; border: 1px dashed var(--pt-borde); border-radius: var(--pt-radio-sm); color: var(--pt-texto); }
.pb-estado__vacio svg { width: 18px; height: 18px; color: var(--pt-violeta); }
.pb-estado__nota { margin: 0; font-size: .875rem; line-height: 1.65; color: var(--pt-tenue); }
.pb-estado__nota a { color: var(--pt-violeta-texto); }

/* ── Mapa de enlaces: la galería con los colores de la portada, en claro y en oscuro ── */
.pb .mg-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1.75rem; }
@media (max-width: 700px) { .pb .mg-rejilla { grid-template-columns: minmax(0, 1fr); } }
.pb .mg-tarjeta { border: 1px solid var(--pt-borde); border-radius: var(--pt-radio); background: var(--pt-tarjeta); box-shadow: var(--pt-sombra); }
.pb .mg-tarjeta__img { background: var(--pt-fondo-suave); border-bottom-color: var(--pt-borde); }
.pb .mg-tarjeta__texto { padding: 1.15rem 1.25rem 1.3rem; }
.pb .mg-tarjeta__nombre { color: var(--pt-tinta); }
.pb .mg-tarjeta__nombre svg { color: var(--pt-violeta); }
.pb .mg-tarjeta__pregunta { color: var(--pt-tinta); }
.pb .mg-tarjeta__desc, .pb .mg-tarjeta__ancha { color: var(--pt-texto); }
.pb .mg-probar { min-height: 42px; border-radius: 10px; background: var(--pt-violeta); }
[data-theme="dark"] .pb .mg-probar { background: #5b4bff; }
.pb .mg-enlace { color: var(--pt-violeta-texto); }
.pb .mg-nota { color: var(--pt-tenue); }

/* ── Pantallas medianas y móvil ─────────────────────────────────────────── */
@media (max-width: 1080px) {
    .pb-doc { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pb-doc__indice { display: none; }
    .pb-indice--movil { display: block; margin: 0 0 2.25rem; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio-sm); background: var(--pt-fondo-suave); }
    .pb-indice--movil summary { display: flex; align-items: center; justify-content: space-between; min-height: 48px; padding: .75rem 1.1rem; font-weight: 650; color: var(--pt-tinta); cursor: pointer; list-style: none; }
    .pb-indice--movil summary::-webkit-details-marker { display: none; }
    .pb-indice--movil summary svg { width: 18px; height: 18px; color: var(--pt-violeta); transition: transform .2s; }
    .pb-indice--movil[open] summary svg { transform: rotate(180deg); }
    .pb-indice--movil ol { margin: 0 1.1rem 1rem; }
    .pb-art__rejilla { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pb-art__lateral { display: none; }
    .pb-art__cuerpo, .pb-art__faq, .pb-art__cta, .pb-prosa { max-width: none; }
    .pb .pt-pasos.pb-pasos--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-rejilla--4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 960px) {
    .pb-cabecera__rejilla, .pb-funcion, .pb-boletin { grid-template-columns: minmax(0, 1fr); gap: 2rem; }
    .pb-funcion--rev .pb-funcion__img { order: 0; }
    .pb-funcion + .pb-funcion { margin-top: 3.5rem; }
    .pb-posts, .pb-rel .pb-posts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-post--destacado { grid-template-columns: minmax(0, 1fr); gap: 0; }
    .pb-post--destacado .pb-post__img { margin-bottom: 1.1rem; }
    .pb-rejilla { grid-template-columns: repeat(2, minmax(0, 1fr)); }
    .pb-api__tres { grid-template-columns: minmax(0, 1fr); }
}
/* Comparativa en el móvil: cada herramienta, una tarjeta (sin desplazar de lado) */
@media (max-width: 820px) {
    .pb-tabla-caja { overflow: visible; border: 0; background: none; box-shadow: none; }
    .pb-tabla { min-width: 0; }
    .pb-tabla, .pb-tabla tbody, .pb-tabla tr, .pb-tabla th, .pb-tabla td { display: block; width: auto; }
    .pb-tabla thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
    .pb-tabla tbody tr { margin: 0 0 1rem; border: 1px solid var(--pt-borde); border-radius: var(--pt-radio); background: var(--pt-tarjeta); box-shadow: var(--pt-sombra); overflow: hidden; }
    .pb-tabla tbody th { position: static; width: auto; padding: 1.1rem 1.2rem; box-shadow: none; background: var(--pt-fondo-suave); border-top: 0; }
    .pb-tabla td { padding: .9rem 1.2rem; }
    .pb-tabla td::before { content: attr(data-et); display: block; margin-bottom: .25rem; font-size: .7rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--pt-violeta-texto); }
    .pb-tabla td:last-child { width: auto; }
}
@media (max-width: 720px) {
    .pb-cabecera { padding: 2.5rem 0 2.75rem; }
    .pb-botones .pt-boton { flex: 1 1 100%; }
    .pb-rejilla, .pb-rejilla--2, .pb-rejilla--4, .pb-dos, .pb-beneficios { grid-template-columns: minmax(0, 1fr); }
    .pb .pt-pasos.pb-pasos--4 { grid-template-columns: minmax(0, 1fr); }
    .pb-posts, .pb-rel .pb-posts { grid-template-columns: minmax(0, 1fr); gap: 2.25rem; }
    .pb-art__cab { padding-top: 2.25rem; }
    .pb-art__portada { margin-top: 1.75rem; padding: 0 16px; }
    .pb-art__portada > div { border-radius: 14px; }
    .pb-art__rejilla { padding-top: 2.25rem; }
    .pb-art__cuerpo { font-size: 1.0625rem; line-height: 1.75; }
    .pb-art__cta { padding: 1.5rem 1.25rem; }
    .pb-rel { padding: 3.5rem 0 3.75rem; margin-top: 3rem; }
    .pb-estado__global { padding: 1.2rem; }
    .pb-estado__lista li { padding: 1rem 1.1rem; }
    .pb-final--suelta { padding-top: 3.75rem; }
    .pb-boletin__form { padding: 1.25rem; }
}

@media (min-width: 1600px) {
    /* Mismo ancho que la cabecera y el pie comunes a 1920 (1440 px, como la portada) */
    .pb { --pt-ancho: 1440px; }
    .pb-cabecera { padding: 5rem 0 4.25rem; }
}

@media (prefers-reduced-motion: reduce) {
    .pb-post__img img, .pb-chip { transition: none; }
    .pb-post:hover .pb-post__img img { transform: none; }
}

/* El mapa interactivo («Pruébalo») se abre por encima de la cabecera fija: el contenedor sube de capa mientras está abierto */
.pt.pb:has(.mg-modal:not([hidden])) { z-index: 200; }

/* ── Páginas de error 403 y 404 dentro del layout común ─────────────────── */
.pb-error { padding: 5rem 0 6rem; border-bottom: 0; }
.pb-error__codigo { display: block; margin: 0 0 .75rem; font-size: clamp(5.5rem, 16vw, 9rem); font-weight: 800; line-height: 1; letter-spacing: -.05em; color: var(--pt-violeta); }
.pb-error .pb-chips { margin-top: 2.5rem; }
@media (max-width: 720px) { .pb-error { padding: 3rem 0 4rem; } }

/* Mapa de enlaces: cada vista con su imagen del tema de la web (las dos son diferidas: solo se baja la que se ve) */
.pb .mg-tema { height: 100%; }
.pb .mg-tema--oscuro { display: none; }
[data-theme="dark"] .pb .mg-tema--claro { display: none; }
[data-theme="dark"] .pb .mg-tema--oscuro { display: block; }
