/* Videoconsulta: botón de la franja de arriba, botón del contenido y ventana de reserva.
   Colores de la marca: marrón de la franja #261b17, dorado #c7a082 y su tono oscuro #a7916d. */

/* Botón en la franja: contorno dorado para que se distinga de la dirección y el teléfono. */
.header_top .vc-franja .vc-franja__boton {
	display: inline-block;
	margin: 0 6px;
	padding: 0 14px;
	border: 1px solid #c7a082;
	border-radius: 30px;
	line-height: 23px;
	vertical-align: middle;
	background: rgba(199, 160, 130, .14);
	color: #fff;
}

.header_top .vc-franja .vc-franja__boton:hover,
.header_top .vc-franja .vc-franja__boton:focus {
	background: #c7a082;
	color: #fff;
}

.header_top .vc-franja .vc-franja__boton:hover .fa,
.header_top .vc-franja .vc-franja__boton:focus .fa {
	color: #fff;
}

.vc-franja__corto {
	display: none;
}

@media only screen and (max-width: 600px) {
	.header_top .vc-franja .vc-franja__boton {
		margin: 3px 4px;
		padding: 0 10px;
		line-height: 22px;
	}

	/* Con el botón, la dirección entera no cabe en una línea del móvil: se queda en «Castelló, 115»
	   (los trozos los marca el tema hijo) y la franja fija no crece. */
	.header_top .fsoria-top-contact__via,
	.header_top .fsoria-top-contact__ciudad {
		display: none;
	}

	.vc-franja__largo {
		display: none;
	}

	.vc-franja__corto {
		display: inline;
	}
}

/* Botón para el contenido (shortcode) y botones de la ventana. */
.vc-boton {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 9px;
	padding: 13px 28px;
	border: 1px solid #c7a082;
	border-radius: 2px;
	background: #c7a082;
	color: #fff !important;
	font-family: inherit;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: 1px;
	line-height: 1.3;
	text-transform: uppercase;
	text-decoration: none;
	cursor: pointer;
	transition: background-color .2s, border-color .2s;
}

.vc-boton:hover,
.vc-boton:focus {
	background: #a7916d;
	border-color: #a7916d;
	color: #fff;
}

.vc-boton:disabled {
	opacity: .6;
	cursor: wait;
}

/* Ventana. */
html.vc-abierta,
html.vc-abierta body {
	overflow: hidden;
}

/* El chat de la web va por encima de cualquier capa (z-index máximo); mientras la ventana está
   abierta se oculta, para que no tape el calendario ni el botón de confirmar en el móvil. */
html.vc-abierta #chatbase-bubble-button,
html.vc-abierta #chatbase-message-bubbles,
html.vc-abierta #chatbase-bubble-window {
	display: none !important;
}

.vc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 24px;
	font-family: inherit;
	color: #303030;
}

.vc-modal[hidden] {
	display: none;
}

.vc-modal__fondo {
	position: absolute;
	inset: 0;
	background: rgba(20, 14, 12, .72);
	-webkit-backdrop-filter: blur(3px);
	backdrop-filter: blur(3px);
	animation: vc-aparecer .2s ease-out;
}

.vc-modal__caja {
	position: relative;
	display: flex;
	flex-direction: column;
	width: 100%;
	max-width: 820px;
	max-height: calc(100vh - 48px);
	max-height: calc(100dvh - 48px);
	overflow: hidden;
	border-radius: 4px;
	background: #fff;
	box-shadow: 0 18px 60px rgba(0, 0, 0, .35);
	animation: vc-subir .25s ease-out;
}

.vc-modal__cerrar {
	position: absolute;
	top: 10px;
	right: 12px;
	z-index: 2;
	width: 40px;
	height: 40px;
	padding: 0;
	border: 0;
	background: transparent;
	color: #fff;
	font-size: 30px;
	line-height: 40px;
	cursor: pointer;
	opacity: .8;
}

.vc-modal__cerrar:hover,
.vc-modal__cerrar:focus {
	opacity: 1;
}

.vc-modal__cabecera {
	flex: 0 0 auto;
	padding: 26px 34px 20px;
	background: #261b17;
	color: #fff;
}

/* El tema da a los h2 tamaños con !important según la pantalla: aquí se fijan los de la ventana. */
.vc-modal .vc-modal__titulo {
	margin: 0;
	color: #fff;
	font-size: 26px !important;
	font-weight: 600;
	line-height: 1.25 !important;
	letter-spacing: .5px !important;
	text-transform: none;
}

.vc-pasos {
	display: flex;
	gap: 22px;
	margin: 18px 0 0;
	padding: 0;
	list-style: none;
	counter-reset: vc-paso;
	font-size: 12px;
	letter-spacing: .5px;
	text-transform: uppercase;
}

