/* ═══════════════════════════════════════════════════════════════════════════════
   SEO Module — estilos específicos de la sección SEO & Indexación
   Depende de las variables CSS definidas en app.css (:root / [data-theme="light"])
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Contenedor raíz de la sección ────────────────────────────────────────── */
/* Sin max-width: la sección aprovecha todo el ancho disponible. Un wrapper
   interno opcional (.seo-section__inner) limita el ancho de prosa en sub-vistas
   que muestran texto largo. El padding escala con clamp() para tablet/desktop. */
.seo-section {
  width: 100%;
  margin: 0;
  padding: clamp(20px, 2.5vw, 32px) clamp(16px, 2.5vw, 32px) 48px;
  display: flex;
  flex-direction: column;
  gap: clamp(20px, 2vw, 32px);
}

/* Wrapper para limitar prosa larga (introducción, descripciones) sin
   estrangular tablas, grids ni KPIs. Usar solo donde haga falta. */
.seo-section__prose {
  max-width: 72ch;
}

/* ─── Cabecera de página ────────────────────────────────────────────────────── */
.seo-page-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.seo-page-header h1 {
  font-size: 22px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--ink, #e8e8f0);
  margin: 0;
}

.seo-page-intro {
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  line-height: 1.6;
  max-width: 72ch;
  margin: 0;
}

/* ─── Título de sub-sección ─────────────────────────────────────────────────── */
.seo-section-title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #e8e8f0);
  letter-spacing: -0.01em;
  margin: 0 0 12px;
}

/* ─── Zonas del dashboard (Wave 2 reorg) ────────────────────────────────────── */
.seo-zone {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.seo-zone-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 4px;
}

.seo-zone-title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  letter-spacing: -0.02em;
  margin: 0;
}

.seo-zone-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Form select compact (para toolbar inline) */
.form-select--compact {
  height: 30px;
  padding: 0 8px;
  font-size: 12px;
}

/* Sub-grupos dentro de "Herramientas" */
.seo-tool-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.seo-tool-group + .seo-tool-group {
  margin-top: 16px;
}

.seo-tool-group__title {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  text-transform: uppercase;
  letter-spacing: 0.08em;
  margin: 0;
}

/* Callout (CTA con hint) */
.seo-callout {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px;
  background: var(--surface, rgba(18,18,26,0.8));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
  align-items: flex-start;
}

.seo-callout__hint {
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  line-height: 1.5;
  margin: 0;
  max-width: 72ch;
}

/* ─── Subnav grid ────────────────────────────────────────────────────────────
   auto-fit + minmax(min(100%,220px),1fr): la card se contrae al 100% del
   contenedor en pantallas muy estrechas y escala a múltiples cols cuando hay
   espacio. Sin breakpoints fijos. */
.seo-subnav {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 12px;
}

.seo-subnav-card {
  display: grid;
  grid-template-columns: auto 1fr;
  grid-template-rows: auto auto;
  align-items: start;
  column-gap: 12px;
  row-gap: 4px;
  padding: 14px 16px;
  background: var(--surface, rgba(18, 18, 26, 0.8));
  backdrop-filter: blur(var(--blur, 16px));
  -webkit-backdrop-filter: blur(var(--blur, 16px));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
  cursor: pointer;
  text-align: left;
  color: var(--ink, #e8e8f0);
  transition: border-color 0.15s, background 0.15s, box-shadow 0.15s, transform 0.15s;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.3));
  min-height: 64px;
}

.seo-subnav-card:hover {
  border-color: var(--accent-bd, rgba(99,102,241,0.4));
  background: var(--surface-2, rgba(28,28,38,0.7));
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
  transform: translateY(-1px);
}

.seo-subnav-card--active {
  border-color: var(--accent-bd, rgba(99,102,241,0.25));
  background: var(--accent-bg, rgba(99,102,241,0.10));
}

.seo-subnav-card:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

.seo-subnav-card__icon {
  grid-row: 1 / span 2;
  align-self: center;
  width: 36px;
  height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-bg, rgba(99,102,241,0.10));
  color: var(--accent, #6366f1);
  flex-shrink: 0;
}

.seo-subnav-card:hover .seo-subnav-card__icon {
  background: var(--accent-bg, rgba(99,102,241,0.18));
}

