/* Aviso de "estamos cerrados" al pulsar Llamar / WhatsApp fuera de horario. */
.dodox-closed {
	width: min(100% - 32px, 460px);
	max-height: calc(100dvh - 32px);
	margin: auto;
	padding: 0;
	overflow: auto;
	border: 0;
	border-radius: 18px;
	background: #ffffff;
	color: #070707;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.35);
	font-family: inherit;
	overscroll-behavior: contain;
}

.dodox-closed::backdrop {
	background: rgba(7, 7, 7, 0.6);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
}

.dodox-closed[open] {
	animation: dodox-closed-in 0.28s cubic-bezier(0.2, 0.8, 0.3, 1);
}

.dodox-closed[open]::backdrop {
	animation: dodox-closed-fade 0.28s ease;
}

@keyframes dodox-closed-in {
	from {
		opacity: 0;
		transform: translateY(16px) scale(0.97);
	}
}

@keyframes dodox-closed-fade {
	from {
		opacity: 0;
	}
}

html.dodox-closed-open {
	overflow: hidden;
}

.dodox-closed__box {
	position: relative;
	padding: 40px 32px 32px;
}

.dodox-closed__step {
	text-align: center;
}

.dodox-closed__step[hidden] {
	display: none;
}

.dodox-closed__x {
	position: absolute;
	top: 14px;
	right: 14px;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: #f4f4f4;
	color: #070707;
	cursor: pointer;
	transition: background-color 0.2s ease, color 0.2s ease;
}

.dodox-closed__x:hover,
.dodox-closed__x:focus-visible {
	background: #070707;
	color: #ffffff;
}

.dodox-closed__x svg {
	width: 18px;
	height: 18px;
}

.dodox-closed__sr {
	position: absolute;
	width: 1px;
	height: 1px;
	overflow: hidden;
	clip: rect(0, 0, 0, 0);
	white-space: nowrap;
}

.dodox-closed__icon {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 64px;
	height: 64px;
	margin-bottom: 18px;
	border-radius: 50%;
	background: rgba(207, 5, 69, 0.1);
	color: #cf0545;
}

.dodox-closed__icon svg {
	width: 32px;
	height: 32px;
}

.dodox-closed .dodox-closed__title {
	margin: 0;
	color: #070707;
	font-size: 1.5rem;
	font-weight: 700;
	line-height: 1.25;
}

.dodox-closed .dodox-closed__next {
	margin: 12px 0 0;
	color: #070707;
	font-size: 1rem;
	font-weight: 400;
}

.dodox-closed .dodox-closed__next strong {
	color: #cf0545;
	font-weight: 700;
}

.dodox-closed .dodox-closed__msg {
	margin: 10px 0 0;
	color: #5b5b5b;
	font-size: 0.9375rem;
	font-weight: 400;
	line-height: 1.6;
}

.dodox-closed__hours {
	margin: 18px 0 0;
	padding: 12px 16px;
	border-radius: 10px;
	background: #f4f4f4;
	color: #3a3a3a;
	font-size: 0.875rem;
	line-height: 1.6;
	list-style: none;
}

.dodox-closed__hours li {
	margin: 0;
}

.dodox-closed__actions {
	display: flex;
	flex-direction: column;
	gap: 10px;
	margin-top: 24px;
}

.dodox-closed__btn {
	display: block;
	padding: 14px 20px;
	border-radius: 999px;
	font-size: 0.9375rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.dodox-closed__btn--primary {
	background: #cf0545;
	color: #ffffff;
}

.dodox-closed__btn--primary:hover,
.dodox-closed__btn--primary:focus-visible {
	background: #b4043c;
	color: #ffffff;
	box-shadow: 0 8px 20px rgba(207, 5, 69, 0.3);
	transform: translateY(-2px);
}

.dodox-closed__btn--ghost {
	color: #5b5b5b;
	font-weight: 500;
}

.dodox-closed__btn--ghost:hover,
.dodox-closed__btn--ghost:focus-visible {
	background: #f4f4f4;
	color: #070707;
}

.dodox-closed__btn:focus-visible,
.dodox-closed__back:focus-visible {
	outline: 2px solid #070707;
	outline-offset: 2px;
}

/* Paso 2: formulario dentro del aviso */
.dodox-closed__form {
	text-align: left;
}

.dodox-closed__form .dodox-closed__title,
.dodox-closed__form .dodox-closed__msg {
	text-align: left;
}

.dodox-closed__form .dodox-closed__msg {
	margin-bottom: 20px;
}

.dodox-closed__back {
	margin: -12px 0 14px;
	padding: 4px 0;
	border: 0;
	background: none;
	color: #5b5b5b;
	font: inherit;
	font-size: 0.875rem;
	cursor: pointer;
}

.dodox-closed__back:hover {
	color: #cf0545;
}

.dodox-closed__form .ff-btn-submit {
	width: 100%;
	border-radius: 999px !important;
	background-color: #cf0545 !important;
}

@media (max-width: 480px) {
	.dodox-closed__box {
		padding: 36px 20px 22px;
	}

	.dodox-closed .dodox-closed__title {
		font-size: 1.3rem;
	}
}

@media (prefers-reduced-motion: reduce) {
	.dodox-closed[open],
	.dodox-closed[open]::backdrop {
		animation: none;
	}

	.dodox-closed__btn {
		transition: none;
	}
}
