/* Bedoott Checklist — interactivo */

.bdcl {
	font-family: inherit;
	color: var(--ink, #1A2533);
	max-width: 880px;
	margin: 32px auto;
	padding: 0;
}

/* === Header === */
.bdcl-head { margin-bottom: 24px; }
.bdcl-title {
	font-size: clamp(28px, 3.6vw, 40px);
	font-weight: 800;
	line-height: 1.1;
	letter-spacing: -0.02em;
	margin: 0 0 6px;
	color: inherit;
}
.bdcl-subtitle {
	font-size: 17px;
	color: var(--ink-soft, #4A4846);
	margin: 0 0 14px;
}
.bdcl-intro {
	font-size: 15px;
	line-height: 1.55;
	color: var(--muted, #6B6A67);
	margin: 0;
	max-width: 720px;
}

/* === Progress bar === */
.bdcl-progress {
	position: sticky;
	top: 12px;
	z-index: 10;
	background: var(--paper, #FAF8F3);
	border: 1px solid var(--line, #E5E0D4);
	border-radius: 16px;
	padding: 14px 18px;
	margin: 22px 0;
	box-shadow: 0 8px 24px -16px rgba(26, 37, 51, 0.12);
}
.bdcl-progress-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px; margin-bottom: 10px;
}
.bdcl-progress-label {
	font-size: 14px; color: var(--ink-soft, #4A4846); font-weight: 500;
}
.bdcl-progress-label strong {
	font-size: 18px; color: var(--ink, #1A2533); font-weight: 800;
}
.bdcl-reset {
	background: transparent;
	border: 1px solid var(--line, #E5E0D4);
	border-radius: 999px;
	padding: 6px 14px;
	font: inherit; font-size: 12px;
	color: var(--ink-soft, #4A4846);
	cursor: pointer;
	transition: background .15s ease, color .15s ease;
}
.bdcl-reset:hover { background: var(--paper-warm, #F2EEE4); color: var(--ink, #1A2533); }
.bdcl-bar {
	background: var(--paper-warm, #F2EEE4);
	border-radius: 999px;
	overflow: hidden;
	height: 6px;
}
.bdcl-bar-fill {
	background: linear-gradient(90deg, #7DBAB9, #416582);
	height: 100%;
	width: 0%;
	transition: width .25s ease;
	border-radius: 999px;
}

/* === Section === */
.bdcl-section {
	background: #fff;
	border: 1px solid var(--line, #E5E0D4);
	border-radius: 18px;
	padding: 24px 26px;
	margin: 18px 0;
	border-left: 4px solid var(--bdcl-color, var(--ink));
}
.bdcl-section-title {
	display: flex; align-items: center; gap: 12px;
	font-size: 18px; font-weight: 700;
	margin: 0 0 14px;
	color: var(--ink, #1A2533);
	letter-spacing: -0.01em;
}
.bdcl-section-num {
	display: inline-grid; place-items: center;
	width: 28px; height: 28px;
	border-radius: 999px;
	background: var(--bdcl-color, var(--ink));
	color: #fff;
	font-size: 13px; font-weight: 800;
	font-family: var(--font-mono, ui-monospace, monospace);
	flex-shrink: 0;
}
.bdcl-section-count {
	margin-left: auto;
	font-size: 13px;
	font-family: var(--font-mono, ui-monospace, monospace);
	color: var(--muted, #6B6A67);
	font-weight: 500;
	letter-spacing: 0.04em;
}
.bdcl-section-count strong, .bdcl-section-count [data-bdcl-section-marked] {
	color: var(--bdcl-color, var(--ink));
	font-weight: 700;
}

/* === List === */
.bdcl-list {
	list-style: none;
	padding: 0;
	margin: 0;
	display: grid;
	gap: 6px;
}
.bdcl-item {
	display: flex;
	align-items: flex-start;
	gap: 0;
	padding: 0;
	border-radius: 10px;
	transition: background .12s ease;
}
.bdcl-item:hover { background: rgba(26, 37, 51, 0.025); }

.bdcl-item input[type="checkbox"] {
	/* Esconder el checkbox nativo y dibujar uno propio en el label::before */
	position: absolute;
	opacity: 0;
	width: 1px; height: 1px;
	margin: -1px; padding: 0;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap; border: 0;
}
.bdcl-item label {
	display: flex; align-items: flex-start; gap: 12px;
	flex: 1;
	padding: 10px 12px;
	cursor: pointer;
	font-size: 15px;
	line-height: 1.5;
	color: var(--ink, #1A2533);
	border-radius: 10px;
}
.bdcl-item label::before {
	content: '';
	display: inline-block;
	width: 22px; height: 22px;
	flex-shrink: 0;
	margin-top: 1px;
	border-radius: 6px;
	border: 2px solid var(--line-strong, #C9C3B4);
	background: #fff;
	transition: background .15s ease, border-color .15s ease;
	background-position: center;
	background-repeat: no-repeat;
	background-size: 14px 14px;
}
.bdcl-item label:hover::before { border-color: var(--bdcl-color, var(--ink)); }
.bdcl-item input:focus-visible + label::before {
	box-shadow: 0 0 0 3px color-mix(in oklab, var(--bdcl-color, var(--ink)) 30%, transparent);
}
.bdcl-item input:checked + label::before {
	background-color: var(--bdcl-color, var(--ink));
	border-color: var(--bdcl-color, var(--ink));
	background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 16 16' fill='none' stroke='%23fff' stroke-width='2.4' stroke-linecap='round' stroke-linejoin='round'><polyline points='3.5,8.5 6.5,11.5 12.5,5'/></svg>");
}
.bdcl-item input:checked + label {
	color: var(--ink-soft, #4A4846);
	text-decoration: line-through;
	text-decoration-color: rgba(26, 37, 51, 0.25);
	text-decoration-thickness: 1px;
}

/* === Resultado === */
.bdcl-result {
	background: var(--paper, #FAF8F3);
	border: 1px solid var(--line, #E5E0D4);
	border-radius: 18px;
	padding: 28px;
	margin: 28px 0;
	border-left: 4px solid var(--ink, #1A2533);
	transition: border-left-color .25s ease;
}
.bdcl-result.is-tier-excellent { border-left-color: #2E7D32; }
.bdcl-result.is-tier-good      { border-left-color: var(--teal, #7DBAB9); }
.bdcl-result.is-tier-medium    { border-left-color: var(--coral, #F28F6D); }
.bdcl-result.is-tier-high      { border-left-color: #C0392B; }

.bdcl-result-head {
	display: flex; align-items: center; justify-content: space-between;
	gap: 16px; margin-bottom: 10px;
	flex-wrap: wrap;
}
.bdcl-result-label {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-size: 12px; letter-spacing: 0.12em; text-transform: uppercase;
	color: var(--muted, #6B6A67);
}
.bdcl-result-score {
	font-size: 14px; color: var(--ink-soft, #4A4846);
}
.bdcl-result-score strong {
	font-size: 36px; font-weight: 800; color: var(--ink, #1A2533);
	font-family: var(--font-mono, ui-monospace, monospace);
}
.bdcl-result-tier {
	font-size: 22px; font-weight: 800;
	margin: 0 0 6px;
	color: var(--ink, #1A2533);
	letter-spacing: -0.01em;
	min-height: 0;
}
.bdcl-result-tier:empty { display: none; }
.bdcl-result-desc {
	font-size: 15px; line-height: 1.55;
	color: var(--ink-soft, #4A4846);
	margin: 0 0 18px;
}
.bdcl-result-breakdown {
	display: grid; grid-template-columns: repeat(2, 1fr);
	gap: 8px 18px;
}
.bdcl-result-breakdown:empty { display: none; }
.bdcl-breakdown-row {
	display: flex; align-items: center; justify-content: space-between;
	gap: 12px;
	padding: 10px 14px;
	border-radius: 10px;
	background: #fff;
	border: 1px solid var(--line, #E5E0D4);
	font-size: 13px;
}
.bdcl-breakdown-row strong {
	font-family: var(--font-mono, ui-monospace, monospace);
	font-weight: 700;
	color: var(--bdcl-color, var(--ink));
	white-space: nowrap;
	flex-shrink: 0;
}
.bdcl-breakdown-row .bdcl-breakdown-name {
	min-width: 0;
}
.bdcl-breakdown-row .bdcl-breakdown-name {
	display: flex; align-items: center; gap: 8px;
}
.bdcl-breakdown-row .bdcl-breakdown-dot {
	width: 8px; height: 8px; border-radius: 999px;
	background: var(--bdcl-color, var(--ink));
}

/* === Formulario lead ===
   Selectores anclados en .bdcl para subir especificidad y vencer estilos
   globales del tema o de otros plugins (Contact Form, newsletter, etc.) sin
   recurrir a !important. */
.bdcl .bdcl-lead {
	background: #fff;
	border: 1px solid var(--line, #E5E0D4);
	border-radius: 18px;
	padding: 26px 28px 24px;
	margin: 22px 0;
	box-sizing: border-box;
}
.bdcl .bdcl-lead-title {
	font-size: 20px; font-weight: 800; line-height: 1.2;
	color: var(--ink, #1A2533);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}
.bdcl .bdcl-lead-sub {
	font-size: 14px; line-height: 1.55;
	color: var(--ink-soft, #4A4846);
	margin: 0 0 20px;
}
.bdcl .bdcl-lead-form { display: grid; gap: 14px; margin: 0; }
.bdcl .bdcl-lead-row {
	display: grid;
	grid-template-columns: 1fr 1fr 1fr;
	gap: 12px;
}
@media (max-width: 720px) {
	.bdcl .bdcl-lead-row { grid-template-columns: 1fr; }
}
.bdcl .bdcl-lead-field {
	display: grid; gap: 6px;
	min-width: 0;
}
.bdcl .bdcl-lead-field label {
	font-size: 13px; font-weight: 600;
	color: var(--ink, #1A2533);
	letter-spacing: 0;
	text-transform: none;
	margin: 0; padding: 0;
}
.bdcl .bdcl-lead-field label span { color: #C0392B; font-weight: 700; }

/* Input: fuerza box-sizing, alto fijo y radius reducido para anular cualquier
   estilo heredado del tema (paddings grandes, border-radius pill). */
.bdcl .bdcl-lead-field input,
.bdcl .bdcl-lead-form input[type="text"],
.bdcl .bdcl-lead-form input[type="email"] {
	width: 100%;
	box-sizing: border-box;
	height: 44px;
	padding: 0 14px;
	border: 1px solid var(--line, #E5E0D4);
	border-radius: 10px;
	background: #fff;
	color: var(--ink, #1A2533);
	font: inherit;
	font-size: 15px;
	line-height: 1.4;
	margin: 0;
	box-shadow: none;
	transition: border-color .15s ease, box-shadow .15s ease;
	-webkit-appearance: none;
	appearance: none;
}
.bdcl .bdcl-lead-field input::placeholder { color: var(--muted, #6B6A67); opacity: 1; }
.bdcl .bdcl-lead-field input:focus,
.bdcl .bdcl-lead-form input:focus {
	outline: none;
	border-color: var(--ink, #1A2533);
	box-shadow: 0 0 0 3px rgba(26, 37, 51, 0.12);
}
.bdcl .bdcl-lead-field--invalid input {
	border-color: #C0392B;
	box-shadow: 0 0 0 3px rgba(192, 57, 43, 0.12);
}

.bdcl .bdcl-lead-hp {
	position: absolute !important;
	left: -10000px; top: auto;
	width: 1px; height: 1px;
	overflow: hidden;
}
.bdcl .bdcl-lead-error {
	margin: 0;
	color: #C0392B;
	font-size: 14px;
	font-weight: 600;
}
.bdcl .bdcl-lead-submit {
	margin: 4px 0 0;
	padding: 12px 22px;
	height: auto;
	min-height: 44px;
	border: 0;
	border-radius: 12px;
	background: var(--ink, #1A2533);
	color: #fff;
	font: inherit; font-weight: 700; font-size: 15px;
	line-height: 1.2;
	cursor: pointer;
	transition: transform .12s ease, opacity .15s ease, background .15s ease;
	justify-self: start;
	box-shadow: none;
	letter-spacing: 0;
	text-transform: none;
}
.bdcl .bdcl-lead-submit:hover { transform: translateY(-1px); }
.bdcl .bdcl-lead-submit[disabled] { opacity: .6; cursor: progress; transform: none; }
.bdcl .bdcl-lead-legal {
	margin: 4px 0 0;
	font-size: 12px; line-height: 1.5;
	color: var(--muted, #6B6A67);
}
.bdcl .bdcl-lead-pane--success { text-align: center; padding: 8px 0 4px; }
.bdcl .bdcl-lead-pane--success .bdcl-lead-check { color: #2E7D32; display: inline-block; margin-bottom: 6px; }
.bdcl .bdcl-lead-pane--success h3 {
	font-size: 22px; font-weight: 800;
	color: var(--ink, #1A2533);
	margin: 0 0 6px;
	letter-spacing: -0.01em;
}
.bdcl .bdcl-lead-pane--success p {
	color: var(--ink-soft, #4A4846);
	font-size: 15px; margin: 0;
}

/* === CTA final === */
.bdcl-cta {
	background: var(--ink, #1A2533);
	color: #fff;
	border-radius: 18px;
	padding: 28px;
	display: grid; grid-template-columns: 1fr auto;
	gap: 18px; align-items: center;
	margin: 28px 0 0;
}
.bdcl-cta h3 { color: #fff; font-size: 20px; margin: 0 0 6px; line-height: 1.2; }
.bdcl-cta p  { color: rgba(255,255,255,0.78); font-size: 15px; line-height: 1.5; margin: 0; }
.bdcl-cta-btn { display: flex; gap: 10px; flex-wrap: wrap; }

@media (max-width: 720px) {
	.bdcl-progress { padding: 10px 14px; }
	.bdcl-section { padding: 18px 18px; }
	.bdcl-result { padding: 22px 20px; }
	.bdcl-result-breakdown { grid-template-columns: 1fr; }
	.bdcl-cta { grid-template-columns: 1fr; }
}
