/* SEOOn Core — interfaz de herramientas. Usa la paleta del tema con valores de reserva. */
.seoon-tool, .st-cards, .st-related, .st-studies, .st-newsletter, .st-filter, .st-az {
	--st-bg: var(--seoon-surface, #fff);
	--st-line: var(--seoon-line, #e3e8ee);
	--st-ink: var(--wp--preset--color--contrast, #0a1b3f);
	--st-ink2: var(--wp--preset--color--accent-4, #4a5670);
	--st-muted: var(--seoon-muted, #6b778c);
	--st-soft: var(--wp--preset--color--accent-5, #eef3f7);
	--st-green: var(--wp--preset--color--accent-1, #0bd49f);
	--st-teal: var(--wp--preset--color--accent-2, #007a75);
	--st-ok: #0ca30c; --st-warn: #c98500; --st-bad: #d03b3b;
}
.seoon-tool { margin: 0 0 2.5rem; }
.seoon-tool-box { background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 20px; padding: clamp(18px, 3vw, 32px); box-shadow: 0 1px 2px rgba(10,27,63,.04), 0 12px 32px -18px rgba(10,27,63,.18); }
.st-label { display: block; font-weight: 600; font-size: .92rem; margin: 16px 0 6px; color: var(--st-ink); }
.st-label:first-child { margin-top: 0; }
.st-input { width: 100%; box-sizing: border-box; font: inherit; font-size: 1rem; color: var(--st-ink); background: var(--wp--preset--color--base, #fff); border: 1px solid var(--st-line); border-radius: 12px; padding: 12px 14px; }
.st-input:focus { outline: 2px solid var(--st-green); outline-offset: 1px; border-color: transparent; }
textarea.st-input { resize: vertical; line-height: 1.5; }
.st-mono, .st-output { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .88rem; }
.st-row { display: flex; gap: 10px; }
.st-row .st-input { flex: 1; min-width: 0; }
.st-btn { font: inherit; font-weight: 600; border: 0; border-radius: 12px; padding: 12px 20px; cursor: pointer; background: var(--st-green); color: #0a1b3f; white-space: nowrap; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; transition: transform .15s, filter .15s; }
.st-btn:hover { filter: brightness(1.05); transform: translateY(-1px); }
.st-btn:disabled { opacity: .6; cursor: progress; transform: none; }
.st-btn-ghost { background: transparent; color: var(--st-teal); border: 1px solid var(--st-line); }
.st-hint { font-size: .86rem; color: var(--st-muted); margin: 8px 0 0; }
.st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 12px; align-items: center; }
.st-grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 0 20px; }
.st-grid-wide { gap: 0 32px; }
.st-output { background: var(--st-soft); border: 1px solid var(--st-line); border-radius: 12px; padding: 14px 16px; white-space: pre-wrap; word-break: break-word; min-height: 3em; margin: 0; max-height: 420px; overflow: auto; color: var(--st-ink); }
.st-check { display: inline-flex; gap: 8px; align-items: center; font-size: .92rem; }
.st-tabs { display: flex; gap: 6px; margin-bottom: 18px; border-bottom: 1px solid var(--st-line); }
.st-tab { font: inherit; font-weight: 600; background: none; border: 0; border-bottom: 2px solid transparent; padding: 8px 12px 10px; color: var(--st-muted); cursor: pointer; margin-bottom: -1px; }
.st-tab.is-active { color: var(--st-ink); border-color: var(--st-green); }

/* resultados */
.st-result:empty { display: none; }
.st-result { margin-top: 22px; }
.st-error { background: color-mix(in srgb, var(--st-bad) 10%, transparent); border: 1px solid color-mix(in srgb, var(--st-bad) 40%, transparent); color: var(--st-ink); border-radius: 12px; padding: 12px 14px; }
.st-summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin-bottom: 18px; }
.st-stat { background: var(--st-soft); border-radius: 14px; padding: 14px; }
.st-stat b { display: block; font-size: 1.6rem; line-height: 1.1; font-family: var(--wp--preset--font-family--inter-tight, inherit); }
.st-stat span { font-size: .85rem; color: var(--st-ink2); }
.st-verdict { border-left: 4px solid var(--st-green); background: var(--st-soft); border-radius: 0 12px 12px 0; padding: 12px 16px; margin: 0 0 18px; }
.st-table-wrap { overflow-x: auto; }
.st-table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.st-table th, .st-table td { text-align: left; padding: 9px 10px; border-bottom: 1px solid var(--st-line); white-space: nowrap; }
.st-table th { font-size: .8rem; text-transform: uppercase; letter-spacing: .04em; color: var(--st-muted); }
.st-badge { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .85rem; }
.st-badge::before { content: ""; width: 9px; height: 9px; border-radius: 50%; background: currentColor; }
.st-badge.ok { color: var(--st-ok); } .st-badge.warn { color: var(--st-warn); } .st-badge.bad { color: var(--st-bad); }
.st-pill { display: inline-block; font-size: .75rem; padding: 2px 8px; border-radius: 99px; background: var(--st-soft); color: var(--st-ink2); }
.st-checks { list-style: none; padding: 0; margin: 0; display: grid; gap: 8px; }
.st-checks li { display: flex; gap: 10px; align-items: flex-start; }
.st-checks li::before { flex: none; width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 700; color: #fff; }
.st-checks li.ok::before { content: "✓"; background: var(--st-ok); }
.st-checks li.warn::before { content: "!"; background: var(--st-warn); }
.st-checks li.bad::before { content: "×"; background: var(--st-bad); }

/* llms.txt secciones */
.st-section { border: 1px dashed var(--st-line); border-radius: 14px; padding: 12px 14px; margin-top: 14px; }
.st-section-head { display: flex; gap: 10px; }
.st-section-head .st-input { flex: 1; }
.st-x { background: none; border: 0; color: var(--st-muted); font-size: 1.3rem; cursor: pointer; }

/* SERP */
.st-serp { background: #fff; color: #202124; border: 1px solid #e8eaed; border-radius: 16px; padding: 18px 20px; font-family: Arial, sans-serif; max-width: 652px; }
.st-serp.is-mobile { max-width: 410px; }
.st-serp-site { display: flex; gap: 10px; align-items: center; margin-bottom: 6px; }
.st-serp-fav { width: 26px; height: 26px; border-radius: 50%; background: #f1f3f4 radial-gradient(circle, #0bd49f 35%, transparent 36%); flex: none; }
.st-serp-site b { display: block; font-size: 14px; font-weight: 400; color: #202124; }
.st-serp-site small { display: block; font-size: 12px; color: #4d5156; }
.st-serp-title { font-size: 20px; line-height: 1.3; color: #1a0dab; margin-bottom: 4px; }
.st-serp.is-mobile .st-serp-title { font-size: 18px; }
.st-serp-desc { font-size: 14px; line-height: 1.58; color: #4d5156; }
.st-meter-list { list-style: none; padding: 0; margin: 14px 0 0; display: grid; gap: 10px; }
.st-meter { font-size: .88rem; }
.st-meter-bar { height: 8px; background: var(--st-soft); border-radius: 99px; overflow: hidden; margin-top: 4px; }
.st-meter-bar i { display: block; height: 100%; border-radius: 99px; background: var(--st-ok); transition: width .3s; }
.st-meter.warn .st-meter-bar i { background: var(--st-warn); } .st-meter.bad .st-meter-bar i { background: var(--st-bad); }
.st-count { font-weight: 500; color: var(--st-muted); font-size: .82rem; }

/* contador */
.st-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; margin: 18px 0; }
.st-kw { margin: 0; padding-left: 1.3em; font-size: .92rem; }
.st-kw li { margin: 3px 0; } .st-kw small { color: var(--st-muted); }

/* tarjetas de herramientas */
.st-filter { display: grid; gap: 12px; margin: 0 0 20px; }
.st-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.st-chip { font: inherit; font-size: .88rem; font-weight: 600; border: 1px solid var(--st-line); background: var(--st-bg); color: var(--st-ink2); border-radius: 99px; padding: 6px 14px; cursor: pointer; }
.st-chip.is-active { background: var(--st-ink); color: var(--wp--preset--color--base, #fff); border-color: var(--st-ink); }
.st-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 14px; margin: 0 0 2rem; }
.st-card { display: flex; gap: 14px; align-items: flex-start; background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 18px; padding: 18px; text-decoration: none; color: var(--st-ink); transition: transform .2s, border-color .2s, box-shadow .2s; }
.st-card:hover { transform: translateY(-3px); border-color: var(--st-green); box-shadow: 0 14px 30px -18px rgba(10,27,63,.35); }
.st-card[hidden] { display: none; }
.st-card-icon { flex: none; width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; font-size: 22px; background: linear-gradient(135deg, color-mix(in srgb, var(--st-green) 25%, transparent), color-mix(in srgb, var(--st-teal) 18%, transparent)); }
.st-card-body b { display: block; font-size: 1rem; line-height: 1.3; margin-bottom: 4px; }
.st-card-body small { display: block; color: var(--st-ink2); font-size: .88rem; line-height: 1.45; }
.st-related { margin-top: 3rem; }
.st-links { padding-left: 1.1em; } .st-links li { margin: .4em 0; }
.st-studies { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 16px; }
.st-study { display: flex; flex-direction: column; gap: 6px; background: var(--st-bg); border: 1px solid var(--st-line); border-radius: 18px; padding: 22px; text-decoration: none; color: var(--st-ink); }
.st-study small { color: var(--st-teal); font-weight: 600; text-transform: uppercase; letter-spacing: .06em; font-size: .75rem; }
.st-study b { font-size: 1.2rem; line-height: 1.25; } .st-study span { color: var(--st-ink2); font-size: .94rem; }
.st-az { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 24px; }
.st-az a { width: 36px; height: 36px; display: grid; place-items: center; border: 1px solid var(--st-line); border-radius: 10px; text-decoration: none; font-weight: 700; color: var(--st-ink); }
.st-newsletter { display: grid; gap: 6px; background: var(--st-ink); color: var(--wp--preset--color--base, #fff); border-radius: 20px; padding: 26px; }
.st-newsletter b { font-size: 1.3rem; } .st-newsletter span { opacity: .8; }
.st-newsletter .st-row { margin-top: 10px; }
.st-toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--st-ink, #0a1b3f); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: .9rem; z-index: 99; }

@media (max-width: 700px) {
	.st-grid2 { grid-template-columns: 1fr; }
	.st-row { flex-direction: column; }
	.st-btn { justify-content: center; }
}

/* Open Graph preview */
.st-og { border: 1px solid var(--st-line); border-radius: 12px; overflow: hidden; background: var(--st-bg); max-width: 520px; }
.st-og img { display: block; width: 100%; aspect-ratio: 1.91 / 1; object-fit: cover; background: var(--st-soft); }
.st-og-noimg { aspect-ratio: 1.91 / 1; display: grid; place-items: center; background: var(--st-soft); color: var(--st-muted); font-weight: 600; }
.st-og-body { padding: 12px 14px; display: grid; gap: 4px; background: var(--st-soft); }
.st-og-body small { font-size: .75rem; color: var(--st-muted); letter-spacing: .03em; }
.st-og-body b { font-size: 1rem; line-height: 1.3; }
.st-og-body span { font-size: .88rem; color: var(--st-ink2); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
