/* Módulo Estacionamiento.
   Los colores configurables los inyecta Elementor por selectores; aquí van la
   estructura y unos valores de respaldo. Varias reglas llevan propiedades
   explícitas a propósito: los temas suelen imponer su estilo a <button> e
   <input>, y sin esto el selector de cantidad sale con los colores del tema. */

.fes-parking {
	font-family: Montserrat, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}

.fes-parking__title {
	margin: 0 0 4px;
	font-size: 20px;
	font-weight: 600;
	color: #1E2A4C;
}

.fes-parking__subtitle {
	margin: 0 0 16px;
	font-size: 14px;
	color: #6B7280;
}

/* --- Pista ------------------------------------------------------------- */

.fes-parking__track {
	--fes-parking-card: 260px;
	display: grid;
	grid-auto-flow: column;
	grid-auto-columns: minmax(var(--fes-parking-card), 1fr);
	gap: 16px;
	overflow-x: auto;
	scroll-snap-type: x mandatory;
	padding-bottom: 6px;
	/* Que el arrastre del carrusel no mueva la página entera. */
	overscroll-behavior-x: contain;
	-webkit-overflow-scrolling: touch;
}

.fes-parking--grid .fes-parking__track {
	grid-auto-flow: row;
	grid-template-columns: repeat(auto-fill, minmax(var(--fes-parking-card), 1fr));
	grid-auto-columns: auto;
	overflow-x: visible;
}

.fes-parking__track::-webkit-scrollbar {
	height: 6px;
}

.fes-parking__track::-webkit-scrollbar-thumb {
	background: rgba(30, 42, 76, .2);
	border-radius: 3px;
}

/* --- Tarjeta ----------------------------------------------------------- */

.fes-parking__card {
	display: grid;
	grid-template-columns: auto 1fr;
	grid-template-areas:
		"icon body"
		"actions actions";
	align-items: center;
	gap: 10px 14px;
	scroll-snap-align: start;
	background: #fff;
	border: 2px solid #E5E7EB;
	border-radius: 16px;
	box-shadow: 0 1px 3px rgba(16, 24, 40, .08);
	padding: 18px 20px;
	transition: border-color .2s ease;
}

.fes-parking__card.is-sold-out {
	opacity: .6;
}

.fes-parking__icon {
	grid-area: icon;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 52px;
	height: 52px;
	flex: 0 0 52px;
	border-radius: 50%;
	background: rgba(30, 42, 76, .16);
	font-size: 22px;
	font-weight: 800;
	color: #1E2A4C;
}

.fes-parking__icon svg {
	width: 24px;
	height: 24px;
	fill: currentColor;
}

.fes-parking__body {
	grid-area: body;
	min-width: 0;
}

.fes-parking__date {
	font-size: 16px;
	font-weight: 800;
	text-transform: uppercase;
	line-height: 1.25;
	color: #1E2A4C;
}

.fes-parking__slot {
	margin-top: 2px;
	font-size: 12px;
	color: #6B7280;
}

/* Precio y nota en la misma línea: "$4.000 por vehículo + cargo". */
.fes-parking__pricing {
	margin-top: 4px;
	display: flex;
	flex-wrap: wrap;
	align-items: baseline;
	gap: 6px;
	line-height: 1.3;
}

.fes-parking__price {
	font-size: 15px;
	font-weight: 700;
	color: #1E2A4C;
}

.fes-parking__price .amount,
.fes-parking__price bdi {
	color: inherit;
	font: inherit;
}

.fes-parking__note {
	font-size: 13px;
	font-weight: 400;
	color: #6B7280;
}

/* --- Acciones ---------------------------------------------------------- */

.fes-parking__actions {
	grid-area: actions;
	display: flex;
	align-items: center;
	justify-content: space-between;
	gap: 12px;
	margin-top: 4px;
}

