.atemooch-jornadas-modal[hidden],
.atemooch-jornadas-modal__status[hidden] {
	display: none !important;
}

.atemooch-jornadas-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: Jost, sans-serif;
}

.atemooch-jornadas-modal *,
.atemooch-jornadas-modal *::before,
.atemooch-jornadas-modal *::after {
	box-sizing: border-box;
}

.atemooch-jornadas-modal__backdrop {
	position: absolute;
	inset: 0;
	background: rgba(16, 32, 39, 0.72);
	backdrop-filter: blur(3px);
}

.atemooch-jornadas-modal__panel {
	position: relative;
	width: min(100%, 620px);
	max-height: min(92vh, 940px);
	max-height: min(92dvh, 940px);
	overflow-y: auto;
	overscroll-behavior: contain;
	border: 1px solid #e3e7e8;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 18px 60px rgba(0, 0, 0, 0.28);
	padding: 12px 20px 20px;
	outline: none;
}

.atemooch-jornadas-modal__panel:focus-visible {
	box-shadow: 0 0 0 4px rgba(70, 184, 210, 0.65), 0 18px 60px rgba(0, 0, 0, 0.28);
}

.atemooch-jornadas-modal__header {
	display: flex;
	align-items: center;
	justify-content: space-between;
	min-height: 48px;
	gap: 12px;
}

.atemooch-jornadas-modal__eyebrow {
	color: #722422;
	font-size: 0.78rem;
	font-weight: 700;
	letter-spacing: 0.08em;
}

.atemooch-jornadas-modal__close {
	display: inline-flex;
	width: 44px;
	height: 44px;
	flex: 0 0 44px;
	align-items: center;
	justify-content: center;
	appearance: none;
	border: 1px solid #d7dfe1;
	border-radius: 8px;
	background: #fff;
	color: #222;
	cursor: pointer;
	padding: 0;
	font-family: Arial, sans-serif;
	font-size: 30px;
	font-weight: 400;
	line-height: 1;
}

.atemooch-jornadas-modal__close:hover {
	background: #f7f8f8;
	color: #222;
}

.atemooch-jornadas-modal__close:focus-visible,
.atemooch-jornadas-modal__email:focus-visible,
.atemooch-jornadas-modal__submit:focus-visible {
	outline: 3px solid #46b8d2;
	outline-offset: 2px;
}

.atemooch-jornadas-modal__poster {
	display: block;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: min(42vh, 460px);
	max-height: min(42dvh, 460px);
	margin: 0 auto 16px;
	border-radius: 4px;
	object-fit: contain;
}

.atemooch-jornadas-modal__signup {
	max-width: 540px;
	margin: 0 auto;
}

.atemooch-jornadas-modal__intro {
	margin: 0 0 14px;
	color: #555b5e;
	font-size: 1rem;
	line-height: 1.45;
}

.atemooch-jornadas-modal__honeypot {
	position: absolute !important;
	width: 1px !important;
	height: 1px !important;
	padding: 0 !important;
	margin: -1px !important;
	overflow: hidden !important;
	clip: rect(0, 0, 0, 0) !important;
	white-space: nowrap !important;
	clip-path: inset(50%) !important;
	border: 0 !important;
}

.atemooch-jornadas-modal__field-row {
	display: flex;
	align-items: stretch;
	gap: 10px;
}

.atemooch-jornadas-modal__email {
	box-sizing: border-box;
	min-width: 0;
	min-height: 48px;
	flex: 1 1 auto;
	border: 1px solid #d7dfe1;
	border-radius: 8px;
	background: #fff;
	padding: 10px 12px;
	color: #222;
	font: inherit;
}

.atemooch-jornadas-modal__submit {
	min-width: 112px;
	min-height: 48px;
	border: 1px solid #722422;
	border-radius: 8px;
	background: #722422;
	padding: 10px 18px;
	color: #fff;
	font: inherit;
	font-weight: 700;
	cursor: pointer;
}

.atemooch-jornadas-modal__submit:hover {
	border-color: #451210;
	background: #451210;
}

.atemooch-jornadas-modal__submit:disabled {
	background: #555b5e;
	border-color: #555b5e;
	cursor: wait;
}

.atemooch-jornadas-modal__status {
	margin: 12px 0 0;
	border-radius: 8px;
	background: #f7f8f8;
	padding: 10px 12px;
	color: #222;
	font-weight: 600;
}

.atemooch-jornadas-modal__status[data-status="error"] {
	border-left: 4px solid #722422;
}

.atemooch-jornadas-modal__status[data-status="success"] {
	border-left: 4px solid #3193aa;
}

body.atemooch-jornadas-modal-open {
	overflow: hidden;
}

@media (max-width: 800px) {
	.atemooch-jornadas-modal {
		align-items: center;
		padding: 8px;
	}

	.atemooch-jornadas-modal__panel {
		width: min(100%, 560px);
		max-height: 94vh;
		max-height: 94dvh;
		padding: 8px 14px 16px;
	}

	.atemooch-jornadas-modal__poster {
		max-height: 42vh;
		max-height: 42dvh;
		margin-bottom: 12px;
	}

	.atemooch-jornadas-modal__intro {
		font-size: 0.94rem;
	}

	.atemooch-jornadas-modal__field-row {
		flex-direction: column;
		gap: 8px;
	}

	.atemooch-jornadas-modal__submit {
		width: 100%;
	}
}

@media (max-height: 700px) {
	.atemooch-jornadas-modal__poster {
		max-height: 43vh;
		max-height: 43dvh;
	}
}

@media (prefers-reduced-motion: reduce) {
	.atemooch-jornadas-modal *,
	.atemooch-jornadas-modal *::before,
	.atemooch-jornadas-modal *::after {
		animation-duration: 0.01ms !important;
		animation-iteration-count: 1 !important;
		transition-duration: 0.01ms !important;
		scroll-behavior: auto !important;
	}
}
