/**
 * Hot Tub Finder.
 *
 * Todo bajo .psn-htf para no chocar con Astra ni con Elementor.
 * Paleta de marca: navy #0f2e3d, teal #0e8ca8.
 */

.psn-htf {
	--htf-navy: #0f2e3d;
	--htf-teal: #0e8ca8;
	--htf-teal-soft: #eaf6fa;
	--htf-ink: #181c1e;
	--htf-muted: #5b6b73;
	--htf-line: #dde2e4;
	--htf-error: #b3261e;

	max-width: 780px;
	margin: 0 auto 40px;
	padding: clamp(20px, 4vw, 38px);
	font-size: 16px;
	line-height: 1.5;
	color: var(--htf-ink);
	background: #fff;
	border: 1px solid var(--htf-line);
	border-radius: 16px;
	box-shadow: 0 18px 50px -32px rgba(15, 46, 61, .55);
	box-sizing: border-box;
}

.psn-htf *,
.psn-htf *::before,
.psn-htf *::after {
	box-sizing: inherit;
}

/* ------------------------------------------------------------- progreso */

.psn-htf__progress {
	display: flex;
	align-items: center;
	gap: 14px;
	margin-bottom: 24px;
}

.psn-htf__bar {
	flex: 1;
	height: 5px;
	background: #eceff0;
	border-radius: 99px;
	overflow: hidden;
}

