/* BCS Profesionales — look and feel del estándar de formularios BCS */
.bcsp {
	--bcsp-brand: #7D1427;
	--bcsp-brand-dark: #5e0f1d;
	--bcsp-soft: #f7eef0;
	--bcsp-ink: #222;
	--bcsp-muted: #666;
	--bcsp-line: #ddd;
	font-family: Figtree, system-ui, -apple-system, "Segoe UI", Arial, sans-serif;
	color: var(--bcsp-ink);
	max-width: 960px;
	margin: 0 auto;
	box-sizing: border-box;
}
.bcsp *, .bcsp *::before, .bcsp *::after { box-sizing: inherit; }
.bcsp-auth { max-width: 460px; }
.bcsp h2 { color: var(--bcsp-brand); margin: 0 0 .6em; }
.bcsp h3 { margin: 1.6em 0 .5em; }

.bcsp-form p { margin: 0 0 1em; }
.bcsp-form label { display: block; font-weight: 600; margin-bottom: .3em; }
.bcsp-form label span { font-weight: 400; color: var(--bcsp-muted); }
.bcsp-form input[type=text], .bcsp-form input[type=email], .bcsp-form input[type=password],
.bcsp-form input[type=tel], .bcsp-form input[type=search], .bcsp-form input[type=date],
.bcsp-form input:not([type]), .bcsp-form select, .bcsp-form textarea,
.bcsp-filters input, .bcsp-filters select, .bcsp-notes textarea {
	width: 100%;
	font-size: 16px;
	min-height: 44px;
	padding: 10px 12px;
	border: 1px solid #bbb;
	border-radius: 8px;
	background: #fff;
	color: var(--bcsp-ink);
	font-family: inherit;
}
.bcsp-form input:focus, .bcsp-form select:focus, .bcsp-form textarea:focus, .bcsp-notes textarea:focus {
	outline: 2px solid var(--bcsp-brand);
	outline-offset: 1px;
	border-color: var(--bcsp-brand);
}
.bcsp-form input:disabled { background: #f3f3f3; color: var(--bcsp-muted); }
.bcsp-check label { font-weight: 400; display: flex; gap: .5em; align-items: flex-start; }
.bcsp-check input { margin-top: .25em; width: 18px; height: 18px; flex: none; }
.bcsp-help, .bcsp-legal { font-size: 14px; color: var(--bcsp-muted); }
.bcsp-legal { font-size: 12px; line-height: 1.45; }
.bcsp-hp { position: absolute !important; left: -9999px !important; }

.bcsp-btn {
	display: inline-flex; align-items: center; justify-content: center;
	min-height: 44px; padding: 10px 26px;
	border: 2px solid var(--bcsp-brand); border-radius: 999px;
	background: var(--bcsp-brand); color: #fff !important;
	font-family: inherit; font-size: 16px; font-weight: 600; line-height: 1.2; text-decoration: none; cursor: pointer;
}
.bcsp-btn:hover, .bcsp-btn:focus { background: var(--bcsp-brand-dark); border-color: var(--bcsp-brand-dark); }
.bcsp-btn--ghost { background: transparent; color: var(--bcsp-brand) !important; }
.bcsp-btn--ghost:hover, .bcsp-btn--ghost:focus { background: var(--bcsp-soft); }
.bcsp-btn--small { min-height: 44px; padding: 8px 18px; font-size: 15px; }
.bcsp-link { background: none; border: 0; padding: 0; color: var(--bcsp-brand); text-decoration: underline; cursor: pointer; font: inherit; }
.bcsp-inline { margin: 0; }

.bcsp-msg { padding: 12px 14px; border-radius: 8px; margin: 0 0 1em; border-left: 4px solid; }
.bcsp-msg--error { background: #fdecee; border-color: #b3261e; }
.bcsp-msg--ok { background: #edf7ee; border-color: #2e7d32; }
.bcsp-msg--info { background: var(--bcsp-soft); border-color: var(--bcsp-brand); }

.bcsp-join { margin-top: 2em; padding-top: 1.2em; border-top: 1px solid var(--bcsp-line); }
.bcsp-lead > :first-child { margin-top: 0; }
.bcsp-lead { margin-top: 1em; padding: 1.2em; background: #fafafa; border: 1px solid var(--bcsp-line); border-radius: 12px; }

.bcsp-area__head {
	display: flex; justify-content: space-between; align-items: center; gap: 1em; flex-wrap: wrap;
	padding: 12px 16px; margin-bottom: 1em; background: var(--bcsp-soft); border-radius: 12px;
}
.bcsp-tabs { display: flex; gap: .4em; flex-wrap: nowrap; overflow-x: auto; -webkit-overflow-scrolling: touch; margin-bottom: 1.2em; border-bottom: 2px solid var(--bcsp-line); }
.bcsp-tabs a {
	padding: 12px 16px; min-height: 44px; text-decoration: none; color: var(--bcsp-ink);
	border-bottom: 3px solid transparent; margin-bottom: -2px; font-weight: 600; white-space: nowrap;
}
.bcsp-tabs a.is-active, .bcsp-tabs a:hover { color: var(--bcsp-brand); border-bottom-color: var(--bcsp-brand); }

.bcsp-cards { list-style: none; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 12px; }
.bcsp-cards a {
	display: flex; align-items: center; min-height: 64px; padding: 14px 16px;
	border: 1px solid var(--bcsp-line); border-radius: 12px; text-decoration: none;
	color: var(--bcsp-ink); font-weight: 600; background: #fff;
}
.bcsp-cards a:hover, .bcsp-cards a:focus { border-color: var(--bcsp-brand); color: var(--bcsp-brand); background: var(--bcsp-soft); }

.bcsp-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 0 16px; }
.bcsp-terms { max-height: 340px; overflow: auto; padding: 14px 16px; border: 1px solid var(--bcsp-line); border-radius: 8px; background: #fafafa; margin-bottom: 1em; }

.bcsp-filters { display: grid; grid-template-columns: 2fr 2fr 1fr 1fr auto; gap: 10px; align-items: end; margin-bottom: 1em; }
.bcsp-filters label { font-weight: 600; font-size: 14px; display: block; }
.bcsp-table-wrap { overflow-x: auto; }
.bcsp-table { width: 100%; border-collapse: collapse; font-size: 15px; }
.bcsp-table th, .bcsp-table td { text-align: left; padding: 10px 8px; border-bottom: 1px solid var(--bcsp-line); vertical-align: top; }
.bcsp-table th { background: var(--bcsp-soft); }
.bcsp-pager { display: flex; gap: 6px; margin: 1em 0; }
.bcsp-pager a, .bcsp-pager span { min-width: 44px; min-height: 44px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--bcsp-line); border-radius: 8px; text-decoration: none; }
.bcsp-pager .is-active { background: var(--bcsp-brand); color: #fff; border-color: var(--bcsp-brand); }

.bcsp-notes { margin: 1em 0; padding: 12px 14px; background: var(--bcsp-soft); border-radius: 8px; }
.bcsp-notes label { display: block; font-weight: 600; margin-bottom: .3em; }
.bcsp-notes label span { font-weight: 400; color: var(--bcsp-muted); }

@media (max-width: 720px) {
	.bcsp-filters { grid-template-columns: 1fr; }
	.bcsp-table thead { display: none; }
	.bcsp-table tr { display: block; padding: 8px 0; border-bottom: 1px solid var(--bcsp-line); }
	.bcsp-table td { display: flex; justify-content: space-between; gap: 1em; border: 0; padding: 4px 0; }
	.bcsp-table td::before { content: attr(data-label); font-weight: 600; color: var(--bcsp-muted); }
}
