/* Modal global de reserva de mesa (módulo Restaurante).
   Base neutra: el acento lo pone el .btn-primary del tenant y su custom.css. */

.reserva-modal-overlay {
	position: fixed;
	inset: 0;
	background: rgba(0, 0, 0, 0.5);
	z-index: 1080;
}

.reserva-modal {
	position: fixed;
	left: 0;
	right: 0;
	bottom: 0;
	max-height: 88vh;
	overflow-y: auto;
	overscroll-behavior: contain;
	-webkit-overflow-scrolling: touch;
	background: #ffffff;
	border-radius: 14px 14px 0 0;
	box-shadow: 0 -8px 40px rgba(0, 0, 0, 0.25);
	padding: 20px 22px 26px;
	z-index: 1081;
	animation: reservaModalSubir 0.25s ease-out;
}

/* Con el modal abierto el body queda fijo para que el dedo no scrollee el sitio de atrás (se preserva la posición desde el JS) */
body.reserva-modal-abierta {
	position: fixed;
	left: 0;
	right: 0;
	width: 100%;
	overflow: hidden;
}

@media (min-width: 768px) {
	.reserva-modal {
		left: 50%;
		right: auto;
		width: 560px;
		transform: translateX(-50%);
	}
}

@keyframes reservaModalSubir {
	from {
		transform: translateY(40px);
		opacity: 0;
	}
	to {
		transform: translateY(0);
		opacity: 1;
	}
}

@media (min-width: 768px) {
	@keyframes reservaModalSubir {
		from {
			transform: translateX(-50%) translateY(40px);
			opacity: 0;
		}
		to {
			transform: translateX(-50%) translateY(0);
			opacity: 1;
		}
	}
}

.reserva-modal-encabezado {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 4px;
}

.reserva-modal-encabezado h3 {
	font-size: 1.25rem;
	margin: 0;
}

.reserva-modal-cerrar {
	background: none;
	border: 0;
	padding: 4px;
	cursor: pointer;
	line-height: 1;
	color: inherit;
}

.reserva-modal-ayuda {
	font-size: 0.9rem;
	opacity: 0.75;
	margin: 0 0 14px;
}

.reserva-modal-campos {
	display: flex;
	flex-wrap: wrap;
	gap: 12px;
}

.reserva-modal-campo {
	width: 100%;
}

.reserva-modal-campo-mitad {
	width: calc(50% - 6px);
}

.reserva-modal-campo label {
	display: block;
	font-size: 0.72rem;
	font-weight: 600;
	text-transform: uppercase;
	letter-spacing: 0.08em;
	opacity: 0.7;
	margin-bottom: 4px;
}

.reserva-modal-campo input,
.reserva-modal-campo select,
.reserva-modal-campo textarea {
	width: 100%;
	box-sizing: border-box;
	border: 1px solid rgba(0, 0, 0, 0.18);
	border-radius: 6px;
	padding: 10px 12px;
	font-size: 0.95rem;
	background: #ffffff;
	color: inherit;
}

/* el input date vacío no trae texto: sin un alto fijo colapsa, por eso lo igualamos al resto */
.reserva-modal-campo input,
.reserva-modal-campo select {
	min-height: 44px;
}

.reserva-modal-error {
	margin-top: 12px;
	padding: 10px 14px;
	border-radius: 6px;
	background: rgba(220, 53, 69, 0.08);
	border: 1px solid rgba(220, 53, 69, 0.35);
	color: #b02a37;
	font-size: 0.9rem;
}

.reserva-modal-enviar {
	width: 100%;
	margin-top: 16px;
	display: flex;
	align-items: center;
	justify-content: center;
	gap: 8px;
}

.reserva-modal-ok {
	text-align: center;
	padding: 28px 10px 16px;
}

.reserva-modal-ok .material-symbols-rounded {
	font-size: 52px;
	color: #2e7d32;
}

.reserva-modal-ok h4 {
	margin: 10px 0 6px;
}

.reserva-modal-ok p {
	opacity: 0.8;
	margin: 0;
}

.reserva-modal-ok #reservaModalOkDetalle {
	opacity: 1;
	font-weight: 700;
	margin-top: 8px;
}

.reserva-modal-ok-mensaje {
	margin-top: 4px !important;
}
