/* Modal "Confirmar disponibilidad" de la ficha del vehiculo.
   Fuentes de la web: Display Text en titulos, Poppins en el texto. */

html.tc-disp-abierto,
html.tc-disp-abierto body {
	overflow: hidden;
}

.tc-disp {
	--tc-rojo: #e30613;
	--tc-texto: #101114;
	--tc-suave: #616161;
	--tc-borde: #e0e0e0;
	--tc-fondo: #f7f7f7;

	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 16px;
	font-family: "Poppins", sans-serif;
	color: var(--tc-texto);
	opacity: 0;
	transition: opacity 0.2s ease;
}

.tc-disp[hidden] {
	display: none;
}

.tc-disp.is-visible {
	opacity: 1;
}

.tc-disp *,
.tc-disp *::before,
.tc-disp *::after {
	box-sizing: border-box;
}

.tc-disp__fondo {
	position: absolute;
	inset: 0;
	background: rgba(16, 17, 20, 0.62);
	backdrop-filter: blur(3px);
}

.tc-disp__caja {
	position: relative;
	width: 100%;
	max-width: 560px;
	max-height: calc(100vh - 32px);
	max-height: calc(100dvh - 32px);
	overflow-y: auto;
	padding: 30px 30px 26px;
	border-radius: 14px;
	background: #fff;
	box-shadow: 0 24px 60px rgba(0, 0, 0, 0.28);
	transform: translateY(12px);
	transition: transform 0.2s ease;
}

.tc-disp.is-visible .tc-disp__caja {
	transform: none;
}

.tc-disp__cerrar {
	position: absolute;
	top: 14px;
	right: 14px;
	display: grid;
	place-items: center;
	width: 36px;
	height: 36px;
	padding: 0;
	border: 0;
	border-radius: 50%;
	background: var(--tc-fondo);
	color: var(--tc-texto);
	cursor: pointer;
}

.tc-disp__cerrar:hover {
	background: #ececec;
}

.tc-disp__cerrar svg {
	width: 18px;
	height: 18px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2;
	stroke-linecap: round;
}

.tc-disp__antetitulo {
	margin: 0 0 6px;
	font-size: 11px;
	font-weight: 700;
	letter-spacing: 0.08em;
	text-transform: uppercase;
	color: var(--tc-rojo);
}

.tc-disp__antetitulo:empty {
	display: none;
}

.tc-disp .tc-disp__titulo {
	margin: 0 40px 8px 0;
	font-family: "Display Text", "Toyota Display", sans-serif;
	font-size: 26px;
	font-weight: 700;
	line-height: 1.15;
	color: var(--tc-texto);
	text-transform: none;
	letter-spacing: 0;
}

.tc-disp__texto {
	margin: 0 0 18px;
	font-size: 14px;
	line-height: 1.55;
	color: var(--tc-suave);
}

.tc-disp__vehiculo {
	display: flex;
	align-items: center;
	gap: 14px;
	margin: 0 0 20px;
	padding: 10px;
	border: 1px solid var(--tc-borde);
	border-radius: 10px;
	background: var(--tc-fondo);
}

.tc-disp__vehiculo img {
	flex: none;
	width: 96px;
	height: 66px;
	border-radius: 6px;
	object-fit: cover;
	background: #fff;
}

.tc-disp__vehiculo div {
	display: flex;
	flex-direction: column;
	gap: 2px;
	min-width: 0;
}

.tc-disp__vehiculo strong {
	font-family: "Toyota Text", "Poppins", sans-serif;
	font-size: 15px;
	line-height: 1.25;
}

.tc-disp__vehiculo span {
	font-size: 12px;
	color: var(--tc-suave);
}

.tc-disp__vehiculo .tc-disp__precio {
	font-size: 14px;
	font-weight: 700;
	color: var(--tc-texto);
}

.tc-disp__campos {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 14px 12px;
}

.tc-disp__campo--completo {
	grid-column: 1 / -1;
}

.tc-disp__campo label {
	display: block;
	margin: 0 0 5px;
	font-size: 12px;
	font-weight: 600;
	color: var(--tc-texto);
}

.tc-disp__campo label span {
	color: var(--tc-rojo);
}

