/* Auna Captación — popup público. */

.auna-cap-open {
	overflow: hidden;
}

.auna-cap-overlay,
.auna-cap-overlay *,
.auna-cap-overlay *::before,
.auna-cap-overlay *::after {
	box-sizing: border-box;
}

.auna-cap-overlay {
	position: fixed;
	inset: 0;
	z-index: 999999;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(0, 0, 0, 0.58);
}

.auna-cap-overlay[hidden] {
	display: none !important;
}

.auna-cap-modal {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: calc(100vh - 40px);
	overflow-y: auto;
	padding: 28px;
	border-radius: 6px;
	background: #fff;
	color: #222;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
	font-family: inherit;
}

.auna-cap-modal h2 {
	margin: 0 34px 8px 0;
	font: inherit;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.auna-cap-intro {
	margin: 0 0 20px;
}

.auna-cap-close {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #444;
	font: inherit;
	font-size: 30px;
	line-height: 1;
	cursor: pointer;
}

.auna-cap-field {
	margin: 0 0 14px;
}

.auna-cap-field label {
	display: block;
	margin: 0 0 5px;
	font-weight: 600;
}

.auna-cap-field input {
	display: block;
	width: 100%;
	padding: 10px 12px;
	border: 1px solid #bbb;
	border-radius: 6px;
	background: #fff;
	color: inherit;
	font: inherit;
	font-size: 16px;
	line-height: 1.4;
}

.auna-cap-step[hidden] {
	display: none !important;
}

.auna-cap-success-text {
	margin: 0 0 20px;
}

.auna-cap-ghost {
	display: block;
	width: 100%;
	margin-top: 10px;
	padding: 10px 16px;
	border: 0;
	border-radius: 6px;
	background: transparent;
	color: #555;
	font: inherit;
	text-decoration: underline;
	cursor: pointer;
}

.auna-cap-ghost:hover {
	color: #222;
}

.auna-cap-field input:focus,
.auna-cap-close:focus,
.auna-cap-submit:focus,
.auna-cap-ghost:focus,
.auna-cap-consent input:focus {
	outline: 3px solid rgba(12, 135, 77, 0.3);
	outline-offset: 2px;
}

.auna-cap-consent {
	display: flex;
	gap: 9px;
	align-items: flex-start;
	margin: 4px 0 14px;
	font-size: 0.92rem;
	line-height: 1.4;
}

.auna-cap-consent input {
	flex: 0 0 auto;
	margin-top: 4px;
}

.auna-cap-hp {
	position: absolute !important;
	left: -10000px !important;
	width: 1px !important;
	height: 1px !important;
	overflow: hidden !important;
}

.auna-cap-privacy {
	margin: 0 0 14px;
	font-size: 0.8rem;
	color: #666;
}

.auna-cap-status {
	min-height: 1.4em;
	margin: 0 0 10px;
	font-size: 0.9rem;
}

.auna-cap-status.is-error {
	color: #b00020;
}

.auna-cap-status.is-success {
	color: #087443;
	font-weight: 600;
}

.auna-cap-submit {
	display: block;
	width: 100%;
	padding: 13px 16px;
	border: 0;
	border-radius: 6px;
	background: #0c874d;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.auna-cap-submit:hover:not(:disabled) {
	background: #096d3e;
}

.auna-cap-submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

@media (max-width: 600px) {
	.auna-cap-overlay {
		align-items: flex-end;
		padding: 0;
	}

	.auna-cap-modal {
		max-width: none;
		max-height: 100vh;
		padding: 24px 20px max(24px, env(safe-area-inset-bottom));
		border-radius: 6px 6px 0 0;
	}
}
