/*
 * Formulario de contacto [workie_contacto]. Copia el aspecto del formulario de
 * Elementor que reemplaza; los selectores llevan .wc-form para ganarle a los
 * estilos del tema y del kit de Elementor.
 */
.wc-form {
	--wc-primario: #5c5be5;
	--wc-primario-osc: #4645c9;
	--wc-texto: #333333;
	--wc-campo: #494949;
	--wc-fondo-campo: #f2f2f2;
	--wc-borde: #e1e1e1;

	width: 100%;
	font-family: "Quicksand", sans-serif;
	color: var(--wc-texto);
	text-align: left;
}

.wc-form *,
.wc-form *::before,
.wc-form *::after {
	box-sizing: border-box;
}

.wc-form [hidden] {
	display: none !important;
}

.wc-form .wc-grilla {
	display: grid;
	grid-template-columns: repeat(3, minmax(0, 1fr));
	gap: 16px 20px;
}

.wc-form .wc-campo--completo {
	grid-column: 1 / -1;
}

.wc-form label {
	display: block;
	margin: 0 0 6px;
	font-size: 18px;
	font-weight: 500;
	line-height: 1.4;
	color: var(--wc-texto);
}

.wc-form .wc-req {
	color: #e5484d;
}

.wc-form input,
.wc-form select,
.wc-form textarea {
	display: block;
	width: 100%;
	min-height: 47px;
	margin: 0;
	padding: 6px 16px;
	font-family: inherit;
	font-size: 18px;
	line-height: 1.4;
	color: var(--wc-campo);
	background-color: var(--wc-fondo-campo);
	border: 1px solid var(--wc-borde);
	border-radius: 4px;
	box-shadow: none;
	transition: border-color 0.15s, box-shadow 0.15s;
}

.wc-form select {
	padding-right: 36px;
	-webkit-appearance: none;
	appearance: none;
	background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%23494949' stroke-width='2'/%3E%3C/svg%3E");
	background-repeat: no-repeat;
	background-position: right 14px center;
}

.wc-form textarea {
	min-height: 120px;
	padding-top: 10px;
	resize: vertical;
}

.wc-form input::placeholder,
.wc-form textarea::placeholder {
	color: #9a9a9a;
	opacity: 1;
}

.wc-form input:focus,
.wc-form select:focus,
.wc-form textarea:focus {
	border-color: var(--wc-primario);
	box-shadow: 0 0 0 3px rgba(92, 91, 229, 0.18);
	outline: none;
}

.wc-form .wc-invalido {
	border-color: #e5484d;
}

