.afa-sepa {
	--afa-primary: var(--e-global-color-primary, #6F1E86);
	--afa-accent: var(--e-global-color-accent, #FD577F);
	--afa-text: var(--e-global-color-text, #3B343D);
	--afa-error: #c0152f;
	font-family: Inter, inherit, sans-serif;
	color: var(--afa-text);
	font-size: 16px;
	line-height: 1.5;
	text-align: left;
}
.afa-sepa *, .afa-sepa *::before, .afa-sepa *::after { box-sizing: border-box; }
.afa-sepa [hidden] { display: none !important; }

/* indicador de pasos */
.afa-steps { display: flex; justify-content: space-between; gap: 6px; list-style: none; margin: 0 0 22px; padding: 0; }
.afa-steps li { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 13px; font-weight: 500; opacity: .55; text-align: center; }
.afa-steps li span { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: #fff; color: var(--afa-primary); font-weight: 700; border: 2px solid var(--afa-primary); }
.afa-steps li.is-active, .afa-steps li.is-done { opacity: 1; }
.afa-steps li.is-active span { background: var(--afa-primary); color: #fff; }
.afa-steps li.is-done span { background: var(--afa-primary); color: #fff; }

.afa-sepa h3 { margin: 0 0 16px; font-size: 20px; font-weight: 600; color: var(--afa-primary); line-height: 1.3; }
.afa-sepa h3:focus { outline: none; }
.afa-sepa h4 { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: var(--afa-primary); display: flex; align-items: center; gap: 8px; }
.afa-sepa h4 span { width: 24px; height: 24px; border-radius: 50%; background: var(--afa-primary); color: #fff; display: inline-grid; place-items: center; font-size: 13px; }
.afa-sepa p { margin: 0 0 12px; }

/* campos */
.afa-field { margin: 0 0 14px; padding: 0; border: 0; min-width: 0; }
.afa-field > label, .afa-field > legend, .afa-other > label { display: block; margin: 0 0 6px; padding: 0; font-size: 14px; font-weight: 500; color: var(--afa-primary); }
.afa-sepa .afa-field input[type="text"], .afa-sepa .afa-field input[type="tel"], .afa-sepa .afa-field input[type="email"] {
	width: 100%; height: auto; margin: 0; padding: 12px 20px; border: 2px solid transparent; border-radius: 100px; box-shadow: none;
	background: #fff; color: var(--afa-primary); font-family: inherit; font-weight: 500; font-size: 16px; line-height: 1.3;
}
.afa-sepa .afa-field input[type="text"]:focus, .afa-sepa .afa-field input[type="tel"]:focus, .afa-sepa .afa-field input[type="email"]:focus { outline: none; border-color: var(--afa-primary); background: #fff; }
.afa-sepa .afa-field input[aria-invalid="true"] { border-color: var(--afa-error); }
.afa-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0 14px; }
.afa-row-3 { grid-template-columns: .8fr 1.2fr 1fr; }
.afa-iban { letter-spacing: .06em; font-variant-numeric: tabular-nums; }

/* botones tipo píldora */
.afa-pills { display: flex; flex-wrap: wrap; gap: 8px; }
.afa-pill { position: relative; margin: 0 !important; cursor: pointer; }
.afa-pill input { position: absolute; opacity: 0; inset: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; }
.afa-pill span { display: inline-block; padding: 10px 20px; border: 2px solid var(--afa-primary); border-radius: 100px; background: transparent; color: var(--afa-primary); font-weight: 600; font-size: 15px; transition: background .15s, color .15s; }
.afa-pill:hover span { background: rgba(111, 30, 134, .1); }
.afa-pill input:checked + span { background: var(--afa-primary); color: #fff; }
.afa-pill input:focus-visible + span { outline: 3px solid var(--afa-accent); outline-offset: 2px; }
.afa-other { margin-top: 12px; max-width: 240px; }
.afa-input-eur { position: relative; }
.afa-input-eur input { padding-right: 44px !important; }
.afa-input-eur span { position: absolute; right: 20px; top: 50%; transform: translateY(-50%); font-weight: 600; color: var(--afa-primary); }

/* checks y texto legal */
.afa-check { margin: 0 0 12px; }
.afa-check label { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; font-size: 15px; }
.afa-check input { flex: none; width: 20px; height: 20px; margin-top: 2px; accent-color: var(--afa-primary); }
.afa-legal { max-height: 120px; overflow: auto; margin: 0 0 14px; padding: 12px 16px; border-radius: 16px; background: #fff; font-size: 13px; line-height: 1.5; }
.afa-legal p { margin: 0; }
.afa-legal a, .afa-sepa a { color: var(--afa-primary); }
.afa-note { padding: 10px 16px; border-radius: 16px; background: rgba(255, 255, 255, .65); font-size: 14px; }

/* mensajes */
.afa-err { color: var(--afa-error); font-size: 14px; margin: 6px 0 0 !important; min-height: 0; }
.afa-err:empty { display: none; }
.afa-ok { color: #1b7a3a; font-size: 14px; margin: 6px 0 0 !important; font-weight: 600; }
.afa-ok:empty { display: none; }
.afa-err-general { font-weight: 600; margin-bottom: 12px !important; }

/* botones (selectores reforzados: el kit de Elementor estiliza <button> y <a> globalmente) */
.afa-sepa .afa-btn {
	display: inline-block; width: auto; height: auto; min-height: 0; margin: 0; padding: 14px 28px;
	border: 2px solid var(--afa-accent); border-radius: 100px; box-shadow: none; text-shadow: none;
	background: var(--afa-accent); color: #fff; font-family: inherit; font-weight: 600; font-size: 16px; line-height: 1.2;
	letter-spacing: normal; text-transform: none; text-align: center; text-decoration: none; cursor: pointer;
	transition: filter .15s, background .15s;
}
.afa-sepa .afa-btn:hover, .afa-sepa .afa-btn:focus { background: var(--afa-accent); border-color: var(--afa-accent); color: #fff; filter: brightness(.93); }
.afa-sepa .afa-btn:disabled { opacity: .6; cursor: wait; }
.afa-sepa .afa-btn:focus-visible { outline: 3px solid var(--afa-primary); outline-offset: 2px; }
.afa-sepa .afa-btn.afa-btn-ghost { background: transparent; color: var(--afa-primary); border-color: var(--afa-primary); filter: none; }
.afa-sepa .afa-btn.afa-btn-ghost:hover, .afa-sepa .afa-btn.afa-btn-ghost:focus { background: rgba(111, 30, 134, .1); color: var(--afa-primary); border-color: var(--afa-primary); }
.afa-sepa .afa-btn.afa-btn-big { display: block; padding: 18px 24px; font-size: 17px; }
.afa-actions { display: flex; justify-content: space-between; gap: 12px; margin-top: 22px; flex-wrap: wrap; }
.afa-actions .afa-btn:only-child { margin-left: auto; }

/* paso 4 */
.afa-sub { margin: 0 0 16px; padding: 14px 18px; border-radius: 18px; background: rgba(255, 255, 255, .65); }
.afa-sub p:last-child { margin-bottom: 0; }
.afa-ref { margin: 10px 0 0 !important; font-size: 14px; text-align: center; font-weight: 600; color: var(--afa-primary); }

/* trampa para bots */
.afa-hp { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; overflow: hidden; }

@media (max-width: 600px) {
	.afa-row, .afa-row-3 { grid-template-columns: 1fr; }
	.afa-steps li { font-size: 11px; }
	.afa-actions .afa-btn { flex: 1 1 100%; }
	.afa-sepa .afa-btn { padding: 14px 20px; }
}