.psn-htf__fill {
	height: 100%;
	background: linear-gradient(90deg, var(--htf-teal), #7cd7ea);
	border-radius: 99px;
	transition: width .35s cubic-bezier(.4, 0, .2, 1);
}

.psn-htf__count {
	flex: 0 0 auto;
	font-size: 13px;
	font-weight: 600;
	letter-spacing: .02em;
	color: var(--htf-muted);
}

/* ---------------------------------------------------------- respuestas */

.psn-htf__chips {
	display: flex;
	flex-wrap: wrap;
	gap: 8px;
	margin-bottom: 22px;
}

.psn-htf__chip {
	padding: 5px 12px;
	font: inherit;
	font-size: 13px;
	color: var(--htf-navy);
	background: var(--htf-teal-soft);
	border: 1px solid transparent;
	border-radius: 99px;
	cursor: pointer;
	transition: border-color .15s ease;
}

.psn-htf .psn-htf__chip,
.psn-htf .psn-htf__chip:hover,
.psn-htf .psn-htf__chip:focus {
	color: var(--htf-navy);
	background: var(--htf-teal-soft);
}

.psn-htf .psn-htf__chip:hover {
	border-color: var(--htf-teal);
}

/* -------------------------------------------------------------- pasos */

.psn-htf__step {
	animation: psn-htf-in .35s cubic-bezier(.4, 0, .2, 1);
}

@keyframes psn-htf-in {
	from { opacity: 0; transform: translateY(10px); }
	to   { opacity: 1; transform: none; }
}

.psn-htf__title {
	margin: 0 0 6px;
	font-size: clamp(21px, 3vw, 27px);
	line-height: 1.25;
	font-weight: 700;
	color: var(--htf-navy);
	outline: none;
}

.psn-htf__subtitle {
	margin: 0 0 22px;
	font-size: 15px;
	color: var(--htf-muted);
}

.psn-htf__grid {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 12px;
}

.psn-htf__grid.is-dense {
	grid-template-columns: repeat(auto-fit, minmax(215px, 1fr));
}

.psn-htf__option {
	display: flex;
	flex-direction: column;
	gap: 4px;
	padding: 18px 18px 16px;
	font: inherit;
	text-align: left;
	color: var(--htf-ink);
	background: #fff;
	border: 1.5px solid var(--htf-line);
	border-radius: 12px;
	cursor: pointer;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

/* El tema (Astra) pinta button:hover con texto blanco. Sobre nuestro fondo
   claro eso dejaba el texto ilegible al pasar por encima de una opción ya
   marcada, así que fijamos el color en todos los estados y también en los
   hijos, que heredaban el blanco del tema. */
.psn-htf .psn-htf__option,
.psn-htf .psn-htf__option:hover,
.psn-htf .psn-htf__option:focus,
.psn-htf .psn-htf__option:active,
.psn-htf .psn-htf__option.is-selected,
.psn-htf .psn-htf__option.is-selected:hover,
.psn-htf .psn-htf__option.is-selected:focus {
	color: var(--htf-ink);
}

.psn-htf .psn-htf__option .psn-htf__option-label,
.psn-htf .psn-htf__option:hover .psn-htf__option-label {
	color: var(--htf-ink);
}

.psn-htf .psn-htf__option .psn-htf__option-hint,
.psn-htf .psn-htf__option:hover .psn-htf__option-hint {
	color: var(--htf-muted);
}

.psn-htf .psn-htf__option:hover {
	background: #fff;
	border-color: var(--htf-teal);
	transform: translateY(-2px);
}

.psn-htf .psn-htf__option.is-selected:hover {
	background: var(--htf-teal-soft);
}

.psn-htf__option:focus-visible {
	outline: 3px solid rgba(14, 140, 168, .35);
	outline-offset: 2px;
}

.psn-htf__option.is-selected {
	background: var(--htf-teal-soft);
	border-color: var(--htf-teal);
	box-shadow: inset 0 0 0 1px var(--htf-teal);
}

/* ------------------------------------------------------------- iconos */

.psn-htf .psn-icon {
	display: block;
	width: 21px;
	height: 21px;
	flex: 0 0 auto;
}

.psn-htf__option-icon {
	display: grid;
	place-items: center;
	width: 40px;
	height: 40px;
	margin-bottom: 10px;
	color: var(--htf-muted);
	background: #f1f5f6;
	border-radius: 11px;
	transition: color .15s ease, background .15s ease, transform .15s ease;
}

.psn-htf .psn-htf__option:hover .psn-htf__option-icon {
	color: var(--htf-teal);
	background: var(--htf-teal-soft);
}

.psn-htf .psn-htf__option.is-selected .psn-htf__option-icon {
	color: #fff;
	background: var(--htf-teal);
	transform: scale(1.04);
}

.psn-htf__option-label {
	font-weight: 600;
	line-height: 1.3;
}

.psn-htf__option-hint {
	font-size: 13px;
	color: var(--htf-muted);
}

/* ------------------------------------------------------------ navegación */

.psn-htf__nav {
	display: flex;
	align-items: center;
	gap: 12px;
	margin-top: 22px;
}

.psn-htf__back {
	padding: 10px 0;
	font: inherit;
	font-size: 15px;
	color: var(--htf-muted);
	background: none;
	border: 0;
	cursor: pointer;
	text-decoration: underline;
	text-underline-offset: 3px;
}

.psn-htf__back:hover {
	color: var(--htf-navy);
}

.psn-htf__next {
	margin-left: auto;
	padding: 12px 26px;
	font: inherit;
	font-weight: 600;
	color: #fff;
	background: var(--htf-navy);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
}

.psn-htf .psn-htf__next,
.psn-htf .psn-htf__next:hover,
.psn-htf .psn-htf__next:focus {
	color: #fff;
	background: var(--htf-navy);
}

.psn-htf .psn-htf__next:hover:not(:disabled) {
	background: var(--htf-teal);
}

.psn-htf__next:disabled {
	opacity: .4;
	cursor: not-allowed;
}

.psn-htf .psn-htf__submit,
.psn-htf .psn-htf__submit:hover,
.psn-htf .psn-htf__submit:focus {
	color: #fff;
}

/* ------------------------------------------------------ recomendación */

.psn-htf__match {
	padding: 22px 24px;
	margin-bottom: 28px;
	color: #fff;
	background: linear-gradient(135deg, var(--htf-navy), #14485c);
	border-radius: 14px;
}

.psn-htf__match-eyebrow {
	display: block;
	margin-bottom: 6px;
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .09em;
	text-transform: uppercase;
	color: #7cd7ea;
}

.psn-htf__match-name {
	margin: 0;
	font-size: clamp(22px, 3.4vw, 30px);
	line-height: 1.15;
	font-weight: 700;
	color: #fff;
}

.psn-htf__match-tagline {
	margin: 4px 0 12px;
	font-size: 16px;
	font-weight: 600;
	color: #a9e2f0;
}

.psn-htf__match-text {
	margin: 0;
	font-size: 15px;
	color: rgba(255, 255, 255, .88);
}

/* ------------------------------------------------------------ formulario */

.psn-htf__form {
	display: grid;
	grid-template-columns: repeat(2, 1fr);
	gap: 16px;
	margin-top: 20px;
}

.psn-htf__field {
	display: grid;
	gap: 6px;
}

.psn-htf__field--consent,
.psn-htf__submit,
.psn-htf__status {
	grid-column: 1 / -1;
}

.psn-htf__field label {
	font-size: 14px;
	font-weight: 600;
	color: var(--htf-navy);
}

.psn-htf__opt {
	font-weight: 400;
	color: var(--htf-muted);
}

.psn-htf__field input[type="text"],
.psn-htf__field input[type="email"],
.psn-htf__field input[type="tel"] {
	width: 100%;
	padding: 12px 14px;
	font: inherit;
	color: var(--htf-ink);
	background: #fff;
	border: 1px solid var(--htf-line);
	border-radius: 8px;
	transition: border-color .15s ease, box-shadow .15s ease;
}

.psn-htf__field input:focus {
	outline: none;
	border-color: var(--htf-teal);
	box-shadow: 0 0 0 3px rgba(14, 140, 168, .18);
}

.psn-htf__field--consent label {
	display: flex;
	gap: 10px;
	align-items: flex-start;
	font-size: 13px;
	font-weight: 400;
	color: var(--htf-muted);
	cursor: pointer;
}

.psn-htf__field--consent input {
	margin-top: 3px;
	accent-color: var(--htf-teal);
}

.psn-htf__field--consent a {
	color: var(--htf-teal);
	text-decoration: underline;
}

.psn-htf__error {
	font-size: 13px;
	color: var(--htf-error);
}

.psn-htf__error:empty {
	display: none;
}

.psn-htf__field.has-error input {
	border-color: var(--htf-error);
}

.psn-htf__submit {
	justify-self: start;
	padding: 15px 34px;
	font: inherit;
	font-size: 17px;
	font-weight: 600;
	color: #fff;
	background: var(--htf-teal);
	border: 0;
	border-radius: 8px;
	cursor: pointer;
	transition: background .15s ease;
}

.psn-htf__submit:hover:not(:disabled) {
	background: var(--htf-navy);
}

.psn-htf__submit:disabled {
	opacity: .65;
	cursor: progress;
}

.psn-htf__status {
	margin: 0;
	font-size: 14px;
}

.psn-htf__status:empty {
	display: none;
}

.psn-htf__status.is-error {
	color: var(--htf-error);
}

/* ------------------------------------------------------------ final */

.psn-htf__done {
	padding: 20px 0 10px;
	text-align: center;
	animation: psn-htf-in .35s cubic-bezier(.4, 0, .2, 1);
}

.psn-htf__tick {
	display: grid;
	place-items: center;
	width: 62px;
	height: 62px;
	margin: 0 auto 18px;
	font-size: 30px;
	color: #fff;
	background: var(--htf-teal);
	border-radius: 50%;
}

.psn-htf .psn-htf__tick .psn-icon {
	width: 30px;
	height: 30px;
	stroke-width: 2.2;
}

.psn-htf__done h2 {
	margin: 0 0 8px;
	font-size: 26px;
	color: var(--htf-navy);
}

.psn-htf__done p {
	margin: 0 auto;
	max-width: 46ch;
	color: var(--htf-muted);
}

.psn-htf__done-match {
	margin-top: 16px !important;
	font-weight: 600;
	color: var(--htf-navy) !important;
}

/* ------------------------------------------ contacto directo (gracias) */

.psn-htf__contact {
	margin-top: 30px;
	padding-top: 26px;
	border-top: 1px solid var(--htf-line);
}

.psn-htf__contact-intro {
	margin: 0 0 16px !important;
	font-size: 15px;
	font-weight: 600;
	color: var(--htf-navy) !important;
}

.psn-htf__contact-list {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	gap: 12px;
}

.psn-htf__contact-icon {
	display: grid;
	place-items: center;
	width: 34px;
	height: 34px;
	margin: 0 auto 4px;
	color: var(--htf-teal);
	background: #fff;
	border-radius: 50%;
	box-shadow: inset 0 0 0 1px var(--htf-line);
}

.psn-htf .psn-htf__contact-item--wa .psn-htf__contact-icon {
	color: #1da851;
}

.psn-htf .psn-htf__contact-item {
	display: flex;
	flex-direction: column;
	gap: 3px;
	padding: 14px 12px;
	text-align: center;
	text-decoration: none;
	color: var(--htf-navy);
	background: #f6f9fa;
	border: 1px solid var(--htf-line);
	border-radius: 10px;
	transition: border-color .15s ease, background .15s ease, transform .15s ease;
}

.psn-htf .psn-htf__contact-item:hover,
.psn-htf .psn-htf__contact-item:focus {
	color: var(--htf-navy);
	background: var(--htf-teal-soft);
	border-color: var(--htf-teal);
	transform: translateY(-2px);
}

.psn-htf .psn-htf__contact-item--wa:hover,
.psn-htf .psn-htf__contact-item--wa:focus {
	background: #e9f8ee;
	border-color: #25d366;
}

.psn-htf__contact-label {
	font-size: 12px;
	font-weight: 600;
	letter-spacing: .07em;
	text-transform: uppercase;
	color: var(--htf-muted);
}

.psn-htf__contact-value {
	font-size: 15px;
	font-weight: 600;
	word-break: break-word;
}

.psn-htf__contact-person {
	margin: 14px 0 0 !important;
	font-size: 13px;
	color: var(--htf-muted) !important;
}

/* ------------------------------------------------------------ móvil */

@media (max-width: 600px) {
	.psn-htf__grid,
	.psn-htf__form,
	.psn-htf__contact-list {
		grid-template-columns: 1fr;
	}

	.psn-htf__submit {
		justify-self: stretch;
		text-align: center;
	}
}

@media (prefers-reduced-motion: reduce) {
	.psn-htf *,
	.psn-htf *::before,
	.psn-htf *::after {
		animation-duration: .01ms !important;
		transition-duration: .01ms !important;
	}
}