.fes-parking__qty {
	display: inline-flex;
	align-items: center;
	flex: 0 0 auto;
	border: 1px solid #E5E7EB;
	border-radius: 999px;
	background: #fff;
	overflow: hidden;
}

/* Los temas suelen pintar todos los <button>: se neutraliza aquí. */
.fes-parking__qty .fes-parking__step {
	width: 34px;
	height: 34px;
	min-height: 0;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	font-size: 18px;
	font-weight: 600;
	line-height: 1;
	letter-spacing: 0;
	text-transform: none;
	color: #1E2A4C;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
}

.fes-parking__qty .fes-parking__step:hover {
	background: #F3F4F6;
	color: #1E2A4C;
}

.fes-parking__qty .fes-parking__step:disabled {
	opacity: .35;
	cursor: default;
}

.fes-parking__qty .fes-parking__input {
	width: 40px;
	min-height: 0;
	height: 34px;
	padding: 0;
	margin: 0;
	border: 0;
	border-radius: 0;
	background: transparent;
	box-shadow: none;
	text-align: center;
	font-size: 15px;
	font-weight: 700;
	color: #1E2A4C;
	-moz-appearance: textfield;
	appearance: textfield;
}

.fes-parking__qty .fes-parking__input:focus {
	outline: none;
	box-shadow: none;
}

.fes-parking__input::-webkit-outer-spin-button,
.fes-parking__input::-webkit-inner-spin-button {
	-webkit-appearance: none;
	margin: 0;
}

.fes-parking .fes-parking__btn {
	flex: 1 1 auto;
	min-height: 40px;
	padding: 0 18px;
	border: 0;
	border-radius: 9px;
	background: #00AB3D;
	color: #fff;
	font-size: 14px;
	font-weight: 700;
	line-height: 1;
	letter-spacing: .02em;
	text-transform: none;
	cursor: pointer;
	appearance: none;
	-webkit-appearance: none;
	transition: filter .15s ease;
}

.fes-parking .fes-parking__btn:hover:not(:disabled) {
	background: #00AB3D;
	color: #fff;
	filter: brightness(.94);
}

.fes-parking .fes-parking__btn:disabled {
	cursor: default;
	filter: grayscale(.5);
	opacity: .7;
}

/* --- Mensajes ---------------------------------------------------------- */

.fes-parking__msg {
	margin: 12px 0 0;
	min-height: 1.2em;
	font-size: 14px;
}

.fes-parking__msg.is-error {
	color: #DC2626;
}

.fes-parking__msg.is-success {
	color: #00AB3D;
}

.fes-parking__notice {
	padding: 16px;
	border: 1px dashed #D1D5DB;
	border-radius: 10px;
	color: #6B7280;
	text-align: center;
}

/* --- Móvil ------------------------------------------------------------- */

/* En móvil las tarjetas van una debajo de otra: el carrusel horizontal obliga
   a descubrir que hay más deslizando, y aquí no hay espacio para insinuarlo. */
@media (max-width: 767px) {
	.fes-parking__track {
		grid-auto-flow: row;
		grid-auto-columns: auto;
		grid-template-columns: 1fr;
		overflow-x: visible;
		scroll-snap-type: none;
		padding-bottom: 0;
	}

	.fes-parking__card {
		scroll-snap-align: none;
	}

	.fes-parking__actions {
		flex-wrap: wrap;
	}

	.fes-parking .fes-parking__btn {
		min-width: 140px;
	}
}

/* Respaldo del ícono: la «P» del diseño cuando no se elige uno. */
.fes-parking__icon-letter {
	font-size: 24px;
	font-weight: 800;
	line-height: 1;
}

/* Nota al pie: mismo tono que el subtítulo, con la línea más suelta porque es
   un texto largo y legal, no un titular. */
.fes-parking__footer {
	margin: 14px 0 0;
	max-width: 80ch;
	font-size: 13px;
	line-height: 1.5;
	color: #6B7280;
}