.vc-modal .vc-pasos li {
	display: flex;
	align-items: center;
	gap: 8px;
	margin: 0;
	padding: 0;
	color: rgba(255, 255, 255, .5);
	line-height: 1.2;
	white-space: nowrap;
	counter-increment: vc-paso;
}

.vc-modal .vc-pasos li::before {
	content: counter(vc-paso);
	display: inline-flex;
	align-items: center;
	justify-content: center;
	width: 22px;
	height: 22px;
	border: 1px solid currentColor;
	border-radius: 50%;
	font-size: 11px;
}

.vc-modal .vc-pasos li.is-actual {
	color: #fff;
}

.vc-modal .vc-pasos li.is-actual::before {
	border-color: #c7a082;
	background: #c7a082;
}

.vc-modal .vc-pasos li.is-hecho {
	color: #c7a082;
}

.vc-modal .vc-pasos li.is-hecho::before {
	content: "\2713";
}

.vc-modal__cuerpo {
	flex: 1 1 auto;
	overflow-y: auto;
	-webkit-overflow-scrolling: touch;
	padding: 28px 34px 32px;
}

/* Paso 1: calendario y horas. */
.vc-paso--elegir {
	display: grid;
	grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
	gap: 34px;
}

.vc-paso[hidden] {
	display: none;
}

.vc-calendario__cabecera {
	display: flex;
	align-items: center;
	justify-content: space-between;
	margin-bottom: 12px;
}

.vc-calendario__mes {
	margin: 0;
	color: #261b17;
	font-size: 16px;
	font-weight: 600;
}

.vc-calendario__flecha {
	width: 36px;
	height: 36px;
	padding: 0;
	border: 1px solid #e3d6cb;
	border-radius: 50%;
	background: #fff;
	color: #a7916d;
	font-size: 22px;
	line-height: 32px;
	cursor: pointer;
}

.vc-calendario__flecha:hover:not(:disabled),
.vc-calendario__flecha:focus:not(:disabled) {
	border-color: #c7a082;
	background: #c7a082;
	color: #fff;
}

.vc-calendario__flecha:disabled {
	opacity: .3;
	cursor: default;
}

.vc-calendario__semana,
.vc-calendario__dias {
	display: grid;
	grid-template-columns: repeat(7, minmax(0, 1fr));
	gap: 4px;
}

.vc-calendario__semana span {
	padding: 4px 0;
	color: #9b8f88;
	font-size: 11px;
	font-weight: 600;
	text-align: center;
}

.vc-calendario__dias.is-cargando {
	opacity: .4;
}

.vc-dia {
	aspect-ratio: 1;
	min-height: 36px;
	padding: 0;
	border: 1px solid transparent;
	border-radius: 50%;
	background: transparent;
	color: #c9c0bb;
	font-family: inherit;
	font-size: 14px;
	cursor: default;
}

.vc-dia--libre {
	border-color: #e3d6cb;
	color: #261b17;
	font-weight: 600;
	cursor: pointer;
}

.vc-dia--libre:hover,
.vc-dia--libre:focus {
	border-color: #c7a082;
	background: #f7f1ec;
}

.vc-dia.is-elegido {
	border-color: #c7a082;
	background: #c7a082;
	color: #fff;
}

.vc-horas__titulo {
	margin: 6px 0 14px;
	color: #261b17;
	font-size: 15px;
	font-weight: 600;
	line-height: 1.45;
}

.vc-horas__lista {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 8px;
}

.vc-hora {
	padding: 10px 0;
	border: 1px solid #c7a082;
	border-radius: 2px;
	background: #fff;
	color: #a7916d;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	cursor: pointer;
	transition: background-color .15s, color .15s;
}

.vc-hora:hover,
.vc-hora:focus {
	background: #c7a082;
	color: #fff;
}

/* Paso 2: datos. */
.vc-resumen {
	display: flex;
	flex-wrap: wrap;
	align-items: center;
	justify-content: space-between;
	gap: 8px 16px;
	margin-bottom: 22px;
	padding: 14px 18px;
	border-left: 3px solid #c7a082;
	background: #f7f1ec;
}

.vc-resumen__texto {
	margin: 0;
	color: #261b17;
	font-size: 15px;
}

.vc-enlace {
	padding: 0;
	border: 0;
	background: none;
	color: #a7916d;
	font-family: inherit;
	font-size: 14px;
	font-weight: 600;
	text-decoration: underline;
	cursor: pointer;
}

.vc-form {
	display: grid;
	grid-template-columns: 1fr 1fr;
	gap: 16px 20px;
	margin: 0;
}

.vc-campo {
	display: flex;
	flex-direction: column;
	gap: 6px;
	margin: 0;
	color: #261b17;
	font-size: 13px;
	font-weight: 600;
}

.vc-campo--ancho {
	grid-column: 1 / -1;
}

