/* ============================================================
   Auditoría SEO + GEO — estilos de la app (prefijo au-)
   Usa las variables del sitio (--paper, --line, --glass-bg…).
   Breakpoints: 1100 (escritorio), 900 (tablet), 640 (móvil).
   ============================================================ */
.au { --au-good: #5ed29c; --au-mid: #f5b84b; --au-bad: #ff6b7d; --au-r: 24px; position: relative; }
html[data-theme="light"] .au { --au-good: #1d8a57; --au-mid: #a8660b; --au-bad: #c92a3e; }
.au .t-good { color: var(--au-good); } .au .t-mid { color: var(--au-mid); } .au .t-bad { color: var(--au-bad); } .au .t-na { color: var(--paper-faint); }
.au-sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.au-print-head { display: none; }
.au-noscript { padding: 18px; border-radius: 16px; background: var(--glass-bg); color: var(--paper-dim); }
.au button { font: inherit; }
.au button.btn { font-weight: 600; font-size: 14px; }

/* ---------- Buscador ---------- */
.au-search { padding: 26px; border-radius: 28px; display: grid; gap: 16px;
  background: radial-gradient(90% 140% at 100% 0%, rgba(240,54,225,.10), transparent 60%), radial-gradient(80% 120% at 0% 100%, rgba(145,73,255,.10), transparent 60%), var(--glass-bg); }
.au-label { font-size: 13px; font-weight: 500; color: var(--paper-dim); letter-spacing: .01em; }
.au-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 12px; }
.au-field { position: relative; min-width: 0; }
.au-field-ic { position: absolute; left: 20px; top: 50%; transform: translateY(-50%); color: var(--paper-faint); display: flex; pointer-events: none; }
.au-input { width: 100%; height: 62px; padding: 0 20px 0 54px; border: 0; outline: none; border-radius: 18px; font: inherit; font-size: 18px; color: var(--paper);
  background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line-strong); transition: box-shadow .2s; }
.au-input::placeholder { color: var(--paper-faint); }
.au-input:focus { box-shadow: inset 0 0 0 1.5px #f036e1, 0 0 0 4px rgba(240,54,225,.12); }
.au-search.has-err .au-input { box-shadow: inset 0 0 0 1.5px var(--au-bad); }
.au .au-go { height: 62px; padding: 0 28px; font-size: 15px; border-radius: 18px; justify-content: center; white-space: nowrap; }
.au-go.is-busy svg { animation: au-spin 1s linear infinite; }
.au-go[disabled] { opacity: .75; cursor: progress; }
.au-err { margin: -4px 0 0; font-size: 13.5px; color: var(--au-bad); display: flex; gap: 8px; align-items: center; }
.au-opts { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px 24px; }
.au-seg { display: inline-flex; align-items: center; gap: 4px; padding: 4px; border-radius: 999px; background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--line); }
.au-seg-l { font-size: 12.5px; color: var(--paper-faint); padding: 0 8px 0 12px; }
.au-seg button { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; background: transparent; color: var(--paper-dim); font-size: 13.5px; font-weight: 500; cursor: pointer; transition: background .2s, color .2s; }
.au-seg button[aria-checked="true"] { background: var(--paper); color: var(--ink); }
.au-seg button:not([aria-checked="true"]):hover { color: var(--paper); }
.au-examples { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13px; color: var(--paper-faint); }
.au-examples button, .au-hist-b { min-height: 44px; padding: 0 14px; border: 0; border-radius: 12px; cursor: pointer; font-size: 13px; color: var(--paper-dim);
  background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--line); transition: color .2s, box-shadow .2s, transform .2s; }
.au-examples button:hover, .au-hist-b:hover { color: var(--paper); box-shadow: inset 0 0 0 1px var(--line-strong); }
.au-history { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding-top: 14px; border-top: 1px solid var(--line); }
.au-history[hidden] { display: none; }
.au-hist-l { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--paper-faint); margin-right: 4px; }
.au-hist-b { display: inline-flex; align-items: center; gap: 8px; }
.au-hist-b b { font-family: 'JetBrains Mono', monospace; font-weight: 500; }
.au-hist-b small { color: var(--paper-faint); font-size: 11.5px; }