/* Variantes por grupo (color del icono) */
.seo-tool-group:nth-of-type(1) .seo-subnav-card__icon { color: #818cf8; background: rgba(129,140,248,0.10); }
.seo-tool-group:nth-of-type(2) .seo-subnav-card__icon { color: #fbbf24; background: rgba(251,191,36,0.10); }
.seo-tool-group:nth-of-type(3) .seo-subnav-card__icon { color: #34d399; background: rgba(52,211,153,0.10); }
.seo-tool-group:nth-of-type(4) .seo-subnav-card__icon { color: #a0a0b0; background: rgba(160,160,176,0.10); }

.seo-subnav-card__title {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink, #e8e8f0);
  letter-spacing: -0.01em;
}

.seo-subnav-card__desc {
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  line-height: 1.45;
  /* Truncar a 2 líneas — el tooltip (title) muestra el texto completo. */
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ─── KPI grid ──────────────────────────────────────────────────────────────── */
.seo-kpi-section {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* KPIs: auto-fit + min(100%,150px) → 1-2 cols móvil → 7+ desktop. */
.seo-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
  gap: 12px;
  margin-bottom: 10px;
}

.seo-kpi-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  padding: 18px 12px 14px;
  background: var(--surface, rgba(18,18,26,0.8));
  backdrop-filter: blur(var(--blur, 16px));
  -webkit-backdrop-filter: blur(var(--blur, 16px));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
  text-align: center;
}

.seo-kpi-icon {
  width: 32px;
  height: 32px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: var(--accent-bg, rgba(99,102,241,0.10));
  color: var(--accent, #6366f1);
}

.seo-kpi-card--warn .seo-kpi-icon {
  background: var(--amber-bg, rgba(251,191,36,0.10));
  color: var(--amber, #fbbf24);
}

.seo-kpi-card--info .seo-kpi-icon {
  background: var(--blue-bg, rgba(59,130,246,0.10));
  color: var(--blue, #60a5fa);
}

/* Icono SVG base (Wave 3) */
.seo-icon {
  display: block;
}

/* Skeleton placeholders (mientras carga) */
.seo-skeleton {
  background: linear-gradient(90deg,
    var(--surface-2, rgba(28,28,38,0.7)) 0%,
    var(--border-2, rgba(255,255,255,0.10)) 50%,
    var(--surface-2, rgba(28,28,38,0.7)) 100%);
  background-size: 200% 100%;
  animation: seo-skeleton-shimmer 1.4s infinite linear;
  border-radius: 6px;
}

.seo-skeleton--circle {
  border-radius: 8px;
}

.seo-skeleton--bar {
  height: 28px;
  width: 60%;
  margin: 4px 0;
}

.seo-skeleton--bar-sm {
  height: 10px;
  width: 80%;
}

@keyframes seo-skeleton-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

@media (prefers-reduced-motion: reduce) {
  .seo-skeleton { animation: none; }
}

/* Spinner mini (sustituye al emoji ⏳ en sub-vistas) */
.rb-spinner--dot {
  display: inline-block;
  width: 12px;
  height: 12px;
  border: 2px solid var(--accent);
  border-right-color: transparent;
  border-radius: 50%;
  vertical-align: middle;
  margin-right: 6px;
  animation: rb-spin 0.8s linear infinite;
}

@keyframes rb-spin {
  to { transform: rotate(360deg); }
}

@media (prefers-reduced-motion: reduce) {
  .rb-spinner--dot { animation: none; }
}

.seo-kpi-value {
  font-size: 28px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  letter-spacing: -0.03em;
  min-height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.seo-kpi-label {
  font-size: 11px;
  color: var(--ink-2, #a0a0b0);
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 500;
}

.seo-kpi-notice {
  font-size: 12px;
  color: var(--amber, #fbbf24);
  background: var(--amber-bg, rgba(251,191,36,0.10));
  border: 1px solid var(--amber-bd, rgba(251,191,36,0.25));
  border-radius: var(--radius-sm, 8px);
  padding: 8px 12px;
  margin-top: 4px;
}

/* ─── Toolbar ───────────────────────────────────────────────────────────────── */
.seo-toolbar {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}

/* ─── Fila de formulario ────────────────────────────────────────────────────── */
.seo-form-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.seo-form-row label {
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2, #a0a0b0);
  white-space: nowrap;
  min-width: 120px;
}

.seo-form-row--check {
  align-items: center;
}

.seo-form-row--actions {
  margin-top: 8px;
  align-items: center;
  gap: 12px;
}

.seo-field-help {
  font-size: 11px;
  color: var(--ink-3, #606070);
}

/* ─── Checkbox labels ───────────────────────────────────────────────────────── */
.seo-check-label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
}

.seo-check-label input[type="checkbox"] {
  accent-color: var(--accent, #6366f1);
  width: 15px;
  height: 15px;
  cursor: pointer;
}

/* ─── Estado vacío ──────────────────────────────────────────────────────────── */
.seo-empty {
  padding: 32px 20px;
  text-align: center;
  color: var(--ink-3, #606070);
  font-size: 13px;
  border: 1px dashed var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius, 12px);
  background: var(--surface, rgba(18,18,26,0.8));
}

/* ─── Tabla base ────────────────────────────────────────────────────────────── */
.seo-table-area {
  overflow-x: auto;
  border-radius: var(--radius, 12px);
}

.seo-table-wrapper {
  overflow-x: auto;
  border-radius: var(--radius, 12px);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
}

.seo-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  color: var(--ink, #e8e8f0);
}

.seo-table thead {
  background: var(--surface-2, rgba(28,28,38,0.7));
}

.seo-table th {
  padding: 10px 12px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  white-space: nowrap;
}

.seo-table td {
  padding: 9px 12px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  vertical-align: middle;
  color: var(--ink, #e8e8f0);
}

.seo-table tr:last-child td {
  border-bottom: none;
}

.seo-table tbody tr:hover {
  background: var(--accent-bg, rgba(99,102,241,0.06));
}

.seo-thumb {
  border-radius: var(--radius-xs, 4px);
  object-fit: cover;
  display: block;
}

.seo-link {
  color: var(--accent-2, #818cf8);
  text-decoration: none;
  font-size: 11px;
}

.seo-link:hover {
  text-decoration: underline;
}

/* ─── Status badges ─────────────────────────────────────────────────────────── */
.seo-status-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 2px 8px;
  border-radius: 99px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.seo-status-badge--ok {
  background: var(--green-bg, rgba(52,211,153,0.10));
  color: var(--green, #34d399);
  border: 1px solid var(--green-bd, rgba(52,211,153,0.25));
}

.seo-status-badge--warn {
  background: var(--amber-bg, rgba(251,191,36,0.10));
  color: var(--amber, #fbbf24);
  border: 1px solid var(--amber-bd, rgba(251,191,36,0.25));
}

.seo-status-badge--error {
  background: var(--red-bg, rgba(248,113,113,0.10));
  color: var(--red, #f87171);
  border: 1px solid var(--red-bd, rgba(248,113,113,0.25));
}

/* ─── Indicador de fase pendiente ───────────────────────────────────────────── */
.seo-phase-notice {
  font-size: 12px;
  color: var(--ink-3, #606070);
  font-style: italic;
}

/* ─── Tarjeta genérica ──────────────────────────────────────────────────────── */
.seo-card {
  background: var(--surface, rgba(18,18,26,0.8));
  backdrop-filter: blur(var(--blur, 16px));
  -webkit-backdrop-filter: blur(var(--blur, 16px));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  box-shadow: var(--shadow, 0 2px 8px rgba(0,0,0,0.3));
}

.seo-card__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

/* ─── Bloque pre / código (robots.txt) ──────────────────────────────────────── */
.seo-code {
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-sm, 8px);
  padding: 14px 16px;
  font-family: var(--mono, 'Roboto Mono', 'Consolas', monospace);
  font-size: 12px;
  color: var(--ink, #e8e8f0);
  line-height: 1.6;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 360px;
  overflow-y: auto;
  outline: none;
}

.seo-code:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

/* ─── Estado robots ─────────────────────────────────────────────────────────── */
.seo-robots-status {
  font-size: 12px;
  color: var(--ink-3, #606070);
  min-height: 16px;
}

.seo-robots-status--ok   { color: var(--green, #34d399); }
.seo-robots-status--warn { color: var(--amber, #fbbf24); }

/* ─── Tarjeta GSC ───────────────────────────────────────────────────────────── */
.seo-gsc-card {
  background: var(--glass, rgba(18,18,26,0.65));
  backdrop-filter: blur(var(--blur, 16px));
  -webkit-backdrop-filter: blur(var(--blur, 16px));
  border: 1px solid var(--glass-border, rgba(255,255,255,0.08));
  border-radius: var(--radius, 12px);
  padding: 32px 28px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 560px;
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
}

.seo-gsc-card__icon {
  font-size: 36px;
  line-height: 1;
}

.seo-gsc-card__title {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  letter-spacing: -0.02em;
  margin: 0;
}

.seo-gsc-card__desc {
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  line-height: 1.65;
}

/* ─── Lista de características previstas ────────────────────────────────────── */
.seo-feature-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-feature-list li {
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  padding-left: 18px;
  position: relative;
}

.seo-feature-list li::before {
  content: '→';
  position: absolute;
  left: 0;
  color: var(--accent-2, #818cf8);
}

/* ─── Formulario crawler ────────────────────────────────────────────────────── */
.seo-crawler-form {
  background: var(--surface, rgba(18,18,26,0.8));
  backdrop-filter: blur(var(--blur, 16px));
  -webkit-backdrop-filter: blur(var(--blur, 16px));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-crawl-history {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

/* ─── Desplegable "¿Cómo activar?" ─────────────────────────────────────────── */
.seo-howto {
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius-sm, 8px);
  padding: 0;
  overflow: hidden;
}

.seo-howto summary {
  padding: 12px 16px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2, #a0a0b0);
  user-select: none;
  list-style: none;
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--surface, rgba(18,18,26,0.8));
}

.seo-howto summary::-webkit-details-marker { display: none; }

.seo-howto summary::before {
  content: '▶';
  font-size: 10px;
  color: var(--accent-2, #818cf8);
  transition: transform 0.2s;
  display: inline-block;
}

.seo-howto[open] summary::before {
  transform: rotate(90deg);
}

.seo-howto summary:hover {
  background: var(--surface-2, rgba(28,28,38,0.7));
  color: var(--ink, #e8e8f0);
}

.seo-howto summary:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: -2px;
}

.seo-howto__list {
  padding: 12px 16px 14px 30px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  background: var(--bg-2, #0e0e14);
}

.seo-howto__list li {
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  line-height: 1.55;
}

/* ─── Barra de progreso (jobs) ──────────────────────────────────────────────── */
.seo-progress {
  width: 100%;
  max-width: 120px;
  height: 6px;
  background: var(--border-2, rgba(255,255,255,0.10));
  border-radius: 3px;
  overflow: hidden;
  display: inline-block;
  vertical-align: middle;
}

.seo-progress__bar {
  height: 100%;
  background: var(--accent, #6366f1);
  border-radius: 3px;
  transition: width 0.4s ease;
  min-width: 2px;
}

.seo-progress__label {
  font-size: 11px;
  color: var(--ink-3, #606070);
  margin-left: 6px;
  vertical-align: middle;
}

/* ─── Responsive — tablet/mobile ────────────────────────────────────────────── */
@media (max-width: 768px) {
  .seo-section {
    gap: 24px;
  }

  /* En móvil el grid auto-fill ya colapsa solo. No forzamos 1col aquí
     porque tablets de 480-768 caben 2 cols cómodamente. */

  .seo-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .seo-form-row {
    flex-direction: column;
    align-items: stretch;
  }

  .seo-form-row label {
    min-width: unset;
  }

  .seo-gsc-card {
    padding: 20px 16px;
  }

  .seo-crawler-form {
    padding: 16px;
  }
}

@media (max-width: 480px) {
  .seo-kpi-value {
    font-size: 22px;
  }

  .seo-page-header h1 {
    font-size: 18px;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Fase 1 · yoast-batch — estilos del editor batch Yoast
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Utilidades ────────────────────────────────────────────────────────────── */
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* ─── Sección batch (max-width expandido para la tabla) ─────────────────────── */
.yb-section {
  max-width: 1400px;
}

/* ─── Toolbar ────────────────────────────────────────────────────────────────── */
.yb-toolbar {
  gap: 10px;
}

.yb-search-input {
  flex: 1;
  min-width: 160px;
  max-width: 280px;
}

.yb-reload-btn {
  margin-left: auto;
  white-space: nowrap;
}

/* ─── Tabla batch ────────────────────────────────────────────────────────────── */
.yb-table-wrapper {
  overflow-x: auto;
}

.yb-table {
  table-layout: fixed;
  min-width: 900px;
}

/* Anchos de columna */
.yb-col-check   { width: 38px;  text-align: center; }
.yb-col-img     { width: 60px;  text-align: center; }
.yb-col-name    { width: 160px; }
.yb-col-title   { width: 220px; }
.yb-col-desc    { width: 240px; }
.yb-col-kw      { width: 130px; }
.yb-col-noindex { width: 58px;  text-align: center; }
.yb-col-corner  { width: 58px;  text-align: center; }
.yb-col-status  { width: 82px;  text-align: center; }

/* Nombre de producto — overflow ellipsis */
.yb-product-name {
  display: block;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink, #e8e8f0);
}

/* Fila seleccionada */
.yb-row--selected {
  background: var(--accent-bg, rgba(99,102,241,0.08)) !important;
}

/* ─── Inputs inline ──────────────────────────────────────────────────────────── */
.yb-inline-wrap {
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yb-inline-input {
  width: 100%;
  padding: 4px 7px;
  font-size: 12px;
  color: var(--ink, #e8e8f0);
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-xs, 4px);
  outline: none;
  box-sizing: border-box;
}

.yb-inline-input:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.20);
}

.yb-inline-textarea {
  width: 100%;
  padding: 4px 7px;
  font-size: 12px;
  color: var(--ink, #e8e8f0);
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-xs, 4px);
  outline: none;
  resize: vertical;
  min-height: 46px;
  box-sizing: border-box;
  font-family: inherit;
  line-height: 1.4;
}

.yb-inline-textarea:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.20);
}

.yb-inline-input--kw {
  max-width: 120px;
}

/* ─── Contador de caracteres ─────────────────────────────────────────────────── */
.yb-counter-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.yb-counter {
  font-size: 10px;
  color: var(--ink-3, #606070);
}

.yb-counter--over {
  color: var(--red, #f87171);
  font-weight: 600;
}

/* ─── Feedback guardado ──────────────────────────────────────────────────────── */
.yb-save-feedback {
  font-size: 10px;
  min-width: 40px;
}

.yb-save-feedback--saving { color: var(--ink-2, #a0a0b0); }
.yb-save-feedback--ok     { color: var(--green, #34d399); }
.yb-save-feedback--error  { color: var(--red, #f87171); }

/* ─── Toggle switch (noindex / cornerstone) ──────────────────────────────────── */
.yb-toggle-label {
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.yb-toggle-check {
  width: 16px;
  height: 16px;
  accent-color: var(--accent, #6366f1);
  cursor: pointer;
}

/* ─── Estado de error ────────────────────────────────────────────────────────── */
.yb-error-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
}

.yb-error-msg {
  color: var(--red, #f87171);
  font-size: 13px;
  margin: 0;
}

/* ─── Paginación ──────────────────────────────────────────────────────────────── */
.yb-pagination {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 0;
  flex-wrap: wrap;
}

.yb-pg-btn {
  min-width: 36px;
}

.yb-pg-info {
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  white-space: nowrap;
}

.yb-per-page-select {
  width: auto;
  font-size: 12px;
  padding: 4px 8px;
  margin-left: auto;
}

/* ─── Barra batch flotante ───────────────────────────────────────────────────── */
.yb-batch-bar {
  position: sticky;
  bottom: 16px;
  z-index: 50;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  background: var(--surface, rgba(18,18,26,0.95));
  backdrop-filter: blur(var(--blur, 16px));
  -webkit-backdrop-filter: blur(var(--blur, 16px));
  border: 1px solid var(--accent-bd, rgba(99,102,241,0.30));
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
}

.yb-batch-bar[hidden] {
  display: none;
}

/* Estado vacío (Wave 9): barra siempre visible, contenido más sutil */
.yb-batch-bar--empty {
  border-color: var(--border-2, rgba(255,255,255,0.10));
  background: var(--surface-2, rgba(28,28,38,0.7));
}
.yb-batch-bar--empty .yb-batch-count {
  color: var(--ink-2, #b5b5c5);
  font-weight: 500;
}
.yb-batch-bar button:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.yb-batch-count {
  font-size: 13px;
  font-weight: 600;
  color: var(--accent-2, #818cf8);
  white-space: nowrap;
  margin-right: 4px;
}

/* Badge de drafts pendientes (Wave 9) */
.yb-drafts-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  margin-left: 6px;
  border-radius: 999px;
  background: var(--amber, #fbbf24);
  color: #111;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}
.yb-drafts-badge[hidden] { display: none; }

/* Wave 10 · Feeds toolbar + URLs públicas modal */
.feeds-toolbar {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}
.feeds-public-urls {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 12px;
}
.feeds-public-urls__row {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}
@media (max-width: 640px) {
  .feeds-public-urls__row {
    grid-template-columns: 1fr;
  }
}
.feeds-public-urls__label {
  font-size: 12px;
  color: var(--ink-2);
  font-weight: 600;
}
.feeds-public-urls__input {
  font-family: var(--mono);
  font-size: 11px;
  padding: 6px 8px;
  border: 1px solid var(--border);
  border-radius: 6px;
  background: var(--surface-2);
  color: var(--ink);
  min-width: 0;
}
.seo-jobs-actions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

/* Lista de borradores LLM (Wave 12 — rediseñada) */
.yb-drafts-filter {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
  font-size: 12px;
  color: var(--ink-2);
}
.yb-drafts-counter {
  font-size: 11px;
  color: var(--ink-3);
  margin: 0 0 8px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.yb-drafts-listwrap {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.yb-drafts-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.yb-draft-item {
  display: grid;
  grid-template-columns: 1fr auto;
  grid-template-rows: auto auto auto;
  grid-template-areas:
    "header   action"
    "stats    stats"
    "footer   footer";
  gap: 10px 14px;
  padding: 14px 16px;
  background: var(--surface, rgba(18,18,26,0.8));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: 10px;
  transition: border-color 0.15s;
}
.yb-draft-item:hover {
  border-color: var(--border-2, rgba(255,255,255,0.10));
}
.yb-draft-item--done    { border-left: 3px solid var(--green); }
.yb-draft-item--running { border-left: 3px solid var(--amber); }
.yb-draft-item--pending { border-left: 3px solid var(--blue); }
.yb-draft-item--failed,
.yb-draft-item--cancelled { border-left: 3px solid var(--red); }

.yb-draft-item__header {
  grid-area: header;
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}
.yb-draft-item__action {
  grid-area: action;
  align-self: center;
  white-space: nowrap;
}
.yb-draft-item__stats {
  grid-area: stats;
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}
.yb-draft-item__footer {
  grid-area: footer;
  display: flex;
  justify-content: flex-end;
  align-items: center;
}

.yb-draft-item__status {
  display: inline-flex;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  padding: 3px 9px;
  border-radius: 999px;
  letter-spacing: 0.04em;
  border: 1px solid transparent;
}
.yb-draft-item__status--done    { background: var(--green-bg); color: var(--green); border-color: var(--green-bd); }
.yb-draft-item__status--running { background: var(--amber-bg); color: var(--amber); border-color: var(--amber-bd); }
.yb-draft-item__status--pending { background: var(--blue-bg);  color: var(--blue);  border-color: var(--blue-bd); }
.yb-draft-item__status--failed,
.yb-draft-item__status--cancelled { background: var(--red-bg); color: var(--red); border-color: var(--red-bd); }

.yb-draft-item__lang,
.yb-draft-item__date {
  font-size: 11px;
  color: var(--ink-2);
}
.yb-draft-item__id {
  font-family: var(--mono);
  font-size: 10px;
  color: var(--ink-3);
  background: var(--surface-2);
  padding: 2px 6px;
  border-radius: 4px;
}
.yb-draft-item__done-tag {
  display: inline-flex;
  align-items: center;
  font-size: 12px;
  color: var(--green);
  font-weight: 600;
}
.yb-draft-item__waiting {
  font-size: 11px;
  color: var(--ink-2);
  font-style: italic;
}
.yb-draft-item__failed-tag {
  font-size: 11px;
  color: var(--red);
}

/* Stat chips dentro de la card */
.yb-stat {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
}
.yb-stat__label {
  font-size: 10px;
  color: var(--ink-3);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}
.yb-stat__value {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
.yb-stat--ok    .yb-stat__value { color: var(--green); }
.yb-stat--warn  .yb-stat__value { color: var(--amber); }
.yb-stat--error .yb-stat__value { color: var(--red); }

/* ─── Modales ────────────────────────────────────────────────────────────────── */
.yb-modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.65);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  box-sizing: border-box;
}

.yb-modal-dialog {
  background: var(--surface, rgba(18,18,26,0.98));
  border: 1px solid var(--border, rgba(255,255,255,0.10));
  border-radius: var(--radius, 12px);
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.5));
  max-width: 580px;
  width: 100%;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
  overflow: hidden;
}

.yb-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  flex-shrink: 0;
}

.yb-modal-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  margin: 0;
  letter-spacing: -0.02em;
}

.yb-modal-close {
  background: none;
  border: none;
  color: var(--ink-2, #a0a0b0);
  font-size: 16px;
  cursor: pointer;
  padding: 4px 8px;
  border-radius: 4px;
  line-height: 1;
}

.yb-modal-close:hover {
  color: var(--ink, #e8e8f0);
  background: var(--surface-2, rgba(255,255,255,0.06));
}

.yb-modal-close:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

.yb-modal-body {
  padding: 18px 20px;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.yb-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 20px 16px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
  flex-shrink: 0;
}

/* ─── Elementos dentro de modales ────────────────────────────────────────────── */
.yb-form-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yb-form-row label {
  font-size: 12px;
  font-weight: 500;
  color: var(--ink-2, #a0a0b0);
}

.yb-modal-textarea {
  width: 100%;
  padding: 8px 10px;
  font-size: 13px;
  color: var(--ink, #e8e8f0);
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-xs, 4px);
  outline: none;
  resize: vertical;
  font-family: inherit;
  line-height: 1.5;
  box-sizing: border-box;
}

.yb-modal-textarea:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.20);
}

.yb-form-hint {
  font-size: 11px;
  color: var(--ink-3, #606070);
  margin: 0;
  font-style: italic;
}

.yb-modal-desc {
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  margin: 0;
}

/* ─── Chips de variables ─────────────────────────────────────────────────────── */
.yb-chips-wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  align-items: center;
}

.yb-chips-hint {
  font-size: 11px;
  color: var(--ink-3, #606070);
  width: 100%;
}

.yb-chip {
  padding: 3px 9px;
  background: var(--accent-bg, rgba(99,102,241,0.10));
  border: 1px solid var(--accent-bd, rgba(99,102,241,0.25));
  border-radius: 99px;
  font-size: 11px;
  color: var(--accent-2, #818cf8);
  cursor: pointer;
  font-family: var(--mono, 'Roboto Mono', monospace);
  transition: background 0.15s;
}

.yb-chip:hover {
  background: var(--accent-bg, rgba(99,102,241,0.20));
}

.yb-chip:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

/* ─── Preview ────────────────────────────────────────────────────────────────── */
.yb-preview-area {
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-xs, 4px);
  padding: 10px 12px;
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  min-height: 40px;
  line-height: 1.5;
}

.yb-preview-title {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  margin: 0 0 6px;
}

.yb-preview-section {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yb-preview-item {
  padding: 4px 0;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.05));
}

.yb-preview-item:last-child {
  border-bottom: none;
}

.yb-preview-id {
  font-size: 11px;
  color: var(--ink-3, #606070);
  font-family: var(--mono, monospace);
}

.yb-preview-rendered {
  font-size: 12px;
  color: var(--ink, #e8e8f0);
}

.yb-hr {
  border: none;
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
  margin: 2px 0;
}

.yb-toggle-option {
  display: flex;
  align-items: center;
  gap: 8px;
}

/* ─── Toast local ────────────────────────────────────────────────────────────── */
.yb-toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.yb-toast {
  padding: 10px 16px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  color: #fff;
  background: var(--surface, rgba(28,28,38,0.98));
  border: 1px solid var(--border, rgba(255,255,255,0.10));
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
  animation: yb-toast-in 0.2s ease;
}

.yb-toast--success { border-color: var(--green-bd, rgba(52,211,153,0.35)); color: var(--green, #34d399); }
.yb-toast--error   { border-color: var(--red-bd,   rgba(248,113,113,0.35)); color: var(--red,   #f87171); }
.yb-toast--info    { border-color: var(--accent-bd, rgba(99,102,241,0.35)); color: var(--accent-2, #818cf8); }

@keyframes yb-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive — tabla en cards en móvil (<=768px) ────────────────────────── */
@media (max-width: 768px) {
  .yb-section {
    max-width: 100%;
  }

  .yb-table-wrapper,
  .yb-table {
    display: block;
  }

  .yb-table thead {
    display: none; /* se oculta thead, cada celda tiene su label */
  }

  .yb-table tbody,
  .yb-table tr {
    display: block;
  }

  .yb-table tr {
    background: var(--surface, rgba(18,18,26,0.8));
    border: 1px solid var(--border, rgba(255,255,255,0.06));
    border-radius: var(--radius-sm, 8px);
    margin-bottom: 10px;
    padding: 10px 12px;
  }

  .yb-table td {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    padding: 6px 0;
    border-bottom: none;
    font-size: 12px;
  }

  /* Anchos adaptados a flex en móvil */
  .yb-col-check,
  .yb-col-img,
  .yb-col-noindex,
  .yb-col-corner,
  .yb-col-status {
    width: auto;
  }

  .yb-inline-input,
  .yb-inline-textarea {
    width: 100%;
  }

  .yb-inline-input--kw {
    max-width: 100%;
  }

  .yb-product-name {
    max-width: none;
    white-space: normal;
  }

  .yb-batch-bar {
    bottom: 8px;
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .yb-modal-dialog {
    max-width: 100%;
    margin: 0;
    border-radius: var(--radius-sm, 8px);
  }

  .yb-search-input {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Fase 2 · crawler — estilos especificos del crawler SEO
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Inputs numericos del formulario ─────────────────────────────────────── */
.cr-num-input {
  width: 90px;
}

/* ─── Mensaje de estado del formulario ────────────────────────────────────── */
.cr-form-status {
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  font-style: italic;
}

/* ─── KPI grid en detalle (8 items, 4 col) ───────────────────────────────── */
.cr-kpi-grid {
  grid-template-columns: repeat(4, 1fr);
}

/* ─── Barra de herramientas del detalle ──────────────────────────────────── */
.cr-detail-toolbar {
  padding: 8px 0;
}

.cr-filter-input {
  flex: 1;
  min-width: 160px;
  max-width: 320px;
}

/* ─── Celda URL en la tabla de detalle ────────────────────────────────────── */
.cr-url-cell {
  display: block;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* ─── Tabla de detalle ───────────────────────────────────────────────────── */
.cr-detail-table {
  min-width: 900px;
}

/* ─── Tabla de historial ─────────────────────────────────────────────────── */
.cr-history-table {
  min-width: 700px;
}

/* ─── Bloque de progreso en detalle ─────────────────────────────────────── */
.cr-detail-progress {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--surface, rgba(18,18,26,0.8));
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  border-radius: var(--radius, 12px);
}

.cr-progress-status {
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  margin: 0;
  white-space: nowrap;
}

/* ─── Progreso wrap (bar + label + cola) ─────────────────────────────────── */
.cr-progress-wrap {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.cr-queued {
  font-size: 11px;
  color: var(--ink-3, #606070);
}

/* ─── Navegacion de vuelta al listado ────────────────────────────────────── */
.cr-detail-nav {
  margin-bottom: 8px;
}

.cr-back-btn {
  font-size: 12px;
}

/* ─── Boton de cancelar ──────────────────────────────────────────────────── */
.btn--danger {
  background: var(--red-bg, rgba(248,113,113,0.10));
  color: var(--red, #f87171);
  border: 1px solid var(--red-bd, rgba(248,113,113,0.25));
}

.btn--danger:hover:not(:disabled) {
  background: rgba(248,113,113,0.18);
  border-color: rgba(248,113,113,0.45);
}

/* ─── Responsive · crawler ───────────────────────────────────────────────── */
@media (max-width: 768px) {
  .cr-kpi-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .cr-detail-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .cr-filter-input {
    max-width: 100%;
  }

  .cr-url-cell {
    max-width: 180px;
  }
}

/* ─── Fase 5 · dashboard alerts & recent jobs ─────────────────────────── */
.seo-alerts {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.seo-alert {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 14px;
  border-radius: 8px;
  border: 1px solid var(--border, #444);
  background: var(--surface, rgba(255,255,255,0.04));
  font-size: 0.9rem;
}
.seo-alert--ok    { border-left: 3px solid #22c55e; }
.seo-alert--info  { border-left: 3px solid #3b82f6; }
.seo-alert--warn  { border-left: 3px solid #f59e0b; }
.seo-alert--error { border-left: 3px solid #ef4444; }
.seo-alert__msg { flex: 1; line-height: 1.35; }
.seo-kpi-card--warn { border-left: 3px solid #f59e0b; }
.seo-kpi-card--info { border-left: 3px solid #3b82f6; }
.seo-recent-jobs { overflow-x: auto; }
.seo-recent-jobs .seo-table { width: 100%; border-collapse: collapse; }
.seo-recent-jobs .seo-table th,
.seo-recent-jobs .seo-table td { padding: 8px 10px; border-bottom: 1px solid var(--border, #333); text-align: left; font-size: 0.85rem; }
.seo-recent-jobs .seo-table th { font-weight: 600; color: var(--text-muted, #aaa); text-transform: uppercase; font-size: 0.72rem; letter-spacing: 0.03em; }

/* ═══════════════════════════════════════════════════════════════════════════════
   Fase 3 · robots — editor robots.txt + estado del sitemap
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Paneles lado a lado (robots.txt actual | reglas extra) ─────────────────── */
.rb-panels {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}

.rb-panel {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rb-panel__label {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  cursor: default;
}

.rb-panel__hint {
  font-size: 11px;
  font-weight: 400;
  color: var(--ink-3, #606070);
  font-style: italic;
}

/* ─── pre readonly (panel izquierdo) ────────────────────────────────────────── */
.rb-pre {
  min-height: 260px;
  max-height: 360px;
  overflow-y: auto;
  resize: none;
  user-select: text;
}

/* ─── textarea editable (panel derecho) ─────────────────────────────────────── */
.rb-textarea {
  width: 100%;
  min-height: 260px;
  resize: vertical;
  padding: 14px 16px;
  font-family: var(--mono, 'Roboto Mono', 'Consolas', monospace);
  font-size: 12px;
  color: var(--ink, #e8e8f0);
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-sm, 8px);
  outline: none;
  box-sizing: border-box;
  line-height: 1.6;
  transition: border-color 0.15s, box-shadow 0.15s;
}

.rb-textarea:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.20);
}

.rb-textarea--error {
  border-color: var(--red, #f87171);
  box-shadow: 0 0 0 2px rgba(248,113,113,0.20);
}

/* ─── Contador y mensaje de validación ──────────────────────────────────────── */
.rb-counter-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  min-height: 18px;
}

.rb-counter {
  font-size: 11px;
  color: var(--ink-3, #606070);
  white-space: nowrap;
}

.rb-counter--over {
  color: var(--red, #f87171);
  font-weight: 600;
}

.rb-validation-msg {
  font-size: 11px;
  color: var(--ink-3, #606070);
  flex: 1;
}

.rb-validation-msg--error {
  color: var(--red, #f87171);
}

/* ─── Botones de acción ──────────────────────────────────────────────────────── */
.rb-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 4px;
}

/* ─── Caja "Probar URL" ──────────────────────────────────────────────────────── */
.rb-test-box {
  border-top: 1px solid var(--border, rgba(255,255,255,0.06));
  padding-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rb-test-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  margin: 0;
}

.rb-test-row {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rb-test-input {
  flex: 1;
  min-width: 220px;
  padding: 7px 12px;
  font-size: 13px;
  color: var(--ink, #e8e8f0);
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: var(--radius-sm, 8px);
  outline: none;
  box-sizing: border-box;
  transition: border-color 0.15s;
}

.rb-test-input:focus {
  border-color: var(--accent, #6366f1);
  box-shadow: 0 0 0 2px rgba(99,102,241,0.20);
}

.rb-test-result {
  min-height: 28px;
  font-size: 13px;
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.rb-test-result--ok      { color: var(--green, #34d399); }
.rb-test-result--blocked { color: var(--red,   #f87171); }
.rb-test-result--error   { color: var(--amber, #fbbf24); }

.rb-test-detail {
  color: var(--ink-2, #a0a0b0);
  font-size: 12px;
}

/* ─── Sitemap: fila del índice ───────────────────────────────────────────────── */
.rb-sm-index-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 10px 0 6px;
}

.rb-sm-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  white-space: nowrap;
}

.rb-sm-url {
  font-size: 12px;
  word-break: break-all;
  flex: 1;
}

.rb-sm-open-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

/* ─── Comparativa WC vs sitemap ─────────────────────────────────────────────── */
.rb-sm-compare {
  font-size: 12px;
  font-weight: 500;
  padding: 8px 12px;
  border-radius: var(--radius-sm, 8px);
  margin-bottom: 8px;
}

.rb-sm-compare--warn {
  background: var(--amber-bg, rgba(251,191,36,0.10));
  color: var(--amber, #fbbf24);
  border: 1px solid var(--amber-bd, rgba(251,191,36,0.25));
}

.rb-sm-compare--ok {
  background: var(--green-bg, rgba(52,211,153,0.10));
  color: var(--green, #34d399);
  border: 1px solid var(--green-bd, rgba(52,211,153,0.25));
}

.rb-sm-table-wrapper {
  margin-top: 4px;
}

/* ─── Toast local para robots ────────────────────────────────────────────────── */
.rb-toast-host {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9999;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

.rb-toast {
  padding: 10px 16px;
  border-radius: var(--radius-sm, 8px);
  font-size: 13px;
  background: var(--surface, rgba(28,28,38,0.98));
  border: 1px solid var(--border, rgba(255,255,255,0.10));
  box-shadow: var(--shadow-lg, 0 8px 32px rgba(0,0,0,0.4));
  animation: rb-toast-in 0.2s ease;
  pointer-events: auto;
}

.rb-toast--success { border-color: var(--green-bd, rgba(52,211,153,0.35)); color: var(--green, #34d399); }
.rb-toast--error   { border-color: var(--red-bd,   rgba(248,113,113,0.35)); color: var(--red,   #f87171); }
.rb-toast--info    { border-color: var(--accent-bd, rgba(99,102,241,0.35)); color: var(--accent-2, #818cf8); }

@keyframes rb-toast-in {
  from { opacity: 0; transform: translateY(8px); }
  to   { opacity: 1; transform: translateY(0); }
}

/* ─── Responsive — paneles en columna en móvil ──────────────────────────────── */
@media (max-width: 768px) {
  .rb-panels {
    grid-template-columns: 1fr;
  }

  .rb-pre,
  .rb-textarea {
    min-height: 180px;
  }

  .rb-test-row {
    flex-direction: column;
    align-items: stretch;
  }

  .rb-test-input {
    min-width: unset;
    width: 100%;
  }

  .rb-sm-index-row {
    flex-direction: column;
    align-items: flex-start;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Fase 4 · gsc — Google Search Console UI
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Barra de sub-tabs ──────────────────────────────────────────────────────── */
.gsc-tab-bar {
  display: flex;
  align-items: center;
  gap: 2px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  padding-bottom: 0;
  flex-wrap: wrap;
}

.gsc-tab-btn {
  padding: 8px 16px;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-2, #a0a0b0);
  background: none;
  border: none;
  border-bottom: 2px solid transparent;
  cursor: pointer;
  border-radius: 6px 6px 0 0;
  transition: color 0.15s, border-color 0.15s, background 0.15s;
  white-space: nowrap;
}

.gsc-tab-btn:hover {
  color: var(--ink, #e8e8f0);
  background: var(--surface-2, rgba(28,28,38,0.5));
}

.gsc-tab-btn--active {
  color: var(--accent-2, #818cf8);
  border-bottom-color: var(--accent, #6366f1);
}

.gsc-tab-btn:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

/* ─── Panel de tab ───────────────────────────────────────────────────────────── */
.gsc-tab-panel {
  padding-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ─── Tarjeta de estado ──────────────────────────────────────────────────────── */
.gsc-status-card {
  max-width: 640px;
}

.gsc-badge-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.gsc-badge-label {
  font-size: 12px;
  color: var(--ink-2, #a0a0b0);
  font-weight: 500;
}

.gsc-site-row {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  padding: 8px 0 0;
}

.gsc-site-url {
  font-family: var(--mono, 'Roboto Mono', monospace);
  font-size: 12px;
  color: var(--accent-2, #818cf8);
  background: var(--accent-bg, rgba(99,102,241,0.08));
  border: 1px solid var(--accent-bd, rgba(99,102,241,0.20));
  border-radius: 4px;
  padding: 2px 8px;
}

.gsc-config-notice {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.gsc-config-notice p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
  line-height: 1.6;
}

.gsc-connected-info {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gsc-connected-info p {
  margin: 0;
  font-size: 13px;
  color: var(--ink-2, #a0a0b0);
}

.gsc-popup-note {
  font-size: 12px;
  color: var(--amber, #fbbf24);
  line-height: 1.55;
}

.gsc-auth-url-code {
  display: block;
  word-break: break-all;
  font-family: var(--mono, monospace);
  font-size: 11px;
  color: var(--ink, #e8e8f0);
  background: var(--bg-2, #0e0e14);
  border: 1px solid var(--border-2, rgba(255,255,255,0.10));
  border-radius: 4px;
  padding: 6px 10px;
  margin-top: 6px;
}

.gsc-copy-url-btn {
  margin-top: 6px;
}

/* ─── Toolbar queries ────────────────────────────────────────────────────────── */
.gsc-queries-toolbar {
  flex-wrap: wrap;
}

.gsc-filter-input {
  flex: 1;
  min-width: 140px;
  max-width: 260px;
}

/* ─── Cobertura ──────────────────────────────────────────────────────────────── */
.gsc-cover-card,
.gsc-insp-card {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.gsc-kpi-row {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.gsc-kpi-item {
  min-width: 160px;
  flex: 0 0 auto;
}

.gsc-insp-actions {
  display: flex;
  gap: 8px;
  align-items: center;
}

.gsc-insp-progress {
  font-size: 12px;
  color: var(--accent-2, #818cf8);
  padding: 6px 0;
  font-weight: 500;
}

/* ─── Celdas de tabla con color de estado ────────────────────────────────────── */
.gsc-cell--error {
  color: var(--red, #f87171);
  font-weight: 600;
}

.gsc-cell--warn {
  color: var(--amber, #fbbf24);
  font-weight: 500;
}

/* ─── Formulario indexacion manual ───────────────────────────────────────────── */
.gsc-index-form {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.gsc-idx-url-input {
  flex: 1;
  min-width: 260px;
}

.gsc-form-status {
  font-size: 13px;
  min-height: 18px;
  margin: 0;
}

.gsc-idx-log {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

/* ─── Boton OK (estado enviado) ──────────────────────────────────────────────── */
.btn--ok {
  background: var(--green-bg, rgba(52,211,153,0.10));
  color: var(--green, #34d399);
  border-color: var(--green-bd, rgba(52,211,153,0.25));
  cursor: default;
}

/* ─── Boton pequeño ──────────────────────────────────────────────────────────── */
.btn--sm {
  padding: 3px 10px;
  font-size: 11px;
}

/* ─── Boton peligro outline ──────────────────────────────────────────────────── */
.btn--danger-outline {
  background: none;
  color: var(--red, #f87171);
  border: 1px solid var(--red-bd, rgba(248,113,113,0.35));
}

.btn--danger-outline:hover:not(:disabled) {
  background: var(--red-bg, rgba(248,113,113,0.08));
}

/* ─── Responsive ─────────────────────────────────────────────────────────────── */
@media (max-width: 768px) {
  .gsc-tab-bar {
    gap: 0;
  }

  .gsc-tab-btn {
    padding: 7px 10px;
    font-size: 12px;
  }

  .gsc-queries-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .gsc-filter-input {
    max-width: 100%;
  }

  .gsc-idx-url-input {
    min-width: unset;
    width: 100%;
  }

  .gsc-status-card {
    max-width: 100%;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Fase 6 · IA SEO — score badges, problem list, drawer, diff, grade bar
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Columna score en la tabla batch ───────────────────────────────────────── */
.yb-col-score { width: 72px; text-align: center; }

/* ─── Badge de score SEO ─────────────────────────────────────────────────────── */
.seo-score-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 50%;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0;
  cursor: pointer;
  border: 1px solid var(--badge-border, rgba(255,255,255,0.15));
  background: var(--badge-bg, rgba(255,255,255,0.08));
  color: var(--badge-color, #e8e8f0);
  transition: opacity 0.15s, transform 0.15s;
  user-select: none;
  flex-shrink: 0;
}

.seo-score-badge:hover {
  opacity: 0.85;
  transform: scale(1.08);
}

.seo-score-badge:focus-visible {
  outline: 2px solid var(--accent, #6366f1);
  outline-offset: 2px;
}

.seo-score-badge--large {
  width: 44px;
  height: 44px;
  font-size: 17px;
  cursor: default;
}

.seo-score-badge--large:hover {
  transform: none;
}

/* Variantes por grado (colores vía CSS custom properties en el elemento) */
.seo-score-badge--A { --badge-bg: #14532d; --badge-color: #4ade80; --badge-border: rgba(74,222,128,0.35); }
.seo-score-badge--B { --badge-bg: #365314; --badge-color: #a3e635; --badge-border: rgba(163,230,53,0.35); }
.seo-score-badge--C { --badge-bg: #451a03; --badge-color: #fb923c; --badge-border: rgba(251,146,60,0.35); }
.seo-score-badge--D { --badge-bg: #431407; --badge-color: #f97316; --badge-border: rgba(249,115,22,0.35); }
.seo-score-badge--F { --badge-bg: #450a0a; --badge-color: #f87171; --badge-border: rgba(248,113,113,0.35); }

.seo-score-badge--loading,
.seo-score-badge--pending {
  --badge-bg: rgba(255,255,255,0.04);
  --badge-color: #606070;
  --badge-border: rgba(255,255,255,0.08);
  cursor: default;
  font-size: 14px;
}

.seo-score-badge--loading:hover,
.seo-score-badge--pending:hover {
  transform: none;
  opacity: 1;
}

/* ─── Lista de problemas ──────────────────────────────────────────────────────── */
.seo-problem-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.seo-problem-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 6px 8px 6px 10px;
  border-radius: var(--radius-xs, 4px);
  font-size: 12px;
  color: var(--ink, #e8e8f0);
  border-left: 3px solid transparent;
  background: var(--surface-2, rgba(28,28,38,0.5));
  flex-wrap: wrap;
}

.seo-problem-item--error { border-left-color: var(--red,   #f87171); }
.seo-problem-item--warn  { border-left-color: var(--amber, #fbbf24); }
.seo-problem-item--info  { border-left-color: var(--accent, #6366f1); }

.seo-problem-icon {
  font-size: 13px;
  flex-shrink: 0;
  line-height: 1.5;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

/* H-01-001 · color por severidad: doble portador (border-left + color icono).
   WCAG 1.4.1 — el color de severidad ya no se canaliza solo por la barra
   lateral; ahora también el SVG hereda el tono correcto. */
.seo-problem-icon--error { color: var(--red); }
.seo-problem-icon--warn  { color: var(--amber); }
.seo-problem-icon--info  { color: var(--blue); }

/* También aplica al severity badge de yoast-section (Wave 8.1). */
.yoast-assessment-icon--bad  { color: var(--red); }
.yoast-assessment-icon--ok   { color: var(--amber); }
.yoast-assessment-icon--good { color: var(--green); }

.seo-problem-msg {
  flex: 1;
  line-height: 1.5;
}

.seo-problem-fix-btn {
  margin-left: auto;
  flex-shrink: 0;
  font-size: 11px;
  padding: 2px 8px;
}

/* ─── Drawer (panel lateral) ──────────────────────────────────────────────────── */
.seo-drawer-backdrop {
  position: fixed;
  inset: 0;
  z-index: 190;
  background: rgba(0, 0, 0, 0.50);
}

.seo-drawer {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  width: min(440px, 100vw);
  z-index: 200;
  background: var(--surface, rgba(18,18,26,0.98));
  border-left: 1px solid var(--border, rgba(255,255,255,0.10));
  box-shadow: var(--shadow-lg, -8px 0 32px rgba(0,0,0,0.5));
  display: flex;
  flex-direction: column;
  overflow: hidden;
  transform: translateX(100%);
  transition: transform 0.28s cubic-bezier(0.4, 0, 0.2, 1);
}

.seo-drawer--open {
  transform: translateX(0);
}

.seo-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 20px 14px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  flex-shrink: 0;
  gap: 10px;
}

.seo-drawer-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  margin: 0;
  flex: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.seo-drawer-body {
  padding: 18px 20px;
  overflow-y: auto;
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.seo-drawer-score-row {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 0 8px;
}

.seo-drawer-score-num {
  font-size: 16px;
  font-weight: 600;
  color: var(--ink, #e8e8f0);
}

.seo-drawer-fix-all-btn {
  margin-top: 4px;
}

/* ─── Diff antes / después ────────────────────────────────────────────────────── */
.seo-diff-before {
  text-decoration: line-through;
  color: var(--red, #f87171);
  opacity: 0.75;
  word-break: break-word;
}

.seo-diff-after {
  color: var(--green, #34d399);
  word-break: break-word;
}

/* ─── Barra de grados proporcional ───────────────────────────────────────────── */
.seo-grade-bar {
  display: flex;
  height: 22px;
  border-radius: var(--radius-xs, 4px);
  overflow: hidden;
  gap: 1px;
}

.seo-grade-bar__seg {
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 700;
  min-width: 20px;
  transition: flex 0.3s ease;
}

/* ─── Responsive · drawer en móvil (full width) ─────────────────────────────── */
@media (max-width: 480px) {
  .seo-drawer {
    width: 100vw;
    border-left: none;
  }
}

/* ═══════════════════════════════════════════════════════════════════════════════
   Fase 7 · avisos Yoast — sección en drawer + modal batch assessments
   ═══════════════════════════════════════════════════════════════════════════════ */

/* ─── Sección Yoast dentro del drawer ───────────────────────────────────────── */
.yoast-assessment-section {
  margin-top: 20px;
  padding-top: 16px;
  border-top: 1px solid var(--border, rgba(255,255,255,0.08));
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.yoast-assessment-heading {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  letter-spacing: -0.01em;
  margin: 0 0 4px;
  padding-bottom: 6px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
}

.yoast-assessment-subsection {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.yoast-assessment-subtitle {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-2, #a0a0b0);
  margin: 6px 0 4px;
}

/* ─── Assessment item (card con border-left de color) ───────────────────────── */
.yoast-assessment-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: var(--radius-xs, 4px);
  background: var(--surface-2, rgba(28,28,38,0.5));
  border-left: 3px solid transparent;
  flex-wrap: wrap;
}

.yoast-assessment-item--good {
  --yoast-border: var(--green, #34d399);
}

.yoast-assessment-item--ok {
  --yoast-border: var(--amber, #fbbf24);
}

.yoast-assessment-item--bad {
  --yoast-border: var(--red, #f87171);
}

.yoast-assessment-item--good { border-left-color: var(--green,  #34d399); }
.yoast-assessment-item--ok   { border-left-color: var(--amber,  #fbbf24); }
.yoast-assessment-item--bad  { border-left-color: var(--red,    #f87171); }

/* ─── Icono de severidad ────────────────────────────────────────────────────── */
.yoast-assessment-icon {
  font-size: 1.1rem;
  line-height: 1.4;
  flex-shrink: 0;
}

/* ─── Contenido (mensaje + recomendación) ───────────────────────────────────── */
.yoast-assessment-content {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.yoast-assessment-msg {
  font-size: 12px;
  color: var(--ink, #e8e8f0);
  line-height: 1.45;
  word-break: break-word;
}

.yoast-assessment-rec {
  font-size: 0.85rem;
  color: var(--ink-2, #a0a0b0);
  margin-top: 4px;
  line-height: 1.5;
  word-break: break-word;
}

/* ─── Tabla de top issues (modal batch) ─────────────────────────────────────── */
.yoast-top-issues-table {
  overflow-x: auto;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  margin-top: 4px;
}

.yoast-top-issues-table table {
  width: 100%;
  border-collapse: collapse;
  font-size: 12px;
  color: var(--ink, #e8e8f0);
}

.yoast-top-issues-table thead {
  background: var(--surface-2, rgba(28,28,38,0.7));
}

.yoast-top-issues-table th {
  padding: 8px 10px;
  text-align: left;
  font-size: 11px;
  font-weight: 600;
  color: var(--ink-2, #a0a0b0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.06));
  white-space: nowrap;
}

.yoast-top-issues-table td {
  padding: 8px 10px;
  border-bottom: 1px solid var(--border, rgba(255,255,255,0.04));
  vertical-align: middle;
}

.yoast-top-issues-table tr:last-child td {
  border-bottom: none;
}

.yoast-top-issues-table tbody tr:hover {
  background: var(--accent-bg, rgba(99,102,241,0.06));
}

/* ─── Cards de resumen (modal batch + drawer) ───────────────────────────────── */
.yoast-batch-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 4px;
}

.yoast-batch-summary__card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 8px 12px;
  border-radius: var(--radius-xs, 4px);
  border: 1px solid var(--border, rgba(255,255,255,0.06));
  background: var(--surface-2, rgba(28,28,38,0.5));
  min-width: 70px;
  flex: 1 1 auto;
  text-align: center;
}

.yoast-batch-summary__val {
  font-size: 18px;
  font-weight: 700;
  color: var(--ink, #e8e8f0);
  line-height: 1.2;
}

.yoast-batch-summary__lbl {
  font-size: 10px;
  color: var(--ink-2, #a0a0b0);
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 500;
}

/* Color semántico por tipo de card */
.yoast-batch-summary__card--good    { border-left: 3px solid var(--green,  #34d399); }
.yoast-batch-summary__card--ok      { border-left: 3px solid var(--amber,  #fbbf24); }
.yoast-batch-summary__card--bad     { border-left: 3px solid var(--red,    #f87171); }
.yoast-batch-summary__card--fixable { border-left: 3px solid var(--accent, #6366f1); }
.yoast-batch-summary__card--total   { border-left: 3px solid var(--border-2, rgba(255,255,255,0.15)); }

/* ─── Responsive · cards en grid 2-col en pantallas pequeñas ──────────────── */
@media (max-width: 480px) {
  .yoast-batch-summary {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
  }

  .yoast-assessment-item {
    flex-direction: column;
    gap: 4px;
  }
}

/* Fase 8 · Settings integraciones */
.integ-section { border: 1px solid var(--line); border-radius: 10px; margin-bottom: 12px; background: var(--glass); }
.integ-head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; cursor: pointer; user-select: none; }
.integ-head .integ-caret { transition: transform .15s ease; }
.integ-section.open .integ-head .integ-caret { transform: rotate(90deg); }
.integ-head h3 { margin: 0; font-size: 14px; font-weight: 700; flex: 1; }
.integ-badge { font-size: 11px; padding: 2px 8px; border-radius: 999px; }
.integ-badge.ok { background: rgba(34,197,94,.15); color: #22c55e; }
.integ-badge.warn { background: rgba(245,158,11,.15); color: #f59e0b; }
.integ-badge.err { background: rgba(239,68,68,.15); color: #ef4444; }
.integ-body { padding: 0 14px 14px 14px; display: none; }
.integ-section.open .integ-body { display: block; }

.help-popover-trigger { display: inline-flex; align-items: center; justify-content: center; width: 18px; height: 18px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--ink-3); cursor: pointer; font-size: 11px; margin-left: 6px; }
.help-popover-trigger:hover { color: var(--accent); border-color: var(--accent); }
.help-popover { position: absolute; z-index: 1000; max-width: 320px; padding: 12px 14px; background: var(--bg-2); border: 1px solid var(--line); border-radius: 8px; box-shadow: 0 10px 30px rgba(0,0,0,.35); font-size: 12px; line-height: 1.5; }
.help-popover h4 { margin: 0 0 6px 0; font-size: 12px; font-weight: 700; }
.help-popover p { margin: 4px 0; }
.help-popover a { color: var(--accent); }

.masked-cred { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.masked-cred .dots { letter-spacing: 2px; color: var(--ink-3); }
.masked-cred .status { font-size: 11px; color: var(--ink-3); }

/* ─── Breadcrumb de sub-vistas SEO (Oleada A.2) ─────────────────────────── */
.seo-breadcrumb {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0 0 16px 0;
  font-size: 13px;
  color: var(--ink-2);
}
.seo-breadcrumb__back {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 10px;
  min-height: 28px;
  color: var(--accent);
  text-decoration: none;
  border-radius: 6px;
  border: 1px solid transparent;
  transition: background 120ms, border-color 120ms, color 120ms;
}
.seo-breadcrumb__back:hover,
.seo-breadcrumb__back:focus-visible {
  background: rgba(99, 102, 241, 0.10);
  border-color: rgba(99, 102, 241, 0.35);
  color: var(--accent);
  outline: none;
}
.seo-breadcrumb__back:focus-visible {
  box-shadow: 0 0 0 2px var(--accent);
}
.seo-breadcrumb__sep {
  color: var(--ink-3);
}
.seo-breadcrumb__current {
  font-weight: 500;
  color: var(--ink-1);
}

/* ─── Diálogo modal SEO (utils/dialog.js · Oleada B.3) ───────────────── */
.seo-dialog-overlay {
  position: fixed; inset: 0;
  background: rgba(0, 0, 0, 0.65);
  display: flex; align-items: center; justify-content: center;
  z-index: 10000;
  padding: 16px;
}
.seo-dialog {
  background: var(--bg-2, #1a1a1a);
  border: 1px solid var(--border-1, #333);
  border-radius: 8px;
  padding: 20px 24px;
  max-width: 480px;
  width: 100%;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
  outline: none;
}
.seo-dialog__title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--ink-1, #fff);
}
.seo-dialog__message {
  margin: 0 0 16px;
  color: var(--ink-2, #ccc);
  line-height: 1.5;
}
.seo-dialog__input {
  width: 100%;
  margin-bottom: 16px;
}
.seo-dialog__actions {
  display: flex; justify-content: flex-end; gap: 8px;
}
.seo-dialog__actions .btn:focus-visible {
  outline: 2px solid var(--accent, #3b82f6);
  outline-offset: 2px;
}

/* ─── C.3 · Glosario GSC + subset inspección ──────────────────────────────── */
.gsc-glossary {
  margin: var(--space-2, 8px) 0;
  padding: var(--space-2, 8px) var(--space-3, 12px);
  background: var(--surface-2, #f8fafc);
  border: 1px solid var(--border, #e5e7eb);
  border-radius: 6px;
  font-size: .9em;
}
.gsc-glossary summary {
  cursor: pointer;
  font-weight: 500;
  color: var(--ink-1, #1f2937);
}
.gsc-glossary-list {
  margin: var(--space-2, 8px) 0 0 0;
  display: grid;
  grid-template-columns: max-content 1fr;
  gap: 4px var(--space-3, 12px);
}
.gsc-glossary-list dt {
  font-weight: 600;
  color: var(--ink-1, #1f2937);
}
.gsc-glossary-list dd {
  margin: 0;
  color: var(--ink-2, #4b5563);
}
.gsc-insp-limit {
  padding: 4px 6px;
}
