/* ==========================================================================
   GEOlens — Reporte GEO
   ========================================================================== */

body.report { background: var(--bg); }

/* ---------- Barra superior del reporte ---------- */
.report-bar { display: flex; align-items: center; gap: 10px; }
.report-bar .btn { height: 40px; padding: 0 14px; font-size: 14px; }
@media (max-width: 720px) { .report-bar .btn span { display: none; } .report-bar .btn { padding: 0 11px; } }

/* ---------- Layout con índice lateral ---------- */
.report-layout { display: grid; grid-template-columns: 220px 1fr; gap: 40px; padding: 40px 24px 96px; }
.toc { position: sticky; top: 96px; align-self: start; }
.toc small { display: block; font-family: var(--mono); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--ink-3); margin: 0 0 12px 12px; }
.toc ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 2px; position: relative; }
.toc li a { display: flex; align-items: center; gap: 10px; padding: 9px 12px; border-radius: 10px; font-size: 14px; font-weight: 500; color: var(--ink-2); transition: background .2s, color .2s; }
.toc li a:hover { background: rgba(10, 26, 47, .04); color: var(--ink); }
.toc li a.is-active { background: var(--surface); color: var(--brand); box-shadow: var(--shadow-sm); border: 1px solid var(--line); padding: 8px 11px; }
.toc li a svg { width: 16px; height: 16px; flex-shrink: 0; }
.toc-cta { margin-top: 24px; padding: 18px; border-radius: var(--radius); background: linear-gradient(160deg, #fff, #eef2ff); border: 1px solid rgba(43, 89, 255, .2); }
.toc-cta b { display: block; font-size: 14px; }
.toc-cta p { font-size: 13px; color: var(--ink-2); margin: 6px 0 12px; }
.toc-cta .btn { height: 36px; font-size: 13px; width: 100%; }
@media (max-width: 1024px) {
  .report-layout { grid-template-columns: 1fr; padding-top: 24px; }
  .toc { display: none; }
}
@media (max-width: 560px) { .report-layout { padding: 20px 16px 72px; } }

.report-main { display: grid; gap: 28px; min-width: 0; }

/* ---------- Tarjetas ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-lg); padding: 32px; box-shadow: var(--shadow-sm); scroll-margin-top: 96px; }
.card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; margin-bottom: 24px; flex-wrap: wrap; }
.card-head h2 { font-size: 22px; letter-spacing: -0.02em; }
.card-head p { color: var(--ink-2); font-size: 15px; margin-top: 6px; max-width: 620px; }
@media (max-width: 560px) { .card { padding: 22px; border-radius: 20px; } }

.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; color: var(--ink-2); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 10px; height: 10px; border-radius: 3px; }

/* ---------- Encabezado / resumen ---------- */
.summary { display: grid; grid-template-columns: auto 1fr; gap: 40px; align-items: center; position: relative; overflow: hidden; }
.summary::before {
  content: ""; position: absolute; top: -120px; right: -120px; width: 360px; height: 360px; border-radius: 50%;
  background: radial-gradient(circle, rgba(123, 97, 255, .12), transparent 70%); pointer-events: none;
}
.gauge { position: relative; width: 220px; height: 220px; }
.gauge svg { width: 100%; height: 100%; transform: rotate(-90deg); }
.gauge-center { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; }
.gauge-center .score { font-size: 64px; font-weight: 800; letter-spacing: -0.04em; line-height: 1; }
.gauge-center .of { font-size: 14px; color: var(--ink-3); font-weight: 500; margin-top: 4px; }
.gauge-grade { position: absolute; bottom: 6px; right: 6px; width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; font-weight: 800; font-size: 20px; color: #fff; box-shadow: var(--shadow); }

.site-id { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.site-fav { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; font-weight: 800; color: #fff; font-size: 18px; background: linear-gradient(135deg, var(--brand), var(--brand-2)); }
.site-id h1 { font-size: clamp(24px, 3vw, 32px); letter-spacing: -0.03em; word-break: break-all; }
.site-meta { display: flex; gap: 16px; flex-wrap: wrap; margin-top: 6px; font-size: 13px; color: var(--ink-3); }
.site-meta span { display: inline-flex; align-items: center; gap: 6px; }
.site-meta svg { width: 14px; height: 14px; }
.verdict { margin-top: 20px; font-size: 17px; color: var(--ink-2); max-width: 620px; }
.verdict b { color: var(--ink); }
.status-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 999px; font-size: 13px; font-weight: 700; }
.status-pill i { width: 7px; height: 7px; border-radius: 50%; background: currentColor; }

.benchmark { margin-top: 24px; max-width: 520px; }
.benchmark-track { position: relative; height: 10px; border-radius: 99px; background: linear-gradient(90deg, #fbd5d6 0%, #ffe8b8 45%, #c9eedd 75%, #a7e3c8 100%); }
.benchmark-marker { position: absolute; top: 50%; width: 20px; height: 20px; margin-left: -10px; margin-top: -10px; border-radius: 50%; background: var(--surface); border: 4px solid var(--ink); box-shadow: var(--shadow); }
.benchmark-avg { position: absolute; top: -6px; bottom: -6px; width: 2px; margin-left: -1px; background: var(--ink-3); border-radius: 2px; }
.benchmark-labels { display: flex; justify-content: space-between; margin-top: 10px; font-size: 12px; color: var(--ink-3); font-family: var(--mono); }
.benchmark-note { margin-top: 10px; font-size: 14px; color: var(--ink-2); }
.benchmark-note b { color: var(--ink); }

@media (max-width: 760px) {
  .summary { grid-template-columns: 1fr; gap: 24px; text-align: left; }
  .gauge { width: 180px; height: 180px; margin: 0 auto; }
  .gauge-center .score { font-size: 52px; }
}

/* ---------- KPIs ---------- */
.kpis { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; box-shadow: var(--shadow-sm); }
.kpi-top { display: flex; align-items: center; justify-content: space-between; }
.kpi-top small { font-size: 13px; color: var(--ink-2); font-weight: 500; }
.kpi-ic { width: 32px; height: 32px; border-radius: 10px; display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); }
.kpi-ic svg { width: 16px; height: 16px; }
.kpi-val { font-size: 30px; font-weight: 800; letter-spacing: -0.03em; margin-top: 12px; }
.kpi-val small { font-size: 15px; color: var(--ink-3); font-weight: 600; }
.kpi-sub { font-size: 13px; color: var(--ink-3); margin-top: 2px; }
@media (max-width: 900px) { .kpis { grid-template-columns: 1fr 1fr; } }

/* ---------- Visibilidad por motor ---------- */
.engines-table { display: grid; gap: 4px; }
.engine-row { display: grid; grid-template-columns: 180px 1fr 60px 150px; align-items: center; gap: 20px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.engine-row:last-child { border-bottom: 0; }
.engine-name { display: flex; align-items: center; gap: 12px; font-weight: 600; font-size: 15px; }
.engine-logo { width: 34px; height: 34px; border-radius: 10px; display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 14px; }
.bar-track { height: 10px; border-radius: 99px; background: var(--bg-2); overflow: hidden; }
.bar-fill { height: 100%; border-radius: 99px; transform-origin: left; }
.engine-pct { font-weight: 700; font-size: 15px; text-align: right; font-variant-numeric: tabular-nums; }
.engine-pos { font-size: 13px; color: var(--ink-3); text-align: right; }
.engine-pos b { color: var(--ink); }
@media (max-width: 700px) {
  .engine-row { grid-template-columns: 1fr auto; gap: 10px 14px; }
  .engine-row .bar-track { grid-column: 1 / -1; grid-row: 2; }
  .engine-pos { display: none; }
}

/* ---------- Pilares ---------- */
.pillar-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.pillar-item { padding: 20px; border: 1px solid var(--line); border-radius: var(--radius); display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; transition: border-color .2s, box-shadow .2s; }
.pillar-item:hover { border-color: var(--line-2); box-shadow: var(--shadow); }
.pillar-item .pi { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; }
.pillar-item .pi svg { width: 22px; height: 22px; }
.pillar-item h3 { font-size: 15px; font-weight: 700; }
.pillar-item small { font-size: 12px; color: var(--ink-3); }
.pillar-item .bar-track { height: 6px; margin-top: 10px; }
.mini-ring { position: relative; width: 52px; height: 52px; }
.mini-ring svg { width: 52px; height: 52px; transform: rotate(-90deg); }
.mini-ring span { position: absolute; inset: 0; display: grid; place-items: center; font-weight: 800; font-size: 15px; }
@media (max-width: 760px) { .pillar-grid { grid-template-columns: 1fr; } }

/* ---------- Problemas ---------- */
.filters { display: flex; gap: 6px; flex-wrap: wrap; }
.filter { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; font-weight: 600; color: var(--ink-2); border: 1px solid var(--line); background: var(--surface); display: inline-flex; align-items: center; gap: 6px; transition: all .2s; }
.filter b { font-size: 12px; padding: 0 6px; border-radius: 6px; background: var(--bg-2); }
.filter.is-active { background: var(--ink); color: #fff; border-color: var(--ink); }
.filter.is-active b { background: rgba(255, 255, 255, .18); }

.issues { display: grid; gap: 10px; }
.issue { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; transition: border-color .2s, box-shadow .2s; }
.issue.is-open { border-color: var(--line-2); box-shadow: var(--shadow); }
.issue-head { width: 100%; display: grid; grid-template-columns: auto 1fr auto auto; gap: 16px; align-items: center; padding: 16px 18px; text-align: left; }
.sev { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 8px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.sev i { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.sev-critical { background: var(--bad-soft); color: var(--bad); }
.sev-high { background: var(--warn-soft); color: var(--warn); }
.sev-medium { background: var(--brand-soft); color: var(--brand); }
.issue-title { font-weight: 600; font-size: 15px; }
.issue-cat { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; margin-top: 2px; }
.issue-tags { display: flex; gap: 6px; }
.issue-tags span { font-size: 12px; color: var(--ink-2); background: var(--bg-2); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.chev { width: 28px; height: 28px; border-radius: 8px; display: grid; place-items: center; background: var(--bg-2); transition: transform .3s var(--ease); }
.chev svg { width: 14px; height: 14px; }
.issue.is-open .chev { transform: rotate(180deg); }
.issue-body { height: 0; overflow: hidden; }
.issue-body-inner { padding: 4px 18px 20px 18px; display: grid; grid-template-columns: 1fr 1fr; gap: 20px; }
.issue-body h4 { font-size: 13px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink-3); margin-bottom: 8px; font-weight: 600; }
.issue-body p { font-size: 14px; color: var(--ink-2); }
.code { margin-top: 10px; padding: 12px 14px; border-radius: 10px; background: #0f1b2e; color: #c8d6f0; font-family: var(--mono); font-size: 12.5px; line-height: 1.6; overflow-x: auto; white-space: pre; }
.code .k { color: #7fb4ff; } .code .s { color: #8be3b5; } .code .c { color: #6b7d99; }
@media (max-width: 760px) {
  .issue-head { grid-template-columns: 1fr auto; }
  .issue-head .sev { grid-column: 1 / -1; justify-self: start; }
  .issue-tags { display: none; }
  .issue-body-inner { grid-template-columns: 1fr; }
}

/* ---------- Checklist técnico ---------- */
.checks { display: grid; grid-template-columns: 1fr 1fr; gap: 0 32px; }
.check { display: flex; align-items: center; gap: 12px; padding: 13px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.check .ci { width: 24px; height: 24px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; }
.check .ci svg { width: 13px; height: 13px; }
.check .ci.ok { background: var(--ok-soft); color: var(--ok); }
.check .ci.warn { background: var(--warn-soft); color: var(--warn); }
.check .ci.bad { background: var(--bad-soft); color: var(--bad); }
.check span:nth-child(2) { flex: 1; }
.check code { font-family: var(--mono); font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .checks { grid-template-columns: 1fr; } }

/* ---------- Consultas de prueba ---------- */
.prompts { display: grid; gap: 10px; }
.prompt { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; padding: 16px 18px; border: 1px solid var(--line); border-radius: var(--radius); }
.prompt q { font-weight: 600; font-size: 15px; quotes: "“" "”"; }
.prompt-engines { display: flex; gap: 6px; margin-top: 8px; flex-wrap: wrap; }
.pe { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 600; padding: 3px 8px; border-radius: 6px; }
.pe.yes { background: var(--ok-soft); color: var(--ok); }
.pe.no { background: var(--bg-2); color: var(--ink-3); text-decoration: line-through; text-decoration-color: rgba(133, 147, 166, .5); }
.prompt-result { text-align: right; }
.prompt-result b { font-size: 20px; letter-spacing: -0.02em; }
.prompt-result small { display: block; font-size: 12px; color: var(--ink-3); }
@media (max-width: 560px) { .prompt { grid-template-columns: 1fr; } .prompt-result { text-align: left; } }

/* ---------- Plan de acción ---------- */
.roadmap { display: grid; grid-template-columns: repeat(3, 1fr); gap: 16px; }
.phase { position: relative; padding: 24px; border-radius: var(--radius); border: 1px solid var(--line); background: linear-gradient(180deg, #fff, #fafbfe); }
.phase-tag { display: inline-flex; align-items: center; gap: 8px; font-family: var(--mono); font-size: 12px; font-weight: 500; color: var(--brand); background: var(--brand-soft); padding: 4px 10px; border-radius: 8px; }
.phase h3 { font-size: 18px; margin: 14px 0 4px; }
.phase > p { font-size: 14px; color: var(--ink-2); }
.phase ul { list-style: none; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.phase li { display: flex; gap: 10px; font-size: 14px; }
.phase li .box { width: 18px; height: 18px; flex-shrink: 0; margin-top: 2px; border-radius: 6px; border: 2px solid var(--line-2); }
.phase-gain { margin-top: 18px; padding-top: 14px; border-top: 1px dashed var(--line); font-size: 13px; color: var(--ink-2); display: flex; justify-content: space-between; }
.phase-gain b { color: var(--ok); }
@media (max-width: 900px) { .roadmap { grid-template-columns: 1fr; } }

/* ---------- CTA final del reporte ---------- */
.report-cta { display: grid; grid-template-columns: 1fr auto; gap: 24px; align-items: center; padding: 36px; border-radius: var(--radius-lg); background: linear-gradient(135deg, #0f1f3d, #1c2f63 60%, #2b3f8f); color: #fff; overflow: hidden; position: relative; }
.report-cta::after { content: ""; position: absolute; right: -80px; top: -80px; width: 300px; height: 300px; border-radius: 50%; background: radial-gradient(circle, rgba(123, 97, 255, .45), transparent 70%); }
.report-cta > * { position: relative; z-index: 1; }
.report-cta h2 { font-size: 26px; }
.report-cta p { color: rgba(255, 255, 255, .75); margin-top: 8px; max-width: 560px; }
.report-cta .actions { display: flex; gap: 10px; flex-wrap: wrap; }
.report-cta .btn-ghost { background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .2); color: #fff; box-shadow: none; }
@media (max-width: 760px) { .report-cta { grid-template-columns: 1fr; padding: 28px 22px; } }

.disclaimer { font-size: 12px; color: var(--ink-3); text-align: center; }

/* ---------- Toast ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 120%); z-index: 200; background: var(--ink); color: #fff; padding: 12px 18px; border-radius: 12px; font-size: 14px; font-weight: 500; box-shadow: var(--shadow-lg); display: flex; align-items: center; gap: 8px; opacity: 0; }
.toast svg { width: 16px; height: 16px; color: #6ee7b7; }

/* ---------- Impresión / PDF ---------- */
@media print {
  .nav, .toc, .report-bar, .report-cta, .filters, .toast { display: none !important; }
  body { background: #fff; }
  .report-layout { grid-template-columns: 1fr; padding: 0; }
  .card, .kpi { box-shadow: none; break-inside: avoid; }
  .issue-body { height: auto !important; }
  .reveal { opacity: 1 !important; transform: none !important; }
}

/* ==========================================================================
   Reporte con datos reales: estados, Pro y secciones bloqueadas
   ========================================================================== */
.report-state { min-height: 60vh; display: grid; place-items: center; padding: 40px 16px; }
.report-state.is-hidden { display: none; }
.state-card { text-align: center; max-width: 440px; }
.state-card h2 { font-size: 24px; }
.state-card p { color: var(--ink-2); margin-top: 8px; }
.loader { width: 44px; height: 44px; margin: 0 auto 16px; border-radius: 50%; border: 4px solid var(--line); border-top-color: var(--brand); animation: spin .8s linear infinite; }

.tier-badge { display: inline-flex; align-items: center; gap: 6px; margin-bottom: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--bg-2); color: var(--ink-2); }
.tier-badge.is-pro { background: linear-gradient(135deg, var(--brand), var(--brand-2)); color: #fff; }
.tier-badge svg { width: 12px; height: 12px; }
.business { margin-top: 16px; font-size: 14px; color: var(--ink-3); }
.business b { color: var(--ink-2); font-weight: 600; }
.verdict { margin-top: 10px; }

.exec { background: linear-gradient(160deg, #fff, #f3f5ff); border-color: rgba(43, 89, 255, .22); }
.exec-head { display: flex; align-items: center; gap: 14px; margin-bottom: 16px; }
.exec-head h2 { font-size: 20px; }
.exec-head small { color: var(--ink-3); font-size: 13px; }
.exec-ic { width: 42px; height: 42px; flex-shrink: 0; border-radius: 12px; display: grid; place-items: center; color: #fff; background: linear-gradient(135deg, #d97757, #c2410c); }
.exec-ic svg { width: 20px; height: 20px; }
.exec p { font-size: 17px; line-height: 1.7; color: var(--ink); }

.sub-title { font-size: 16px; margin: 32px 0 14px; }
.sub-text { font-size: 14px; color: var(--ink-2); margin: -6px 0 14px; }

/* Motores */
.engine-mode { display: block; font-size: 12px; color: var(--ink-3); font-weight: 500; }
.engine-row.is-locked { opacity: .6; }
.engine-row.is-locked .bar-track { background: repeating-linear-gradient(45deg, var(--bg-2), var(--bg-2) 6px, #fff 6px, #fff 12px); }
.lock-chip { display: inline-flex; align-items: center; gap: 5px; font-size: 12px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.lock-chip svg { width: 11px; height: 11px; }

/* Consultas con respuestas desplegables */
.prompt { display: block; }
.prompt-top { display: grid; grid-template-columns: 1fr auto; gap: 16px; align-items: center; }
.prompt details { margin-top: 12px; }
.prompt summary { cursor: pointer; font-size: 13px; font-weight: 600; color: var(--brand); list-style: none; }
.prompt summary::-webkit-details-marker { display: none; }
.prompt summary::before { content: "+ "; }
.prompt details[open] summary::before { content: "– "; }
.answers { display: grid; gap: 10px; margin-top: 10px; }
.answer { padding: 12px 14px; border-radius: 12px; background: var(--bg); font-size: 13.5px; color: var(--ink-2); line-height: 1.6; white-space: pre-line; }
.answer b { display: block; color: var(--ink); font-size: 12px; margin-bottom: 4px; }
.answer .src { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 8px; white-space: normal; }
.answer .src span { font-size: 11.5px; font-family: var(--mono); background: #fff; border: 1px solid var(--line); padding: 2px 7px; border-radius: 6px; }
@media (max-width: 560px) { .prompt-top { grid-template-columns: 1fr; } }

/* Competidores */
.comp-list { display: flex; flex-wrap: wrap; gap: 8px; }
.comp { display: inline-flex; align-items: center; gap: 8px; padding: 7px 12px 7px 7px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); font-size: 13px; font-weight: 600; }
.comp .fav { width: 22px; height: 22px; border-radius: 6px; display: grid; place-items: center; font-size: 11px; font-weight: 800; color: #fff; background: #94a3b8; text-transform: uppercase; }
.comp small { color: var(--ink-3); font-weight: 500; }

/* Conocimiento de marca */
.brand-know { margin-top: 28px; display: grid; grid-template-columns: auto 1fr; gap: 18px; align-items: start; padding: 20px; border-radius: var(--radius); border: 1px solid var(--line); background: var(--bg); }
.brand-know .bk-ic { width: 44px; height: 44px; border-radius: 12px; display: grid; place-items: center; color: #fff; background: #4d6bfe; font-weight: 800; }
.brand-know h4 { font-size: 15px; }
.brand-know p { font-size: 14px; color: var(--ink-2); margin-top: 4px; }

/* Problemas: pasos y solución bloqueada */
.issue-body ol { margin: 0; padding-left: 18px; display: grid; gap: 6px; font-size: 14px; color: var(--ink-2); }
.ai-tag { display: inline-block; margin-left: 6px; font-size: 10px; font-weight: 800; letter-spacing: .04em; padding: 1px 6px; border-radius: 5px; background: #fff1e6; color: #c2410c; vertical-align: 2px; }
.fix-locked { position: relative; min-height: 132px; padding: 16px; border-radius: 12px; border: 1px dashed rgba(43, 89, 255, .35); background: linear-gradient(160deg, #fbfcff, #eef2ff); overflow: hidden; }
.fix-locked .blur { filter: blur(4px); user-select: none; pointer-events: none; font-size: 14px; color: var(--ink-2); }
.fix-locked .over { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px; text-align: center; padding: 12px; }
.fix-locked .over b { font-size: 14px; }
.fix-locked .over .btns { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fix-locked .over .btn { height: 36px; font-size: 13px; padding: 0 14px; }
.code-wrap { position: relative; margin-top: 10px; }
.code-wrap .code { margin-top: 0; padding-right: 76px; }
.copy-btn { position: absolute; top: 8px; right: 8px; height: 28px; padding: 0 10px; border-radius: 8px; font-size: 12px; font-weight: 600; color: #c8d6f0; background: rgba(255, 255, 255, .08); display: inline-flex; align-items: center; gap: 5px; }
.copy-btn:hover { background: rgba(255, 255, 255, .16); color: #fff; }
.copy-btn svg { width: 13px; height: 13px; }

/* Sección bloqueada (plan gratis) */
.locked { position: relative; border-radius: var(--radius); overflow: hidden; border: 1px solid var(--line); min-height: 280px; }
.locked-preview { padding: 22px; filter: blur(5px); opacity: .7; user-select: none; pointer-events: none; }
.locked-preview .fake-line { height: 12px; border-radius: 6px; background: var(--line); margin-bottom: 10px; }
.locked-preview .fake-code { height: 120px; border-radius: 12px; background: #0f1b2e; margin: 14px 0; }
.locked-over { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; padding: 20px; background: linear-gradient(180deg, rgba(255, 255, 255, .55), rgba(255, 255, 255, .92)); }
.locked-card { text-align: center; max-width: 440px; }
.locked-card .modal-icon { margin: 0 auto 14px; width: 46px; height: 46px; border-radius: 14px; }
.locked-card h3 { font-size: 18px; }
.locked-card p { font-size: 14px; color: var(--ink-2); margin: 6px 0 16px; }
.locked-card .btns { display: flex; gap: 8px; justify-content: center; flex-wrap: wrap; }
.locked-card .btn { height: 42px; font-size: 14px; }

/* Archivos */
.file-tabs { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 14px; }
.file-tab { height: 36px; padding: 0 14px; border-radius: 10px; font-size: 13px; font-weight: 600; font-family: var(--mono); border: 1px solid var(--line); color: var(--ink-2); background: var(--surface); }
.file-tab.is-active { background: var(--ink); border-color: var(--ink); color: #fff; }
.file-panel .code { max-height: 420px; overflow: auto; }
.file-actions { display: flex; gap: 8px; margin-top: 10px; flex-wrap: wrap; }
.file-actions .btn { height: 38px; font-size: 13px; }
.file-hint { font-size: 13px; color: var(--ink-3); margin-top: 10px; }

/* Reescrituras e ideas */
.rewrites { display: grid; gap: 14px; }
.rewrite { border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; }
.rewrite-url { font-family: var(--mono); font-size: 12.5px; color: var(--brand); word-break: break-all; }
.rewrite-diag { margin: 8px 0 14px; font-size: 14px; color: var(--ink-2); }
.rewrite-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.rw-box { padding: 14px; border-radius: 12px; background: var(--bg); font-size: 14px; }
.rw-box small { display: block; font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--ink-3); font-weight: 600; margin-bottom: 6px; }
.rw-box.wide { grid-column: 1 / -1; background: var(--ok-soft); }
.rw-faq { margin-top: 12px; display: grid; gap: 8px; }
.rw-faq div { font-size: 14px; }
.rw-faq b { display: block; }
.rw-faq span { color: var(--ink-2); }
.ideas { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.idea { display: flex; gap: 12px; padding: 16px; border-radius: var(--radius); border: 1px solid var(--line); }
.idea .ic { width: 34px; height: 34px; flex-shrink: 0; border-radius: 10px; display: grid; place-items: center; background: var(--warn-soft); color: var(--warn); }
.idea .ic svg { width: 17px; height: 17px; }
.idea b { font-size: 14.5px; }
.idea p { font-size: 13.5px; color: var(--ink-2); margin-top: 4px; }
.idea .fmt { display: inline-block; margin-top: 6px; font-size: 11.5px; font-weight: 700; color: var(--brand); background: var(--brand-soft); padding: 2px 8px; border-radius: 6px; }
@media (max-width: 760px) { .rewrite-grid, .ideas { grid-template-columns: 1fr; } }

/* Bots de IA */
.bots { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin-bottom: 20px; }
.bot { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); }
.bot .ci { width: 26px; height: 26px; flex-shrink: 0; border-radius: 8px; display: grid; place-items: center; }
.bot .ci svg { width: 13px; height: 13px; }
.bot .ci.ok { background: var(--ok-soft); color: var(--ok); }
.bot .ci.bad { background: var(--bad-soft); color: var(--bad); }
.bot b { display: block; font-size: 13px; font-family: var(--mono); }
.bot small { font-size: 12px; color: var(--ink-3); }
@media (max-width: 760px) { .bots { grid-template-columns: 1fr 1fr; } }

.roadmap .phase .goal { font-size: 13px; color: var(--ink-3); margin-top: 6px; }

@media print {
  .locked, .fix-locked, .modal { display: none !important; }
}

/* Evita que los bloques de código estiren el grid */
.report-main > *, .issue-body-inner > *, .file-panel, .rewrite, .prompt { min-width: 0; }
.issue-body-inner { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
@media (max-width: 760px) { .issue-body-inner { grid-template-columns: minmax(0, 1fr); } }