.tc-disp .tc-disp__campo input,
.tc-disp .tc-disp__campo select,
.tc-disp .tc-disp__campo textarea {
	display: block;
	width: 100%;
	min-height: 44px;
	margin: 0;
	padding: 10px 12px;
	border: 1px solid var(--tc-borde);
	border-radius: 8px;
	background: #fff;
	font-family: inherit;
	font-size: 14px;
	line-height: 1.4;
	color: var(--tc-texto);
	box-shadow: none;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.tc-disp .tc-disp__campo textarea {
	min-height: 84px;
	resize: vertical;
}

.tc-disp .tc-disp__campo input:focus,
.tc-disp .tc-disp__campo select:focus,
.tc-disp .tc-disp__campo textarea:focus {
	border-color: var(--tc-texto);
	outline: none;
	box-shadow: 0 0 0 3px rgba(16, 17, 20, 0.08);
}

.tc-disp__campo.is-error input,
.tc-disp__campo.is-error select,
.tc-disp__campo.is-error textarea {
	border-color: var(--tc-rojo);
}

.tc-disp__error {
	display: block;
	margin-top: 4px;
	font-size: 12px;
	color: var(--tc-rojo);
}

.tc-disp__error:empty {
	display: none;
}

.tc-disp__trampa {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.tc-disp__aviso {
	margin: 16px 0 0;
	padding: 10px 12px;
	border-radius: 8px;
	background: #fdecee;
	font-size: 13px;
	color: #a1000e;
}

.tc-disp .tc-disp__enviar {
	position: relative;
	display: flex;
	align-items: center;
	justify-content: center;
	width: 100%;
	min-height: 48px;
	margin: 20px 0 0;
	padding: 14px 24px;
	border: 0;
	border-radius: 8px;
	background: var(--tc-rojo);
	font-family: inherit;
	font-size: 13px;
	font-weight: 700;
	letter-spacing: 0.04em;
	text-transform: uppercase;
	color: #fff;
	cursor: pointer;
	transition: background 0.15s ease;
}

.tc-disp .tc-disp__enviar:hover {
	background: #b80015;
}

.tc-disp .tc-disp__enviar--claro {
	background: var(--tc-texto);
}

.tc-disp .tc-disp__enviar--claro:hover {
	background: #2b2c30;
}

.tc-disp__enviar.is-cargando {
	pointer-events: none;
	opacity: 0.85;
}

.tc-disp__enviar.is-cargando span {
	visibility: hidden;
}

.tc-disp__enviar.is-cargando::after {
	content: "";
	position: absolute;
	width: 20px;
	height: 20px;
	border: 2px solid rgba(255, 255, 255, 0.4);
	border-top-color: #fff;
	border-radius: 50%;
	animation: tc-disp-giro 0.7s linear infinite;
}

@keyframes tc-disp-giro {
	to {
		transform: rotate(360deg);
	}
}

.tc-disp__nota {
	margin: 10px 0 0;
	font-size: 11px;
	line-height: 1.5;
	text-align: center;
	color: var(--tc-suave);
}

.tc-disp__ok {
	padding: 12px 0 4px;
	text-align: center;
}

.tc-disp__ok .tc-disp__titulo {
	margin: 0 0 8px;
}

.tc-disp__check {
	display: inline-grid;
	place-items: center;
	width: 60px;
	height: 60px;
	margin: 0 0 16px;
	border-radius: 50%;
	background: #e9f7ee;
	color: #10893e;
}

.tc-disp__check svg {
	width: 30px;
	height: 30px;
	fill: none;
	stroke: currentColor;
	stroke-width: 2.5;
	stroke-linecap: round;
	stroke-linejoin: round;
}

@media (max-width: 560px) {
	.tc-disp {
		align-items: flex-end;
		padding: 0;
	}

	.tc-disp__caja {
		max-height: 92vh;
		max-height: 92dvh;
		padding: 24px 18px 20px;
		border-radius: 16px 16px 0 0;
		transform: translateY(40px);
	}

	.tc-disp .tc-disp__titulo {
		font-size: 22px;
	}

	.tc-disp__campos {
		grid-template-columns: 1fr;
	}

	.tc-disp__vehiculo img {
		width: 78px;
		height: 54px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.tc-disp,
	.tc-disp__caja {
		transition: none;
	}
}

/* El tema pinta todos los <button> con su estilo (rojo, relleno, ancho
   minimo): el de cerrar se blinda para que siga siendo un circulo. */
.tc-disp .tc-disp__caja > button.tc-disp__cerrar {
	position: absolute !important;
	top: 14px !important;
	right: 14px !important;
	display: grid !important;
	place-items: center !important;
	width: 36px !important;
	min-width: 0 !important;
	height: 36px !important;
	min-height: 0 !important;
	margin: 0 !important;
	padding: 0 !important;
	border: 0 !important;
	border-radius: 50% !important;
	background: #f2f2f2 !important;
	box-shadow: none !important;
	color: #101114 !important;
	line-height: 1 !important;
	transform: none !important;
}

.tc-disp .tc-disp__caja > button.tc-disp__cerrar:hover,
.tc-disp .tc-disp__caja > button.tc-disp__cerrar:focus-visible {
	background: #e4e4e4 !important;
	color: #101114 !important;
}

.tc-disp .tc-disp__caja > button.tc-disp__cerrar svg {
	display: block !important;
	width: 18px !important;
	height: 18px !important;
	margin: 0 !important;
	stroke: currentColor !important;
}
