.af-acceso-container {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    min-height: 0;
    padding: 0;
}

.af-acceso-card {
    max-width: 520px;
    width: 100%;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    padding: 32px;
    border: 1px solid rgba(0,0,0,0.06);
}

.af-acceso-notice {
    margin: 0 0 16px 0;
    padding: 12px 14px;
    border-radius: 10px;
    background: rgba(16, 185, 129, 0.12); /* verde suave */
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #065f46;
    font-weight: 700;
    text-align: left;
    display: flex;
    gap: 10px;
    align-items: flex-start;
    line-height: 1.35;
}

.af-acceso-notice::before {
    content: "✓";
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    border-radius: 999px;
    background: rgba(16, 185, 129, 0.18);
    border: 1px solid rgba(16, 185, 129, 0.35);
    color: #065f46;
    font-weight: 800;
    flex: 0 0 22px;
    margin-top: 1px;
}

.af-acceso-card h3 {
    margin: 0 0 12px 0;
    font-size: 26px;
    font-weight: 700;
    text-align: center;
    color: var(--ast-global-color-0, #0274be);
}

.af-acceso-subtitle {
    margin: 0 0 24px 0;
    color: #6b7280;
    text-align: center;
}

.af-acceso-buttons {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.af-acceso-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: 700;
    letter-spacing: .3px;
    transition: transform .08s ease, box-shadow .2s ease, background-color .2s ease, color .2s ease;
    border: 1px solid rgba(0,0,0,0.06);
    width: 100%;
}

.af-acceso-button.primary {
    background-color: var(--ast-global-color-0, #0274be);
    color: #fff;
}

.af-acceso-button.primary:hover,
.af-acceso-button.primary:focus-visible {
    background-color: var(--ast-global-color-1, #025a94);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 116, 190, 0.25);
}

.af-acceso-button.secondary {
    background-color: #fff;
    color: var(--ast-global-color-0, #0274be);
    border-color: rgba(2, 116, 190, .25);
}

.af-acceso-button.secondary:hover,
.af-acceso-button.secondary:focus-visible {
    background-color: var(--ast-global-color-2, #f3f4f6);
    transform: translateY(-1px);
    box-shadow: 0 6px 16px rgba(2, 116, 190, 0.15);
}

.af-acceso-button.af-acceso-target {
    border: 2px solid #ef4444;
    box-shadow: 0 0 0 4px rgba(239, 68, 68, 0.14);
    position: relative;
}

/* Flecha superpuesta (no ocupa espacio, no rompe layout) */
.af-acceso-button.af-acceso-target::before {
    content: '';
    position: absolute;
    left: -14px;
    top: 50%;
    transform: translateY(-50%);
    width: 0;
    height: 0;
    border-top: 10px solid transparent;
    border-bottom: 10px solid transparent;
    border-right: 12px solid #ef4444;
}

@media (max-width: 544px) {
    .af-acceso-button.af-acceso-target::before {
        display: none;
    }
}

.af-acceso-button[aria-disabled="true"] {
	opacity: .6;
	pointer-events: none;
}

.af-acceso-button.af-acceso-loading {
	opacity: .75;
	pointer-events: none;
	position: relative;
}

.af-acceso-button.af-acceso-loading::after {
	content: '';
	width: 18px;
	height: 18px;
	border-radius: 50%;
	border: 2px solid rgba(255,255,255,0.6);
	border-top-color: rgba(255,255,255,1);
	position: absolute;
	top: 50%;
	right: 18px;
	transform: translateY(-50%);
	animation: af-acceso-spin .8s linear infinite;
}

.af-acceso-button.secondary.af-acceso-loading::after {
	border-color: rgba(2, 116, 190, 0.3);
	border-top-color: rgba(2, 116, 190, 0.9);
}

@keyframes af-acceso-spin {
	from { transform: translateY(-50%) rotate(0deg); }
	to { transform: translateY(-50%) rotate(360deg); }
}

.af-acceso-hint {
    margin-top: 16px;
    font-size: 13px;
    color: #6b7280;
    text-align: center;
}


