/* Botnauta Core — blocks, directory and affiliate notice.
   Colors come from the theme's custom properties, with the design values as fallback. */

.bn-eyebrow {
	margin: 0;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: .6px;
	text-transform: uppercase;
	color: var(--bn-violet-ink, #3A22C4);
}

.bn-disclosure {
	margin: 0 0 22px;
	font-size: 13px;
	line-height: 1.5;
	color: var(--bn-muted, #5F5B7A);
}

.bn-block-empty {
	padding: 16px;
	border: 2px dashed #CFC9EA;
	border-radius: 14px;
	color: var(--bn-muted, #5F5B7A);
	font-size: 14px;
}

/* ---------- Tool logo ---------- */
.bn-tool-logo {
	display: inline-flex;
	flex: none;
	align-items: center;
	justify-content: center;
	overflow: hidden;
	font-weight: 800;
	color: var(--bn-ink, #15132B);
	border-radius: 12px;
}
.bn-tool-logo--sm { width: 48px; height: 48px; font-size: 18px; }
.bn-tool-logo--md { width: 56px; height: 56px; font-size: 20px; border-radius: 14px; }
.bn-tool-logo--lg { width: 84px; height: 84px; font-size: 32px; border-radius: 22px; }
.bn-tool-logo img { width: 100%; height: 100%; object-fit: cover; }

/* ---------- Buttons (also defined by the theme) ---------- */
.bn-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 44px;
	padding: 12px 18px;
	border-radius: 12px;
	border: 1px solid transparent;
	font: inherit;
	font-weight: 600;
	font-size: 15px;
	line-height: 1.2;
	text-decoration: none;
	cursor: pointer;
}
.bn-btn--primary { background: var(--bn-violet, #5B3DF5); color: #fff; }
.bn-btn--primary:hover, .bn-btn--primary:focus-visible { background: #4A2EE0; color: #fff; }
.bn-btn--ghost { background: #fff; border-color: #D9D4F0; color: var(--bn-ink, #15132B); }
.bn-btn--ghost:hover { border-color: var(--bn-violet, #5B3DF5); color: var(--bn-ink, #15132B); }
.bn-link-btn { font-weight: 600; white-space: nowrap; }

/* ---------- Quick answer ---------- */
.bn-qa {
	margin: 0 0 28px;
	padding: clamp(18px, 3vw, 28px);
	background: #fff;
	border: 2px solid var(--bn-violet, #5B3DF5);
	border-radius: 22px;
}
.bn-qa__body { margin-top: 8px; font-size: 18px; line-height: 1.55; }
.bn-qa__body > *:last-child { margin-bottom: 0; }
.bn-qa .bn-picks { margin-top: 18px; }

/* ---------- Top picks ---------- */
.bn-picks { list-style: none; margin: 0 0 28px; padding: 0; }
.bn-qa .bn-picks { margin-bottom: 0; }
.bn-picks__item {
	display: flex;
	flex-wrap: wrap;
	gap: 10px 16px;
	align-items: center;
	justify-content: space-between;
	padding: 14px 0;
	border-top: 1px solid var(--bn-border, #E6E3F3);
}
.bn-picks__tool { display: flex; gap: 14px; align-items: center; min-width: 0; }
.bn-picks__text { display: flex; flex-direction: column; gap: 2px; }
.bn-picks__text .bn-eyebrow { font-size: 12px; letter-spacing: .5px; }
.bn-picks__name { font-size: 18px; font-weight: 700; color: var(--bn-ink, #15132B); text-decoration: none; }

/* ---------- Comparison table ---------- */
.bn-compare { margin: 0 0 28px; }
.bn-compare .bn-compare__title {
	margin: 0 0 14px;
	font-family: var(--bn-font-display, inherit);
	font-size: clamp(24px, 2.6vw, 30px);
	font-weight: 800;
	line-height: 1.2;
}
.bn-compare__scroll {
	overflow-x: auto;
	background: #fff;
	border: 1px solid var(--bn-border, #E6E3F3);
	border-radius: 18px;
}
.bn-compare table { width: 100%; min-width: 600px; margin: 0; border: 0; border-collapse: collapse; font-size: 15px; }
.bn-compare th, .bn-compare td { padding: 14px 16px; border: 0; text-align: left; vertical-align: middle; }
.bn-compare thead tr { background: var(--bn-bg, #F6F5FB); }
.bn-compare tbody tr { border-top: 1px solid var(--bn-border, #E6E3F3); }
.bn-compare tbody th { font-weight: 600; }
.bn-compare tbody th a { color: var(--bn-ink, #15132B); }

/* ---------- Tool card (in articles) ---------- */
.bn-card-tool {
	margin: 0 0 20px;
	padding: clamp(18px, 3vw, 26px);
	background: #fff;
	border: 1px solid var(--bn-border, #E6E3F3);
	border-radius: 22px;
	scroll-margin-top: 90px;
}
.bn-card-tool__head { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin-bottom: 14px; }
.bn-card-tool__rank { font-family: var(--bn-font-display, inherit); font-size: 34px; font-weight: 800; color: var(--bn-violet, #5B3DF5); }
.bn-card-tool__name { margin: 0; font-size: 24px; font-weight: 800; line-height: 1.2; }
.bn-card-tool__best { display: block; margin-top: 3px; font-size: 14px; color: var(--bn-text-soft, #4A4766); }
.bn-card-tool__summary { margin: 0 0 16px; font-size: 17px; line-height: 1.65; color: var(--bn-text, #2A2745); }
.bn-card-tool__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; }
.bn-card-tool__price { font-size: 15px; color: var(--bn-text-soft, #4A4766); }
.bn-card-tool__price strong { color: var(--bn-ink, #15132B); }
.bn-card-tool__links { display: flex; flex-wrap: wrap; gap: 10px; }

.bn-proscons { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 14px; margin: 0 0 18px; }
.bn-proscons > div { padding: 14px 16px; border-radius: 14px; }
.bn-proscons__pros { background: #E8FBF5; }
.bn-proscons__cons { background: #FFF2DE; }
.bn-proscons__title { margin: 0; font-weight: 700; }
.bn-proscons__pros .bn-proscons__title { color: #0B5E4A; }
.bn-proscons__cons .bn-proscons__title { color: #8A4B00; }
.bn-proscons ul { margin: 6px 0 0; padding-left: 20px; line-height: 1.7; }

/* ---------- FAQ ---------- */
.bn-faq { margin: 0 0 28px; }
.bn-faq__title { margin: 0 0 12px; font-size: clamp(24px, 2.6vw, 30px); font-weight: 800; }
.bn-faq__list { padding: 6px 20px; background: #fff; border: 1px solid var(--bn-border, #E6E3F3); border-radius: 18px; }
.bn-faq__item { padding: 14px 0; border-bottom: 1px solid var(--bn-border, #E6E3F3); }
.bn-faq__item:last-child { border-bottom: 0; }
.bn-faq__item summary { min-height: 28px; font-size: 17px; font-weight: 600; cursor: pointer; }
.bn-faq__a { margin-top: 10px; line-height: 1.6; color: var(--bn-text-soft, #4A4766); }
.bn-faq__a p { margin: 0 0 10px; }
.bn-faq__a p:last-child { margin: 0; }

/* ---------- Author box ---------- */
.bn-author { display: flex; flex-wrap: wrap; gap: 16px; margin: 28px 0 0; padding: 22px; background: var(--bn-lilac, #EAE5FF); border-radius: 20px; }
.bn-author__img { width: 64px; height: 64px; border-radius: 50%; }
.bn-author__text { flex: 1 1 260px; min-width: 0; }
.bn-author__name { margin: 0; font-size: 18px; font-weight: 700; }
.bn-author__bio { margin: 6px 0 8px; line-height: 1.6; color: var(--bn-text, #2A2745); }

/* ---------- Directory ---------- */
.bn-dir__form { margin: 0 0 16px; }
.bn-search {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	max-width: 680px;
	padding: 8px;
	background: #fff;
	border: 1px solid #D9D4F0;
	border-radius: 18px;
}
.bn-search input[type="search"] {
	flex: 1 1 220px;
	min-width: 0;
	padding: 12px 14px;
	border: 0;
	background: transparent;
	font: inherit;
	font-size: 16px;
	color: var(--bn-ink, #15132B);
}
.bn-dir__filters { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; margin-top: 18px; }
.bn-dir__cats { display: flex; flex-wrap: wrap; gap: 10px; }
.bn-filter {
	display: inline-flex;
	align-items: center;
	min-height: 44px;
	padding: 0 16px;
	border: 1px solid #D9D4F0;
	border-radius: 999px;
	background: #fff;
	color: var(--bn-ink, #15132B);
	font-size: 14px;
	font-weight: 600;
	text-decoration: none;
}
.bn-filter:hover { border-color: var(--bn-violet, #5B3DF5); color: var(--bn-ink, #15132B); }
.bn-filter[aria-current="true"] { background: var(--bn-violet, #5B3DF5); border-color: var(--bn-violet, #5B3DF5); color: #fff; }
.bn-dir__free { display: inline-flex; gap: 8px; align-items: center; min-height: 44px; margin-left: auto; font-size: 14px; font-weight: 600; cursor: pointer; }
.bn-dir__free input { width: 18px; height: 18px; margin: 0; accent-color: var(--bn-violet, #5B3DF5); }
.bn-dir__count { margin: 0 0 18px; font-size: 14px; color: var(--bn-muted, #5F5B7A); }
.bn-dir__count:focus { outline: none; }
.bn-dir__empty { padding: 32px; background: #fff; border-radius: 20px; text-align: center; }
.bn-dir__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.bn-dir.is-loading .bn-dir__results { opacity: .55; transition: opacity .15s; }

.bn-tool-card {
	position: relative;
	display: flex;
	flex-direction: column;
	gap: 12px;
	padding: 20px;
	background: #fff;
	border: 1px solid var(--bn-border, #E6E3F3);
	border-radius: 20px;
}
.bn-tool-card:hover { border-color: #CFC9EA; box-shadow: 0 6px 18px rgba(21, 19, 43, .06); }
.bn-tool-card__link { display: flex; flex-direction: column; gap: 10px; color: var(--bn-ink, #15132B); text-decoration: none; }
.bn-tool-card__link::after { content: ""; position: absolute; inset: 0; border-radius: 20px; }
.bn-tool-card__head { display: flex; gap: 12px; align-items: center; }
.bn-tool-card__titles { display: flex; flex-direction: column; }
.bn-tool-card__name { font-size: 18px; font-weight: 700; }
.bn-tool-card__cat { font-size: 13px; color: var(--bn-muted, #5F5B7A); }
.bn-tool-card__desc { font-size: 15px; line-height: 1.5; color: var(--bn-text-soft, #4A4766); }
.bn-tool-card__badges { display: flex; flex-wrap: wrap; gap: 8px; }
.bn-tool-card--sponsored { background: #FFF6E5; border: 2px solid var(--bn-amber, #FFB547); }
.bn-tool-card__sponsored {
	align-self: flex-start;
	padding: 4px 10px;
	border-radius: 8px;
	background: var(--bn-amber, #FFB547);
	color: var(--bn-ink, #15132B);
	font-size: 12px;
	font-weight: 700;
	letter-spacing: .5px;
	text-transform: uppercase;
}
.bn-chip { padding: 6px 10px; border-radius: 8px; background: var(--bn-bg, #F6F5FB); font-size: 13px; font-weight: 600; }
.bn-chip--mint { background: #E8FBF5; color: #0B5E4A; }

.bn-pagination { margin-top: 28px; }
.bn-pagination ul { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; margin: 0; padding: 0; list-style: none; }
.bn-pagination a, .bn-pagination span {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-width: 44px;
	min-height: 44px;
	padding: 0 14px;
	border: 1px solid #D9D4F0;
	border-radius: 12px;
	background: #fff;
	color: var(--bn-ink, #15132B);
	font-weight: 600;
	text-decoration: none;
}
.bn-pagination span[aria-current] { background: var(--bn-violet, #5B3DF5); border-color: var(--bn-violet, #5B3DF5); color: #fff; }

.screen-reader-text:not(:focus) {
	position: absolute !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0 0 0 0);
	white-space: nowrap;
}

/* Aviso de IA y fecha de verificación */
.bn-ai-note { display: flex; flex-wrap: wrap; gap: 4px 10px; align-items: baseline; margin: 10px 0 16px; padding: 10px 14px; border: 1px solid #E6E3F3; border-radius: 14px; background: #EAE5FF; color: #15132B; font-size: 13px; line-height: 1.5; }
.bn-ai-note a { color: #4B2FE0; font-weight: 600; }

/* Historial de precios */
.bn-ph__meta { font-size: 15px; color: #15132B; background: #EAE5FF; border: 1px solid #E6E3F3; border-radius: 14px; padding: 14px 18px; margin: 0 0 24px; }
.bn-ph__meta p { margin: 0 0 6px; }
.bn-ph__meta p:last-child { margin: 0; }
.bn-ph .bn-table-wrap { overflow-x: auto; margin: 0 0 24px; }
.bn-ph__table { width: 100%; border-collapse: collapse; font-size: 14px; }
.bn-ph__table th, .bn-ph__table td { padding: 8px 10px; border-bottom: 1px solid #E6E3F3; text-align: left; vertical-align: top; }
.bn-ph__table thead th { background: #F6F5FB; font-weight: 700; }
.bn-ph__lines { margin: 0; padding: 0; list-style: none; }
.bn-ph__lines li { margin: 0 0 2px; }
.bn-ph__lines--add span { color: #0d7a5f; font-weight: 700; }
.bn-ph__lines--del span { color: #b42318; font-weight: 700; }
.bn-ph__tool h3 { margin-top: 28px; }