/* ---------- Estado vacío ---------- */
.au-stage { margin-top: 28px; }
.au-empty { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr); gap: 56px; padding: 40px 4px 8px; align-items: start; }
.au-empty-h { font-size: clamp(26px, 2.6vw, 36px); line-height: 1.12; letter-spacing: -0.025em; font-weight: 500; margin: 14px 0 16px; text-wrap: balance; }
.au-empty-txt p { color: var(--paper-dim); font-size: 16px; line-height: 1.65; margin: 0 0 22px; max-width: 52ch; }
.au-empty-meta { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.au-empty-meta li { display: flex; align-items: center; gap: 10px; font-size: 14px; color: var(--paper-dim); }
.au-empty-meta svg { color: #5ed29c; flex-shrink: 0; }
.au-empty-cats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 28px; }
.au-empty-cats li { display: grid; grid-template-columns: auto auto 1fr; gap: 14px; align-items: start; padding: 18px 0; border-top: 1px solid var(--line); }
.au-empty-cats li:last-child { grid-column: 1 / -1; }
.au-empty-n { font-size: 11.5px; color: #f036e1; padding-top: 12px; }
html[data-theme="light"] .au-empty-n { color: #a8138f; }
.au-empty-cats b { display: block; font-size: 15.5px; font-weight: 600; margin: 2px 0 4px; }
.au-empty-cats div span { font-size: 13.5px; color: var(--paper-dim); line-height: 1.5; }

/* ---------- Cargando ---------- */
@keyframes au-spin { to { transform: rotate(360deg); } }
@keyframes au-shim { 0% { background-position: -400px 0; } 100% { background-position: 400px 0; } }
.au-spin { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); border-top-color: #f036e1; animation: au-spin .9s linear infinite; flex-shrink: 0; }
.sk { display: block; border-radius: 10px; background: linear-gradient(90deg, var(--glass-bg-strong) 0, var(--line-strong) 50%, var(--glass-bg-strong) 100%); background-size: 800px 100%; animation: au-shim 1.6s ease-in-out infinite; }
.sk-l { height: 12px; margin: 10px 0; } .sk-l.big { height: 26px; } .sk-l.thin { height: 8px; }
.w30 { width: 30%; } .w40 { width: 40%; } .w50 { width: 50%; } .w70 { width: 70%; } .w90 { width: 90%; } .w100 { width: 100%; }
.sk-circle { width: 170px; height: 170px; border-radius: 50%; margin: 10px auto; } .sk-circle.sm { width: 120px; height: 120px; } .sk-circle.xs { width: 84px; height: 84px; margin: 0 auto 6px; }
.sk-radar { width: 78%; aspect-ratio: 1; margin: 6px auto; clip-path: polygon(50% 0, 93% 25%, 93% 75%, 50% 100%, 7% 75%, 7% 25%); border-radius: 0; }
.sk-thumb { width: 100%; height: 100%; border-radius: 14px; } .sk-dot { width: 36px; height: 36px; border-radius: 12px; flex-shrink: 0; }
.sk-fill { width: 100%; height: 100%; border-radius: 0; } .sk-num { width: 38px; height: 30px; display: inline-block; vertical-align: middle; }
@media (prefers-reduced-motion: reduce) { .sk, .au-spin, .au-go.is-busy svg { animation: none; } }
.au-loading { display: grid; gap: 16px; }
.au-steps { padding: 22px 24px; border-radius: var(--au-r); }
.au-steps-h { display: flex; gap: 14px; align-items: center; margin-bottom: 16px; }
.au-steps-h b { display: block; font-size: 16px; font-weight: 600; word-break: break-word; }
.au-steps-h small { color: var(--paper-faint); font-size: 13px; }
.au-steps ol { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 10px; }
.au-steps li { display: flex; align-items: center; gap: 10px; font-size: 13.5px; color: var(--paper-faint); padding: 12px 14px; border-radius: 14px; background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--line); transition: color .3s, box-shadow .3s; }
.au-step-i { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; box-shadow: inset 0 0 0 1.5px var(--line-strong); color: transparent; transition: background .3s, color .3s; }
.au-steps li.on { color: var(--paper); box-shadow: inset 0 0 0 1px rgba(240,54,225,.45); }
.au-steps li.on .au-step-i { box-shadow: inset 0 0 0 2px #f036e1; animation: au-pulse 1.2s ease-in-out infinite; }
.au-steps li.done { color: var(--paper-dim); }
.au-steps li.done .au-step-i { background: #5ed29c; color: #0b1f15; box-shadow: none; }
@keyframes au-pulse { 50% { opacity: .45; } }
.au-sk-head { display: grid; grid-template-columns: 168px 1fr; gap: 22px; padding: 18px; border-radius: var(--au-r); height: 142px; }
.au-sk-list { display: grid; gap: 12px; }
.au-sk-list > div { display: flex; gap: 16px; padding: 18px 22px; border-radius: 20px; }
.au-sk-list > div > div { flex: 1; }

/* ---------- Error ---------- */
.au-error { display: flex; gap: 20px; padding: 30px; border-radius: var(--au-r); align-items: flex-start; }
.au-error-ic { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; flex-shrink: 0; color: var(--au-mid); background: rgba(245,184,75,.12); box-shadow: inset 0 0 0 1px rgba(245,184,75,.3); }
.au-error h2 { margin: 4px 0 8px; font-size: 22px; font-weight: 600; letter-spacing: -0.015em; }
.au-error p { margin: 0; color: var(--paper-dim); line-height: 1.6; max-width: 62ch; }
.au-error-a { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 18px; }
.au-error-a .btn { min-height: 46px; }

/* ---------- Reporte: cabecera ---------- */
.au-report { display: grid; gap: 18px; }
.au-demo-note { display: flex; gap: 10px; align-items: flex-start; padding: 14px 18px; border-radius: 16px; font-size: 14px; color: var(--paper); background: rgba(245,184,75,.10); box-shadow: inset 0 0 0 1px rgba(245,184,75,.35); }
.au-demo-note svg { color: var(--au-mid); flex-shrink: 0; margin-top: 2px; }
.au-tag-demo { display: inline-block; margin-left: 8px; padding: 3px 9px; border-radius: 999px; font-size: 10.5px; letter-spacing: .12em; color: #16101a; background: #f5b84b; vertical-align: 1px; }
.au-head { display: grid; grid-template-columns: 168px minmax(0, 1fr) auto; gap: 22px; align-items: center; padding: 18px; border-radius: var(--au-r); }
.au-thumb { width: 168px; aspect-ratio: 16 / 10; border-radius: 14px; overflow: hidden; background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line); }
.au-thumb img { width: 100%; height: 100%; object-fit: cover; object-position: top center; display: block; }
.au-thumb-ph { width: 100%; height: 100%; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--paper-faint); }
.au-thumb-ph small { font-size: 11px; max-width: 90%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.au-head-url { margin: 6px 0 8px; font-size: clamp(22px, 2.4vw, 32px); font-weight: 600; letter-spacing: -0.025em; line-height: 1.1; overflow-wrap: anywhere; }
.au-head-meta { margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; font-size: 13px; color: var(--paper-faint); }
.au-head-meta span { display: inline-flex; align-items: center; gap: 6px; }
.au-actions { display: flex; flex-direction: column; gap: 8px; }
.au-act { display: inline-flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 12px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--paper);
  background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line-strong); white-space: nowrap; transition: background .2s, transform .2s; }
.au-act:hover { background: var(--line-strong); }
.au-act.is-locked { color: var(--paper-dim); }

/* ---------- Puntajes ---------- */
.au-scores { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.35fr) minmax(0, 1fr); gap: 16px; }
.au-card { padding: 22px; border-radius: var(--au-r); min-width: 0; }
.au-card-h { margin: 0 0 6px; font-size: 13px; font-weight: 500; color: var(--paper-dim); letter-spacing: .02em; }
.au-overall { display: flex; flex-direction: column; align-items: center; text-align: center; }
.au-overall .au-card-h { align-self: stretch; text-align: left; }
.au-gauge { width: 100%; max-width: 220px; margin: 4px auto 0; }
.au-verdict { margin: 2px 0 12px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; }
.au-delta { margin-top: auto; display: flex; align-items: center; justify-content: center; flex-wrap: wrap; gap: 6px 10px; padding-top: 12px; border-top: 1px solid var(--line); align-self: stretch; min-height: 44px; font-size: 13px; color: var(--paper-faint); }
.au-delta-v { font-family: 'JetBrains Mono', monospace; font-size: 15px; font-weight: 500; padding: 4px 10px; border-radius: 999px; }
.au-delta-v.up { color: var(--au-good); background: rgba(94,210,156,.12); } .au-delta-v.down { color: var(--au-bad); background: rgba(255,107,125,.12); } .au-delta-v.eq { color: var(--paper-dim); background: var(--glass-bg-strong); }
.au-spark { display: inline-flex; }
.au-delta-first { font-size: 12.5px; }
.au-radar-c { width: 100%; max-width: 460px; margin: 0 auto; }
.au-radar-c svg { width: 100%; height: auto; }
.au-dist #au-donut { margin: 10px 0 18px; }
.au-mini { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.au-mini > div { padding: 12px 0; } .au-mini > div:nth-child(odd) { padding-right: 12px; border-right: 1px solid var(--line); } .au-mini > div:nth-child(even) { padding-left: 14px; }
.au-mini > div:nth-child(n+3) { border-top: 1px solid var(--line); }
.au-mini dt { font-family: 'JetBrains Mono', monospace; font-size: 17px; color: var(--paper); }
.au-mini dd { margin: 3px 0 0; font-size: 12px; color: var(--paper-faint); }

/* Mosaicos por categoría */
.au-cats { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 10px; }
.au-cat { display: flex; flex-direction: column; gap: 8px; align-items: flex-start; min-height: 108px; padding: 14px; border: 0; border-radius: 18px; cursor: pointer; text-align: left; color: var(--paper); transition: transform .25s cubic-bezier(.16,1,.3,1), background .2s; }
.au-cat:hover { transform: translateY(-2px); background: var(--glass-bg-strong); }
.au-cat-h { display: flex; align-items: center; gap: 7px; font-size: 12.5px; color: var(--paper-dim); line-height: 1.2; }
.au-cat-h svg { flex-shrink: 0; }
.au-cat b { font-size: 28px; font-weight: 600; letter-spacing: -0.03em; line-height: 1; font-variant-numeric: tabular-nums; margin-top: auto; }
.au-cat-bar { display: block; width: 100%; height: 5px; border-radius: 99px; background: var(--line); overflow: hidden; }
.au-cat-bar i { display: block; height: 100%; border-radius: inherit; }
.b-good { background: #5ed29c; } .b-mid { background: #f5b84b; } .b-bad { background: #ff6b7d; }

/* ---------- Secciones ---------- */
.au-sec { margin-top: 26px; min-width: 0; }
.au-sec-h { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 32px; flex-wrap: wrap; margin-bottom: 18px; }
.au-sec-h h3, .au-panel h3 { margin: 8px 0 0; font-size: clamp(22px, 2.2vw, 30px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.12; text-wrap: balance; }
.au-sec-h p { margin: 0; max-width: 44ch; color: var(--paper-dim); font-size: 14px; line-height: 1.55; }
.au-panel { padding: 26px; border-radius: var(--au-r); margin-top: 0; }
.au-panel h3 { font-size: clamp(20px, 1.8vw, 24px); margin-bottom: 18px; }
.au-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; margin-top: 26px; align-items: start; }
.au-note { margin: 14px 0 0; font-size: 12.5px; color: var(--paper-faint); line-height: 1.55; }

/* Recomendaciones */
.au-filters { display: grid; gap: 10px; margin-bottom: 16px; }
.au-chips { display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; -webkit-overflow-scrolling: touch; padding: 2px; margin: -2px; }
.au-chips::-webkit-scrollbar { display: none; }
.au-chips button { flex-shrink: 0; display: inline-flex; align-items: center; gap: 7px; min-height: 44px; padding: 0 16px; border: 0; border-radius: 999px; cursor: pointer; font-size: 13.5px; font-weight: 500; color: var(--paper-dim);
  background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; transition: background .2s, color .2s; }
.au-chips button small { font-family: 'JetBrains Mono', monospace; font-size: 11.5px; opacity: .75; }
.au-chips button[aria-pressed="true"] { color: #fff; background: linear-gradient(110deg, #f036e1, #9149ff); box-shadow: none; }
.au-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.au-rec { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px; padding: 20px 22px; border-radius: 20px; background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--line); }
.au-rec.au-off, .au-rec.au-cut { display: none; }
.au-more { display: flex; align-items: center; justify-content: center; gap: 8px; width: 100%; min-height: 50px; margin-top: 10px; border: 0; border-radius: 16px; cursor: pointer; font-size: 14px; font-weight: 500; color: var(--paper); background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line-strong); }
.au-more:hover { background: var(--line-strong); }
.au-more[hidden] { display: none; }
.au-rec-st { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; }
.st-fail { color: var(--au-bad); } .st-warn { color: var(--au-mid); } .st-pass { color: var(--au-good); } .st-info { color: var(--paper-faint); }
.au-rec-st.st-fail { background: rgba(255,107,125,.12); box-shadow: inset 0 0 0 1px rgba(255,107,125,.3); }
.au-rec-st.st-warn { background: rgba(245,184,75,.12); box-shadow: inset 0 0 0 1px rgba(245,184,75,.3); }
.au-rec-st.st-pass { background: rgba(94,210,156,.12); box-shadow: inset 0 0 0 1px rgba(94,210,156,.3); }
.au-rec-meta { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 8px; }
.au-pill { font-size: 11.5px; padding: 4px 9px; border-radius: 999px; color: var(--paper-dim); background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line); white-space: nowrap; }
.au-pill.imp-alto { color: var(--au-bad); box-shadow: inset 0 0 0 1px rgba(255,107,125,.35); }
.au-pill.imp-medio { color: var(--au-mid); box-shadow: inset 0 0 0 1px rgba(245,184,75,.35); }
.au-pill.st-pass { box-shadow: inset 0 0 0 1px rgba(94,210,156,.35); }
.au-rec h4 { margin: 0 0 6px; font-size: 17px; font-weight: 600; letter-spacing: -0.01em; line-height: 1.3; }
.au-rec-d { margin: 0; font-size: 14px; color: var(--paper-dim); line-height: 1.6; overflow-wrap: anywhere; }
.au-rec-fix { margin: 12px 0 0; padding: 12px 14px; border-radius: 12px; font-size: 14px; line-height: 1.6; color: var(--paper); background: var(--glass-bg-strong); box-shadow: inset 2px 0 0 #9149ff; overflow-wrap: anywhere; }
.au-rec-fix b { font-weight: 600; }
.au-rec-n { font-size: 12px; color: var(--paper-faint); padding-top: 4px; }
.au-rec.is-pass { padding: 14px 22px; } .au-rec.is-pass h4 { font-size: 15px; } .au-rec.is-pass .au-rec-st { width: 32px; height: 32px; }
.au-rec.is-pass .au-rec-d { font-size: 13px; }
.au-empty-f { padding: 22px; text-align: center; color: var(--paper-faint); }
.au-locked { position: relative; margin-top: 10px; }
.au-list-tease { pointer-events: none; user-select: none; -webkit-mask-image: linear-gradient(180deg, #000 10%, transparent 92%); mask-image: linear-gradient(180deg, #000 10%, transparent 92%); }
.au-blur { margin: 8px 0 0; font-size: 14px; color: var(--paper-dim); filter: blur(5px); }
.au-rec.is-locked .au-rec-st { color: var(--paper-faint); background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line); }

/* Candado */
.au-gate { position: relative; margin-top: -70px; display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.2fr); gap: 36px; padding: 32px; border-radius: 28px; align-items: start;
  background: radial-gradient(100% 120% at 0% 0%, rgba(240,54,225,.14), transparent 60%), radial-gradient(90% 120% at 100% 100%, rgba(145,73,255,.16), transparent 60%), var(--ink-2); box-shadow: inset 0 0 0 1px var(--line-strong), 0 30px 60px -30px rgba(0,0,0,.6); }
.au-list > li + .au-gate, .au-list + .au-gate { margin-top: 14px; }
.au-gate h3 { margin: 16px 0 10px; font-size: clamp(22px, 2.2vw, 28px); font-weight: 600; letter-spacing: -0.02em; line-height: 1.15; text-wrap: balance; }
.au-gate-txt p { margin: 0 0 16px; color: var(--paper-dim); font-size: 14.5px; line-height: 1.6; }
.au-gate-l { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; }
.au-gate-l li { display: flex; gap: 10px; align-items: center; font-size: 14px; color: var(--paper-dim); }
.au-gate-l svg { color: #5ed29c; flex-shrink: 0; }
.au-gate-f .pg-form-fields { gap: 14px; }
.au-gate-f .row { gap: 14px; }
.au-gate-f .pg-input { height: 50px; }
.au-gate-f .btn { min-height: 50px; justify-self: stretch; justify-content: center; }
.au-gate-n { font-size: 12px; color: var(--paper-faint); line-height: 1.5; }
.au-gate-n a { color: var(--paper-dim); }
.au-opt { font-weight: 400; color: var(--paper-faint); }

/* ---------- Velocidad ---------- */
.au-psi, .au-psi-wait, .au-psi-err { padding: 26px; border-radius: var(--au-r); }
.au-psi-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.3fr); gap: 36px; align-items: start; }
.au-psi-sc { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px 14px; }
.au-psi-sc > div { text-align: center; font-size: 13px; color: var(--paper-dim); }
.au-psi-g { width: 100%; max-width: 128px; margin: 0 auto 4px; }
.au-psi-field { display: block; margin: 22px 0 0; line-height: 1.6; padding-top: 16px; border-top: 1px solid var(--line); font-size: 13px; color: var(--paper-dim); }
.au-psi-field b { color: var(--paper); }
.au-psi-field svg { vertical-align: -3px; margin-right: 8px; }
.au-ops-h { margin: 22px 0 10px; font-size: 14px; font-weight: 600; }
.au-ops { list-style: none; margin: 0; padding: 0; counter-reset: o; }
.au-ops li { display: flex; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--line); font-size: 14px; color: var(--paper-dim); }
.au-ops b { font-family: 'JetBrains Mono', monospace; font-weight: 500; color: var(--paper); white-space: nowrap; text-align: right; }
.au-ops b small { display: block; font-size: 11px; color: var(--paper-faint); }
.au-psi-wait-t { display: flex; gap: 14px; align-items: center; margin-bottom: 14px; }
.au-psi-wait-t b { display: block; font-size: 15px; font-weight: 600; }
.au-psi-wait-t small { font-size: 13px; color: var(--paper-faint); }
.au-prog { height: 4px; border-radius: 99px; background: var(--line); overflow: hidden; margin-bottom: 24px; }
.au-prog i { display: block; height: 100%; width: 100%; border-radius: inherit; background: linear-gradient(90deg, #9149ff, #f036e1); transform-origin: left; animation: au-prog 40s cubic-bezier(.1,.6,.3,1) forwards; }
@keyframes au-prog { from { transform: scaleX(.03); } to { transform: scaleX(.94); } }
.au-psi-bars > div { margin-bottom: 18px; }
.au-psi-err { display: flex; gap: 18px; align-items: flex-start; }
.au-psi-err b { font-size: 16px; } .au-psi-err p { margin: 6px 0 0; color: var(--paper-dim); font-size: 14px; line-height: 1.6; }
.au-seg-sm button { min-height: 44px; font-size: 13px; padding: 0 14px; }

/* ---------- Bots ---------- */
.au-bots { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 10px; }
.au-bot { padding: 16px; border-radius: 16px; background: var(--glass-bg); box-shadow: inset 0 0 0 1px var(--line); display: grid; gap: 4px; }
.au-bot-h { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 6px 8px; margin-bottom: 4px; }
.au-bot-h b { font-size: 13.5px; font-weight: 500; }
.au-bot > span { font-size: 13px; color: var(--paper-dim); }
.au-bot small { font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--paper-faint); }
.au-bot-s { display: inline-flex; align-items: center; gap: 5px; padding: 4px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600; white-space: nowrap; }
.b-permitido .au-bot-s { color: var(--au-good); background: rgba(94,210,156,.12); }
.b-parcial .au-bot-s { color: var(--au-mid); background: rgba(245,184,75,.12); }
.b-bloqueado .au-bot-s { color: var(--au-bad); background: rgba(255,107,125,.12); }
.b-bloqueado { box-shadow: inset 0 0 0 1px rgba(255,107,125,.35); }

/* ---------- SERP ---------- */
.au-serp { padding: 18px 20px; border-radius: 16px; background: #fff; color: #202124; font-family: Arial, Helvetica, sans-serif; box-shadow: 0 1px 6px rgba(32,33,36,.18); }
.au-serp-site { display: flex; align-items: center; gap: 10px; margin-bottom: 8px; min-width: 0; }
.au-serp-fav { width: 28px; height: 28px; border-radius: 50%; background: #f1f3f4; display: grid; place-items: center; flex-shrink: 0; overflow: hidden; }
.au-serp-site > span:last-child { min-width: 0; }
.au-serp-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; }
.au-serp-site small { display: block; font-size: 12px; color: #4d5156; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.au-serp-t { margin: 0 0 4px; font-size: 20px; line-height: 1.3; color: #1a0dab; overflow-wrap: anywhere; }
.au-serp-d { margin: 0; font-size: 14px; line-height: 1.58; color: #4d5156; overflow-wrap: anywhere; }
.au-serp-n, .au-facts { list-style: none; margin: 16px 0 0; padding: 0; display: grid; gap: 8px; }
.au-serp-n li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; }
.au-facts { margin-top: 18px; gap: 0; }
.au-facts li { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); }
.au-facts li svg { margin-top: 2px; flex-shrink: 0; }
.au-facts b { display: block; font-size: 14px; font-weight: 600; color: var(--paper); }
.au-facts span { font-size: 13px; color: var(--paper-dim); overflow-wrap: anywhere; }
.au-types span { font-family: 'JetBrains Mono', monospace; font-size: 12px; }

/* ---------- Encabezados / ficha ---------- */
.au-outline { list-style: none; margin: 0; padding: 0; max-height: 420px; overflow: auto; display: grid; gap: 2px; }
.au-outline li { display: flex; gap: 10px; align-items: baseline; padding: 7px 0; font-size: 14px; color: var(--paper-dim); line-height: 1.4; border-top: 1px solid var(--line); }
.au-outline li span { font-size: 10.5px; padding: 2px 6px; border-radius: 6px; background: var(--glass-bg-strong); box-shadow: inset 0 0 0 1px var(--line); color: var(--paper-faint); flex-shrink: 0; }
.au-outline .lv1 { color: var(--paper); font-weight: 600; } .au-outline .lv1 span { color: #fff; background: linear-gradient(110deg, #f036e1, #9149ff); box-shadow: none; }
.au-outline .lv2 { padding-left: 16px; } .au-outline .lv3 { padding-left: 34px; font-size: 13.5px; }
.au-tech { margin: 0; display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); column-gap: 22px; }
.au-tech > div { padding: 11px 0; border-top: 1px solid var(--line); min-width: 0; }
.au-tech dt { font-size: 12px; color: var(--paper-faint); }
.au-tech dd { margin: 3px 0 0; font-size: 14px; color: var(--paper); overflow-wrap: anywhere; }

/* ---------- CTA ---------- */
.au-cta { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 24px; align-items: center; padding: 30px 32px; border-radius: 28px; margin-top: 10px;
  background: radial-gradient(80% 140% at 100% 50%, rgba(240,54,225,.16), transparent 60%), var(--glass-bg); }
.au-cta h3 { margin: 8px 0 8px; font-size: clamp(24px, 2.6vw, 34px); font-weight: 500; letter-spacing: -0.025em; line-height: 1.1; }
.au-cta p { margin: 0; color: var(--paper-dim); font-size: 15px; line-height: 1.6; max-width: 56ch; }
.au-cta-b { min-height: 52px; justify-content: center; }
.au-foot-note { margin: 4px 0 0; font-size: 12px; color: var(--paper-faint); line-height: 1.5; }

/* ---------- Responsive ---------- */
@media (max-width: 1100px) {
  .au-scores { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-template-areas: "o d" "r r"; }
  .au-overall { grid-area: o; } .au-dist { grid-area: d; } .au-radar { grid-area: r; }
  .au-cats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .au-cats .au-cat:last-child { grid-column: span 2; }
  .au-head { grid-template-columns: 150px minmax(0, 1fr); }
  .au-thumb { width: 150px; }
  .au-actions { grid-column: 1 / -1; flex-direction: row; flex-wrap: wrap; }
  .au-actions .au-act { flex: 1 1 auto; justify-content: center; }
  .au-steps ol { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .au-empty { grid-template-columns: 1fr; gap: 28px; padding-top: 20px; }
  .au-two { grid-template-columns: 1fr; }
  .au-gate { grid-template-columns: 1fr; gap: 22px; }
  .au-psi-grid { grid-template-columns: 1fr; gap: 26px; }
  .au-psi-sc { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .au-psi-g { max-width: 112px; }
}
@media (max-width: 640px) {
  .au-search { padding: 18px; border-radius: 22px; }
  .au-row { grid-template-columns: 1fr; }
  .au-input, .au .au-go { height: 56px; }
  .au-go { width: 100%; }
  .au-opts { flex-direction: column; align-items: stretch; }
  .au-seg { justify-content: space-between; } .au-seg button { flex: 1; justify-content: center; } .au-seg-l { display: none; }
  .au-empty-cats { grid-template-columns: 1fr; }
  .au-head { grid-template-columns: 1fr; padding: 14px; }
  .au-thumb { width: 100%; aspect-ratio: 16 / 9; }
  .au-head.no-shot .au-thumb { display: none; }
  .au-actions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .au-act { flex-direction: column; gap: 4px; padding: 8px 4px; min-height: 60px; font-size: 12px; white-space: normal; text-align: center; line-height: 1.2; }
  .au-scores { grid-template-columns: 1fr; grid-template-areas: "o" "r" "d"; }
  .au-card { padding: 18px; }
  .au-cats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-cats .au-cat:last-child { grid-column: 1 / -1; }
  .au-rec { grid-template-columns: minmax(0, 1fr); gap: 0; padding: 16px; }
  .au-rec-st { position: absolute; top: 14px; right: 14px; width: 32px; height: 32px; border-radius: 10px; }
  .au-rec-meta { padding-right: 40px; min-height: 30px; }
  .au-rec.is-pass .au-rec-st { width: 28px; height: 28px; }
  .au-rec-n { display: none; }
  .au-rec.is-pass { padding: 12px 16px; }
  .au-gate { padding: 22px; margin-top: -50px; }
  .au-psi, .au-psi-wait, .au-psi-err, .au-panel, .au-error { padding: 20px; }
  .au-psi-sc { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .au-psi-err, .au-error { flex-direction: column; }
  .au-tech { grid-template-columns: 1fr; }
  .au-bots { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
  .au-bot { padding: 12px; }
  .au-bot-h b { font-size: 12.5px; overflow-wrap: anywhere; }
  .au-bot > span { font-size: 12.5px; }
  .au-cta { grid-template-columns: 1fr; padding: 24px; }
  .au-cta-b { width: 100%; }
  .au-sk-head { grid-template-columns: 1fr; height: auto; } .au-sk-head .sk-thumb { height: 120px; }
  .au-steps ol { grid-template-columns: 1fr; }
  .au-error-a .btn { width: 100%; justify-content: center; }
}

/* ---------- Impresión / PDF ---------- */
@media print {
  @page { size: A4; margin: 14mm 12mm; }
  html:root, html[data-theme] { --paper: #16101a; --paper-dim: rgba(22,16,26,.72); --paper-faint: rgba(22,16,26,.52); --line: rgba(22,16,26,.12); --line-strong: rgba(22,16,26,.22);
    --glass-bg: #fff; --glass-bg-strong: #f5f2f7; --ink: #fff; --ink-2: #fff; }
  .au { --au-good: #1d8a57; --au-mid: #a8660b; --au-bad: #c92a3e; }
  * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  body.au-page { background: #fff !important; }
  .au-page .pg-hero, .au-page .pg-crumbs, .au-page main > .pg-sec:not(.pg-tool), .au-page .backdrop, .au-page .grain, .au-search, .au-cta-b, .au-filters, .au-actions, .au-demo-note, .pg-toast, .au-gate { display: none !important; }
  .au-page .pg-tool { padding: 0 !important; }
  .au-page .container { max-width: none; padding: 0; }
  .au-print-head { display: flex !important; align-items: center; gap: 14px; padding-bottom: 12px; margin-bottom: 16px; border-bottom: 2px solid #9149ff; }
  .au-print-head img { width: 40px; height: auto; }
  .au-print-head b { display: block; font-size: 16px; color: #16101a; }
  .au-print-head span { font-size: 11px; color: #555; }
  .au-stage { margin-top: 0; }
  .glass, .au-rec, .au-bot, .au-cat { background: #fff !important; box-shadow: none !important; border: 1px solid #e3dde7 !important; }
  .glass::before { display: none !important; }
  .au-report { gap: 12px; }
  .au-head { grid-template-columns: 130px 1fr; } .au-thumb { width: 130px; }
  .au-scores { grid-template-columns: 1fr 1.45fr 1fr; grid-template-areas: none; gap: 10px; }
  .au-overall, .au-dist, .au-radar { grid-area: auto; }
  .au-card { padding: 14px; } .au-mini { display: none; } .au-delta { font-size: 11px; }
  .au-donut, .mmc-donut { flex-direction: column; align-items: stretch; gap: 10px; }
  .au-gauge { max-width: 170px; } .au-dist #au-donut { margin: 6px 0 10px; }
  .au-cats { grid-template-columns: repeat(7, 1fr); gap: 6px; }
  .au-cats .au-cat:last-child { grid-column: auto; }
  .au-cat-h { font-size: 10.5px; }
  .au-cat { min-height: 0; padding: 10px; } .au-cat b { font-size: 20px; }
  .au-rec, .au-card, .au-bot, .au-panel, .au-cta, .au-head, .au-tech > div, .au-ops li { break-inside: avoid; page-break-inside: avoid; }
  .au-rec.au-off, .au-rec.au-cut { display: grid !important; }
  #au-recs { break-before: page; }
  .au-sec-h { break-after: avoid; page-break-after: avoid; }
  .au-psi { break-inside: auto; page-break-inside: auto; } .au-psi-grid, .au-ops { break-inside: avoid; }
  .au .mmc-c-good { color: #1d8a57 !important; } .au .mmc-c-mid { color: #a8660b !important; } .au .mmc-c-bad { color: #c92a3e !important; }
  .au-cta .grad { background: none !important; -webkit-text-fill-color: #7a1fd1 !important; color: #7a1fd1 !important; box-shadow: none !important; border: 0 !important; }
  .au-two { grid-template-columns: 1fr 1fr; break-inside: avoid; }
  .au-outline { max-height: none; overflow: visible; }
  .au-sec-h h3, .au-panel h3 { font-size: 20px; }
  .au-rec { padding: 12px 14px; } .au-rec h4 { font-size: 14px; } .au-rec-d, .au-rec-fix { font-size: 12px; }
  .au-psi-grid { grid-template-columns: .9fr 1.3fr; }
  .au-psi-sc { grid-template-columns: repeat(2, 1fr); }
  .au .t-good, .au-delta-v.up { color: #1d8a57; } .au .t-mid { color: #a8660b; } .au .t-bad, .au-delta-v.down { color: #c92a3e; }
  .mmc-t-good { fill: #1d8a57 !important; } .mmc-t-mid { fill: #a8660b !important; } .mmc-t-bad { fill: #c92a3e !important; }
  .au-chips, .au-list-tease { display: none !important; }
  .au-cta { display: block; } .au-cta::after { content: "WhatsApp 871 365 9471 · contacto@mercadomonkey.com · mercadomonkey.com"; display: block; margin-top: 10px; font-size: 13px; font-weight: 600; color: #16101a; }
  html[lang^="en"] .au-cta::after { content: "WhatsApp +52 871 365 9471 · contacto@mercadomonkey.com · mercadomonkey.com"; }
}
