/**
 * Estilos de las piezas del plugin (formulario, plan de pago, características,
 * botones de WhatsApp).
 *
 * Están en el plugin y no en el tema porque los widgets de Elementor tienen que
 * verse bien con cualquier tema activo, incluido Hello Elementor. Todo va
 * prefijado con .luthje- para no pisar estilos ajenos, y sin !important salvo
 * el caso documentado de [hidden].
 */

.luthje-form,
.luthje-plan,
.luthje-highlights,
.luthje-checklist,
.luthje-btn,
.luthje-float-wa {
	--luthje-primary: #006376;
	--luthje-primary-dark: #00475a;
	--luthje-accent: #b5651d;
	--luthje-heading: #333333;
	--luthje-text: #505050;
	--luthje-muted: #7b8288;
	--luthje-surface: #ffffff;
	--luthje-bg: #f6f6f4;
	--luthje-border: #e3e3df;
	--luthje-whatsapp: #25d366;
	--luthje-whatsapp-dark: #1da851;
	--luthje-error: #b3261e;
	--luthje-success: #1a7f37;
	--luthje-radius: 10px;
	--luthje-radius-sm: 6px;
	--luthje-shadow: 0 18px 45px rgba(0, 40, 48, 0.16);
	--luthje-shadow-sm: 0 6px 18px rgba(0, 40, 48, 0.1);
}

/* El `display` de una clase gana al `[hidden]{display:none}` del navegador por
 * especificidad. Sin esto, los campos siguen visibles después de enviar. */
.luthje-form [hidden] {
	display: none !important;
}

/* Botones ----------------------------------------------------------------- */

