
.af-form {
	width: 100%;
	max-width: 100%;
	margin: 1.5rem 0; /* alineado a la izquierda */
	display: grid;
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
	grid-template-columns: 1fr;
	gap: 12px;
	padding: 18px 20px 22px;
	box-sizing: border-box;
}
.af-form .af-label { display: block; margin-bottom: 4px; }
/* Tabs tipo (Asesoría / Autónomo) */
.af-tabs { display: flex; width: 100%; gap: 0; margin: 0 0 12px; }
.af-tab { appearance: none; -webkit-appearance: none; border: 1px solid #e5e7eb; background: #e5e7eb; color: #111827; padding: 16px 20px; cursor: pointer; border-radius: 0; margin: 0; flex: 1 1 50%; width: 50%; text-align: center; }
.af-tab.is-active { background: var(--ast-global-color-0); color: #fff; }
.af-tab:not(.is-active){ background: #e5e7eb; color: #111827; }
.af-tab:focus { outline: 2px solid rgba(34,113,177,.3); outline-offset: 2px; }
.af-tab[disabled] {
	cursor: not-allowed;
	opacity: .65;
}
.af-tab.is-active[disabled] {
	opacity: .92;
}

/* Card contenedora del formulario */
.af-card { background: #fff; border: 1px solid #e5e7eb; border-radius: 10px; box-shadow: 0 8px 24px rgba(0,0,0,.06); padding: 16px; }
.af-card--success { border-color: #34D399; box-shadow: 0 8px 24px rgba(16,185,129,.18); }
.af-card--resend { border-style: dashed; }

/* Pantallas de activación (contraseña, éxito, reenvío) */
.af-activate-wrap { max-width: 480px; margin: 2rem auto; }
.af-activate-wrap .af-card { padding: 32px 28px; text-align: center; }
.af-activate-wrap .af-card h3 { margin: 0 0 8px; font-size: 1.35rem; color: #111827; }
.af-activate-wrap .af-card .af-activate-subtitle { color: #6b7280; margin: 0 0 20px; font-size: .95rem; line-height: 1.5; }
.af-activate-icon {
	display: inline-flex; align-items: center; justify-content: center;
	width: 56px; height: 56px; border-radius: 50%;
	margin: 0 auto 16px; font-size: 1.6rem; line-height: 1;
}
.af-activate-icon--lock { background: #EFF6FF; color: #2271b1; }
.af-activate-icon--check { background: #ECFDF5; color: #065F46; }
.af-activate-icon--mail { background: #FFF7ED; color: #9a3412; }
.af-activate-wrap .af-form { text-align: left; margin: 20px 0 0; padding: 0; }
.af-activate-wrap .af-form .af-col { width: 100%; }
.af-activate-wrap .af-form input[type="password"],
.af-activate-wrap .af-form input[type="email"] {
	width: 100%; box-sizing: border-box;
	border: 1px solid #d1d5db; border-radius: 6px; padding: 10px 12px;
	font-size: 1rem; transition: border-color .15s, box-shadow .15s;
}
.af-activate-wrap .af-form input:focus {
	border-color: #2271b1; box-shadow: 0 0 0 3px rgba(34,113,177,.15); outline: none;
}
.af-password-hint {
	font-size: 12px;
	color: #6b7280;
	margin: 6px 0 0;
	line-height: 1.4;
}
.af-activate-wrap .af-submit { text-align: center; margin-top: 8px; }
.af-activate-wrap .af-submit .button { min-height: 44px; min-width: 200px; font-size: .95rem; }
.af-activate-wrap .af-card--success .af-activate-email { font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; background: #F9FAFB; border: 1px solid #e5e7eb; border-radius: 6px; padding: 8px 12px; display: inline-block; margin: 8px 0 16px; font-size: .95rem; word-break: break-all; }
.af-activate-wrap .af-activate-redirect { color: #9ca3af; font-size: .85rem; margin-top: 16px; }
.af-activate-wrap .af-notice { text-align: left; }
.af-form-errors {
	background: #fef2f2;
	border: 1px solid #fca5a5;
	border-radius: 10px;
	padding: 12px 14px;
	margin: 0 0 12px;
	color: #7f1d1d;
}
.af-form-errors__title {
	margin: 0 0 6px;
	font-weight: 700;
}
.af-form-errors__list {
	margin: 0;
	padding-left: 20px;
}
.af-form-errors__list li { margin: 2px 0; }
/* Asegurar inputs ocupen todo el ancho del contenedor de columna */
.af-card .af-grid > .af-col,
.af-card .af-col--full { width: 100%; }
.af-form .regular-text,
.af-form .large-text,
.af-form textarea { width: 100%; max-width: 100%; }
.af-form select { width: 100%; max-width: 100%; }
.af-form input[type="text"],
.af-form input[type="email"],
.af-form input[type="url"],
.af-form input[type="tel"],
.af-form input[type="search"],
.af-form input[type="number"],
.af-form textarea,
.af-form select {
	box-sizing: border-box;
	background: #fff;
	border: 1px solid #d1d5db;
	border-radius: 6px;
	padding: 10px 12px;
	line-height: 1.4;
	color: #111827;
	transition: border-color .15s ease, box-shadow .15s ease, background-color .15s ease;
}

.af-form input::placeholder,
.af-form textarea::placeholder { color: #9ca3af; }

.af-form input:focus,
.af-form textarea:focus,
.af-form select:focus {
	outline: none;
	border-color: #2271b1;
	box-shadow: 0 0 0 3px rgba(34, 113, 177, .15);
}

.af-form textarea { min-height: 120px; resize: vertical; }
.af-fields[hidden] { display: none !important; }
/* Asegura que cualquier bloque marcado con [hidden] dentro del formulario no se muestre */
.af-form [hidden] { display: none !important; }
/* Integración del paso de pago custom en el flujo /registro */
.af-card--checkout { padding: 16px; }
.af-checkout-step-wrap .af-custom-checkout { margin-top: 0; }
.af-checkout-step-wrap {
	font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif, "Apple Color Emoji", "Segoe UI Emoji", "Segoe UI Symbol", "Noto Color Emoji";
}
.af-checkout-step-wrap .af-custom-checkout__grid {
	display: grid;
	grid-template-columns: 1fr;
	gap: 12px 16px;
	align-items: stretch;
}
@media (min-width: 782px) {
	.af-checkout-step-wrap .af-custom-checkout__grid {
		grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
	}
}
.af-checkout-step-wrap h1,
.af-checkout-step-wrap h2,
.af-checkout-step-wrap h3,
.af-checkout-step-wrap h4,
.af-checkout-step-wrap h5,
.af-checkout-step-wrap h6,
.af-checkout-step-wrap p,
.af-checkout-step-wrap span,
.af-checkout-step-wrap strong,
.af-checkout-step-wrap a,
.af-checkout-step-wrap button {
	font-family: inherit;
}
.af-checkout-step-wrap .af-custom-checkout__shell,
.af-checkout-step-wrap .af-custom-checkout__summary-box {
	background: #fff;
	border: 1px solid #e5e7eb;
	border-radius: 10px;
	box-shadow: 0 8px 24px rgba(0,0,0,.06);
	padding: 16px;
}
.af-checkout-step-wrap .af-custom-checkout__step {
	margin: 0 0 8px;
	color: #111827;
	font-size: 1rem;
	line-height: 1.35;
}
.af-checkout-step-wrap .af-custom-checkout__title {
	margin: 0 0 12px;
	color: #374151;
	font-size: .96rem;
	line-height: 1.4;
	font-weight: 500;
}
.af-checkout-step-wrap .af-custom-checkout__summary-box h3 {
	margin: 0 0 10px;
	font-size: 1.05rem;
	line-height: 1.35;
	font-weight: 700;
}
.af-checkout-step-wrap .af-custom-checkout__summary-list li {
	padding: 8px 0;
	border-bottom: 1px solid #f3f4f6;
}
.af-checkout-step-wrap .af-custom-checkout__row--base span,
.af-checkout-step-wrap .af-custom-checkout__row--base .af-custom-checkout__price-old,
.af-checkout-step-wrap .af-custom-checkout__row--base .af-custom-checkout__price-old del {
	color: #6b7280;
}
.af-checkout-step-wrap .af-custom-checkout__row--discount span,
.af-checkout-step-wrap .af-custom-checkout__row--discount .af-custom-checkout__price-discount {
	color: #065f46;
	font-weight: 700;
}
.af-checkout-step-wrap .af-custom-checkout__row--amount.is-discounted span,
.af-checkout-step-wrap .af-custom-checkout__row--amount.is-discounted .af-custom-checkout__price-final {
	color: #065f46;
}
.af-checkout-step-wrap .af-custom-checkout__main,
.af-checkout-step-wrap .af-custom-checkout__aside {
	display: flex;
	flex-direction: column;
}
.af-checkout-step-wrap .af-custom-checkout__main > .af-custom-checkout__shell,
.af-checkout-step-wrap .af-custom-checkout__aside > .af-custom-checkout__summary-box {
	flex: 1 1 auto;
	height: 100%;
}
.af-checkout-step-wrap .af-custom-checkout__actions {
	display: flex;
	gap: 8px;
	align-items: stretch;
	flex-wrap: wrap;
	margin: 14px 0 0;
}
.af-checkout-step-wrap .af-custom-checkout__main > .af-custom-checkout__step {
	margin-bottom: 8px;
}
.af-checkout-step-wrap .af-custom-checkout__main > .af-custom-checkout__actions {
	margin-top: 12px;
}
.af-checkout-step-wrap .af-custom-checkout__actions .button {
	min-height: 44px;
	padding: 0 18px;
	line-height: 1.2;
	display: inline-flex;
	align-items: center;
	justify-content: center;
	box-sizing: border-box;
}
/* Oculta el texto legal de suscripción embebido de Stripe en este flujo. */
.af-checkout-step-wrap #af-custom-checkout-element .p-TermsText,
.af-checkout-step-wrap #af-custom-checkout-element .TermsText,
.af-checkout-step-wrap #af-custom-checkout-element .Text--terms {
	display: none !important;
}
/* Texto informativo 1ª capa RGPD */
.af-rgpd-info {
	font-size: 0.82rem;
	color: #6b7280;
	line-height: 1.5;
}

.af-rgpd-info a {
	color: var(--ast-global-color-0, #2271b1);
	text-decoration: underline;
}

.af-rgpd-info a:hover,
.af-rgpd-info a:focus {
	text-decoration: none;
}

/* Contenedor para posicionar tooltips en RGPD */
.af-rgpd { position: relative; }
/* Tooltip de error accesible */
.af-error-tooltip { position: absolute; top: -28px; left: 0; background: #B91C1C; color: #fff; padding: 6px 8px; border-radius: 6px; font-size: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.2); white-space: nowrap; z-index: 3; }
.af-error-tooltip::after { content: ""; position: absolute; bottom: -6px; left: 10px; border-width: 6px 6px 0 6px; border-style: solid; border-color: #B91C1C transparent transparent transparent; }

/* Validación NIF/CIF/NIE (borde + tooltip) */
.af-taxid-invalid{
	border-color: #B91C1C !important;
	box-shadow: 0 0 0 3px rgba(185, 28, 28, .15) !important;
}
.af-taxid-tooltip{
	position: absolute;
	top: -28px;
	left: 0;
	background: #B91C1C;
	color: #fff;
	padding: 6px 8px;
	border-radius: 6px;
	font-size: 12px;
	box-shadow: 0 6px 16px rgba(0,0,0,.2);
	white-space: nowrap;
	z-index: 3;
}
.af-taxid-tooltip::after{
	content: "";
	position: absolute;
	bottom: -6px;
	left: 10px;
	border-width: 6px 6px 0 6px;
	border-style: solid;
	border-color: #B91C1C transparent transparent transparent;
}

/* Espaciado en el flujo de autónomo */
.af-autonomo-lookup #af_check_hash { margin-top: 12px; }

.af-registro__recaptcha-note {
    grid-column: 1 / -1;
    margin: 12px auto 0;
    font-size: 0.85rem;
    color: #6b7280;
    text-align: center;
    max-width: 420px;
    line-height: 1.4;
}

.af-registro__recaptcha-note a {
    color: var(--ast-global-color-0, #2271b1);
    text-decoration: underline;
}

.af-registro__recaptcha-note a:hover,
.af-registro__recaptcha-note a:focus {
    text-decoration: none;
}

/* Grid responsive a dos columnas en desktop */
.af-grid { display: grid; grid-template-columns: 1fr; gap: 12px 16px; }
@media (min-width: 782px) { .af-grid { grid-template-columns: 1fr 1fr; } }
.af-col--full { grid-column: 1 / -1; }

/* Listado público de asesorías */
.af-asesorias-public { margin: 0; padding-left: 18px; }
.af-asesorias-public li { margin: 2px 0; }

/* Tarjeta de plan */
.af-plan-card { width: 100%; }
.af-plan-option { display: block; width: 100%; position: relative; cursor: pointer; }
.af-plan-option + .af-plan-option { margin-top: 12px; }
.af-plan-option input[type="radio"] { position: absolute; top: 14px; left: 14px; margin: 0; }
.af-plan-box {
	background: #f3f4f6;
	border: 1px solid #e5e7eb;
	border-radius: 8px;
	padding: 14px 16px 12px 44px; /* espacio para el radio dentro */
}
.af-plan-option input[type="radio"]:checked + .af-plan-box { border-color: #2271b1; box-shadow: 0 0 0 2px rgba(34,113,177,.12); background: #eef5fb; }
.af-plan-option:hover .af-plan-box { border-color: #d1d5db; }
.af-plan-price { font-size: 1rem; font-weight: 600; margin: 2px 0 6px; }
.af-plan-price__year { display: none; }
.af-steps-plan.is-billing-year .af-plan-price__month { display: none; }
.af-steps-plan.is-billing-year .af-plan-price__year { display: inline; }
.af-plan-more { margin: 6px 0 0 2px; }

/* Features del plan (desde DB) */
.af-plan-features{
	margin: 8px 0 6px;
	padding-left: 18px;
	color: #374151;
	line-height: 1.45;
	font-size: 0.92rem;
}
.af-plan-features li{ margin: 3px 0; }
.af-plan-more a { color: #2271b1; text-decoration: none; }
.af-plan-more a:hover { text-decoration: underline; }

/* Toggle mensual/anual */
.af-billing{
	display:flex;
	align-items:center;
	justify-content:flex-end;
	gap:10px;
	margin: 6px 0 10px;
}
.af-billing__label{
	font-size: 13px;
	font-weight: 700;
	color: #111827;
}
.af-billing__save{
	display:inline-block;
	margin-left:6px;
	padding: 2px 8px;
	border-radius: 999px;
	background: rgba(16, 185, 129, 0.14);
	border: 1px solid rgba(16, 185, 129, 0.28);
	color: #065f46;
	font-weight: 800;
	font-size: 12px;
}
.af-switch{ display:inline-flex; align-items:center; }
.af-switch__input{
	position:absolute;
	opacity:0;
	width:1px;
	height:1px;
}
.af-switch__track{
	width: 44px;
	height: 24px;
	background:#e5e7eb;
	border:1px solid #d1d5db;
	border-radius:999px;
	position:relative;
	cursor:pointer;
	transition: background .15s ease, border-color .15s ease;
}
.af-switch__track::after{
	content:"";
	position:absolute;
	top: 50%;
	left: 3px;
	width: 18px;
	height: 18px;
	background:#fff;
	border-radius:999px;
	transform: translateY(-50%);
	box-shadow: 0 2px 8px rgba(0,0,0,.18);
	transition: transform .15s ease;
}
.af-switch__input:focus + .af-switch__track{
	outline: 2px solid rgba(34,113,177,.3);
	outline-offset: 2px;
}
.af-switch__input:checked + .af-switch__track{
	background:#0b2537;
	border-color:#0b2537;
}
.af-switch__input:checked + .af-switch__track::after{
	transform: translate(20px,-50%);
}

/* Precio con tachado + "Gratis" (alineado con af-web-planes) */
.af-plan-price .old { color: #9ca3af; text-decoration: line-through; margin-right: 8px; font-weight: 600; }
.af-plan-price .amount--free { color: #111827; font-weight: 800; }
.af-plan-note { margin: 6px 0 0; font-size: 0.9rem; color: #6b7280; line-height: 1.35; }
.af-plan-note__asterisk { font-weight: 700; margin-right: 4px; }
.af-plan-note__year{ display:none; }
.af-steps-plan.is-billing-year .af-plan-note__month{ display:none; }
.af-steps-plan.is-billing-year .af-plan-note__year{ display:inline; }
.af-plan-note--tax { margin: 10px 0 0; font-size: 0.85rem; color: #6b7280; line-height: 1.4; }

/* Estado disabled (planes no disponibles) */
.af-plan-option.is-disabled { cursor: not-allowed; position: relative; }
.af-plan-option.is-disabled .af-plan-box { opacity: .6; filter: grayscale(1); border-style: dashed; }
.af-plan-option.is-disabled:hover .af-plan-box { border-color: #e5e7eb; }
.af-plan-option.is-disabled input[type="radio"] { pointer-events: none; }

/* Tooltip sencillo */
.af-tooltip { position: absolute; top: 10px; left: 10px; right: auto; background: #111827; color: #fff; padding: 6px 8px; border-radius: 6px; font-size: 12px; box-shadow: 0 6px 16px rgba(0,0,0,.2); display: none; z-index: 2; }
.af-tooltip.is-visible { display: inline-block; }

/* Pago (autónomo) */
.af-steps-payment-autonomo input[type="text"] { max-width: 320px; }

/* Espaciado entre último plan y el botón siguiente en pasos de plan */
.af-steps-plan .button.button-primary { margin-top: 12px; }

/* Modal */
.af-modal { position: fixed; inset: 0; display: none; z-index: 1000000; }
.af-modal[hidden] { display: none !important; }
.af-modal:not([hidden]) { display: flex; align-items: center; justify-content: center; }
.af-modal__overlay { position: absolute; inset: 0; background: rgba(0,0,0,.55); }
.af-modal__content {
	position: relative; z-index: 10; width: 92%; max-width: 540px;
	background: var(--af-bg-primary, #fff);
	border-radius: var(--af-app-radius-3xl, 20px);
	box-shadow: 0 20px 60px rgba(0,0,0,.18);
	overflow: hidden;
}
.af-modal__header {
	padding: 20px 24px;
	background: var(--af-gray-800, #0b2537);
	display: flex; align-items: center; justify-content: space-between;
}
.af-modal__header strong {
	font-size: var(--af-font-size-xl, 1.25rem);
	font-weight: 700;
	color: #fff;
}
.af-modal__body { padding: 24px; }
.af-modal__body > .description { color: var(--af-body-color, #4b4f58); margin: 0 0 20px; line-height: 1.55; }
.af-modal__footer {
	padding: 16px 24px;
	background: var(--af-bg-secondary, #f7f8fa);
	border-top: 1px solid var(--af-gray-300, #e2e5ea);
	display: flex; gap: 10px; justify-content: flex-end;
}
.af-modal__close {
	appearance: none; background: transparent; border: none;
	font-size: 28px; line-height: 1; cursor: pointer;
	color: rgba(255,255,255,.7); transition: color .2s ease;
}
.af-modal__close:hover { color: #fff; }
.af-modal__header--warning { background: #7f1d1d; }
.af-modal__header--success { background: var(--af-success, #2f855a); }

/* Flip card (solicitar hash) */
.af-modal-flip {
	position: relative; z-index: 10; width: 92%; max-width: 540px;
	perspective: 1000px; margin: auto;
}
.af-modal-flip__face {
	backface-visibility: hidden;
	transition: transform .6s ease;
}
.af-modal-flip__front { transform: rotateY(0deg); }
.af-modal-flip__back {
	position: absolute; inset: 0;
	transform: rotateY(180deg);
	display: flex; align-items: center;
}
.af-modal-flip.is-flipped .af-modal-flip__front { transform: rotateY(-180deg); pointer-events: none; }
.af-modal-flip.is-flipped .af-modal-flip__back  { transform: rotateY(0deg); pointer-events: auto; }

/* Resultado en cara back (éxito / warning) */
.af-modal-result { text-align: center; padding: 4px 0; }
.af-modal-result__icon { font-size: 40px; line-height: 1; margin-bottom: 12px; }
.af-modal-result__icon--success { color: var(--af-success, #2f855a); }
.af-modal-result__icon--warning { color: #991b1b; }
.af-modal-result__icon--info { color: var(--af-primary, #09aeb8); }
.af-modal-result__title {
	font-size: var(--af-font-size-base, 1rem); font-weight: 600;
	color: var(--af-heading-color, #3a3a3a); margin: 0 0 8px;
}
.af-modal-result__text {
	font-size: var(--af-font-size-sm, .875rem); line-height: 1.6;
	color: var(--af-body-color, #4b4f58); margin: 0 0 8px;
}
.af-modal-result__email {
	font-weight: 600; font-size: var(--af-font-size-sm, .875rem);
	color: var(--af-heading-color, #3a3a3a); margin: 4px 0 12px;
	word-break: break-all;
}
.af-modal-result__hint {
	background: var(--af-bg-secondary, #f7f8fa);
	border-radius: var(--af-app-radius-sm, 8px);
	padding: 12px 14px; margin-top: 12px;
	font-size: var(--af-font-size-sm, .875rem);
}
.af-modal-result__hint p { margin: 0 0 6px; line-height: 1.5; color: var(--af-body-color, #4b4f58); }
.af-modal-result__hint p:last-child { margin-bottom: 0; }
.af-modal-result__link-ref {
	font-weight: 600; font-style: italic;
	color: var(--af-link-color, #09aeb8);
}

/* Campos del modal */
.af-modal .af-label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--af-heading-color, #3a3a3a); }
.af-modal input[type="text"],
.af-modal input[type="email"],
.af-modal .regular-text {
	width: 100%; max-width: 100%; box-sizing: border-box;
	padding: 10px 12px; border: 1px solid var(--af-gray-300, #e2e5ea);
	border-radius: var(--af-app-radius-sm, 8px);
	font-size: var(--af-font-size-base, 1rem);
	transition: border-color .2s ease, box-shadow .2s ease;
}
.af-modal input[type="text"]:focus,
.af-modal input[type="email"]:focus {
	border-color: var(--af-primary, #09aeb8);
	box-shadow: 0 0 0 3px var(--af-app-focus-ring-soft, rgba(9,174,184,.18));
	outline: none;
}
.af-modal .af-grid { gap: 16px; }
.af-modal .af-grid + .af-grid { margin-top: 16px; }

/* Checkboxes RGPD dentro de modales */
.af-modal .af-rgpd {
	margin: 0;
	padding: 10px 12px;
	border: 1px solid #e0e0e0;
	border-radius: 6px;
	background: #fafafa;
	font-size: 13px;
	line-height: 1.5;
}
.af-modal .af-rgpd + .af-rgpd {
	margin-top: -8px;
}
.af-modal .af-rgpd label {
	display: block;
	position: relative;
	padding-left: 24px;
	cursor: pointer;
}
.af-modal .af-rgpd input[type="checkbox"] {
	position: absolute;
	left: 0;
	top: 2px;
	margin: 0;
}
.af-modal .af-rgpd label::after {
	content: " *";
	color: #d63638;
	font-weight: 600;
}
.af-required {
	color: #d63638;
	font-weight: 600;
}

/* Enlace de recomendación */
.af-recommend-link { margin: 10px 0 4px; font-size: var(--af-font-size-sm, 0.875rem); }
.af-recommend-link a { color: var(--af-link-color, #09aeb8); text-decoration: underline; }
.af-recommend-link a:hover { color: var(--af-link-hover-color, #078a92); }

/* Notificaciones (éxito/errores) */
.af-notice { width: 100%; box-sizing: border-box; padding: 12px 16px; border-radius: 8px; margin: 12px 0; }
.af-notice p { margin: 0; }
.af-notice p + p { margin-top: 6px; }
.af-notice--success { background: #ECFDF5; border: 1px solid #34D399; color: #065F46; }
.af-notice--error { background:#FEF2F2; border:1px solid #FCA5A5; color:#B91C1C; }
.af-notice--info { background: #F9FAFB; border: 1px solid #E5E7EB; color: #374151; }
.af-hash-detail { font-size: 0.95em; opacity: .95; }

/* Ayuda Stripe Test (solo sandbox) */
.af-stripe-test-help{
	background: #FFFBEB;
	border: 1px solid rgba(252,211,77,.45);
	color: #92400E;
	border-radius: 10px;
	padding: 10px 12px;
	margin: 10px 0 12px;
	box-shadow: none;
}
.af-stripe-test-help__header{
	display:flex;
	align-items:flex-start;
	justify-content:space-between;
	gap:12px;
}
.af-stripe-test-help__title{
	display:flex;
	flex-direction:column;
	gap:4px;
}
.af-stripe-test-help__subtitle{
	font-size: 0.82rem;
	color: #92400E;
	opacity: .8;
}
.af-stripe-test-help__grid{
	display:grid;
	grid-template-columns: 1fr;
	gap: 8px;
	margin-top: 8px;
}
@media (min-width: 782px){
	.af-stripe-test-help__grid{ grid-template-columns: 1fr 1fr 1fr; }
}
.af-stripe-test-help__item{
	background: rgba(255,255,255,.7);
	border: 1px solid rgba(252,211,77,.4);
	border-radius: 10px;
	padding: 8px 10px;
	display:flex;
	align-items:center;
	justify-content:space-between;
	gap: 8px;
}
.af-stripe-test-help__label{
	font-size: 0.85rem;
	color: rgba(146,64,14,.9);
	white-space: nowrap;
}
.af-stripe-test-help__value{
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	font-size: 0.88rem;
	background: rgba(17,24,39,.08);
	padding: 3px 6px;
	border-radius: 8px;
	color: #111827;
}
.af-test-copy{
	appearance:none;
	border: 1px solid rgba(146,64,14,.25);
	background: rgba(255,255,255,.85);
	color: #7C2D12;
	border-radius: 8px;
	padding: 4px 8px;
	font-size: .8rem;
	font-weight: 600;
	cursor: pointer;
	white-space: nowrap;
}
.af-test-copy:hover{ background: #fff; }
.af-test-copy:focus{ outline: 2px solid rgba(245, 158, 11, .35); outline-offset: 2px; }

/* Tooltip (icono ?) */
.af-stripe-test-tooltip{ position: relative; }
.af-stripe-test-tooltip > summary{
	list-style: none;
	cursor: pointer;
	width: 28px;
	height: 28px;
	display:inline-flex;
	align-items:center;
	justify-content:center;
	border-radius: 999px;
	border: 1px solid rgba(146,64,14,.25);
	background: rgba(255,255,255,.85);
	color: #7C2D12;
	font-weight: 800;
	user-select: none;
}
.af-stripe-test-tooltip > summary::-webkit-details-marker{ display:none; }
.af-stripe-test-tooltip__panel{
	position:absolute;
	right:0;
	top: 36px;
	min-width: 290px;
	max-width: 360px;
	background: #111827;
	color: #fff;
	border-radius: 10px;
	padding: 10px 12px;
	box-shadow: 0 12px 32px rgba(0,0,0,.22);
	z-index: 50;
}
.af-stripe-test-tooltip__title{ margin: 0 0 8px; font-size: .95rem; }
.af-stripe-test-tooltip__line{ margin: 6px 0; font-size: .9rem; display:flex; gap: 8px; align-items:center; }
.af-stripe-test-tooltip__line span{ opacity: .85; }
.af-stripe-test-tooltip__panel code{
	font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
	background: rgba(255,255,255,.12);
	padding: 2px 6px;
	border-radius: 8px;
}
.af-stripe-test-tooltip__note{ margin: 8px 0 0; font-size: .82rem; opacity: .8; line-height: 1.35; }

/* ===== Autocompletado de dirección ===== */
.af-addr-wrap { position: relative; }
.af-addr-wrap input { width: 100%; box-sizing: border-box; }
.af-addr-wrap--open input {
	border-bottom-left-radius: 0;
	border-bottom-right-radius: 0;
}
.af-addr-drop {
	position: absolute;
	top: 100%;
	left: 0;
	right: 0;
	z-index: 9999;
	background: #fff;
	border: 1px solid #2271b1;
	border-top: none;
	border-radius: 0 0 6px 6px;
	box-shadow: 0 8px 24px rgba(0,0,0,.13);
	list-style: none !important;
	margin: 0 !important;
	padding: 4px 0 !important;
	max-height: 210px;
	overflow-y: auto;
	display: none;
}
.af-addr-drop li {
	list-style: none !important;
	padding: 9px 14px !important;
	margin: 0 !important;
	cursor: pointer;
	font-size: .875rem;
	line-height: 1.35;
	color: #111827;
	border-bottom: 1px solid #f3f4f6;
}
.af-addr-drop li::before,
.af-addr-drop li::after { display: none !important; content: none !important; }
.af-addr-drop li:last-child { border-bottom: none; }
.af-addr-drop li:hover,
.af-addr-drop li:focus {
	background: #eff6ff;
	color: #1d4ed8;
	outline: none;
}

/* ===== Aviso de spam post-registro ===== */
.af-spam-notice {
	background: #fef3cd;
	border: 1px solid #f0d78c;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 1.5rem;
	color: #664d03;
	font-size: 14px;
	line-height: 1.5;
	text-align: left;
}

/* ===== Bloque de soporte post-pago ===== */
.af-soporte-block {
	margin-top: 2rem;
	padding: 1.25rem 1.5rem;
	background: var(--af-gray-50, #f9fafb);
	border: 1px solid var(--af-gray-200, #e5e7eb);
	border-radius: 8px;
	text-align: center;
}
.af-soporte-block__msg {
	margin: 0 0 0.875rem;
	font-size: 0.8125rem;
	color: var(--af-gray-500, #6b7280);
	font-weight: normal;
}
.af-soporte-block__btn {
	background: transparent;
	border: 1px solid var(--af-gray-300, #d1d5db);
	color: var(--af-gray-500, #6b7280);
	padding: 0.4em 1.1em;
	border-radius: 4px;
	cursor: pointer;
	font-size: 0.8125rem;
	transition: border-color 0.15s, color 0.15s;
	line-height: 1.4;
}
.af-soporte-block__btn:hover:not(:disabled) {
	border-color: var(--af-gray-400, #9ca3af);
	color: var(--af-gray-700, #374151);
}
.af-soporte-block__btn:disabled {
	opacity: 0.5;
	cursor: default;
}
.af-soporte-block__reply-info {
	margin: 0.6rem 0 0;
	font-size: 0.75rem;
	color: var(--af-gray-400, #9ca3af);
}
.af-soporte-block__feedback {
	margin: 0.6rem 0 0;
	font-size: 0.75rem;
}
.af-soporte-block__feedback--ok  { color: var(--af-gray-500, #6b7280); }
.af-soporte-block__feedback--error { color: var(--af-danger, #dc2626); }
.af-soporte-block__feedback--error a { color: inherit; }

/* ===== Pantalla de error post-pago ===== */
.af-registro-error {
	max-width: 640px;
	margin: 2rem auto;
	padding: 2rem;
	text-align: center;
	background: #fff;
	border-radius: 12px;
	border: 1px solid #FCA5A5;
	box-shadow: 0 8px 24px rgba(220, 38, 38, 0.10);
}
.af-registro-error__icon {
	margin-bottom: 1rem;
}
.af-registro-error__title {
	margin: 0 0 0.75rem;
	font-size: 1.5rem;
	font-weight: 700;
	color: #991B1B;
}
.af-registro-error__msg {
	margin: 0 0 0.75rem;
	font-size: 0.9375rem;
	color: #374151;
	line-height: 1.6;
}
.af-registro-error__actions {
	margin-top: 1.5rem;
}

/* Licencia banner (paso plan) */
.af-licencia-banner {
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 12px;
}
.af-licencia-banner__content strong {
	color: #166534;
	display: block;
	margin-bottom: 4px;
}
.af-licencia-banner__content label {
	display: flex;
	align-items: center;
	gap: 6px;
	margin-top: 8px;
}
/* Licencia detectada (paso 1 — detección temprana on-blur) */
.af-licencia-early {
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 6px;
	padding: 12px 16px;
	margin-top: 8px;
	margin-bottom: 8px;
}
.af-licencia-early strong {
	color: #166534;
	display: block;
	margin-bottom: 4px;
}
.af-licencia-early p {
	margin: 0;
}
.af-licencia-early__hint {
	margin-top: 6px !important;
	font-size: 0.9em;
	color: #15803d;
}
/* Licencia banner (paso RGPD — se muestra al saltar el paso de plan) */
.af-licencia-applied {
	background: #f0fdf4;
	border: 1px solid #86efac;
	border-radius: 6px;
	padding: 12px 16px;
	margin-bottom: 12px;
}
.af-licencia-applied strong {
	color: #166534;
	display: block;
	margin-bottom: 4px;
}
.af-licencia-applied p {
	margin: 0;
}

