/* AI360 SEO — herramientas integradas (sustituye los iframes de /ai/seo) */

.a360seo-tool {
	--a360-ink: #1c2430;
	--a360-muted: #5b6774;
	--a360-line: #dfe4ea;
	--a360-brand: #19b39b;
	--a360-bg: #ffffff;

	max-width: 880px;
	margin: 28px auto;
	padding: 24px;
	border: 1px solid var(--a360-line);
	border-radius: 14px;
	background: var(--a360-bg);
	color: var(--a360-ink);
	box-sizing: border-box;
}

.a360seo-tool *,
.a360seo-tool *::before,
.a360seo-tool *::after { box-sizing: inherit; }

.a360seo-tool__label {
	display: block;
	margin-bottom: 10px;
	font-weight: 600;
	font-size: 15px;
}

.a360seo-tool__row {
	display: flex;
	gap: 10px;
	flex-wrap: wrap;
}

.a360seo-tool__input {
	flex: 1 1 320px;
	min-height: 46px;
	padding: 0 14px;
	border: 1px solid var(--a360-line);
	border-radius: 10px;
	font-size: 16px;
	background: #fff;
	color: inherit;
}

.a360seo-tool__input:focus {
	outline: 2px solid rgba(25, 179, 155, 0.45);
	outline-offset: 1px;
	border-color: var(--a360-brand);
}

.a360seo-tool__submit {
	min-height: 46px;
	padding: 0 22px;
	border: 0;
	border-radius: 10px;
	background: var(--a360-brand);
	color: #06231f;
	font-weight: 700;
	font-size: 15px;
	cursor: pointer;
	transition: filter 0.15s ease, transform 0.15s ease;
}

.a360seo-tool__submit:hover { filter: brightness(1.06); }
.a360seo-tool__submit:active { transform: translateY(1px); }
.a360seo-tool__submit[disabled] { opacity: 0.6; cursor: progress; }

.a360seo-tool__hint {
	margin: 10px 0 0;
	font-size: 13px;
	color: var(--a360-muted);
}

.a360seo-tool__status {
	min-height: 22px;
	margin-top: 14px;
	font-size: 14px;
	color: var(--a360-muted);
}

.a360seo-tool__status[data-state="error"] { color: #b3261e; }

.a360seo-tool__result { margin-top: 8px; }

.a360seo-card {
	margin-top: 18px;
	padding: 18px;
	border: 1px solid var(--a360-line);
	border-radius: 12px;
}

.a360seo-card h3 {
	margin: 0 0 10px;
	font-size: 17px;
}

.a360seo-card ul {
	margin: 0 0 12px 18px;
	padding: 0;
}

.a360seo-card li { margin: 4px 0; }

.a360seo-chip {
	display: inline-block;
	margin: 0 6px 6px 0;
	padding: 4px 10px;
	border-radius: 999px;
	background: rgba(25, 179, 155, 0.12);
	color: #0d6b5c;
	font-size: 13px;
}

.a360seo-url {
	padding: 10px 0;
	border-top: 1px solid var(--a360-line);
}

.a360seo-url:first-of-type { border-top: 0; }

.a360seo-url a {
	font-weight: 600;
	text-decoration: none;
	word-break: break-word;
}

.a360seo-url__meta {
	margin-top: 3px;
	font-size: 13px;
	color: var(--a360-muted);
}

.a360seo-spinner {
	display: inline-block;
	width: 14px;
	height: 14px;
	margin-right: 8px;
	vertical-align: -2px;
	border: 2px solid currentColor;
	border-right-color: transparent;
	border-radius: 50%;
	animation: a360seo-spin 0.7s linear infinite;
}

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

@media (max-width: 520px) {
	.a360seo-tool { padding: 18px; border-radius: 12px; }
	.a360seo-tool__submit { width: 100%; }
}