.luthje-btn {
	display: inline-flex;
	align-items: center;
	justify-content: center;
	gap: 10px;
	padding: 15px 28px;
	border: 2px solid transparent;
	border-radius: var(--luthje-radius-sm);
	font-family: inherit;
	font-size: 0.95rem;
	font-weight: 600;
	line-height: 1.2;
	text-align: center;
	text-decoration: none;
	cursor: pointer;
	transition: background-color 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.luthje-btn:hover,
.luthje-btn:focus {
	transform: translateY(-1px);
}

.luthje-btn:disabled {
	opacity: 0.65;
	cursor: progress;
	transform: none;
}

.luthje-btn.luthje-btn--primary {
	background: var(--luthje-primary);
	border-color: var(--luthje-primary);
	color: #fff;
}

.luthje-btn.luthje-btn--primary:hover,
.luthje-btn.luthje-btn--primary:focus {
	background: var(--luthje-primary-dark);
	border-color: var(--luthje-primary-dark);
	color: #fff;
}

.luthje-btn.luthje-btn--ghost {
	background: transparent;
	border-color: currentColor;
	color: var(--luthje-primary);
}

.luthje-btn.luthje-btn--ghost-light {
	background: rgba(255, 255, 255, 0.08);
	border-color: rgba(255, 255, 255, 0.7);
	color: #fff;
}

.luthje-btn.luthje-btn--whatsapp {
	background: var(--luthje-whatsapp);
	border-color: var(--luthje-whatsapp);
	color: #06301a;
}

.luthje-btn.luthje-btn--whatsapp:hover,
.luthje-btn.luthje-btn--whatsapp:focus {
	background: var(--luthje-whatsapp-dark);
	border-color: var(--luthje-whatsapp-dark);
	color: #fff;
}

.luthje-btn.luthje-btn--block {
	width: 100%;
}

.luthje-btn.luthje-btn--lg {
	padding: 18px 36px;
	font-size: 1.05rem;
}

.luthje-icon {
	flex: none;
	vertical-align: middle;
}

/* Formulario -------------------------------------------------------------- */

.luthje-form {
	display: grid;
	gap: 14px;
	padding: 26px;
	background: var(--luthje-surface);
	border-radius: var(--luthje-radius);
	box-shadow: var(--luthje-shadow);
	color: var(--luthje-text);
	text-align: left;
}

.luthje-form--compact {
	padding: 20px;
	gap: 10px;
	box-shadow: var(--luthje-shadow-sm);
}

.luthje-form__title {
	margin: 0;
	font-size: 1.15rem;
	color: var(--luthje-heading);
}

.luthje-field {
	display: grid;
	gap: 5px;
}

.luthje-field label {
	font-size: 0.8rem;
	font-weight: 600;
	color: var(--luthje-heading);
}

.luthje-field input[type="text"],
.luthje-field input[type="tel"],
.luthje-field input[type="email"],
.luthje-field textarea {
	width: 100%;
	padding: 13px 14px;
	font-family: inherit;
	font-size: 1rem;
	color: #1c1c1c;
	background: var(--luthje-surface);
	border: 1px solid var(--luthje-border);
	border-radius: var(--luthje-radius-sm);
	transition: border-color 0.16s ease, box-shadow 0.16s ease;
}

.luthje-field input:focus,
.luthje-field textarea:focus {
	border-color: var(--luthje-primary);
	box-shadow: 0 0 0 3px rgba(0, 99, 118, 0.14);
	outline: none;
}

.luthje-field [aria-invalid="true"] {
	border-color: var(--luthje-error);
}

.luthje-field__error {
	font-size: 0.78rem;
	color: var(--luthje-error);
}

.luthje-field__error:empty {
	display: none;
}

.luthje-field--check label {
	display: flex;
	gap: 8px;
	align-items: flex-start;
	font-size: 0.82rem;
	font-weight: 400;
	line-height: 1.5;
	color: var(--luthje-text);
}

/* Honeypot: se mantiene en el DOM pero fuera de la vista. */
.luthje-hp {
	position: absolute;
	left: -9999px;
	width: 1px;
	height: 1px;
	overflow: hidden;
}

.luthje-form__actions {
	display: grid;
	gap: 8px;
	margin-top: 4px;
}

.luthje-form__micro {
	margin: 0;
	font-size: 0.75rem;
	text-align: center;
	color: var(--luthje-muted);
}

.luthje-form__status {
	margin: 0;
	font-size: 0.85rem;
}

.luthje-form__status:empty {
	display: none;
}

.luthje-form__status.is-error {
	color: var(--luthje-error);
}

.luthje-form__status.is-success {
	color: var(--luthje-success);
}

.luthje-form__success {
	display: grid;
	justify-items: center;
	gap: 8px;
	padding: 16px 0;
	text-align: center;
}

.luthje-form__success .luthje-icon {
	color: var(--luthje-success);
}

.luthje-form__success h3 {
	margin: 0;
	color: var(--luthje-heading);
}

.luthje-form__success p {
	margin: 0 0 8px;
	font-size: 0.9rem;
}

/* Listas de check --------------------------------------------------------- */

.luthje-checklist {
	display: grid;
	gap: 10px;
	margin: 0;
	padding: 0;
	list-style: none;
}

.luthje-checklist li {
	display: grid;
	grid-template-columns: 20px 1fr;
	gap: 10px;
	align-items: start;
	font-size: 0.95rem;
}

.luthje-checklist .luthje-icon {
	margin-top: 4px;
	color: var(--luthje-primary);
}

/* Plan de pago ------------------------------------------------------------ */

.luthje-plan {
	display: grid;
	grid-template-columns: repeat(3, 1fr);
	margin: 0;
	padding: 0;
	list-style: none;
}

.luthje-plan__step {
	padding: 26px 18px 22px;
	text-align: center;
	background: var(--luthje-surface);
	border: 1px solid var(--luthje-border);
}

.luthje-plan__step + .luthje-plan__step {
	border-left: 0;
}

.luthje-plan__step:first-child {
	border-radius: var(--luthje-radius) 0 0 var(--luthje-radius);
}

.luthje-plan__step:last-child {
	border-radius: 0 var(--luthje-radius) var(--luthje-radius) 0;
	background: var(--luthje-primary);
	border-color: var(--luthje-primary);
	color: #fff;
}

.luthje-plan__percent {
	display: block;
	font-size: clamp(1.9rem, 1.4rem + 1.6vw, 2.6rem);
	font-weight: 700;
	line-height: 1;
	color: var(--luthje-primary);
	font-variant-numeric: tabular-nums;
}

.luthje-plan__step:last-child .luthje-plan__percent {
	color: #fff;
}

.luthje-plan__title {
	display: block;
	margin: 8px 0 4px;
	font-size: 0.9rem;
	font-weight: 600;
	letter-spacing: 0.06em;
	text-transform: uppercase;
	color: var(--luthje-heading);
}

.luthje-plan__step:last-child .luthje-plan__title {
	color: #fff;
}

.luthje-plan__detail {
	display: block;
	font-size: 0.82rem;
	line-height: 1.5;
	color: var(--luthje-muted);
}

.luthje-plan__step:last-child .luthje-plan__detail {
	color: rgba(255, 255, 255, 0.85);
}

/* Características --------------------------------------------------------- */

.luthje-highlights {
	display: grid;
	gap: 2px;
	margin: 0;
	padding: 0;
	list-style: none;
	background: var(--luthje-border);
	border-radius: var(--luthje-radius);
	overflow: hidden;
}

.luthje-highlight {
	display: grid;
	grid-template-columns: 34px 1fr;
	grid-template-areas:
		"icon label"
		"icon value";
	gap: 0 14px;
	padding: 16px 18px;
	background: var(--luthje-surface);
}

.luthje-highlight__icon {
	grid-area: icon;
	align-self: center;
	color: var(--luthje-primary);
}

.luthje-highlight__label {
	grid-area: label;
	font-size: 0.72rem;
	font-weight: 600;
	letter-spacing: 0.1em;
	text-transform: uppercase;
	color: var(--luthje-muted);
}

.luthje-highlight__value {
	grid-area: value;
	font-size: 0.98rem;
	font-weight: 600;
	color: var(--luthje-heading);
}

/* WhatsApp flotante ------------------------------------------------------- */

.luthje-float-wa {
	position: fixed;
	right: 18px;
	bottom: 18px;
	z-index: 900;
	display: inline-flex;
	align-items: center;
	gap: 10px;
	padding: 13px 20px;
	background: var(--luthje-whatsapp);
	color: #06301a;
	border-radius: 999px;
	font-size: 0.9rem;
	font-weight: 600;
	text-decoration: none;
	box-shadow: 0 10px 28px rgba(0, 0, 0, 0.24);
	transition: background-color 0.18s ease, transform 0.18s ease;
}

.luthje-float-wa:hover,
.luthje-float-wa:focus {
	background: var(--luthje-whatsapp-dark);
	color: #fff;
	transform: translateY(-2px);
}

@media (max-width: 860px) {
	.luthje-plan {
		grid-template-columns: 1fr;
	}

	.luthje-plan__step {
		border-radius: 0;
		border-left: 1px solid var(--luthje-border);
	}

	.luthje-plan__step:first-child {
		border-radius: var(--luthje-radius) var(--luthje-radius) 0 0;
	}

	.luthje-plan__step:last-child {
		border-radius: 0 0 var(--luthje-radius) var(--luthje-radius);
	}

	.luthje-plan__step + .luthje-plan__step {
		border-top: 0;
	}

	.luthje-float-wa span {
		display: none;
	}

	.luthje-float-wa {
		padding: 15px;
	}
}

@media (prefers-reduced-motion: reduce) {
	.luthje-btn,
	.luthje-float-wa {
		transition: none;
	}
}