/* Campo trampa: fuera de la vista de las personas, pero presente para los bots. */
.wc-form .wc-trampa {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.wc-form .wc-acciones {
	display: flex;
	justify-content: center;
	margin-top: 22px;
}

.wc-form button.wc-enviar {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	min-height: 47px;
	margin: 0;
	padding: 0 100px;
	font-family: inherit;
	font-size: 18px;
	font-weight: 500;
	line-height: 1;
	white-space: nowrap;
	text-transform: none;
	text-shadow: none;
	color: #ffffff;
	background-color: var(--wc-primario);
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
	transition: background-color 0.15s;
}

.wc-form button.wc-enviar:hover,
.wc-form button.wc-enviar:focus {
	color: #ffffff;
	background-color: var(--wc-primario-osc);
}

.wc-form button.wc-enviar:disabled {
	opacity: 0.7;
	cursor: wait;
}

.wc-form .wc-mensaje {
	margin-top: 18px;
	padding: 12px 16px;
	font-size: 16px;
	font-weight: 600;
	border-radius: 8px;
}

.wc-form .wc-mensaje--ok {
	color: #116b3a;
	background: #e7f7ee;
}

.wc-form .wc-mensaje--error {
	color: #a8282d;
	background: #fdeceb;
}

.wc-form .wc-legal {
	margin: 14px 0 0;
	font-size: 12px;
	text-align: center;
	color: #8a8a8a;
}

.wc-form .wc-legal a {
	color: inherit;
	text-decoration: underline;
}

/* El aviso de reCAPTCHA va en el texto legal; se oculta la insignia flotante. */
.grecaptcha-badge {
	visibility: hidden;
}

/* Modal de éxito (se agrega al final de la página, fuera del formulario). */
.wc-modal {
	position: fixed;
	inset: 0;
	z-index: 100000;
	display: flex;
	align-items: center;
	justify-content: center;
	padding: 20px;
	background: rgba(24, 22, 64, 0);
	transition: background-color 0.2s;
	font-family: "Quicksand", sans-serif;
}

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

.wc-modal--visible {
	background: rgba(24, 22, 64, 0.55);
}

.wc-modal .wc-modal-caja {
	width: 100%;
	max-width: 400px;
	padding: 30px 26px 26px;
	text-align: center;
	color: #1f2233;
	background: #ffffff;
	border-radius: 20px;
	box-shadow: 0 24px 60px rgba(30, 20, 120, 0.3);
	opacity: 0;
	transform: translateY(24px) scale(0.92);
}

.wc-modal--visible .wc-modal-caja {
	animation: wc-entrar 0.45s cubic-bezier(0.2, 1.3, 0.4, 1) forwards;
}

.wc-modal .wc-modal-figura {
	position: relative;
	width: 112px;
	height: 112px;
	margin: 0 auto 10px;
}

.wc-modal .wc-modal-mascota {
	width: 100%;
	height: 100%;
	object-fit: contain;
	filter: drop-shadow(0 10px 14px rgba(83, 82, 201, 0.25));
}

.wc-modal--visible .wc-modal-mascota {
	animation: wc-saltar 0.9s ease-out 0.2s both;
}

/* Tilde verde que se dibuja sobre la mascota. */
.wc-modal .wc-modal-tilde {
	position: absolute;
	right: -4px;
	bottom: 2px;
	width: 42px;
	height: 42px;
	background: #ffffff;
	border-radius: 50%;
	box-shadow: 0 4px 10px rgba(0, 0, 0, 0.12);
}

.wc-modal .wc-modal-tilde circle {
	fill: #22b866;
	stroke: none;
	transform-origin: center;
	transform: scale(0);
}

.wc-modal .wc-modal-tilde path {
	fill: none;
	stroke: #ffffff;
	stroke-width: 5;
	stroke-linecap: round;
	stroke-linejoin: round;
	stroke-dasharray: 40;
	stroke-dashoffset: 40;
}

.wc-modal--visible .wc-modal-tilde circle {
	animation: wc-circulo 0.35s ease-out 0.5s forwards;
}

.wc-modal--visible .wc-modal-tilde path {
	animation: wc-trazo 0.35s ease-out 0.8s forwards;
}

.wc-modal .wc-modal-titulo {
	margin: 6px 0 8px;
	font-family: inherit;
	font-size: 24px;
	font-weight: 700;
	line-height: 1.25;
	color: #1f2233;
}

.wc-modal .wc-modal-texto {
	margin: 0 0 22px;
	font-size: 16px;
	line-height: 1.5;
	color: #5d6075;
}

.wc-modal button.wc-modal-cerrar {
	min-height: 46px;
	margin: 0;
	padding: 0 44px;
	font-family: inherit;
	font-size: 16px;
	font-weight: 600;
	line-height: 1;
	text-transform: none;
	text-shadow: none;
	color: #ffffff;
	background-color: #5c5be5;
	border: 0;
	border-radius: 10px;
	box-shadow: none;
	cursor: pointer;
}

.wc-modal button.wc-modal-cerrar:hover,
.wc-modal button.wc-modal-cerrar:focus {
	color: #ffffff;
	background-color: #4645c9;
}

@keyframes wc-entrar {
	to {
		opacity: 1;
		transform: none;
	}
}

@keyframes wc-saltar {
	0% {
		transform: scale(0.4) rotate(-18deg);
		opacity: 0;
	}

	45% {
		transform: translateY(-14px) scale(1.08) rotate(6deg);
		opacity: 1;
	}

	70% {
		transform: translateY(0) rotate(-4deg);
	}

	100% {
		transform: none;
	}
}

@keyframes wc-circulo {
	to {
		transform: scale(1);
	}
}

@keyframes wc-trazo {
	to {
		stroke-dashoffset: 0;
	}
}

@media (prefers-reduced-motion: reduce) {
	.wc-modal .wc-modal-caja,
	.wc-modal .wc-modal-mascota,
	.wc-modal .wc-modal-tilde circle,
	.wc-modal .wc-modal-tilde path {
		animation: none !important;
		opacity: 1;
		transform: none;
		stroke-dashoffset: 0;
	}
}

@media (max-width: 1024px) {
	.wc-form .wc-grilla {
		grid-template-columns: repeat(2, minmax(0, 1fr));
	}
}

@media (max-width: 640px) {
	.wc-form .wc-grilla {
		grid-template-columns: 1fr;
	}

	.wc-form button.wc-enviar {
		width: 100%;
		padding: 0 20px;
	}
}