.vc-campo input,
.vc-campo select {
	width: 100%;
	box-sizing: border-box;
	margin: 0;
	padding: 12px 14px;
	border: 1px solid #d9ccc2;
	border-radius: 2px;
	background: #fff;
	color: #303030;
	font-family: inherit;
	font-size: 16px;
	font-weight: 400;
}

.vc-campo input:focus,
.vc-campo select:focus {
	border-color: #a7916d;
	outline: 0;
	box-shadow: 0 0 0 3px rgba(199, 160, 130, .25);
}

.vc-campo input.is-error,
.vc-campo select.is-error {
	border-color: #b4412f;
}

.vc-obligatorio {
	color: #a7916d;
	font-weight: 700;
}

.vc-form__nota {
	grid-column: 1 / -1;
	margin: 0;
	color: #8a7f78;
	font-size: 12px;
}

.vc-campo__ayuda {
	color: #8a7f78;
	font-size: 12px;
	font-weight: 400;
}

.vc-campo__error,
.vc-form__error {
	color: #b4412f;
	font-size: 12px;
	font-weight: 600;
}

.vc-campo__error:empty,
.vc-form__error:empty {
	display: none;
}

.vc-trampa {
	position: absolute !important;
	left: -9999px !important;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.vc-consentimiento {
	display: flex;
	grid-column: 1 / -1;
	align-items: flex-start;
	gap: 10px;
	margin: 4px 0 0;
	color: #5a524d;
	font-size: 13px;
	line-height: 1.5;
	cursor: pointer;
}

.vc-consentimiento input {
	flex: 0 0 auto;
	width: 18px;
	height: 18px;
	margin: 1px 0 0;
	accent-color: #a7916d;
}

.vc-consentimiento a {
	color: #a7916d;
	text-decoration: underline;
}

.vc-form [data-vc-error],
.vc-form__error,
.vc-form .vc-boton {
	grid-column: 1 / -1;
}

.vc-form .vc-boton {
	justify-self: start;
	margin-top: 6px;
}

/* Paso 3: confirmación. */
.vc-paso--hecho {
	padding: 10px 0 6px;
	text-align: center;
}

.vc-hecho__icono {
	display: flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
	width: 62px;
	height: 62px;
	margin: 0 auto 14px;
	padding: 0;
	border-radius: 50%;
	background: #c7a082;
	color: #fff;
	font-size: 30px;
	line-height: 1;
}

.vc-hecho__titulo {
	margin: 0 0 6px;
	color: #261b17;
	font-size: 22px;
	font-weight: 600;
	letter-spacing: .5px;
	text-transform: none;
}

.vc-hecho__fecha {
	margin: 0 0 14px;
	color: #a7916d;
	font-size: 17px;
	font-weight: 600;
}

.vc-hecho__texto {
	max-width: 520px;
	margin: 0 auto 24px;
	color: #5a524d;
	font-size: 15px;
	line-height: 1.6;
}

.vc-hecho__acciones {
	display: flex;
	flex-direction: column;
	align-items: center;
	gap: 16px;
}

@keyframes vc-aparecer {
	from { opacity: 0; }
	to { opacity: 1; }
}

@keyframes vc-subir {
	from { opacity: 0; transform: translateY(16px); }
	to { opacity: 1; transform: none; }
}

@media (prefers-reduced-motion: reduce) {
	.vc-modal__fondo,
	.vc-modal__caja {
		animation: none;
	}
}

/* Móvil: la ventana ocupa la pantalla y las horas van debajo del calendario. */
@media only screen and (max-width: 720px) {
	.vc-modal {
		padding: 0;
	}

	.vc-modal__caja {
		max-width: none;
		height: 100%;
		max-height: none;
		border-radius: 0;
	}

	.vc-modal__cabecera {
		padding: 18px 56px 16px 20px;
		padding-top: calc(18px + env(safe-area-inset-top, 0px));
	}

	.vc-modal__cerrar {
		top: calc(6px + env(safe-area-inset-top, 0px));
		right: 6px;
	}

	.vc-modal .vc-modal__titulo {
		font-size: 21px !important;
	}

	.vc-pasos {
		justify-content: space-between;
		gap: 8px;
		margin-top: 14px;
		font-size: 10px;
		letter-spacing: 0;
	}

	.vc-modal .vc-pasos li {
		gap: 6px;
	}

	.vc-modal .vc-pasos li::before {
		width: 20px;
		height: 20px;
		font-size: 10px;
	}

	.vc-modal__cuerpo {
		padding: 20px 20px calc(28px + env(safe-area-inset-bottom, 0px));
	}

	.vc-paso--elegir {
		grid-template-columns: 1fr;
		gap: 22px;
	}

	.vc-horas {
		scroll-margin-top: 12px;
	}

	.vc-horas__lista {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}

	.vc-form {
		grid-template-columns: 1fr;
	}

	.vc-form .vc-boton {
		justify-self: stretch;
	}
}
