/* Modal captura email – dossier
 * Por defecto OCULTO (display:none). Solo visible con .is-open para no tapar
 * header/menú si el atributo [hidden] no aplica bien en algún navegador/caché.
 */
.etg-dossier-modal-open { overflow: hidden; }

.etg-dossier-modal {
	position: fixed;
	inset: 0;
	z-index: 1000000;
	display: none;
	align-items: center;
	justify-content: center;
	padding: 24px;
	box-sizing: border-box;
	visibility: hidden;
	pointer-events: none;
}

.etg-dossier-modal.is-open {
	display: flex !important;
	visibility: visible;
	pointer-events: auto;
}

.etg-dossier-modal[hidden] {
	display: none !important;
	visibility: hidden !important;
	pointer-events: none !important;
}

.etg-dossier-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(15, 23, 42, 0.55);
	backdrop-filter: blur(2px);
}

.etg-dossier-modal__dialog {
	position: relative;
	width: 100%;
	max-width: 440px;
	max-height: min(92vh, 640px);
	overflow: auto;
	background: #fff;
	border-radius: 14px;
	box-shadow: 0 24px 48px rgba(0, 0, 0, 0.2);
	padding: 28px 24px 24px;
	z-index: 1;
}

.etg-dossier-modal__x {
	position: absolute;
	top: 10px;
	right: 12px;
	width: 36px;
	height: 36px;
	border: none;
	background: transparent;
	font-size: 1.5rem;
	line-height: 1;
	cursor: pointer;
	color: #64748b;
	border-radius: 8px;
}

.etg-dossier-modal__x:hover {
	background: #f1f5f9;
	color: #0f172a;
}

.etg-dossier-modal__title {
	margin: 0 32px 12px 0;
	font-size: 1.35rem;
	font-weight: 800;
	color: #0f172a;
	letter-spacing: -0.02em;
}

.etg-dossier-modal__intro {
	margin: 0 0 20px;
	font-size: 0.92rem;
	color: #475569;
	line-height: 1.55;
}

.etg-dossier-form__hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.etg-dossier-form__label {
	display: block;
	margin-bottom: 14px;
}

.etg-dossier-form__label-text {
	display: block;
	font-weight: 600;
	font-size: 0.85rem;
	margin-bottom: 6px;
	color: #334155;
}

.etg-dossier-form__input {
	width: 100%;
	padding: 12px 14px;
	border: 1px solid #cbd5e1;
	border-radius: 8px;
	font-size: 1rem;
}

.etg-dossier-form__input:focus {
	outline: 2px solid #006bb3;
	outline-offset: 1px;
	border-color: #006bb3;
}

.etg-dossier-form__check {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 0.86rem;
	color: #475569;
	line-height: 1.45;
	margin-bottom: 16px;
	cursor: pointer;
}

.etg-dossier-form__check input {
	margin-top: 3px;
	flex-shrink: 0;
	width: 18px;
	height: 18px;
}

.etg-dossier-form__err {
	color: #b91c1c;
	font-size: 0.88rem;
	margin: 0 0 12px;
}

.etg-dossier-form__submit {
	width: 100%;
	padding: 14px 18px;
	border: none;
	border-radius: 10px;
	font-weight: 700;
	font-size: 1rem;
	cursor: pointer;
	background: linear-gradient(135deg, #006bb3, #003f7d);
	color: #fff;
	box-shadow: 0 4px 14px rgba(0, 107, 179, 0.35);
}

.etg-dossier-form__submit:hover:not(:disabled) {
	filter: brightness(1.05);
}

.etg-dossier-form__submit:disabled {
	opacity: 0.65;
	cursor: wait;
}

/* Botón dossier (mismo aspecto que enlace) */
button.download-button.etg-dossier-gate-btn,
button.catalog-download.etg-dossier-gate-btn {
	font: inherit;
	cursor: pointer;
	border: none;
}
